Files
TomandClaude Sonnet 5.5 3b6e8c327c
Build and deploy / build (push) Successful in 1m41s
Release / image (push) Successful in 1m58s
Build and deploy / deploy (push) Successful in 29s
Release / release (push) Successful in 6s
Prepare changelog for 0.12.0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 22:23:15 +01:00

344 lines
20 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
All notable changes to Flypaper are documented in this file. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.12.0] - 2026-12-03
### Removed
- Signposts in the fake `.env`, JSON, YAML, SQL and Git files, together with the setting
`Flypaper__Drip__Signposts` and the MCP `marker` (filter and field of `list_catches`). In a week none of about
400 handed-out signposts was followed. The fake files are plain again.
## [0.11.2] - 2026-11-27
### Changed
- Dashboard: the column „Ziel“ is now „Aufgerufen“, in the catch list and the list of held bots: `/` reads
„Startseite“, `GET` is not shown, other methods are named in plain words (`POST` „schickt Daten“, `HEAD`
„prüft nur, ob es das gibt“, `OPTIONS` „fragt, was erlaubt ist“). The top-10 tab „Aufrufe“ counts the same
call across all requested hosts, and its filter matches all of them.
### Removed
- Dashboard: the card „Eingeschleuste Befehle“ above the world map. Commands are found with the catch filter
„Befehl: Nur mit Befehl“ and the ⚠ mark.
## [0.11.1] - 2026-11-27
### Changed
- Dashboard catch list: opened rows show a full-width detail area: the explanation in plain language first, for
commands the facts „Angreifer“, „Fremder Server“ and „Befehl“, then collapsed „Technische Details“ (full
request URL, origin, user agent, recorded headers and body). The list shows only method and path (without
the requested host); commands are marked with „⚠“. Commands and servers are no longer defanged in the
dashboard (still plain text, never links); MCP `list_commands` stays defanged.
- The filter bar of the catch list fits the filter „Befehl“ into one row.
## [0.11.0] - 2026-11-27
### Added
- Command detection: path, headers and body of every catch are checked for injected commands (download or
connect with `wget`, `curl`, `tftp`, `nc` and a target, shell pipes, `chmod`, PHP code, PowerShell,
`base64 -d`, `rm -rf`), also URL-encoded. The command and the target server are stored with the catch
(migration `AddDetectedCommands`); stored catches are checked once at startup, bodies only where still
recorded. Pattern based, so it can miss commands or raise false alarms.
- Dashboard: card „Eingeschleuste Befehle“, badge „⚠ Befehl“ and details in the catch list and a filter
„Befehl: Nur mit Befehl“. Commands and servers are shown defanged as plain text.
- MCP: read-only tool `list_commands`.
## [0.10.0] - 2026-11-26
### Added
- Request recording: headers and the first 8 KB of the body of every trapped request are stored in a new table
(migration `AddTrapRequests`). The body is read alongside the response (at most 5 s, at most 1 s after the
catch ends), so the trap answers as before. Nothing is masked, including `Authorization`, `Cookie` and
passwords. Deleted after `Flypaper__Retention__RequestDays` (default 30) or together with the catch.
Rejected connections are not recorded. Switch: `Flypaper__CaptureRequests` (default `true`).
- Dashboard: expanded rows of the catch list show „Gesendete Anfrage“ with headers and body as plain text,
loaded only when a row is opened (signed-in only).
- MCP: read-only tool `get_request` returns the recorded headers and body of one catch, marked as untrusted.
## [0.9.0] - 2026-11-26
### Added
- Signposts in fake files: `.env` (`BACKUP_URL`, `ADMIN_URL`, `CONFIG_URL`), JSON and YAML (`backup_url`,
`api_base`), SQL dumps (comment naming the previous dump) and the Git config (remote URL) point back into the
trap. They sit in the first, undelayed chunk and carry the marker of the serving catch, so a later request
shows which catch the address came from, even from another IP. Switch: `Flypaper__Drip__Signposts`
(default `true`), no dashboard setting. No database change.
- MCP: every catch has a `marker`, and `list_catches` accepts `marker` to find the catch that handed out a
signpost.
## [0.8.0] - 2026-11-22
### Added
- Dashboard: the overview lists the bots held in the trap right now („Gerade in der Falle“) with IP (links to its
catches), origin, target, strategy, user agent, time held and bytes sent. The list is kept in memory only and
refreshes with the page (every 30 s).
- MCP: read-only tool `list_active` returns the same list (with provider, city and ASN); empty after a restart.
## [0.7.0] - 2026-11-21
### Added
- Lure for first visits: a GET on `/` or `/favicon.ico` from an IP without any stored catch is answered at once
with a small WordPress-looking page (`lure-page`, with `X-Powered-By: PHP/8.1.27`, a `wp-json` link header and
links to `/wp-login.php`, `/wp-admin/`, `/wp-content/uploads/backup/`, `/wp-config.php.bak`) or a favicon
(`lure-icon`) and is not held. Every later request of that IP is trapped as before. Switch:
`Flypaper__Drip__Lure` (default `true`), no dashboard setting.
- Explanations for catches: rules in the database (kind `Target`, `ClientInfo` or `Outcome`, regular expression,
German plain text, priority, on/off, note, creator) explain what a bot wanted, with which tool and how it ended.
Rules are matched when a catch is displayed, so new rules also apply to old catches; per kind the rule with
the highest priority wins. Patterns run with `NonBacktracking` and a timeout, are validated and length-limited
when saved, and compiled rules are cached until a rule changes. No rules are shipped.
- Dashboard: expanded rows of the catch list show „Was ist passiert?“ (or a muted „Unbekanntes Ziel“), the catch
filter has „Erklärung: Ohne Erklärung“, and the new page „Erklärungen“ lists the rules with pattern, text,
number of matches, on/off switch and delete.
- MCP: read-only tools `list_explanation_rules`, `list_unexplained` and `test_explanation_rule`; tools
`create_explanation_rule`, `update_explanation_rule`, `set_explanation_rule_enabled` and
`delete_explanation_rule` for tokens with write permission.
- MCP tokens: write permission is back (switch on the settings page, database column `CanWrite`, new migration).
Tokens without it neither see nor can call the write tools. The server description mentions the new tools.
### Changed
- Dashboard: the expanded row of the catch list no longer repeats the strategy name, explanation and
technical details; they stay in the tooltip of the „Strategie“ column and in the „Strategien“ tab.
### Removed
- Hold method „Inhalt“ (HTML filler text, random text, alternating) with `text-drip`, `TextDripStrategy`, the
setting `Flypaper__Drip__Content` and its radio buttons. The link labyrinth is always used; a leftover
`Flypaper__Drip__Content` is ignored and logged as a removed setting.
## [0.6.0] - 2026-11-21
### Removed
- Page „Erkenntnisse“ (`/erkenntnisse`) with lab notebook and idea table, including its navigation entry and
all stored entries and ideas (tables `LabEntries` and `Ideas` are dropped by a migration, without backup).
- MCP: tools `list_entries`, `list_ideas`, `create_entry`, `update_entry`, `create_idea`, `update_idea` and
`set_idea_status`. All MCP tools are read-only again.
- MCP tokens: write permission (switch on the settings page, column „Zugriff“, database column `CanWrite`).
- Markdown rendering (Markdig).
## [0.5.2] - 2026-11-17
### Changed
- Dashboard, Top 10 „Strategien“: strategies are grouped by base type, so `html-drip` with any drip speed
is one row „Endlose Webseite“; the old name `drip` counts as the same. Only `head`, `link` and `repeat` stay
separate rows and show small badges („Schnellstart“, „Links“, „Wiederholer“). The drip parameters moved to the
tooltip and the expanded row.
- Columns are now catches, **median hold time per catch** and total. The bar and the default sort use the median
(rows with fewer than 5 catches are greyed out, marked „wenige Daten“ and listed last).
- Clicking a row filters the catch list on all variants of the group. The catch list, filter chip and
expanded row show name plus badges. Old `?strategie=` links still work.
## [0.5.1] - 2026-11-17
### Changed
- Dashboard: strategies are shown with a plain German name (e.g. „Link-Labyrinth“, „Gefälschte Zugangsdaten
(.env)“) instead of the technical abbreviation. Tooltip and expanded row (also on touch devices) explain what
the bot gets, spell out the suffixes (`50-500ms 1-1024B`, `head`, `link`, `repeat`) and show the technical name.
Used in the catch list, the Top 10 „Strategien“ tab, filter chips and the page „Erkenntnisse“. The search also
finds the German names. Unknown names are shown unchanged. Stored values and MCP results stay technical.
## [0.5.0] - 2026-11-17
### Fixed
- Narrow or tiny countries that are drawn as a polygon but barely visible (Israel, Lebanon,
Palestine, Kuwait, Qatar, Netherlands, Belgium, Switzerland and others) now also get a
marker on the world map once they have catches.
### Added
- Version-control file profiles: `git-drip` now answers every `.git` variant (`/.git`, `/.git/…`, `.gitconfig`,
`.git-credentials`, `.gitignore` …), new `svn-drip` (`/.svn/…`: `format`, `entries`, `wc.db`) and `hg-drip`
(`/.hg/…`: `requires`, `store/requires`) serve plausible, endless files that start like the real ones.
- Repeat offenders: an IP that was already held until the limit (outcome `Timeout`) within the last
`Flypaper__RepeatWindowDays` days (default 7, `0` = off) is held for `Flypaper__RepeatHoldDuration`
(default 1 day) instead of the maximum hold duration. The catch's strategy gets the suffix `repeat`, so
it can be compared in the dashboard. Both values are adjustable under „Haltemethode“ on the settings page.
- Page „Erkenntnisse“ (`/erkenntnisse`, in the navigation): a lab notebook (date, title, kind experiment /
observation / hypothesis / measurement method, Markdown text, optional commit and strategy names; newest
first, filterable by kind) and an idea table (effort, efficiency, rationale, status open / in progress /
done / dropped, implementation date and commit; sorted by effort, done and dropped ones can be shown).
Markdown is rendered with Markdig without raw HTML and with only http, https and mailto links.
- MCP: new read tools `list_entries` and `list_ideas` and write tools `create_entry`, `update_entry`,
`create_idea`, `update_idea`, `set_idea_status`. Writing needs a token with write permission, set when
creating the token or later on the settings page (new „Zugriff“ column). Existing tokens and the token from
`Flypaper__Mcp__Token` stay read-only, and read-only tokens do not even see the write tools.
- Link labyrinth: the HTML page (strategy `maze-drip`, with `link <n>B` suffix) carries about ten links
already in the head start and then a new link every `LinkSpacing` bytes (default 160, `0` = old
`html-drip`). Links match the requested path and host (`/wiki/…`, `/docs/v2/…`, `/blog/2025/03/…`,
`/backup/2025/03/`), mix relative and absolute URLs and always lead to another labyrinth page.
Paths ending in `/` get an Apache-style „Index of /…“ listing (`index-drip`). `/robots.txt` is
served at once and complete (`User-agent: *`, `Disallow: /`, strategy `robots-static`), so well-behaved
crawlers stay out and only bots ignoring it get lost. Link spacing is adjustable on the settings page.
- Robots bait: below `Disallow: /` the robots.txt lists a few unlinked, plausible paths (default
`/backup-2024/`, `/admin-old/`, `/internal/db-export/`, `/old-site/`; `Flypaper__Drip__BaitPaths`,
editable on the settings page, empty = off). Requests to them and everything below get the labyrinth
as strategy `robots-bait` and are held for at least 24 hours, so catches show who read the
robots.txt and ignored it. The labyrinth never links to these paths.
- Dashboard: the catch list has a new „Strategie“ column (hidden on narrower screens, shown in
the expanded row) and the search covers it. A new „Strategien“ tab in the Top 10 card shows
catches and hold time per strategy and filters the list on click. The MCP `top` tool accepts
`strategies` as a dimension.
- Content matches the requested path: `.env`, `*.json`, `*.xml` (sitemaps), `*.yml`, `*.sql`,
`/.git/…`, Hikvision `/SDK/…` and `/ISAPI/…` (XML) and `wp-login.php`
(WordPress login page) get an endless, matching file with the right `Content-Type`
instead of an HTML page (strategy names `env-drip`, `json-drip`, …). Switchable on the
settings page (`Flypaper__Drip__MatchPath`).
- Head start: the first bytes of the page (at least `HeadStartSize`, default 1024) are sent
immediately after the `200` headers, with a `Server` header, so scanners see a real response
before the drip begins. Adjustable on the settings page; the stored strategy name gets a
`head <n>B` suffix (none when off).
## [0.4.0] - 2026-11-15
### Fixed
- MCP results now include fields whose value is `null` (e.g. `since` of `get_stats` with
`period=all`, a missing label in `top`) instead of leaving them out, so they match the
tools' output schemas.
- MCP tools answer unknown or missing parameters with a readable error instead of
"An error occurred invoking …" or silently ignoring them, e.g. `unknown parameter 'by';
expected 'dimension' (ips|countries|providers|targets|user_agents)`. `top` lists the allowed
values of `dimension` in its input schema. Invalid arguments are logged as warnings.
### Changed
- Rejected connections stand out on the dashboard: the "Abgelehnt" metric shows the last
24 hours, and the catch list marks them with an "Abgelehnt" badge. Outcomes are shown in
German. Top lists and hold times still count only real catches.
- The "Haltezeit gesamt" metric shows the average hold time per catch below it.
- The catch list on the dashboard has filters for period, outcome, country and a free-text
search over IP, provider, target and user agent. A click on a top 10 row filters the list by
that country, provider, IP or target (a second click removes it). Active filters show as
chips with the number of matches, live in the URL (`?land=HK&ausgang=abgelehnt&q=…`) and
survive the auto-refresh; "Weitere laden" shows up to 500 entries. Metrics and top 10 stay
unfiltered.
- The outcome "Abgebrochen" is now called "Aufgegeben".
- Dashboard polish: equal metric tiles with a one-line note each (unique IPs show the last
24 hours), map and top 10 card of equal height with a larger legend and visible
small-country markers, country and provider names in the regular font with a separate share
column, and German number formats throughout (e.g. `1.675` bytes, `15.11. 20:01:50`).
## [0.3.1] - 2026-11-15
### Changed
- The dashboard's top 10 lists share one card with tabs (Länder, Provider, IPs, Ziele); the
selected tab survives the auto-refresh.
## [0.3.0] - 2026-11-15
### Added
- Settings section "Haltemethode": content (HTML filler text, random plain text or alternating
per catch), pause and chunk size ranges and the maximum hold time, with an estimate of the
bandwidth per trapped connection and its own reset button. Changes apply to the next catch
without a restart.
- Plain-text drip strategy (`text-drip`), served as `text/plain`.
- Each catch stores its strategy with the parameters in use, e.g. `text-drip 50-1000ms 1-64B`;
MCP results include it as `strategy`.
### Changed
- The maximum hold time moved from the general settings to "Haltemethode".
- Saving one settings section no longer resets the values saved in another.
- Redesigned settings page with sections, side navigation and choice cards.
- Redesigned dashboard with weighted metrics, a more compact world map, share bars in the top
tables and a short guide while no catches exist yet.
### Removed
- Trap paths and known hosts, with their settings, the `Flypaper__Http__KnownHosts` and
`Flypaper__Http__TrapPaths` variables and the matching logic: every request on the trap port
is caught, only `/health` from private addresses is answered. Saved overrides are deleted on
start; the old variables are ignored with a warning in the log.
## [0.2.0] - 2026-11-15
### Added
- MCP server at `/mcp` on the dashboard port (Streamable HTTP) with read-only tools
`get_stats`, `list_catches`, `top`, `longest_catches` and `lookup_ip`, returning structured
JSON.
- Bearer tokens for MCP, created, listed and revoked on the settings page and stored only as
SHA-256 hashes; optional fixed token via `Flypaper__Mcp__Token`.
## [0.1.1] - 2026-11-15
### Fixed
- Small countries without an outline on the world map (e.g. Hong Kong, Singapore, Macau,
Bahrain, Malta) are now shown as markers with the same colour scale and tooltip.
- The latest catches table no longer overflows its card; numbers always stay visible.
- Requests without a `Host` header show "(ohne Host)" instead of `_`.
### Changed
- Common short country names on the map and in the tables, e.g. "Taiwan" instead of
"Republik China", "Hongkong", "USA".
- Larger hover area for map markers.
- Shorter README; reverse proxy, Unraid, configuration and release details moved to `docs/`.
## [0.1.0] - 2026-11-14
First release.
### Added
- HTTP tarpit on its own port (8080): every request is caught and answered with endless,
plausible HTML in random chunks of 1–64 bytes with random pauses of 50 ms–1 s.
- Connection governor with limits overall and per IP and a maximum hold time; requests
without a free slot get a quick 404.
- Optional known hosts that are caught only on configurable trap paths.
- Client IP from `X-Real-IP` / `X-Forwarded-For`, trusting private networks by default.
- One log line per catch and storage in SQLite, enriched with country, city and ASN from the
DB-IP Lite databases (downloaded and refreshed monthly, existing catches backfilled).
- Dashboard on its own port (8081): totals, world map, top countries, providers, IPs and
paths, latest catches with expandable rows.
- Settings page for trap paths, known hosts, limits, retention and the private-network filter,
effective without a restart; deleting private or all catches.
- Admin password set on first visit (stored as a salted hash) and changeable later, or fixed
with `Flypaper__Admin__Password`.
- Daily retention cleanup (90 days by default), `/health` endpoint, Docker image running as
non-root with all data under `/data`.
- Public images for `linux/amd64` and `linux/arm64` in the Gitea registry.
- Unraid Docker template; when started as root, the container hands `/data` to its app user
and drops privileges.
[Unreleased]: https://gitea.anticarnist.de/Tom/Flypaper/compare/v0.12.0...main
[0.12.0]: https://gitea.anticarnist.de/Tom/Flypaper/compare/v0.11.2...v0.12.0
[0.11.2]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.11.2
[0.11.1]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.11.1
[0.11.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.11.0
[0.10.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.10.0
[0.9.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.9.0
[0.8.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.8.0
[0.7.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.7.0
[0.6.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.6.0
[0.5.2]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.5.2
[0.5.1]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.5.1
[0.5.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.5.0
[0.4.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.4.0
[0.3.1]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.3.1
[0.3.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.3.0
[0.2.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.2.0
[0.1.1]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.1.1
[0.1.0]: https://gitea.anticarnist.de/Tom/Flypaper/releases/tag/v0.1.0