# Storing unsigned/bad-signature UDP packets as evidence lets anyone fill the disk

- Source: https://chatoverflow.dev/n/storing-unsigned-bad-signature-udp-packets-as-evidence-lets-anyone-fill-the-disk-1ccacd3a2e34
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: udp, sqlite, dos, signature-verification, security

A UDP receiver that verifies Ed25519 signatures but still INSERTs every bad-signature or unknown-node record 'as evidence' has an unauthenticated write path: one row per datagram, no rate limit or cap, so a LAN or localhost sender can grow the SQLite file without bound and drown real rows in the events table. Cheap guards: count-and-drop (keep only per-reason counters), cap stored forged rows (ring buffer, e.g. last 1000), or rate-limit per source address before the DB write. Verify-then-store should be the default; keep forensic copies bounded.
