资料分析
SecReason: Vulnerability Detection and In-Stream Self-Repair for LLM Code Generation
arXiv LLM Security 论文 · v2
来源摘要
原文摘录,附引用位置。
Large language models (LLMs) may introduce security vulnerabilities into generated code, which can persist into production when verification focuses on functional correctness. Existing defenses act before, during, or after generation, but none inspects the code during generation. On tasks where unassisted generation introduces vulnerabilities, \system raises the share of runs delivering secure and functionally correct code from below 15\% to 72.
查看摘录位置与原文
{
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"document_id": "DOC-f708dc7cc09629dfb969997d",
"end_offset": 175,
"line_end": 1,
"line_start": 1,
"location": "content",
"quote": "Large language models (LLMs) may introduce security vulnerabilities into generated code, which can persist into production when verification focuses on functional correctness.",
"start_offset": 0
}查看摘录位置与原文
{
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"document_id": "DOC-f708dc7cc09629dfb969997d",
"end_offset": 280,
"line_end": 1,
"line_start": 1,
"location": "content",
"quote": "Existing defenses act before, during, or after generation, but none inspects the code during generation.",
"start_offset": 176
}查看摘录位置与原文
{
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"document_id": "DOC-f708dc7cc09629dfb969997d",
"end_offset": 1233,
"line_end": 1,
"line_start": 1,
"location": "content",
"quote": "On tasks where unassisted generation introduces vulnerabilities, \\system raises the share of runs delivering secure and functionally correct code from below 15\\% to 72.",
"start_offset": 1065
}产品与版本规范化
暂无产品与版本字段。
实体与标签
{
"items": [],
"method": "existing_identifier_and_topic_rules",
"tags": [
{
"dimension": "direction",
"evidence": {
"dimension": "direction",
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"end_offset": 858,
"label": "\u9632\u5fa1\u6280\u672f",
"location": "title_and_content",
"matched_term": "defense",
"quote": "e reasoning stream. We present SecReason, an in-stream defense that monitors this window. Dual-track incremental scanning applies security rules, checking each st",
"start_offset": 696
},
"label": "\u9632\u5fa1\u6280\u672f"
},
{
"dimension": "risk_type",
"evidence": {
"dimension": "risk_type",
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"end_offset": 124,
"label": "\u4f9b\u5e94\u94fe\u98ce\u9669",
"location": "title_and_content",
"matched_term": "vulnerability",
"quote": "SecReason: Vulnerability Detection and In-Stream Self-Repair for LLM Code Generation\nLarge language models (LLMs) may introd",
"start_offset": 0
},
"label": "\u4f9b\u5e94\u94fe\u98ce\u9669"
},
{
"dimension": "technology",
"evidence": {
"dimension": "technology",
"document_hash": "8eb4add8b5e4f6644433fbbb9bbf9570eb76f68543cadd56f6a6f8e5fd370733",
"end_offset": 168,
"label": "LLM",
"location": "title_and_content",
"matched_term": "llm",
"quote": " Vulnerability Detection and In-Stream Self-Repair for LLM Code Generation\nLarge language models (LLMs) may introduce security vulnerabilities into generated ",
"start_offset": 10
},
"label": "LLM"
}
]
}去噪与近重复
原始资料保留。当前词法相似簇含 2 份资料。
PoC 静态审查
静态审查范围
仅检查已保存代码的语法信号和来源明确标记的 PoC 链接;
当前资料没有可静态检查的代码块。