This tool uses an Isolation Forest algorithm to identify unusual patterns in network traffic. It begins by collecting data and training a model. After that, it continuously monitors the network in real time.
-
Clone this repository:
git clone https://github.com/your-username/ai-netsec-tool.git cd ai-netsec-tool
-
Install the required packages:
pip install -r requirements.txt
Run the tool with elevated privileges from the command line:
python netsec_tool.py --interface [your_interface_name]
Additional options:
--model path/to/model.joblib
: Use a pre-trained model--save-model path/to/save/model.joblib
: Save the trained model after running--initial-packets
: Number of packets for the initial training (Default: 10000)
This tool is for educational and research purposes only. Always ensure you have proper authorization before monitoring network traffic.