SEEK: Agentic Knowledge Graph Retrieval for Secure Code Generation
We propose SEEK, an agentic Graph RAG framework for secure code generation that constructs a security knowledge graph using the Common Weakness Enumeration (CWE) taxonomy as its structural backbone and injects it with curated real-world CVE vulnerability-fix instances.
ProofPaper ↗
Key points
- Large Language Models (LLMs) can generate functionally correct code while introducing exploitable security weaknesses, particularly when developers specify functionality without explicit security requirements.
- Recent state-of-the-art approaches mitigate this problem using external security knowledge, but largely rely on flat similarity-based retrieval over independent artifacts, making it difficult to infer the relevant vulnerability space and retrieve targeted knowledge when direct matches are unavailable.
- At inference time, a Planner Agent predicts potential CWE weaknesses associated with the developer query, which guide Graph Scoping to restrict retrieval to relevant regions of the CWE taxonomy before deterministic multi-faceted candidate ranking.
- Across five open-source LLMs, we evaluate SEEK in an out-of-distribution setting on CodeGuard+ and CyberSecEval, spanning C, C++, and Python.
Sources (1)
- [1]SEEK: Agentic Knowledge Graph Retrieval for Secure Code GenerationarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 10, 02:37 PM
We propose SEEK, an agentic Graph RAG framework for secure code generation that constructs a security knowledge graph using the Common Weakness Enumeration (CWE) taxonomy as its structural backbone and injects it with curated real-world CVE vulnerability-fix instances.
Large Language Models (LLMs) can generate functionally correct code while introducing exploitable security weaknesses, particularly when developers specify functionality without explicit security requirements.
Extractive summary: sentences quoted from the sources.
Before this
- Oct 10, 2026Training-Free BioNEL-RAG: Advancing Biomedical Entity Linking through Retrieval-Augmented Generation and Large Language Model
- Oct 10, 2026SAGE: Pushing 2-Bit Vector-Quantized LLMs toward Real-World Usability
- Oct 10, 2026PsyMemBehav: Psychology-Informed and Memory-Grounded Two-Level Identity-to-Action Reasoning for Social-Media Behavior Simulation
- Oct 10, 2026LongHisDoc: A Comprehensive Benchmark for Chinese Long Historical Document Understanding
- Oct 9, 2026SAT-RL: Training Language Models for Logical Reasoning with Symbolic Solvers
- Oct 9, 2026ACED-Bench: Evaluating How LLM Agents Acquire and Act on Causal Evidence