Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection
Researchers and practitioners increasingly apply Large Language Models (LLMs) for automated vulnerability detection. Recent work has shown that LLMs are susceptible to the same cognitive heuristics that bias human judgment. Yet, no work has investigated whether these heuristics affect a model's assessment of code vulnerabilities. In this paper, we present the first systematic exploration of cognitive heuristics in LLM-driven code vulnerability detection. We introduce a controlled framework that holds the code fixed and only varies the surrounding context to trigger three cognitive heuristics:
Lineage graph
Paper → model → repo connections mined from source citations (Tier-1 exact match).
Why these links exist
Every edge carries a method, confidence, and the source snippet that justified it — so bad links are debuggable.
- LinkedLinked via unknownIEEE Rolls Out Large Language Models Virtual Training Course →
- LinkedLinked via unknownCritical Copilot vulnerability allowed hackers to steal 2FA code from users →
- PossiblePossibly related (embedding) · 70%huhusmang/Awesome-LLMs-for-Vulnerability-Detection →
- PossiblePossibly related (embedding) · 49%FreeBSoD: Leveraging Language Models to Find and Exploit Kernel Bugs (Part 2 of 2) - Security Boulevard →
- PossiblePossibly related (embedding) · 48%115 Blog Posts To Learn About Automated Testing - HackerNoon →
