CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

Secure-Miner:通过挖掘安全编码实践提升大语言模型生成代码的安全性

摘要与解读

摘要关注LLM生成代码的安全性,尤其是训练资料较少的CWE类别。若开发流程采纳模型生成代码,安全编码实践能否被模型学到并用于输出,会影响下游软件的代码质量;相关信任边界在于将模型输出作为待审查的代码,而非直接视作安全实现。摘要未报告具体漏洞、受害系统或实际损害。

六维情报分析

5 个维度 · 原文可溯源

影响范围

  • 摘要关注LLM生成代码的安全性,尤其是训练资料较少的CWE类别。若开发流程采纳模型生成代码,安全编码实践能否被模型学到并用于输出,会影响下游软件的代码质量;相关信任边界在于将模型输出作为待审查的代码,而非直接视作安全实现。摘要未报告具体漏洞、受害系统或实际损害。

    原文依据 · 1

    中文译文

    arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了真实软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际开发中观察到的安全实践,以提升代码生成的安全性,尤其关注数据资源较少的通用弱点枚举(CWE)类别。

    原文引文

    arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs).
    查看原文 · v1

关联资产

  • 原文明示的关联对象为Secure-Miner框架、用于安全代码生成的LLM、真实开发过程中的安全编码实践,以及低资源CWE类别。适用对象是使用或评估LLM生成代码的研发流程,尤其是希望改善低资源CWE覆盖的场景;片段未指定模型、产品、组件版本或部署方式。

    原文依据 · 1

    中文译文

    arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了真实软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际开发中观察到的安全实践,以提升代码生成的安全性,尤其关注数据资源较少的通用弱点枚举(CWE)类别。

    原文引文

    arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs).
    查看原文 · v1

风险评估

  • 来源指出,现有安全代码生成研究大量依赖已披露漏洞报告或合成数据进行微调,可能遗漏真实开发中自然形成的多样化安全实践。这是训练资料覆盖不足的研究动机,并非已报道的攻击事件;若采用此类训练路径,宜优先关注低资源CWE的覆盖情况及生成代码的审查机制。

    原文依据 · 1

    中文译文

    arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了真实软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际开发中观察到的安全实践,以提升代码生成的安全性,尤其关注数据资源较少的通用弱点枚举(CWE)类别。

    原文引文

    arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs).
    查看原文 · v1

相关研究

  • Secure-Miner提出自动提取并利用真实软件开发中观察到的安全编码实践,以改进LLM安全代码生成,重点面向低资源CWE。摘要将这一方法与依赖漏洞报告、合成数据微调的既有研究路径对照;所给片段只描述研究目标和框架方向,未展开提取算法或具体训练机制。

    原文依据 · 1

    中文译文

    arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了真实软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际开发中观察到的安全实践,以提升代码生成的安全性,尤其关注数据资源较少的通用弱点枚举(CWE)类别。

    原文引文

    arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs).
    查看原文 · v1

处置建议

  • 若计划采用这类方法,先盘点代码生成流程涉及的模型与低资源CWE需求,再审查安全实践的提取来源和训练用途;随后以现有审查与测试流程评估生成代码,重点观察目标CWE的表现。此顺序针对来源提出的训练资料覆盖缺口,属于评估建议,摘要未给出修复版本或部署配置。

    原文依据 · 1

    中文译文

    arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了真实软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际开发中观察到的安全实践,以提升代码生成的安全性,尤其关注数据资源较少的通用弱点枚举(CWE)类别。

    原文引文

    arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs).
    查看原文 · v1
模型与引文记录
模型
gpt-6-sol
生成时间
记录编号
REQ-0b4ec1ff2336408dae72125aa578e5a2
分析原文
查看原文 · v1

图片与附件

1 项关联材料
  • cs.CR已归档 · 120.6 KB
    采集与来源记录
    文件名称
    cs.CR
    记录大小
    123451 字节
    文件格式
    text/plain
    关联登记时间
    2026-12-03 18:24 UTC
    关联原文
    v1
    保存时校验
    29aa616613ce2b5b748fb78676ea7e630aadd8c66f3d23f5c5e6319abd59017e

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

文献与标准标识
arxiv:2612.03700
采集来源格式
arxiv_feed_metadata
结构化格式
arxiv_rss
原始标题与分类记录

Secure-Miner: Improving Secure Code Generation for LLMs by Mining Secure Coding Practices

研究方向
待人工确认
影响维度
待人工确认
风险类型
供应链风险
相关技术
Agent

当前为离线关键词规则模式。

分类规则与原始字段
供应链风险 · vulnerability
rge Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secu
Agent · agent
Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 55,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 51
      },
      {
        "end_offset": 213,
        "location": "title_and_content",
        "quote": "Large Language Models",
        "rule": "ai_term",
        "start_offset": 192
      },
      {
        "end_offset": 219,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 215
      }
    ],
    "matches": [
      {
        "end_offset": 55,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 51
      },
      {
        "end_offset": 213,
        "location": "title_and_content",
        "quote": "Large Language Models",
        "rule": "ai_term",
        "start_offset": 192
      },
      {
        "end_offset": 219,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 215
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
arXiv:2612.03700v1 Announce Type: new 
Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based on CWE descriptions, optimized through an iterative feedback loop; (2) a Verification Agent that precisely identifies genuine secure functions from open-source repositories; and (3) a Refinement Agent that isolates core secure patterns by simplifying external dependencies to compile a high-quality dataset.
采集信息与校验
完整来源元数据
{
  "authors": [],
  "content_level": "feed_metadata",
  "feed_url": "https://rss.arxiv.org/rss/cs.CR",
  "identifiers": [
    "arxiv:2612.03700"
  ],
  "source_updated_at": ""
}
{
  "format": "arxiv_rss",
  "source_format": "arxiv_feed_metadata"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-12-03 06:12 UTC2026-12-03 05:00 UTC1339d09c65cdc1c18df44d12d07ad52ae914b1dfad494d9e8dd1bf50f9268f19
可引用分片 · 1 段

CHK-0d2243fb06feb696d71d9d41

arXiv:2612.03700v1 Announce Type: new 
Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based on CWE descriptions, optimized through an iterative feedback loop; (2) a Verification Agent that precisely identifies genuine secure functions from open-source repositories; and (3) a Refinement Agent that isolates core secure patterns by simplifying external dependencies to compile a high-quality dataset.
补充资料

中文译文

arXiv:2612.03700v1 公告类型:新论文 摘要:现有关于大型语言模型(LLM)安全代码生成的研究,大多高度依赖已披露的漏洞报告或合成数据集进行微调。这种方法往往忽视了现实世界软件开发过程中自然形成的多样化安全编码实践。本文提出一种新框架,自动提取并利用实际项目中观察到的安全实践,以提升安全代码生成能力,尤其关注资源匮乏的常见弱点枚举(CWE)类别。该方法采用由以下部分组成的多智能体系统:(1)RegEx Agent,根据 CWE 描述动态制定与安全相关的模式,并通过迭代反馈循环进行优化;(2)Verification Agent,从开源代码库中准确识别真正安全的函数;(3)Refinement Agent,负责

通过简化外部依赖来提取核心安全模式,以构建高质量数据集。

已采集原文

访问来源网页

arXiv:2612.03700v1 Announce Type: new Abstract: Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based on CWE descriptions, optimized through an iterative feedback loop; (2) a Verification Agent that precisely identifies genuine secure functions from open-source repositories; and (3) a Refinement Agent that isolates core secure patterns by simplifying external dependencies to compile a high-quality dataset.

原文依据