arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28734cs.CRcs.CLcs.LG
收藏

代码即武器:用于衡量编码模型对恶意代码请求遵从性的共识标记提示库

Code as a Weapon: A Consensus-Labeled Prompt Bank for Measuring Coding-Model Compliance with Malicious-Code Requests

University of Nevada Las Vegas(内华达大学拉斯维加斯分校);Department of Information Systems(信息系统系)

Richard J. Young, Gregory D. Moody

AI总结:

本文通过构建一个经五名评审共识标记的提示库(包含4,748个可执行恶意代码请求和1,923个有害安全知识请求),为编码模型对恶意代码请求的拒绝行为提供了可靠且可跨语料库比较的测量基准。

摘要:

一个回答有害问题的通用语言模型返回文本;而一个遵从恶意请求的编码模型可以返回一个可运行的武器——键盘记录器、勒索软件存根、按原样运行的漏洞利用。这种单一遵从行为严重性的不对称意味着,编码专用模型应比通用聊天模型设置更高的拒绝标准,而非更低,然而目前该领域无法判断它们是否做到了这一点。针对恶意代码的拒绝基准是零散的:它们混合了可执行软件(即用型武器)的请求与有害安全知识(仍需人类操作的信息)的请求,并在不可比较的语料库上报告拒绝率,因此没有单一统计量衡量真正重要的属性。本文引入了一个扩展的共识标记提示库,区分了这两种请求类型,并为跨语料库的编码模型遵从性测量提供了结构稳定的基础。八个语料库(ASTRA、CySecBench、AdvBench/harmful_behaviors、JailbreakBench、MalwareBench、RedCode、RMCBench、Scam2Prompt)在五名评审共识协议下被整合和分类(6,675个提示 × 5名评审 = 33,375次调用)。评审小组达到Fleiss' kappa = 0.767 [95% CI 0.755, 0.777](“显著”);95.0%的提示获得至少四名评审一致,76.9%完全一致,并且小组在3,133个共享提示上以Cohen's kappa = 0.952复现了先前四个语料库的发布。发布的库包含4,748个共识-CODE提示(可执行恶意代码请求)和1,923个共识-KNOWLEDGE提示(有害安全知识请求)。该库是该领域一直缺乏的经过验证的工具:一个经过可靠性量化的基础,用于测试编码模型是否满足其可执行输出所要求的更严格拒绝标准。

英文摘要:

A general-purpose language model that answers a harmful question returns text; a coding model that complies with a malicious request can return a working weapon: a keylogger, ransomware, an exploit that runs as written. This asymmetry in the severity of a single act of compliance implies coding-specialized models should clear a higher refusal bar than general-purpose chat models, not a lower one, yet the field cannot tell whether they do. Refusal benchmarks for malicious code are fragmented: they mix requests for executable software with requests for harmful security knowledge and report refusal rates over non-comparable corpora. This paper's central result is that the CODE-versus-KNOWLEDGE classification axis established in a prior four-corpus release remains stable under a substantially expanded corpus pool and an independently refreshed judge panel, evidence that it measures a real construct rather than an artifact of the prompts or judges. Eight corpora spanning diverse elicitation paradigms (direct, jailbreak-decorated, indirect, and agent/interpreter: ASTRA, CySecBench, AdvBench/harmful_behaviors, JailbreakBench, MalwareBench, RedCode, RMCBench, Scam2Prompt) are classified under a five-judge consensus protocol (6,675 prompts x 5 judges = 33,375 calls), reaching Fleiss' kappa = 0.767 [95% CI 0.755, 0.777] ("substantial"). Critically, the panel shares no judge with the prior release (five paid commercial APIs replaced by five open-weight models from five vendors), yet the two panels agree on 94.45% of the 3,133 shared prompts and reach Cohen's kappa = 0.952 [0.942, 0.963] on the 3,031-prompt binary overlap: the axis survives near-total panel replacement. The released bank comprises 4,748 consensus-CODE and 1,923 consensus-KNOWLEDGE prompts, a reliability-quantified benchmark whose central classification axis is shown stable across corpus expansion and judge-panel replacement.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑