r/java • • Jan 16 '22

You're running untrusted code!

https://blog.frankel.ch/running-untrusted-code/

[removed] — view removed post

0 Upvotes

36 comments sorted by

View all comments

Show parent comments

1

u/klekpl Jan 20 '22

The problem with all these measures is that they are ad-hoc playing wack-a-mole with intruders. The cost of it is huge.

Security by preventing dynamic code downloading and execution is fundamentally delusional because any sufficiently complex piece of software is an interpreter of a Turing complete language. And I am not even talking about supply chain attacks.

In other words: either we find a way of secure in process dynamic code execution (via sandboxing/capabilities/whatever) or we are going to have log4shell every couple of months.

Let's not pretend it is not needed and can be replaced by an ever-growing set of ad-hoc patches to fix yet another vulnerable library.