🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

threat-detection

by @wu-uk

Exact detection thresholds for identifying malicious network patterns including port scans, DoS attacks, and beaconing behavior.

Versionv0.1.0
πŸ’‘ Examples

ppm_max = 2372, ppm_avg = 262.9
Ratio = 2372 / 262.9 = 9.02

9.02 < 20, therefore: NO DoS pattern

Implementation

import sys
sys.path.insert(0, '/root/skills/pcap-analysis')
from pcap_utils import detect_dos_pattern

has_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

View on ClawHub
TERMINAL
clawhub install dapt-intrusion-detection-threat-detection

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’