r/java • u/PartOfTheBotnet • Mar 21 '23
JDK 21: Disallowing the dynamic loading of agents by default
https://mail.openjdk.org/pipermail/serviceability-dev/2023-March/046868.html
64
Upvotes
r/java • u/PartOfTheBotnet • Mar 21 '23
View all comments
Show parent comment
5
u/[deleted] Mar 21 '23
Could be that the original proposer genuinely saw some security "holes" to be fixed with this change, that just do not apply once you actually go into scenarios where they could happen. Let's say you want to disable the attach mechanism to prevent unauthorized attaching - the only scenario where that would be the case is when the attacker already has a program up and running on your host. In this case, you've already lost, preventing attaching to a running jvm wouldn't make a big difference, if any.