Skip to content

Writing Criteria

Every guide in this repo is written to the same standard. If you're adding or editing a guide — human or AI — hold it to these.

  1. Plain words, real ideas. Simple language, never dumbed-down concepts. Explain jargon on first use; collect terms in the glossary.
  2. No hype. No marketing adjectives, no "revolutionary," no promises about what something will do for the reader.
  3. Honest about limits. Say what the thing can't do. State uncertainty instead of smoothing it over. Validation notes include what remains unverified.
  4. No invented numbers. Benchmarks, defaults, and specs are either measured or qualified with "depends on your setup." If it wasn't tested, say so.
  5. Checkable. Commands are meant to be run, with "Check:" blocks showing what success looks like. Sources are linked, not asserted.
  6. Respect the reader's setup. Call out Windows/Mac/Linux differences. Don't assume a GPU, a budget, or prior experience.
  7. Safety isn't skipped. Real risks get stated plainly, not buried.
  8. Scoped. Each guide says what it covers and points elsewhere for the rest. No guide pretends to be the whole subject.
  9. Structure over prose. Tables, before/after examples, symptom → fix. Scannable beats essay.

Verification notes for this guide

Standard 3 and 4 applied to this guide, specifically. The lab ran on the build machine with Ghidra 12.2 (release of 2026-10-22) under a Temurin JDK 25.0.5+8 fetched for the purpose — the machine's installed JDK 21 does not meet 12.2's stated requirement of a 64-bit JDK 25 (its bundled GettingStarted document). The specimen is examples/gatekeeper.c, written for this guide and compiled in the lab; all transcripts are kept in examples/, trimmed of log prefixes and timestamps but otherwise unaltered, and the full headless logs remained in the lab.

Run for real, captured:

  • The download. ghidra_12.2_PUBLIC_20261016.zip, 569,712,708 bytes; its SHA-256 (2c2cd776…be67, full text in examples/commands.txt) computed locally and matched digit for digit against the hash in the official release notes fetched from the project's GitHub. Unpacked tree about 880 MB; 39 processor-family modules counted in Ghidra/Processors; 194 Java scripts counted in the Base feature alone.
  • The specimen. gcc 13.3.0, -O0: a 16,120-byte x86-64 PIE ELF, not stripped; its twin made with strip (14,480 bytes, the same BuildID). Behaviour proven by running: no argument → usage line plus the planted note, exit 2; 4213 → "The gate swings open."; 1234 → "The gate stays shut." file, strings, nm, readelf, and objdump -d (binutils 2.42) outputs quoted in chapter 13 are the real outputs.
  • Headless import and analysis. analyzeHeadless imported the specimen and auto-analysed it; the analyser reported Total Time 3 secs for the analysis itself (the whole invocation, JVM and framework startup included, took about 26 s wall on this machine). The survey script printed 20 functions, among them scramble at 00101169, check_code at 001011a0, main at 001011ce, and 79 defined strings including the planted "The lighthouse keeper winds the clock at midnight." at 00102008.
  • Decompilation. Real DecompInterface output for check_code, scramble, and main (the latter from a second headless pass using -process, no re-import): the comparison against 0x191b2, scramble's ^ 0x3c5a / >> 0xd / * 8 / + 0x3039 mechanism, and main's puts(keeper_note) are quoted verbatim in chapters 6 and 11.
  • The Listing. A throwaway lab script walked check_code and printed Ghidra's own instruction text for all 15 instructions (examples/listing-check-code.txt). The Listing pane's furniture (labels, signature, the call shown by name) is described, not quoted, since the pane itself is GUI.
  • The solve. The decompiled mechanism was transcribed into a few lines of Python and brute-forced: exactly one code in 0–99,999 scrambles to 0x191b2, namely 4213 — then proven against the real binary (above).
  • The stripped twin. Imported and analysed the same way: the same 20 functions at the same addresses, renamed FUN_001011a0 and family by the absence of symbols; its decompilation compares against 0x191b2 identically. The survey script reached the function by address argument, as chapters 7 and 11 describe.
  • Raw ARM64. Eight bytes hand-assembled for the guide (mov w0,#0x2a; ret), imported with the Binary loader at base 0x8000 as AARCH64:LE:64:v8A; a lab script disassembled at the load address and Ghidra returned exactly those two instructions.
  • The traps, as they happened. (1) Script name and argument quoted as one word → Script not found: ListFunctions.java check_code. (2) The lab script's first name, ListFunctions.java, collided with a script Ghidra bundles (Function ID feature): one run executed their script, which rejected the argument as an invalid choice; renamed to SurveyProgram.java. (3) Repeated -scriptPath flags searched only the last folder, and a colon-joined pair in one flag was ignored — one folder per flag is the pattern the chapters teach. All three are recorded in chapters 10, 11, and 15 as observed behaviour of 12.2.
  • The original file untouched. The specimen on disk kept its build timestamp through every import and analysis; all work happened in the project copy. The finished project folder measured 3.1 MB for the lab's three small programs.

  • The site build. The finished guide was staged the way its deploy workflow stages it (chapters as pages, the README as the home page, examples/ alongside) and built in a fresh virtual environment with MkDocs 1.6.1 and the Material theme: mkdocs build --strict passed clean.

Documented-only (not run), and why:

  • The CodeBrowser window itself — creating a project in the GUI, the import dialog, the analysis prompt, the Symbol Tree, renaming with the L key, retyping, the Script Manager, bookmarks and comments in their panes. The build sandbox has no display and cannot drive the GUI. These chapters (4, 7, 8, 9, and the window parts of 11) follow Ghidra's bundled GettingStarted and manuals and are marked (documented) where they occur. Crucially, the results those panes present are not documented-only: the same import, analysis, function list, strings, and decompilations were produced headlessly and are quoted from real output.
  • Function ID naming stripped library code — described from its documented behaviour; the specimen's functions were its own, so the analyser had nothing to demonstrate on.
  • The other workbenches of chapter 13 (radare2/rizin, Cutter, Binary Ninja, IDA) — surveyed from their own documentation; none was installed or run in this lab.
  • Firmware practice beyond the eight bytes — base-address recovery, reset vectors, memory-mapped peripherals: surveyed and labelled in chapter 12. Only the raw import and foreign-architecture disassembly are claimed as run.
  • PyGhidra — its launcher was confirmed present in the 12.2 tree (support/pyghidraRun) but no Python script was executed.
  • Windows and macOS specifics — launcher names are from the release tree and GettingStarted; the lab is Linux-only.

Sandbox state after the build, for the record: the Ghidra distribution tree, the downloaded JDK, the zip, and the lab project were removed from the lab folder once the evidence was harvested; what remains of the lab is its logs and small scripts. The system JDK (21) was never modified, and the specimen files in examples/ are byte-identical to the ones analysed.