GithubHelp home page GithubHelp logo

ms0g / kdai Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 74 KB

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

License: GNU General Public License v3.0

Makefile 2.66% C 97.34%
linux arp-spoofing arp-poisoning arp linux-kernel-module c arp-spoof-attack dhcp dhcp-snooping-table networking

kdai's Introduction

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

kdai's People

Contributors

ms0g avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yunginnanet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.