Find ObjectInputStream(...) constructions
ProprietaryJava native deserialization is the source of the CVE-2015-4852 / Apache Commons gadget-chain family — any classpath gadget can fire on readObject. Replace with a JSON or Protobuf decoder; if you must keep Java serialization, install an ObjectInputFilter.
org. openrewrite. kotlin. security. FindObjectInputStream$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. security. FindObjectInputStream$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.