CAN bus sniffing, injection, fuzzing, and ECU reverse engineering
NullSec CAN Bus is an automotive security toolkit for analyzing Controller Area Network (CAN) traffic. It provides tools for passive monitoring, active injection, protocol fuzzing, and ECU identification β essential for automotive penetration testing and research.
| Feature | Description |
|---|---|
| CAN Sniffer | High-speed CAN frame capture with filtering and logging |
| Frame Injector | Craft and inject arbitrary CAN frames |
| Bus Fuzzer | Intelligent CAN ID and data field fuzzing |
| ECU Scanner | Discover and fingerprint ECUs on the bus |
| DBC Parser | Import/export DBC files for signal decoding |
| Replay Attack | Record and replay CAN traffic sequences |
| UDS Client | Unified Diagnostic Services (ISO 14229) scanner |
| Anomaly Detector | Baseline CAN traffic and detect deviations |
| Interface | Connection | Status |
|---|---|---|
| SocketCAN (Linux) | Any CAN adapter | β Full |
| PCAN-USB | USB-to-CAN | β Full |
| CANtact | USB-to-CAN | β Full |
| ELM327 | OBD-II port | β Full |
| Kvaser Leaf | USB-to-CAN | |
| Virtual CAN (vcan) | Testing | β Full |
# Set up CAN interface
sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up
# Sniff CAN traffic
nullsec-canbus sniff --interface can0 --filter 0x7E0-0x7EF
# Scan for ECUs
nullsec-canbus ecu-scan --interface can0
# Fuzz CAN IDs
nullsec-canbus fuzz --interface can0 --range 0x000-0x7FF --delay 10ms
# UDS diagnostic scan
nullsec-canbus uds --interface can0 --target 0x7E0
# Record and replay
nullsec-canbus record --interface can0 -o session.canlog
nullsec-canbus replay session.canlog --interface can0| Project | Description |
|---|---|
| nullsec-carfuzz | Automotive protocol fuzzer |
| nullsec-keyfob | Key fob & immobilizer analysis |
| blackflag | PineFlip device manager |
| nullsec-sdr | RF signal analysis |
| nullsec-linux | Security Linux distro (140+ tools) |
For authorized automotive security testing only. Never test on vehicles in traffic or without explicit authorization from the vehicle owner.
MIT License β @bad-antics
Part of the NullSec Automotive Security Suite