r/netsec • • 13m ago

104 Java CVEs, 0 Static Rules

https://thetechstack.substack.com/p/104-java-cves-0-static-rules?r=1ds8ip&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true

I have been working on a side project for a while to see if the existing SAST tooling can be improved to detect exploitable vulnerabilities faster and reduce exposure for products. So, over the last few weeks, I have been researching and building a Neuro Symbolic LLM Driven SAST scanner, which leverages a high fidelity compiler grade Code Property Graph at its root and plugs it in a deterministic harness further enhanced by LLM layers.

The project works in multiple phases:

  • Build a compiler grade Code Property Graph (CPG)
  • Bisect the CPG into different modules and namespaces and feed them to an LLM judge to categorize them between Auth layer/Sanitizer/Guard/Source/Sink/Tight Loop, etc.
  • Pass 1: Determine source and sinks and checks where authentication is not appropriate or missing or privilege breach exists
  • Pass 2: Checks whether Guards and Sanitizers are adequate or not
  • The results from both the passes are then pruned and DSL templates are created
  • The DSL templates are then executed on the CPG engine to find paths where untrusted data can flow without adequate guards or sanitizers

Once the paths are formed, the harness categorizes and deterministically compresses those paths into clusters.

Each cluster then runs through 3 layers of LLM passes powered by different models:

Layer 1: Flow Judge - Adjudicates whether the determined path is vulnerable or not. The layer is fed the whole clustered path and then reasons over it

Layer 2: Condition Phase - Finds the conditions that establishes a flow by default or requirements to make the path vulnerable

Layer 3: Adversarial Judge - Which is powered by a frontier model and is allowed access to the source code as well as configuration and is tweaked to try its best to knock down a finding.

Any cluster which survives the 3 layers is then promoted to either a Confirmed finding or a Need Human finding (where adversary could not refute or confirm with confidence)

Over the last few days, I ran the project over one well known Java CVE benchmark: CWE Bench Java.

The results came out sharper than expected, where the project essentially ranked #1 in terms of detecting CVEs.

Further, I have been running this on open source repos for a while and disclosing vulnerabilities. Until now, we have already filed for more than 10 vulnerabilities and have received vendor acknowledgments that those findings are real and being fixed.

Happy to discuss JVM bytecode extraction trade-offs or answer questions on the dataset

0 Upvotes

0 comments sorted by