mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
The skill consolidates three attack surfaces for Nostr event data: author filtering on trust-sensitive queries, URL sanitization before rendering event-sourced links/images, and CSS injection prevention when interpolating event data into styles. The latter two were previously undocumented in mkstack — imported and adapted from the Ditto project's guidance, generalized to reference sanitizeUrl and sanitizeCssString helpers as patterns to implement (mkstack doesn't ship them yet) rather than existing imports. AGENTS.md's Nostr Security Model now fits in a bulleted rule list plus a single spoof-vs-authors example, with a pointer to the skill for the full NIP-72 moderation walkthrough and sanitization details.