Experimental Java agent to stomp on things.
Java
Permalink
Failed to load latest commit information.
agent Better documentation. Jan 18, 2016
bootstrap Better documentation. Jan 18, 2016
example Better documentation. Jan 18, 2016
.gitignore Use ByteBuddy. Jan 18, 2016
LICENSE Use ByteBuddy. Jan 18, 2016
README.md Add note to say that this is a PoC Jan 21, 2016
pom.xml Use ByteBuddy. Jan 18, 2016

README.md

SecurityFixer

Uses Byte Buddy to override the behavior of System.setSecurityManager.

NOTE: This is a demo, not a real security implementation. For example, System.getSecurityManager isn't intercepted!

Compiling

mvn clean compile package

Running

A little awkward. I don't know how to get Maven exec to do anything useful. Note that the intercepter has to be on the bootstrap classpath, so it must be packaged seperately from the agent:

java -javaagent:agent/target/securityfixer-agent-1.0-SNAPSHOT.jar=bootstrap/target/securityfixer-bootstrap-1.0-SNAPSHOT.jar securityfixer.Main