Suricata http exfil rules

From XuShuwenn/RedAct · View interactive version

Suricata http exfil rules is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Design and validate Suricata signatures for HTTP exfil patterns using method/URI/header/body conditions and offline PCAP testing with resource-aware run modes.

How to use this skill

Skill file

Suricata HTTP Exfiltration Signature Development

Create precise Suricata rules for detecting custom exfiltration hidden in HTTP telemetry by combining method, path, header, and request-body constraints. Validate offline against provided PCAPs, including in constrained environments.

When to Use

Activate this skill when you need to:

Core Workflow

1) Triage the traffic to define precise conditions

2) Draft the Suricata rule

Rule skeleton (adjust names, path, and lengths as needed):

alert http any any -> any any (msg:"Custom HTTP exfil"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/your/exact/path"; startswith; endswith; http.header; content:"x-custom-mode|3a| exfil"; nocase; http.request_body; pcre:"/(^|[&])blob=[A-Za-z0-9+\/]{MIN_B64_LEN,}={0,2}/"; pcre:"/(^|[&])sig=[0-9a-fA-F]{DIGEST_LEN}(?![0-9a-fA-F])/"; sid:<your-sid>; rev:1;)

3) Validate rule syntax

4) Offline test against PCAPs

5) Verify alerts

Verification Checklist

Common Pitfalls and How to Avoid Them

Optional Script Usage

Use scripts/suri_offline_runner.py to run Suricata offline on one or more PCAPs with resource-aware defaults and summarize alerts by SID.

Example:

Success criteria:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.