Unfamiliar word or acronym? The Glossary defines it.
This page is for anyone adding a picture to the wiki. Pictures help a learner see what a page describes, and they are the easiest way to leak something by accident. The rules below are checked by tests where a test can check them (tests/test_wiki_images.py), and by the reviewer where it cannot.
Only a public tool showing this repository's own synthetic models or data. Today that means:
docs/threat-model/.docs/threat-model/attack-navigator-layer.json.A caption under each picture says the tool, its version, the date, and that the model or data is the repository's own synthetic one.
If you are unsure, do not capture it. Use a placeholder (below) instead.
Redact by not capturing, then by cropping, and only last by drawing over. If you draw a solid box over text, save a flattened PNG so no layer under the box survives; never rely on a layer that can be toggled off. Prefer to capture from a clean account, crop to the panel, and re-capture if anything private shows. Never blur: blur can sometimes be reversed for short strings. After saving, run the metadata stripper below, then open the final file and read every pixel of it once.
scripts/render_diagrams.py (theme in docs/diagrams-theme.json), because GitHub's mobile app shows a Mermaid block as raw code. The source stays underneath the picture in a collapsed section; never edit the PNG, edit the source and run scripts/render_diagrams.py --write. A test fails when a picture is stale.docs/wiki/images/NAME.png, lowercase words joined by dashes, for example threat-dragon-stride-diagram.png. PNG only. JPEG is not accepted: it can carry EXIF, XMP, IPTC and comment segments anywhere in the file, and a screenshot has no need of it. Only regular files: a symlink, a subdirectory or any other file type in the images directory fails the build.images/NAME.png in round brackets, with no title. Raw HTML image tags (<img>, <picture>, <source>, <video>), reference-style images, the wiki's double-bracket image syntax and any remote or data: image address are rejected by a test, because a remote image is a tracking pixel. The wiki generator copies the files to the flat wiki and rewrites the path to the raw URL the wiki serves, outside code blocks only; see CI, tests and the cost gate for how pages are checked.Describe what a learner should see, not "screenshot". At least 10 characters, and in practice a sentence: what is on screen and which part matters. Do not put any private value in alt text either.
At most 600 KB each and at most 2400 pixels wide. Crop to the part that teaches. For flat user-interface pictures, reduce to a palette (64 to 128 colors) with an image tool; a diagram that was 350 KB as a full-color PNG is about 80 KB as a palette PNG with no visible change.
Screenshots can carry text chunks, EXIF data, timestamps and color-profile text. Strip them before committing:
python3 scripts/strip_png_metadata.py docs/wiki/images/NAME.png
The stripper uses an allowlist, not a blocklist: only IHDR, PLTE, IDAT, IEND, tRNS (transparency) and the color chunks gAMA, cHRM and sRGB survive, and a test fails the build if a committed PNG has any other chunk, a bad checksum, bytes after the end marker, a missing end marker, or is animated (APNG, which is refused rather than flattened). The embedded color profile (iCCP) is removed on purpose: a profile carries free text such as device and software names, and a browser screenshot is plain sRGB. Metadata stripping removes nothing that is drawn in the pixels, so it does not replace the review below.
No test can read pixels. Every pull request that adds or changes a picture must state in its description that the author opened the final stripped file at full size and checked each item, and the reviewer repeats it:
Some lessons describe a vendor console that cannot be pictured safely here. Where a picture would help, the page carries a callout asking the learner to take the screenshot themselves, in their own account, for their own notes. Every callout has exactly these parts:
> **Screenshot to take yourself:** one line saying which screen.
> Capture: what to put in frame.
> Look for: what the picture should show you.
> Redact: what to remove before you keep or share it.
A test fails if a callout is missing "Capture:", "Look for:" or "Redact:". Do not turn a placeholder into a real picture unless the picture meets every rule on this page.
Threat Dragon exercise, Threat frameworks and Threat model exercise carry the first real captures.