Guided Reasoning with Actionable Security Principles for Secure Code Generation
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:08 UTC · 25b126c59b56 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "d5hmyYQVHg"- }- ],- "title": "Guided Reasoning with Actionable Security Principles for Secure Code Generation",- "authors": [],- "abstract": "Large Language Models generate code that is frequently insecure, and existing defenses are vulnerability-centric: they teach models what not to do, by fine-tuning on vulnerable and fixed code pairs, by retrieving records of past vulnerabilities, or by revising drafts under static analyzer feedback. Such defenses depend on curated vulnerability data, generalize poorly to weaknesses absent from it, and are often impractical for proprietary models. We take a principle-centric direction instead: rather than describing past vulnerabilities, we condition generation on prescriptive Secure Coding Principles that state how secure code should be written. We present GRASP, which organizes 214 such principles into a directed acyclic graph capturing specialization and prerequisite dependencies, and traverses it at inference time, selecting the principles relevant to a task and applying them in dependency order while pruning branches that do not arise. GRASP requires no training, no weight access and no analyzer in the generation loop, so it applies to proprietary and open-weight models alike. Across five models we raise the Security Rate from 0.46–0.55 at baseline to 0.70–0.84, outperform zero-shot, planning-based, retrieval-augmented and analyzer-guided prompting on secure-pass@k on our dataset, and improve robustness on unseen vulnerabilities, measured on real CVEs disclosed after the evaluated models' training cutoffs.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "453be5fa-68e5-4230-9840-e2de86395a78"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Guided Reasoning with Actionable Security Principles for Secure Code Generation",+ "authors": [],+ "abstract": "Large Language Models generate code that is frequently insecure, and existing defenses are vulnerability-centric: they teach models what not to do, by fine-tuning on vulnerable and fixed code pairs, by retrieving records of past vulnerabilities, or by revising drafts under static analyzer feedback. Such defenses depend on curated vulnerability data, generalize poorly to weaknesses absent from it, and are often impractical for proprietary models. We take a principle-centric direction instead: rather than describing past vulnerabilities, we condition generation on prescriptive Secure Coding Principles that state how secure code should be written. We present GRASP, which organizes 214 such principles into a directed acyclic graph capturing specialization and prerequisite dependencies, and traverses it at inference time, selecting the principles relevant to a task and applying them in dependency order while pruning branches that do not arise. GRASP requires no training, no weight access and no analyzer in the generation loop, so it applies to proprietary and open-weight models alike. Across five models we raise the Security Rate from 0.46–0.55 at baseline to 0.70–0.84, outperform zero-shot, planning-based, retrieval-augmented and analyzer-guided prompting on secure-pass@k on our dataset, and improve robustness on unseen vulnerabilities, measured on real CVEs disclosed after the evaluated models' training cutoffs.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}