What the Model Cannot See: Name-Based Trust Lets Unverifiable Sanitizers Silence True Alerts in LLM-Based Static-Analysis Triage
ZhiHong Liu, Shanhao Cao, Xiuli Ma, Minghao Huang, Shuyao Gao
Abstract
Large language models (LLMs) are increasingly used to triage the alerts of static application security testing (SAST) tools, yet the triage prompt usually shows only the alerted file. We show that this lets a code author silence true alerts: a call to a method in another file whose name fits the vulnerability, such as InputSanitizer.escapeSql, is accepted as an effective sanitizer. On OWASP Benchmark alerts, four LLMs from four vendors read and rejected a visible no-op sanitizer, but the same no-op in an unseen file lowered the share of true alerts kept from 0.93-0.97 to 0.36-0.74 in a preregistered test. Unseen calls with neutral or ill-fitting names had little effect. Coded reasoning shows that the models knew the code was unseen but relied on the name; from the name alone, a fake and a working sanitizer are indistinguishable. Retrieving the called method restored triage, whereas allowing a "needs review" verdict helped three of the four models. In 35 real Java projects, half of the CodeQL injection alerts pass through sanitizer-like methods in other files, and three models dismissed a real CVE for this reason. Triage pipelines should resolve, show and verify unseen code instead of trusting names.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- 28 pages, 13 figures, 5 tables
Related papers
SEF-DG: Learning Additional Incident Discovery for Budgeted Security Alert Triage
Shared title terminologycs.CRChulmin Park, Sein Jang, Sattarov Otabek et al.
Are DNSSEC Islands of Security a Practical Concern? Transport-Layer Fallbacks for Trust Recovery
Shared title terminologycs.CRAmogh R, Aditya Kulkarni, Tamal Das
A Persuaded Agent Cannot Persuade the Checker: Verified Differential Privacy Configuration by LLM Agents under Malicious Requesters
Shared title terminologycs.CRWenjun Yang, Eyhab Al-Masri, Tianhao Wang
WorldClave: Extending Enclave Boundaries to Devices for Trusted Robotic Workloads
Shared title terminologycs.CRHayoung Kang, Sujin Park, Seonghwan Park et al.
Self-Sovereignty Is Not Free: A Critical Analysis of Trust and Control in Identity Management
Shared title terminologycs.CREric A. Leblanc, Paul C. van Oorschot
Forensic Visibility of Malicious Model Context Protocol (MCP) Servers: An Empirical Study Across Agent and Kernel Trust Boundaries
Shared title terminologycs.CRCesar R. Beltrán-Hernández