Network Intrusion Prevention System (NIPS) with real-time packet inspection, custom rule-based attack detection and mitigation, and detailed logging for analysis.
Packet Inspection: Inspects network packets in real time to detect and mitigate malicious activities.Custom Rules: Implements signature-based rules for detecting attacks such as SYN flood, ICMP/UDP floods, SQL injection, XSS, and directory traversal etc.Logging: Records both attack events and network traffic for monitoring and analysis.
main.py: Entry point; coordinates all modules.processPackets.py: Queue and Processes raw network packets to extract key attributes.matchRules.py: Matches packet attributes with Custom rules and triggers actions viadoActions.py.doActions.py: Executes corresponding actions based on detected attacks.storeLogs.py: Stores appropriate logs for various attacks.customRules.txt: Contains custom rules based on attacks signature.attackLogs.csv: Stores logs of detected attacks.trafficLogs.csv: Stores logs of analyzed network traffic.
sudo apt install iptables
pip install scapy
pip install NetfilterQueue
git clone https://github.com/Kr1shnam00rth1/NetWonIPS/
cd NetWonIPS
sudo python3 main.py- Feel free to customize the
customRules.txtfile to define the working of IPS.