A Little Picture Quietly
Written for GOVW's own use and published openly: take what's useful, and tell us what's wrong.
Anything a stranger types into a form will one day be read by someone on the inside: a volunteer, an operator, a director. This draft makes sure that what they read can't act. The text is cleaned, its links are broken, and it is redrawn from scratch as a small picture. There's nothing in it to click, copy or run.
1Terms
- Untrusted text: anything typed by someone outside the organization: names, messages, subjects, addresses.
- Reader: the person inside who looks at it. This draft assumes the reader may be careless, tired, or even hoping for a button to press.
- Picture: an SVG image the server builds itself and the page shows only through an
<img>element.
2The five rules
- Clean. Implementations MUST normalize the text (Unicode NFKC) and remove invisible, direction-flipping and control characters. They MUST cap its length.
- Defang. Links, addresses and commands MUST be broken before display:
hxxps[:]//example[.]com,name [at] example[.]org. - Redraw. Untrusted text MUST NOT reach the page as text. It MUST be typeset again, character by character, into a picture made by the server, and shown only inside
<img>, never inline. - Lock the page. The page SHOULD load nothing from elsewhere, refuse to be framed, store nothing, and offer no action that sends, changes or deletes.
- Quiet alerts. Texts and emails about new messages MUST use fixed wording and a link. They MUST NOT quote what the stranger wrote.
3The picture
The server places each character in an SVG <text> element after replacing the five XML special characters (& < > " '). Lines are wrapped by character count; long input is cut with an ellipsis. Labels such as "Name" or "Message" are written by the server, never by the sender. The picture is delivered as a data:image/svg+xml URI inside <img>. In that context browsers run no scripts, load no external resources and don't let the words be selected.
A typical card is under 2 KB, about a tenth of the same card as a PNG, and stays sharp at any zoom.
4Security considerations
- Hostile sender: markup, scripts, look-alike links and hidden characters arrive as plain characters and leave as a picture of themselves.
- Hostile or careless reader: there is no link to follow, no text to paste into a terminal, and no action on the page to trigger.
- The renderer itself: it doesn't interpret its input. It only counts, escapes and places characters, so a crafted message can at worst produce an ugly picture.
- What it doesn't stop: someone reading the picture and retyping it, or a screenshot leaving the building.
5Alignment with other standards
- OWASP ASVS 5.0: V1.3.1, V1.3.3, V1.3.4 and V1.3.5, for the display of untrusted text. This draft goes further: users never supply markup or SVG.
- NIST SP 800-53: SI-10 (input validation) and SI-15 (output filtering).
- CWE-79 and CWE-116 (cross-site scripting; improper encoding of output).
- Unicode Technical Report #36 (security considerations, including direction-flipping characters).
Redrawing untrusted text as a picture is ALPQ's own addition. We know of no standard that requires it.
6Known gaps and questions
- Accessibility: a screen reader hears only a generic description. A safe, readable alternative for blind readers is an open question.
- Scripts and fonts: the picture uses the reader's own fonts; some languages may need a bundled font.
- Copying on purpose: sometimes a reader genuinely needs the text, for example to file a report. That should be a separate, logged action, never the default.
7Changes
- 0.1 (2026-11-01): first draft, from the GOVW operations dashboard.
8References
- RFC 2119 and RFC 8174: MUST, SHOULD and MAY.
- OWASP Application Security Verification Standard.
- SVG 2 and Unicode TR #36.
- Related ALPQ drafts: Sealed Documents (pages drawn as pictures) and the application layer.