Skip to content

bad-antics/nullsec-canbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— NullSec CAN Bus

CAN Bus Security Analysis & Fuzzing Toolkit

Rust C License NullSec

CAN bus sniffing, injection, fuzzing, and ECU reverse engineering


🎯 Overview

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.

⚑ Features

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

πŸ”§ Supported Interfaces

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 ⚠️ Beta
Virtual CAN (vcan) Testing βœ… Full

πŸš€ Quick Start

# 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

πŸ”— Related Projects

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)

⚠️ Legal

For authorized automotive security testing only. Never test on vehicles in traffic or without explicit authorization from the vehicle owner.

πŸ“œ License

MIT License β€” @bad-antics


About

Hardware Security Tool - Part of NullSec Linux

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors