arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.00477cs.CRcs.SE
收藏

AI队友时代的安全:对GitHub上代理拉取请求的实证研究

Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub

University of Notre Dame(圣母大学)

Mohammed Latif Siddiq, Xinye Zhao, Vinicius Carvalho Lopes, Beatrice Casey, Joanna C. S. Santos

AI总结:

研究分析了GitHub上代理撰写的PR在安全方面的贡献,发现其主要进行支持性的安全加固活动,且PR被拒绝与复杂性和冗长性相关。

摘要:

自主编码代理正越来越多地作为AI队友被部署在现代软件工程中,独立撰写拉取请求(PRs),大规模修改生产代码。本研究旨在系统地表征自主编码代理如何在实践中对软件安全做出贡献,这些与安全相关的贡献如何被审查和接受,以及哪些可观察的信号与PR被拒绝相关。我们使用包含超过33,000个精选PR的AIDev数据集,对代理撰写的PR进行大规模实证分析。通过关键词过滤策略识别安全相关的PR,随后进行人工验证,得到1,293个确认的安全相关代理PR。我们随后分析了自主代理、编程生态系统和代码变更类型的普遍性、接受结果和审查延迟。此外,我们应用定性开放式编码来识别反复出现的安全相关行为和潜在意图,并检查审查元数据以确定与PR被拒绝相关的早期信号。安全相关的代理PR占代理活动的有意义份额(约4%)。与仅关注狭窄漏洞修复不同,代理最频繁执行支持性的安全加固活动,包括测试、文档、配置和改进的错误处理。与非安全PR相比,安全相关的代理PR表现出更低的合并率和更长的审查延迟,反映了更高的人类审查,且在不同代理和编程生态系统中存在差异。PR被拒绝与PR的复杂性和冗长性相关性更强,而不是与显式的安全主题相关。

英文摘要:

Autonomous coding agents are increasingly deployed as AI teammates in modern software engineering, independently authoring pull requests (PRs) that modify production code at scale. This study aims to systematically characterize how autonomous coding agents contribute to software security in practice, how these security-related contributions are reviewed and accepted, and which observable signals are associated with PR rejection. We conduct a large-scale empirical analysis of agent-authored PRs using the AIDev dataset, comprising of over 33,000 curated PRs from popular GitHub repositories. Security-relevant PRs are identified using a keyword filtering strategy, followed by manual validation, resulting in 1,293 confirmed security-related agentic-PRs. We then analyze prevalence, acceptance outcomes, and review latency across autonomous agents, programming ecosystems, and types of code changes. Moreover, we apply qualitative open coding to identify recurring security-related actions and underlying intents, and examine review metadata to identify early signals associated with PR rejection. Security-related Agentic-PRs constitute a meaningful share of agent activity (approximately 4\%). Rather than focusing solely on narrow vulnerability fixes, agents most frequently perform supportive security hardening activities, including testing, documentation, configuration, and improved error handling. Compared to non-security PRs, security-related Agentic-PRs exhibit lower merge rates and longer review latency, reflecting heightened human scrutiny, with variation across agents and programming ecosystems. PR rejection is more strongly associated with PR complexity and verbosity than with explicit security topics.

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

↑