Execution-Guided Detection of Semantic Code Perturbations

This paper proposes execution-guided detection: a framework that runs AI-generated code in a sandboxed environment, captures execution traces across diverse test inputs, and classifies code as clean or adversarially perturbed based on behavioral differences. Key findings:- Boundary inversion detection improves from 0% (static analysis) to 87.5% (execution traces)- Import aliasing detection improves from 7% to 58.2%- Hybrid detector (execution + AST features) achieves 0.904 accuracy and 0.942 F1 score- Wilcoxon signed-rank test confirms significance (p=0.0074) This is Paper 3 in the AI Code Security research series:- Paper 1: Detecting Adversarial Perturbations (DOI: 10.5281/zenodo.22349074)- Paper 2: Adversarial Code Review (DOI: 10.5281/zenodo.22357507)- Paper 3: Execution-Guided Detection (this work) Code: https://github.com/amanmukati09/execution-guided-detection

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-05
DOI
https://doi.org/10.5281/zenodo.22375009
Primary Topic
Advanced Malware Detection Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Execution-Guided Detection of Semantic Code Perturbations

Aman Mukati
Zenodo (CERN European Organization for Nuclear Research)
Advanced Malware Detection Techniques
preprint

Execution-Guided Detection of Semantic Code Perturbations

Aman Mukati
preprint en

Abstract

This paper proposes execution-guided detection: a framework that runs AI-generated code in a sandboxed environment, captures execution traces across diverse test inputs, and classifies code as clean or adversarially perturbed based on behavioral differences. Key findings:- Boundary inversion detection improves from 0% (static analysis) to 87.5% (execution traces)- Import aliasing detection improves from 7% to 58.2%- Hybrid detector (execution + AST features) achieves 0.904 accuracy and 0.942 F1 score- Wilcoxon signed-rank test confirms significance (p=0.0074) This is Paper 3 in the AI Code Security research series:- Paper 1: Detecting Adversarial Perturbations (DOI: 10.5281/zenodo.22349074)- Paper 2: Adversarial Code Review (DOI: 10.5281/zenodo.22357507)- Paper 3: Execution-Guided Detection (this work) Code: https://github.com/amanmukati09/execution-guided-detection

Zenodo (CERN European Organization for Nuclear Research)
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.