repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git

6 folders · 12 files · 281.5 MiB

NameTypeSize
.github/folder1 file
public/folder143 files
scripts/folder21 files
src/folder1,351 files
test/folder13 files
vendor/folder2 files
.gitignoreGit929 B
astro.config.mjsJavaScript10.3 KiB
content-manifest.jsonJSON38.7 KiB
internal-manifest.jsonJSON315 B
LICENSELicense1.7 KiB
package-lock.jsonJSON225.8 KiB
package.jsonJSON1.4 KiB
payloads-manifest.jsonJSON1.8 KiB
port-vault-decisions.tsvfile34.9 KiB
README.mdMarkdown7.9 KiB
tsconfig.jsonJSON109 B
wrangler.jsoncJSON349 B

README.md

open document

DÆMON//SEC#

The cheatsheet vault for operators.

A curated, glassy vault of the best IT & cybersecurity cheatsheets — Active Directory, enumeration, exploitation, priv-esc, web, DFIR, and more. Fast offline search, copy-ready commands, zero fluff.

🌐 cheatsheet.daemon-sec.xyz · source on GitLab

Rose Pine · Apple-glass · cyberpunk — built with Astro + Pagefind


What's inside#

60 hand-picked, modernized cheatsheets across 12 domains:

Domain Domain Domain
Active Directory Enumeration Exploitation
Privilege Escalation Password Attacks Web
Tunneling & Pivoting Cryptography DFIR
Tools Linux & IT Git & Workflow

Each page is stripped of vault-specific syntax, given consistent frontmatter (tags, tools, difficulty), and refreshed for current tool flags and versions.

Features#

  • Rose Pine dark theme with a Rose Pine Dawn light toggle (respects your system preference).
  • Apple-glass frosted panels with restrained cyberpunk neon accents.
  • Every code block is a terminal pane with one-click copy.
  • Instant offline fuzzy search (/ or ⌘K) — no server, no tracking.
  • Filter any sheet list — every shelf, every tag page and the all-sheets index (/sheets) carry a search field, tag chips and a stats block whose bars narrow the list by tag, tool, difficulty and section. The filter lives in the URL (/sheets?tool=certipy&tag=adcs), so a narrowed view can be linked.
  • Fully responsive, keyboard-accessible, prefers-reduced-motion aware.

Develop#

npm install
npm run dev        # local dev server
npm run build      # astro build + pagefind search index -> dist/
npm run preview    # preview the production build

Saved CPTS order#

Run npm run unlock:helper from this checkout, open its pairing link and choose Unlock with GPG in the ☧ panel. GPG handles your key and its usual pinentry prompt. Keep the helper terminal open until unlocking finishes; you can then stop it. For a local preview, paste the pairing code into the ☧ panel at the default Astro address (http://localhost:4321). A preview keeps the unlocked index in memory only: it lasts while you move around the site and is gone on reload. localhost:4321 is shared by whatever project is served there next, so nothing is written to that address's browser storage, and anything an earlier version saved there is removed the next time the page loads.

Alternatively, expand Import an index you already decrypted, download the encrypted index, decrypt it with GPG and choose the resulting JSON once. Selecting the file reads it locally; it does not upload it to the host.

On the live site (https://cheatsheet.daemon-sec.xyz), both methods save the validated decrypted index in this browser's local storage. Closing the panel, following a post, refreshing, opening another tab and restarting the browser retain access. The ☧ panel lists every use in CPTS order, including repeated tools, and the marked guides show their positions. Choose Lock this browser to remove saved access from all open tabs on the same site. Clearing site data also removes it. Each browser profile and site address has its own saved access; private browsing or blocked storage may prevent saving.

The public build contains encrypted order data and unnumbered guide marks. Saved data is checked against the current payload before it is rendered; an outdated or corrupt saved index is discarded. Your private key, passphrase and helper pairing code are never saved in browser storage. Keep the decrypted JSON outside this checkout.

Deploy#

Cloudflare Workers is the only host. It serves cheatsheet.daemon-sec.xyz, configured in wrangler.jsonc, and deploys are manual:

npm run deploy:workers   # build + release checks + .assetsignore + wrangler deploy

The build ends with two gates and the deploy adds a third; any of them failing stops the release:

  • scripts/csp-hashes.mjs allows only the inline scripts of the site's own templates. An inline script anywhere else, such as one arriving in mirrored Markdown, fails the build. Mirrored collections are also sanitised when they are rendered (src/lib/rehype-sanitize-mirror.mjs).
  • scripts/check-release.mjs checks that the search index holds this build's pages and nothing left over from an earlier one, and that no complete private key is present in the sheets, their pages or their search fragments.
  • scripts/verify-downloads.mjs (npm run verify:downloads) checks the attachment library against its catalogue and checksums and refuses leftover files.

Signing the attachment library#

The library is published with SHA-256 checksums. It is described as signed, and signature links appear, only once every checksum file and the manifest have a detached signature next to them. Signing uses your own key and is never done by a script:

cd public/downloads/pentest-workflow && for f in *.sha256 SHA256SUMS; do gpg --armor --detach-sign --output "$f.asc" "$f"; done

Then re-run scripts/sync-pentest-workflow.py so the sheets link the signatures, and npm run verify:downloads -- --require-signed, which verifies each one with gpg against the fingerprint pinned in src/data/report-index-lock.json.

There is no CI deploy. Pushing to main publishes nothing on its own, so a content change is live only once someone runs the command above.

Content structure#

Cheatsheets live in src/content/sheets/<category>/<slug>.md with frontmatter:

---
title: "Rubeus"
description: "Kerberos abuse toolkit…"
category: active-directory
tags: [kerberos, tickets]
tools: [Rubeus]
difficulty: advanced
updated: "2026-08-09"
---

Category slugs, colors, and labels are defined in src/lib/taxonomy.ts.

Third-party content#

Two directories are generated mirrors of someone else's work, not ours to license. Full attribution lives on /credits.

Path Upstream Licence
src/content/payloads/ PayloadsAllTheThings (Swissky) MIT, Copyright (c) 2019 Swissky — see vendor/PayloadsAllTheThings/LICENSE
src/content/internal/ InternalAllTheThings (Swissky) none published upstream; copyright stays with Swissky and its contributors

Both are regenerated by scripts/sync-payloads.py and scripts/sync-internal.py — don't hand-edit them.

scripts/sync-mirrors.sh drives both of them. Run it bare to see what upstream has done since the last sync: it clones both upstreams, regenerates the mirrors, builds and tests the result, and leaves the diff in your working tree without committing anything.

scripts/sync-mirrors.sh            # sync + validate, commit nothing
scripts/sync-mirrors.sh --commit   # ... and commit, one commit per upstream
scripts/sync-mirrors.sh --push     # ... and push to main, which deploys

.github/workflows/sync-mirrors.yml runs that same script with --push daily at 06:17 UTC, and on demand via Actions → Sync upstream mirrors → Run workflow. Only trees that actually moved get a commit. There is no review gate, so npm run build and node --test are the safety net: a sync that breaks either fails and never lands.

The sync only lands commits; it does not publish. Because deploys are manual, run npm run deploy:workers after a sync to put the new upstream content live.

For authorized testing, CTFs, and education only. Know your scope and get written permission before touching a system you don't own. The maintainers are not responsible for misuse.

The site's own code and hand-written cheatsheets are licensed under MIT. That licence does not extend to the mirrored trees above.