Attacking Autonomous Driving Agents with Adversarial Machine Learning: A Holistic Evaluation with the CARLA Leaderboard

Henry Wong, Clement Fung, Weiran Lin, Karen Li, Stanley Chen, Lujo BauerarXiv 2025 · DOI

Abstract

Most adversarial attacks on autonomous driving (AD) focus on fooling machine learning models in isolation. This paper evaluates attacks on "holistic" agents—systems where ML predictions are filtered through classical controllers and safety rules. The findings reveal that while models can be tricked into erroneous steering predictions, a vehicle's downstream logic often acts as an unintentional "safety net" that prevents crashes. However, stopping attacks remain highly effective, particularly when optimized for environmental factors like lighting.

Introduction

In adversarial machine learning, common examples include "stop sign" stickers that cause a model to misidentify a sign. However, a real self-driving car is a complex pipeline, not just a single neural network. An ML model might suggest a steering angle, but a Proportional-Integral-Derivative (PID) controller or a GPS-based rule-set usually has the final say in the actual driving action. This research addresses the gaps of evaluation isolation and reproducibility by testing adversarial patch attacks against full, open-source driving agents within the industry-standard CARLA Leaderboard environment.

Methodology

The researchers targeted three top-performing open-source agents: TCP, NEAT, and Rails. The evaluation treated these agents as "black boxes" for control logic while assuming "white-box" access to ML weights.

The holistic pipeline from environment to driving action, highlighting the role of agent-specific command logic.

Key methodological steps included:

  • Adversarial Patch Generation: Digital patches were designed for two goals: Stopping (forcing the car to halt) and Steering (forcing the car out of its lane).
  • High-Fidelity Projection: To ensure effectiveness within the simulator, the team developed a projection methodology accounting for vehicle movement, camera orientation, and lighting. They modified CARLA’s shading models to "Unlit" during optimization to maintain color consistency.
  • Optimization: The AutoPGD algorithm was used to find pixel values that maximized the "attack loss," representing the deviation from the intended path.

Experimental Setup

The study utilized the CARLA 0.9.10 simulator and CARLA Leaderboard 1.0. Testing took place in "Town 02," specifically on straight road segments and curved turns. Performance was measured using route completion rates, lane infractions, and auxiliary data such as vehicle speed and GPS position.

Key Insights and Results

The "Safety Net" Effect

A striking finding was that even when an attack successfully tricked the ML model into predicting wild steering, the vehicle often stayed on course. The PID controller (smoothing movements) and GPS rules (checking route deviation) effectively "vetoed" the adversarial commands. Steering attacks only succeeded when researchers manually disabled these agent-specific GPS rules, proving the vulnerability exists at the model level but is masked by the system architecture.

Success of Stopping Attacks

Unlike steering, stopping attacks were highly successful across all agents, leading to a 0% route completion rate. This is likely because "stopping" is often interpreted as a valid safety response by various modules, making it harder for rule-based checks to flag as an error.

Impact of different adversarial patches on vehicle speed, demonstrating the success of lighting-optimized attacks.

Importance of Environmental Optimization

Attacks that did not account for the simulator's lighting and color rendering ("naive-optimized") almost always failed. This highlights the sensitivity of these models to the physical properties of adversarial perturbations.

Limitations and Future Work

The current study assumes white-box access to ML model weights; future research should explore black-box or transfer attacks. Additionally, while this work targeted RGB camera inputs, modern agents use sensor fusion (LiDAR + Radar + Camera). A truly holistic attack would likely need to spoof multiple sensors simultaneously. The authors recommend that future AD benchmarks include adversarial robustness as a standard metric to move beyond simple benign driving performance evaluations.

Summary updated

BibTeX
@misc{wong2025attacking,
  author = {Henry Wong and Clement Fung and Weiran Lin and Karen Li and Stanley Chen and Lujo Bauer},
  title = {{Attacking Autonomous Driving Agents with Adversarial Machine Learning: A Holistic Evaluation with the CARLA Leaderboard}},
  year = {2025},
  eprint = {2511.14876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.14876},
}
Figure