mlsanityData to 7 Oct 2026

Enhancing AI-based Generation of Software Exploits with Contextual Information

arXiv 2408.02402 ↗First posted 5 Aug 2024cs.SE cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

This practical experience report explores Neural Machine Translation (NMT) models' capability to generate offensive security code from natural language (NL) descriptions, highlighting the significance of contextual understanding and its impact on model performance. Our study employs a dataset comprising real shellcodes to evaluate the models across various scenarios, including missing information, necessary context, and unnecessary context. The experiments are designed to assess the models' resilience against incomplete descriptions, their proficiency in leveraging context for enhanced accuracy, and their ability to discern irrelevant information. The findings reveal that the introduction of contextual data significantly improves performance. However, the benefits of additional context diminish beyond a certain point, indicating an optimal level of contextual information for model training. Moreover, the models demonstrate an ability to filter out unnecessary context, maintaining high levels of accuracy in the generation of offensive security code. This study paves the way for future research on optimizing context use in AI-driven code generation, particularly for applications requiring a high degree of technical precision such as the generation of offensive code.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 31 of its 64 references that are in the map. First posted on arXiv 5 Aug 2024.

Builds on

31 of 64 references.

References · 31

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2023LIMA: Less Is More for Alignmentcited by 1,080
  6. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  7. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  8. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  9. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  10. 2023From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and Privacycited by 137
  11. 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
  12. 2017Neural Machine Translation with Extended Contextcited by 95
19 more
  1. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  2. 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
  3. 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
  4. 2019On Learning Meaningful Code Changes via Neural Machine Translationcited by 50
  5. 2017Exploiting Cross-Sentence Context for Neural Machine Translationcited by 48
  6. 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
  7. 2021The Threat of Offensive AI to Organizationscited by 37
  8. 2020Does Multi-Encoder Help? A Case Study on Context-Aware Neural Machine Translationcited by 34
  9. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 33
  10. 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 29
  11. 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
  12. 2021EVIL: Exploiting Software via Natural Languagecited by 11
  13. 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 10
  14. 2021Contrastive Learning for Context-aware Neural Machine TranslationUsing Coreference Informationcited by 9
  15. 2022DualSC: Automatic Generation and Summarization of Shellcode via Transformer and Dual Learningcited by 8
  16. 2023Automating the Correctness Assessment of AI-generated Code for Security Contextscited by 6
  17. 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 3
  18. 2024The Power of Words: Generating PowerShell Attacks from Natural Languagecited by 3
  19. 2024AI Code Generators for Security: Friend or Foe?cited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.