What the Model Cannot See: Name-Based Trust Lets Unverifiable Sanitizers Silence True Alerts in LLM-Based Static-Analysis Triage

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.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Web Application Security Vulnerabilities
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

What the Model Cannot See: Name-Based Trust Lets Unverifiable Sanitizers Silence True Alerts in LLM-Based Static-Analysis Triage

Shuyao Gao, ZhiHong Liu, Xiuli Ma, Shanhao Cao et al.
arXiv
Web Application Security Vulnerabilities
preprint

What the Model Cannot See: Name-Based Trust Lets Unverifiable Sanitizers Silence True Alerts in LLM-Based Static-Analysis Triage

Shuyao Gao, ZhiHong Liu, Xiuli Ma, Shanhao Cao, Minghao Huang
preprint en

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.

arXiv
Web Application Security Vulnerabilities
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon