Find OS command injection vectors

Proprietary

Finds calls to Runtime.exec(String) which passes the command through a shell interpreter, enabling command injection via metacharacters like ;, |, and &&. Use the String[] overload instead to avoid shell interpretation.

org.openrewrite.java.security.search.FindCommandInjection
mod run . --recipe=org.openrewrite.java.security.search.FindCommandInjection

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.