Skip to content
forked from ms0g/kdai

kdai(Kernel Dynamic ARP Inspection) is a linux kernel module to defend against arp cache poisoning

License

Notifications You must be signed in to change notification settings

dentproject/kdai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kdai

A LKM(Loadable Kernel Module) for detection and prevention of ARP Poisoning Attack.

kdai intercepts all ARP requests and responses.Each of these intercepted packets is verified for valid MAC address to IP address bindings before the local ARP cache is updated. Invalid ARP packets are dropped.

Determining the validity of ARP packet is based on a cross-checking of ARP cache and a valid MAC address to IP address bindings stored in the DHCP snooping table which is built at runtime.

Prerequisites

  • GCC (>= 5.4.0)

Building

make

Install

sudo insmod kdai.ko

Test

$ dmesg | tail -5
[80073.746601] kdai:  DHCP Thread Created Successfully...
[80145.589597] kdai:  DHCPACK of 192.168.1.51
[80160.701525] kdai:  Invalid ARP request from 08:00:27:21:04:c5
[80178.871986] kdai:  ARP spoofing detected on enp0s8 from 08:00:27:21:04:c5
[80550.748553] kdai:  DHCPACK of 192.168.1.42

Uninstall

sudo rmmod kdai

About

kdai(Kernel Dynamic ARP Inspection) is a linux kernel module to defend against arp cache poisoning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.1%
  • Makefile 1.9%