arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12875cs.CR
收藏

技能描述是否真实?在代码支持的LLM技能中检测未披露的安全行为

Do Skill Descriptions Tell the Truth? Detecting Undisclosed Security Behaviors in Code-Backed LLM Skills

Skill Security Team(技能安全团队)

Wenhui He, Yue Li, Bang Fu, Huan Xing, Xing Fan, ZeHua Zhang, Baoning Niu

AI总结:

本文研究LLM生态系统中程序性技能描述与实现之间的不一致,通过构建安全属性分类法和SKILLSCOPE工具,发现9.4%的技能存在安全风险,工具在识别不一致时达到84.8%的精度和96.5%的召回率。

摘要:

程序性技能在LLM生态系统中由自然语言描述和可执行实现文件组成。用户和LLM依赖描述来理解技能的范围。然而,实现可能执行安全相关操作,如凭证访问、网络通信或命令执行,这些操作未在描述中提及。我们通过研究描述与实现的一致性,询问实现是否在描述声明的安全范围内。我们手动分析了920个真实世界程序性技能,并构建了11类安全属性分类法。基于此分类法,我们构建了SKILLSCOPE,从实现中构建源级安全属性图(SPGs)并进行LLM辅助一致性检查。SPG节点保留源级代码模式而非抽象分类标签,保留细粒度证据进行检查。在4,556个程序性技能上进行双盲人工审查,SKILLSCOPE在识别不一致时达到84.8%的精度和96.5%的召回率。确认不一致影响9.4%的技能,而描述较粗略的情况,即实现细节仍处于声明范围内,占24.3%。消融实验确认SPG和分类法均起作用:移除分类法使精度从87.8%降至72.3%,移除SPG使召回率从94.7%降至79.0%。

英文摘要:

Programmatic skills in LLM ecosystems consist of a natural-language description and executable implementation files. Users and LLMs rely on the description to understand the skill's scope. However, the implementation may perform security-relevant operations, such as credential access, network communication, or command execution, that the description does not state. We study this description--implementation inconsistency by asking whether the implementation stays within the security-relevant scope declared in the description. We manually analyze 920 real-world programmatic skills and construct an 11-category security property taxonomy. Based on this taxonomy, we build SKILLSCOPE, which constructs source-level security property graphs (SPGs) from implementations and performs LLM-assisted consistency checking. SPG nodes retain source-level code patterns rather than abstract taxonomy labels, preserving fine-grained evidence for checking. On 4,556 programmatic skills with double-blind human review, SKILLSCOPE achieves a precision of 84.8\% and a recall of 96.5\% for identifying inconsistency. Confirmed inconsistency affects 9.4\% of skills, while cases of coarser description, in which implementation details remain within the declared scope, account for 24.3\%. Ablation experiments confirm that both the SPG and the taxonomy contribute: removing the taxonomy reduces precision from 87.8\% to 72.3\%, while removing the SPG reduces recall from 94.7\% to 79.0\%.

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

↑