Suricata http exfil detection

From XuShuwenn/RedAct · View interactive version

Suricata http exfil detection is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Design and validate Suricata HTTP signatures for structured exfil patterns, testing against pcaps while minimizing false positives.

How to use this skill

Skill file

Suricata HTTP Pattern Detection and Offline Validation

Create robust Suricata signatures for structured HTTP exfiltration patterns and validate them offline against positive and negative traffic captures.

When to Use

Use this skill when you need to:

Core Workflow

1) Inspect the traffic (both positive and negative)

2) Choose HTTP-aware buffers and confirm keyword support

3) Build the rule incrementally

4) Combine into a single signature (template)

alert http any any -> any any (
    msg:"HTTP exfil pattern";
    flow:established,to_server;
    http.method; content:"POST";
    http.uri; content:"<exact-path>"; startswith; endswith;
    http.header; pcre:"/\b<Header-Name>\s*:\s*<Expected-Value>\b/i";
    http.request_body; content:"blob=";
    http.request_body; pcre:"/blob=[A-Za-z0-9+\/=]{80,}/";
    http.request_body; content:"sig=";
    http.request_body; pcre:"/sig=[0-9a-fA-F]{64}(?:[&\s]|$)/";
    sid:<your-sid>; rev:1;
)

Notes:

Verification

A) Static validation (syntax only)

B) Offline pcap test

C) Load-path sanity check

D) Field-by-field isolation tests

Common Pitfalls and How to Avoid Them

Success Criteria

Optional Script Usage

A helper script is provided to automate offline tests. It:

Usage examples:

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.