跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 密码学与安全

arXiv:2308.04451 (cs)
[提交于 2024年2月12日]

标题:Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attacks

作者:Domenico Cotroneo, Cristina Improta, Pietro Liguori, Roberto Natella
查看论文《Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attacks》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:AI-based code generators have become pivotal in assisting developers in writing software starting from natural language (NL). However, they are trained on large amounts of data, often collected from unsanitized online sources (e.g., GitHub, HuggingFace). As a consequence, AI models become an easy target for data poisoning, i.e., an attack that injects malicious samples into the training data to generate vulnerable code. To address this threat, this work investigates the security of AI code generators by devising a targeted data poisoning strategy. We poison the training data by injecting increasing amounts of code containing security vulnerabilities and assess the attack's success on different state-of-the-art models for code generation. Our study shows that AI code generators are vulnerable to even a small amount of poison. Notably, the attack success strongly depends on the model architecture and poisoning rate, whereas it is not influenced by the type of vulnerabilities. Moreover, since the attack does not impact the correctness of code generated by pre-trained models, it is hard to detect. Lastly, our work offers practical insights into understanding and potentially mitigating this threat.
评论: Accepted for publication at the International Conference on Program Comprehension 2024
主题: 密码学与安全 (cs.CR); 人工智能 (cs.AI)
引用方式: arXiv:2308.04451 [cs.CR]
  (或者 arXiv:2308.04451v1 [cs.CR] 对于此版本)
  https://doi.org/10.48550/arXiv.2308.04451
相关 DOI: https://doi.org/10.1145/3643916.3644416

提交历史

来自:Pietro Liguori
[v1] 2024年2月12日 星期一 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.CR
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-02
切换浏览方式为:
cs
cs.AI

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站