A IDS (Intrusion Detection System) software for CAN and Automotive Ethernet malicious attacks.
On terminal:
Attention! It may be interesting to create an enviroment before installing the dependencies
-
Clone the repository:
git clone https://github.com/paivalucass/CAN_Invaders.git
-
Install the packages:
pip install -e
-
Install the repository dependencies:
pip install -r requirements.txt
The repository has three main features:
-
Attack the CAN bus in three possible ways:
- fuzzing attack
- impersonation attack
- falsifying attack
- doS attack
-
Generate a model from recorded CAN bus attacks or Ethernet attacks.
-
Run an IDS system using a model provided when connected to a CAN bus or Ethernet interface.
We recommed you make use of the can-utils library for recording the CAN bus traffic to be able to make use of the full potential of this repository.
For simplicity, you can use a virtual interface to run this CAN software. With can-utils installed on your machine run:
```
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0´
```
Also, for simplicity, you can use a virtual Ethernet interface to use this software on. For that, run the following commands:
```
sudo modporobe dummy
sudo ip link add eth10 type dummy
sudo ip link set eth10 up
```
To see the packages run:
```
sudo tcpdump -i eth10
```