Compute node receives data from Collector node(s) and runs chosen modules for different ml-models which classify data as malicious or benign.
AND
In order to do the following:
- Initialize VM
- Install python requirements
- Start NATS broker in Docker
- Run main.py
All you gotta do is:
sudo make
To set the URL to the NATS broker:
export BROKER_URL=<url>
To set the verbosity level of the programs output (defaults to INFO):
export LOG_LEVEL=<DEBUG|INFO|WARNING|ERROR|CRITICAL>
New modules can created by inheriting from the BaseModel
class. Its dependencies should be added to the requirements.txt file.
Each module has a corresponding config file (<module-name>.conf
) where you can edit the paths for the files/programs needed for that specific module, and set constants such as alert_threshold.