Rust crates confine unsafe calls into C and C++ code behind safe interfaces that must uphold Rust's invariants. If an interface encodes a rule of the code beneath it too weakly, a program in purely safe Rust can cause undefined behavior. Static analyzers, bound to fixed patterns, and fuzzers, bound to the paths they execute, often miss such bugs. We propose LLM agents as auditors of these interfaces, and study how well they do it. We classify these defects and measure, in repeated audits of two crates by a closed and an open model, Claude Opus 5.5 and DeepSeek V4.1 Flash, what agents find, how well they triage, and what makes them find more. Agents find undefined behavior and divergences from the wrapped library unprompted, but look at unsafe contracts only when asked; their findings are almost always real, yet they seldom confirm them with a sanitizer and stop early. With the same guidance, the open model finds as many defects as the closed one at a quarter of the cost, and where few defects are left, a target for the number of findings that cannot be met makes neither fabricate findings. We build these insights into the audit agent of Crustify, an agentic system for C-to-Rust tasks, and run it on 16 widely used bindings to C and C++ libraries, such as OpenSSL, SQLite, libgit2, and V8, on three crates that use them, such as cargo, and on the Rust abstractions of the Linux kernel. It found 213 undefined-behavior bugs, 33 incomplete contracts, and 23 divergences in the crates, at a median cost under $50 per audit, and 11 undefined-behavior bugs in the kernel. Maintainers have fixed 24 of the 78 findings that we reported.


翻译:暂无翻译

0
下载
关闭预览

相关内容

Rust 是一种注重高效、安全、并行的系统程序语言。
《战争中的大语言模型监管》
专知会员服务
24+阅读 · 8月10日
《战场不可信传输环境下的边缘计算与通信》48页报告
专知会员服务
27+阅读 · 2025年6月23日
灾难性遗忘问题新视角:迁移-干扰平衡
CreateAMind
17+阅读 · 2019年7月6日
【泡泡图灵智库】Detect-SLAM:目标检测和SLAM相互收益
泡泡机器人SLAM
14+阅读 · 2019年6月28日
近期语音类前沿论文
深度学习每日摘要
14+阅读 · 2019年3月17日
基于Tacotron模型的语音合成实践
深度学习每日摘要
15+阅读 · 2018年12月25日
专访 | Recurrent AI:呼叫系统的「变废为宝」
机器之心
12+阅读 · 2018年11月28日
【好文解析】ICASSP最佳学生论文:深度对抗声学模型训练框架
中国科学院自动化研究所
13+阅读 · 2018年4月28日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2012年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
10+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
9+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
5+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
9+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
16+阅读 · 11月25日
相关资讯
灾难性遗忘问题新视角:迁移-干扰平衡
CreateAMind
17+阅读 · 2019年7月6日
【泡泡图灵智库】Detect-SLAM:目标检测和SLAM相互收益
泡泡机器人SLAM
14+阅读 · 2019年6月28日
近期语音类前沿论文
深度学习每日摘要
14+阅读 · 2019年3月17日
基于Tacotron模型的语音合成实践
深度学习每日摘要
15+阅读 · 2018年12月25日
专访 | Recurrent AI:呼叫系统的「变废为宝」
机器之心
12+阅读 · 2018年11月28日
【好文解析】ICASSP最佳学生论文:深度对抗声学模型训练框架
中国科学院自动化研究所
13+阅读 · 2018年4月28日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
相关基金
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2012年12月31日
Top
微信扫码咨询专知VIP会员