paper-with-me

홈 › Papers

Generating Adversarial Computer Programs using Optimized Obfuscations

2021-03-18 · ICLR 2021 1 · Shashank Srikant, Sijia Liu, Tamara Mitrovska, Shiyu Chang, Quanfu Fan, Gaoyuan Zhang, Una-May O'Reilly

Machine learning (ML) models that learn and predict properties of computer programs are increasingly being adopted and deployed. These models have demonstrated success in applications such as auto-completing code, summarizing large programs, and detecting bugs and malware in programs. In this work, we investigate principled ways to adversarially perturb a computer program to fool such learned models, and thus determine their adversarial robustness. We use program obfuscations, which have conventionally been used to avoid attempts at reverse engineering programs, as adversarial perturbations. These perturbations modify programs in ways that do not alter their functionality but can be crafted to deceive an ML model when making a decision. We provide a general formulation for an adversarial program that allows applying multiple obfuscation transformations to a program in any language. We develop first-order optimization algorithms to efficiently determine two key aspects -- which parts of the program to transform, and what transformations to use. We show that it is important to optimize both these aspects to generate the best adversarially perturbed program. Due to the discrete nature of this problem, we also propose using randomized smoothing to improve the attack loss landscape to ease optimization. We evaluate our work on Python and Java programs on the problem of program summarization. We show that our best attack proposal achieves a $52\%$ improvement over a state-of-the-art attack generation approach for programs trained on a seq2seq model. We further show that our formulation is better at training models that are robust to adversarial attacks.

📄 PDF Abstract BibTeX arXiv:2103.11882

Code (1)

ALFA-group/adversarial-code-generation 공식 구현 pytorch

Tasks

Adversarial Robustness

Methods 이 논문이 사용한 방법론

Randomized Smoothing 설명 없음
Tanh Activation 설명 없음
Sigmoid Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…
Seq2Seq Seq2Seq, or Sequence To Sequence, is a model used in sequence prediction tasks, such as language modelling and machine translation. The idea is to use one…

Similar Papers 제목 키워드 기반

Investigating Detection and Obfuscation of Prompt Injection Attacks Against Software Reverse Engineering AI Agents

2026-05-29 · Brian Crawford, Patrick McClure arxiv

Agentic software reverse engineering systems are vulnerable to prompt injection attacks placed into the source code of executable binary files. This research demonstrates defensive tactics for detecting the presences of …

Benchmarking Robustness to Adversarial Image Obfuscations

2023-01-30 · NeurIPS 2023 11 · Florian Stimberg, Ayan Chakrabarti, Chun-Ta Lu, Hussein Hazimeh 외

Automated content filtering and moderation is an important tool that allows online platforms to build striving user communities that facilitate cooperation and prevent abuse. Unfortunately, resourceful actors try to bypa…

Benchmarking

ACE: Self-Evolving LLM Coding Framework via Adversarial Unit Test Generation and Preference Optimization

2026-04-17 · Yixu Huang, Xinglei Yu, Zhongyu Wei arxiv

Large Language Models (LLMs) excel at code generation but remain heavily reliant on large-scale annotated solutions and verification-based supervision, which constrains scalability and hinders sustained self-improvement.…

Code Generation

Meta-Learning for Planning: Automatic Synthesis of Sample Based Planners

2021-03-13 · ICLR Workshop Learning_to_Learn 2021 5 · Lucas Paul Saldyt, Heni Amor

In this paper, we discuss the challenge of generating domain-specific path planners in a data-driven fashion. Via the multi-objective optimization of Python code, we synthesize new sampling-based path planners that allow…

Decision MakingMeta-LearningSequential Decision MakingStarcraft

Can LLMs Obfuscate Code? A Systematic Analysis of Large Language Models into Assembly Code Obfuscation

2024-12-20 · Seyedreza Mohseni, Seyedali Mohammadi, Deepa Tilwani, Yash Saxena 외

Malware authors often employ code obfuscations to make their malware harder to detect. Existing tools for generating obfuscated code often require access to the original source code (e.g., C++ or Java), and adding new ob…