Find process control vectors

Proprietary

Finds calls to System.loadLibrary(), System.load(), and Runtime.load() which, when the library path or name is derived from user input, can allow an attacker to load arbitrary native code. Ensure library names are not externally controlled.

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

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

Recipe list

It runs these recipes, in this order.

  1. Find method usages java.lang.System loadLibrary(String)
  2. Find method usages java.lang.System load(String)
  3. Find method usages java.lang.Runtime load(String)
  4. Find method usages java.lang.Runtime loadLibrary(String)