π¦ ClawHub
threat-detection
by @wu-uk
Exact detection thresholds for identifying malicious network patterns including port scans, DoS attacks, and beaconing behavior.
π‘ Examples
ppm_max = 2372, ppm_avg = 262.9
Ratio = 2372 / 262.9 = 9.029.02 < 20, therefore: NO DoS pattern
Implementation
import sys
sys.path.insert(0, '/root/skills/pcap-analysis')
from pcap_utils import detect_dos_patternhas_dos = detect_dos_pattern(ppm_avg, ppm_max) # Returns True/False
Or manually:
def detect_dos_pattern(ppm_avg, ppm_max):
"""DoS requires ratio > 20. Lower ratios are normal variation."""
if ppm_avg == 0:
return False
ratio = ppm_max / ppm_avg
return ratio > 20
TERMINAL
clawhub install dapt-intrusion-detection-threat-detection