Skip to content

When Safety Certificates Become Attack Guides: Visual Attacks on Perception-Based Controllers

Shuqi Wang, Zhuoting Cai, Yu Chen, Ruijia Liu, Yue Gao, Xiaolin Huang, Xiang Yin

cs.RO

Abstract

Perception-based control enables autonomous systems to operate in complex environments by mapping visual observations directly to control actions. However, ensuring safety in such end-to-end policies remains challenging. In recent years, control barrier functions (CBFs) have become a widely used approach to safety-critical control. Using the system dynamics, CBFs turn the requirement of staying in a safe set into a constraint on control actions. We identify a vulnerability in perception-based controllers distilled from CBF experts: the same CBF used to certify safety can also guide adversarial attacks by revealing how control actions affect the safety margin. We propose the Safety Barrier Attack (SBA), which perturbs input images within a bounded pixel budget to induce control actions that violate the CBF condition. We consider the white-box and black-box attack settings based on the attacker's access to the controller and measurements. We further derive a two-sided bound on the attack gap to a per-state analytic oracle in terms of information, prediction, and optimization costs. Experiments on autonomous racing and robotic obstacle avoidance show that SBA induces safety violations through imperceptible image perturbations, with attack effectiveness increasing as the attacker gains more information. Code will be released upon acceptance.

Create a lesson