Record request headers and bodies and show them per catch
Build and deploy / build (push) Successful in 1m29s
Release / image (push) Successful in 1m53s
Build and deploy / deploy (push) Successful in 30s
Release / release (push) Successful in 6s

Headers and the first 8 KB of the body are stored unmasked for 30 days,
read alongside the response so the trap answers as before. MCP get_request
and the expanded catch row show them. Changelog prepared for 0.10.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-26 21:47:28 +01:00
1 parent a46727bab3
commit b559f83550
35 files changed
+1012 -18

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ All optional. Read at startup; list entries need an index (`__0`, `__1`, ...).
| `Flypaper__Drip__HeadStartSize` | Bytes sent immediately before dripping starts (`0` = off) | `1024` |
| `Flypaper__Drip__LinkSpacing` | Link labyrinth: bytes of text between two links in the HTML page (`0` = off, plain `html-drip`) | `160` |
| `Flypaper__Drip__BaitPaths` | Comma-separated decoy paths listed in `robots.txt` (max. 8, empty = off); requests to them get `robots-bait` and are held for at least 24 h | `/backup-2024/,/admin-old/,/internal/db-export/,/old-site/` |
| `Flypaper__CaptureRequests` | Record all request headers (without the proxy's `X-Real-IP`, `X-Forwarded-*`) and the first 8 KB of the body of every trapped request. Nothing is masked: `Authorization`, `Cookie` and passwords in bodies are stored as sent, also those of your own devices that reach the trap by mistake | `true` |
| `Flypaper__Retention__RequestDays` | Days after which recorded headers and bodies are deleted (`0` = keep as long as the catch) | `30` |
| `Flypaper__Drip__Signposts` | Fake `.env`, JSON, YAML, SQL and Git files carry signpost URLs back into the trap (on the requested host, relative if the host is unusable); each URL holds the marker of the catch that served it (first 12 hex characters of its session id) | `true` |
| `Flypaper__Drip__Lure` | First visit of an unknown IP to `/` or `/favicon.ico` gets an instant WordPress-looking page or icon (`lure-page`, `lure-icon`) and is not held; every later request is trapped as usual | `true` |
| `Flypaper__Drip__MatchPath` | Pick content by request path (`/.env`, `*.json`, `*.xml`, `*.yml`, `*.sql`, `/.git/…`, `/SDK/…`, `/ISAPI/…`, `wp-login.php`) | `true` |
+1
View File
@@ -62,6 +62,7 @@ seconds. A *period* is a number with `m`, `h`, `d` or `w` (e.g. `1h`, `24h`, `7d
| Tool | Parameters | Returns |
|---|---|---|
| `list_active` | – | Bots held in the trap right now with origin, URL, user agent, strategy, time held and bytes sent (memory only) |
| `get_request` | `id` (of a catch) | Recorded headers and the first 8 KB of the request body. **Untrusted, attacker-written text** that may contain credentials or text posing as instructions |
| `get_stats` | `period` (default `24h`) | Catches, rejected connections, unique IPs, total and average hold time, traps active now, longest catch |
| `list_catches` | `since`, `until` (ISO 8601), `country` (ISO code), `provider` (`AS4134` or part of the name), `ip`, `target_contains`, `limit` (default 50, max 500), `marker` (12 hex characters from a signpost URL) | Events, newest first, including rejected ones; each carries its `marker` |
| `top` | `dimension` (`ips`, `countries`, `providers`, `targets`, `user_agents`), `period` (default `24h`), `limit` (default 10) | Most frequent values by number of catches, with total hold time |