Autonomous Vehicle Security
Autonomous vehicles add new attack surfaces including sensor systems, the ML models behind them, and the data those models were built from. Adversarial attacks can cause dangerous misclassifications.
Safety Critical - For the Vehicle and for You
Sensor Attack Surfaces
A sensor is a measurement device with a model attached, so every technique below attacks the model rather than the wire. What matters is what it reports, and where a plausible wrong value reaches something that moves.
LiDAR: Time Of Flight Is A Timing Trust
A LiDAR times its own pulse, so range is half the round trip and a return delayed by the attacker's clock comes from the attacker's distance. An injected pulse puts a point where nothing is; a saturating return, or one that suppresses the echoes behind it, erases one where something is. Clustering then tests extent, reflectivity, persistence and plausible motion — an injection must survive that, and erasure need not.
Radar: Range, Doppler And An Accidental Twin
Radar takes range from the beat frequency of its own chirp, velocity from phase across chirps, angle from phase across antenna elements. A spoofed return correlates with that modulation — proprietary, but recordable — and adds its own delay and Doppler: a ghost at a chosen distance, closing at a chosen speed. Neighbouring radars raise the noise floor and structures give multipath, so one anomaly has two explanations, and radar is the sensor that keeps working in rain when the others cannot.
Camera: Pixels, Not Signs
A camera reports pixels and a classifier supplies the label, so nothing in the chain knows a stop sign from a picture of one. Glare blooms across edges and makes a sign unreadable; a projector paints a lane edge that is not there; a printed patch persists by construction. Tracking discards one bad frame, so a projection must hold across frames and a patch need not. A misread lane edge reaches steering, a misread limit sign reaches speed assist.
Where A Wrong Reading Survives Fusion
Fusion turns measurements into tracks, weights by modality, gates on kinematics and cross-checks one sensor against another, which is why a phantom contradicted by two is dropped. Erasure survives better, because absence is not a measurement. What passes reaches the planner and then actuation: a false automatic-braking trigger teaches the driver to ignore the next real one, and the incident log records what the vehicle believed rather than what was there. GPS is the same class, spoofed at the radio — see the GPS spoofing page.
The Actuation Hop: When A Track Becomes A Frame
The planner's output is not an abstraction. It leaves as frames — CAN on most current vehicles, Ethernet on newer zonal architectures — addressed to the controllers that own steering, braking and powertrain. Whatever perception believed, what moves the car is a frame with an identifier, a payload and a sender the receiver can name. How it reaches the bus, and what gateways do to it, is on the CAN attacks page; what the hop changes is the investigation.
The two ends are not equally observable. Perception runs in a black box with a vendor toolchain, little logging and footage that is overwritten; the actuator side logs what it receives and what it refuses, because that is how faults are diagnosed. One event therefore leaves two records that disagree about where it began, and the downstream one reads as authoritative.
The actuator controller is the last place with its own plausibility checks: a rate limit on how fast an angle may change, a range limit outside which a command is rejected. Those limits match what a road user does, so a large fabricated command is refused while a small one inside the envelope executes and logs as normal. A timeline built from refusals misses what succeeded: the assessable question is what the controller accepts, not what the planner computed.
Adversarial ML Examples
The optimisation — the gradient step, the expectation over transformations, the attack variants — is on the adversarial ML page. What changes on a vehicle is the platform and the consequence: the patch must hold at range, from a moving camera, under headlights, and its output feeds a safety function rather than a label in a report. A stop sign read as a speed limit is the whole chain in one frame.
import torch
from torchvision.models import resnet50, ResNet50_Weights
# Traffic-sign classifier standing in for the vehicle's perception stack.
# weights= replaces pretrained=True, deprecated since torchvision 0.13.
model = resnet50(weights=ResNet50_Weights.IMAGENET1K_V2).eval()
# Optimise the patch against this model, then re-test the printed result
# against the camera and lighting conditions it will actually meet.The Model Has A Supply Chain
The vehicle never trains. Its weights arrive from a pipeline that consumed fleet clips, bought datasets and third-party labels, and poisoning survives because a backdoored model still scores well on aggregate accuracy: the trigger is an object configuration in the world, so the failure appears only when that configuration does. Nothing on the vehicle records which data produced the weights, so the questions are who may contribute training data and how labels are reviewed.
On the vehicle the model is a file loaded at boot. If it sits outside the measured boot chain — a separate blob with its own loader, or one a service tool may replace — swapping it changes behaviour with no code change, and a signed firmware image does not help. The checks that matter are whether the weights sit inside the signed image, whether the root of trust verifies their digest, and whether any path loads one from removable media.
Over-the-air updates make that a moving target. Weights are revised more often than firmware and are readily classified as calibration data, which carries them outside the process UN Regulation No. 156 audits and outside the RXSWIN record of what each approval depends on; the chain and its rollback rules are on the telematics page. A model adds what that page cannot answer: a hash proves the file, not the behaviour. ISO 21448:2022, the SOTIF standard now under revision, excludes cybersecurity threats, and UN Regulation No. 157 type-approves the lane-keeping function those sensors serve — a deliberate spoof is UN R155 and ISO/SAE 21434 work.
The Vehicle As A Sensor Platform
Everything above treats the sensors as inputs to a decision. They are also inputs to a record. A camera that classifies a pedestrian is simultaneously filming that pedestrian, and the frame that reaches the planner reaches whatever the vehicle stores: a ring buffer promoted to a retained clip on an event trigger — a hard brake, a close object, a collision, a driver takeover. The trigger is defined by the manufacturer, the clip has a fixed length either side of it, and the question for a review is not whether the vehicle records but who can retrieve the recording. That answer runs through the telematics backend, the dealer tool, an insurer's data request and the manufacturer's own incident process, and each is a different access path with a different authorisation story.
A sensor log is denser than a clip. Camera, LiDAR and radar together produce a time-aligned record of imagery, range and velocity, stamped with position and heading, and a log kept "for debugging" is a surveillance dataset with a retention policy attached. Density is the point: one logged minute holds every face, every plate and every passenger in view, indexed by where the vehicle was when it captured them. The minimisation question is therefore not whether the log is necessary — it usually is — but which fields are necessary for the purpose it was created for, and whether the rest is dropped at capture or retained because dropping it later was never implemented.
Position is the other half of the record. GNSS gives a route at a sampling rate and the IMU fills the gaps well enough to reconstruct a trace through a tunnel or a garage; together they identify a driver by movement rather than by face. That is a stronger identifier than a plate, because it needs no registry lookup to be unique — a home-to-work pair repeated five days a week is a person.
The uncomfortable symmetry is that a perception stack is itself a tracking system, and the work on adversarial ML cuts both ways. The techniques that defend a pedestrian against a classifier — a printed patch, a pattern that shifts a detection, an input the model was not trained on — are the same techniques that defeat a tracking system, and the defence against one is the attack against the other. Number plates have their own literature on the ALPR evasion page, and the same caveat holds there: an evasion that works against one model at one distance is not general protection, and treating it as one is how people come to rely on something a firmware update removed. What is defensible is narrower — retain less, keep it for less time, and make retrieval an auditable act rather than an administrative one.
Evidence Collection
A perception finding is two records of one event, and the disagreement between them is the finding. Record:
Sensor and stack identity: Each sensor make, model and firmware, the perception stack version, and the platform. A result measured on one firmware version does not transfer to another by assumption.
Mounting and calibration: Height, angle and calibration state of the sensor under test. Range and geometry claims are meaningless without them, which is why they belong in the first line rather than an appendix.
Raw recording: The sensor output itself, point cloud, ADC capture or camera frames, with its hash. A screenshot of the perception overlay is a rendering of the stack, not of what the sensor returned.
Perception output: The tracks, classifications and confidences the stack produced, with the frame or timestamp they belong to, plus the log the vehicle keeps. That is the record of what it believed.
Actuator side: What the controller received and whether it accepted or refused, from its own log. A large fabricated command refused inside the envelope limit logs as normal, so refusals alone undercount what succeeded.
Environment and safety state: Range, lighting, weather, and whether the vehicle was immobilised on a closed range. A patch that holds at two metres is not a road finding, and saying so protects the result.
Disclosure path: The OEM contact and the date the result went to them. On this subject that belongs in the evidence set rather than after it.
False Positive Identification
Every sensor here reports a measurement through a model, so a plausible value can be a fault in the instrument rather than an effect of the test.
- A ghost from a neighbouring radar: Adjacent radars raise the noise floor and structures give multipath, so one anomaly has two explanations. Rule out the environment before calling it a spoofed return.
- A single bad frame the tracker discarded: Tracking rejects an isolated misclassification. A camera result that does not hold across frames is not the attack a report describes.
- A spoof the fusion layer dropped: A phantom contradicted by two modalities is discarded by design. Report where it was rejected rather than implying it reached the planner.
- Glare read as a projected lane edge: A headlight blooms edges and makes a sign unreadable exactly as a projection does. Separate the light source from the payload before naming the technique.
- An erasure that was a sensor dropout: Absence survives fusion because it is not a measurement, which is also why a dirty lens, a blocked port or a dropped frame looks identical to a deliberate erasure.
- A classifier result on an unrepresentative image: One photograph of a patch says nothing about a moving camera under headlights. State the conditions the number was measured in, or the result is not reproducible.