stratosphereips / StratosphereLinuxIPS

Slips, a free software behavioral Python intrusion prevention system (IDS/IPS) that uses machine learning to detect malicious behaviors in the network traffic. Stratosphere Laboratory, AIC, FEL, CVUT in Prague.
Other
712 stars 176 forks source link

Disable modules if HW support is missing #967

Open be-a-panther opened 2 months ago

be-a-panther commented 2 months ago

Describe the bug The tensorflow library needs either AVX or a CUDA capable GPU. In the case of missing a specific GPU and an AVX capable cpu, slips crashes while loading the modules.

To Reproduce

  1. use a cpu without avx
  2. start slips
  3. slips crashs

Expected behavior slips print a warning which modules get deactivated and runs https://github.com/stratosphereips/StratosphereLinuxIPS/blob/94520610f6f1f6bf9705c6075e35a06543fee013/managers/process_manager.py#L353

Screenshots If applicable, add screenshots to help explain your problem.

Branch v1.1

Environment (please complete the following information):

Additional context python3 -c "from cpufeature.extension import CPUFeature; print (CPUFeature.get('AVX'))"

AlyaGomaa commented 15 hours ago

hiii @be-a-panther that's a nice suggestion! i'm on it