paper-with-me

홈 › Papers

Enhancing Robustness of AI Offensive Code Generators via Data Augmentation

2023-06-08 · Cristina Improta, Pietro Liguori, Roberto Natella, Bojan Cukic, Domenico Cotroneo

Since manually writing software exploits for offensive security is time-consuming and requires expert knowledge, AI-base code generators are an attractive solution to enhance security analysts' productivity by automatically crafting exploits for security testing. However, the variability in the natural language and technical skills used to describe offensive code poses unique challenges to their robustness and applicability. In this work, we present a method to add perturbations to the code descriptions to create new inputs in natural language (NL) from well-intentioned developers that diverge from the original ones due to the use of new words or because they miss part of them. The goal is to analyze how and to what extent perturbations affect the performance of AI code generators in the context of offensive code. First, we show that perturbed descriptions preserve the semantics of the original, non-perturbed ones. Then, we use the method to assess the robustness of three state-of-the-art code generators against the newly perturbed inputs, showing that the performance of these AI-based solutions is highly affected by perturbations in the NL descriptions. To enhance their robustness, we use the method to perform data augmentation, i.e., to increase the variability and diversity of the NL descriptions in the training data, proving its effectiveness against both perturbed and non-perturbed code descriptions.

📄 PDF Abstract BibTeX arXiv:2306.05079

Code (1)

dessertlab/robustness-of-ai-offensive-code-generators 공식 구현

Tasks

Data AugmentationDiversity

Similar Papers 제목 키워드 기반

Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators

2022-12-12 · Pietro Liguori, Cristina Improta, Roberto Natella, Bojan Cukic 외

AI-based code generators are an emerging solution for automatically writing programs starting from descriptions in natural language, by using deep neural networks (Neural Machine Translation, NMT). In particular, code ge…

Machine TranslationNMT

Camouflage is all you need: Evaluating and Enhancing Language Model Robustness Against Camouflage Adversarial Attacks

2024-02-15 · Álvaro Huertas-García, Alejandro Martín, Javier Huertas-Tato, David Camacho

Adversarial attacks represent a substantial challenge in Natural Language Processing (NLP). This study undertakes a systematic exploration of this challenge in two distinct phases: vulnerability evaluation and resilience…

AllDecoderLanguage ModelingLanguage Modelling+1

On The Robustness of Offensive Language Classifiers

2022-03-21 · ACL 2022 5 · Jonathan Rusert, Zubair Shafiq, Padmini Srinivasan

Social media platforms are deploying machine learning based offensive language classification systems to combat hateful, racist, and other forms of offensive speech at scale. However, despite their real-world deployment,…

ToxiCloakCN: Evaluating Robustness of Offensive Language Detection in Chinese with Cloaking Perturbations

2024-06-18 · Yunze Xiao, Yujia Hu, Kenny Tsu Wei Choo, Roy Ka-Wei Lee

Detecting hate speech and offensive language is essential for maintaining a safe and respectful digital environment. This study examines the limitations of state-of-the-art large language models (LLMs) in identifying off…

Enhancing AI-based Generation of Software Exploits with Contextual Information

2024-08-05 · Pietro Liguori, Cristina Improta, Roberto Natella, Bojan Cukic 외

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 under…

Code GenerationMachine TranslationNMT