security-engineering-quickref
AUTO-INVOKE when user mentions cryptography, AEAD, KDF, chain of trust, signing key, auth factor, MFA, secret hygiene, supply chain trust, physical threat, DFIR readiness, or incident evidence handoff. Security-engineering quick reference — decision domains for crypto primitives, chain-of-trust, auth factors, degraded modes, supply-chain trust, physical-threat modeling, and DFIR readiness routing.
What this skill does
# Security Engineering Framework — Quick Reference This is your always-loaded directory for the AIWG **security-engineering** framework. It does **not** list every skill. Instead, it teaches the framework's decision domains and gives you **curated search phrases** that map to `aiwg discover` lookups. ## Canonical access pattern: discover → show When you find a candidate via `aiwg discover`, fetch its body with `aiwg show <type> <name>`. **Never** use `find`, `ls`, `Glob`, or direct `Read` on `<provider>/skills/` paths — those reflect the kernel-pivot deploy state, not the full surface. ```bash aiwg discover "<phrase>" # find — returns ranked candidates aiwg show skill <name> # fetch — streams the SKILL.md body ``` If your platform's Skill tool errors on a non-kernel skill (expected — most aren't kernel), the fallback is `aiwg show`, never filesystem browsing. Last-resort if `aiwg` itself is broken: read directly from `$AIWG_ROOT/agentic/code/...` (the canonical corpus, always present). ## How to use this quickref 1. Identify the **decision domain** the user is working through (this framework is decision-aid, not audit) 2. Pick a **curated phrase** from that domain 3. Run `aiwg discover "<phrase>"` and surface the top match to the user **Do not enumerate skills from memory.** Discovery is the lookup surface. ## What this framework is for **Decision-aid skills for applied security**, distinct from the SDLC framework's broader security review (`flow-security-review-cycle`). Each skill in this framework forces explicit reasoning about a narrow class of security decisions and identifies anti-patterns the operator should reject before implementation. This is **not** a vulnerability scanner or pen-test framework. It is a thinking-discipline framework for cryptographic and trust-boundary decisions that get baked into a system early and become hard to change. ## Decision domains | Domain | The decision being made | |---|---| | **Cryptographic primitives** | Choosing AEAD / KDF / MAC / signature algorithms | | **Chain of trust** | Designing the boot/bootstrap verification chain | | **Authentication factors** | Architecting have/know/are factor stack | | **Degraded modes** | Fail-closed vs fail-open behavior matrices | | **Supply chain trust** | Beyond CVE/SBOM — pinning depth, reproducible builds, vendor+hash locks | | **Runtime secret hygiene** | fd passing, scratch surface verification, error-path safety | | **Physical threats** | Threats STRIDE and OWASP Top 10 don't cover | | **DFIR readiness** | Preparing evidence handling, custody expectations, and handoff to forensics-complete | ## Curated discovery phrases ### Cryptographic primitives ```bash aiwg discover "crypto primitive selection" # → crypto-primitive-selection aiwg discover "choose AEAD" # → crypto-primitive-selection aiwg discover "ad-hoc KDF" # → crypto-primitive-selection ``` ### Chain of trust ```bash aiwg discover "chain of trust" # → chain-of-trust-design aiwg discover "secure bootstrap" # → chain-of-trust-design aiwg discover "signed boot" # → chain-of-trust-design ``` ### Authentication factors ```bash aiwg discover "auth factor design" # → auth-factor-design (score 0.59) aiwg discover "FIDO2 PIN UV policy" # → auth-factor-design aiwg discover "coercion-resistance" # → auth-factor-design ``` ### Degraded modes ```bash aiwg discover "degraded mode design" # → degraded-mode-design aiwg discover "fail closed fail open" # → degraded-mode-design ``` ### Supply chain trust ```bash aiwg discover "supply chain trust" # → supply-chain-trust (score 0.67) aiwg discover "reproducible build" # → supply-chain-trust aiwg discover "dependency pinning" # → supply-chain-trust aiwg discover "npm supply-chain audit" # → npm-supply-chain-audit aiwg discover "cargo crate supply chain audit" # → cargo-supply-chain-audit (Rust/crates.io) aiwg discover "rust dependency audit" # → cargo-supply-chain-audit aiwg discover "ci workflow audit" # → ci-workflow-audit aiwg discover "workflow pinning audit" # → ci-workflow-audit aiwg discover "npm release-age gate" # → npm-release-age-gate aiwg discover "pnpm release age gate" # → pnpm-release-age-gate aiwg discover "yarn release age gate" # → yarn-release-age-gate aiwg discover "bun release age gate" # → bun-release-age-gate aiwg discover "supply-chain hardening quickstart" # → supply-chain-hardening-quickstart ``` ### Runtime secret hygiene ```bash aiwg discover "secret handling runtime" # → secret-handling-runtime aiwg discover "fd passing secrets" # → secret-handling-runtime aiwg discover "scratch surface verification" # → secret-handling-runtime ``` ### Physical threats ```bash aiwg discover "physical threat modeling" # → physical-threat-modeling aiwg discover "evil-maid attack" # → physical-threat-modeling aiwg discover "DMA attack" # → physical-threat-modeling ``` ### DFIR readiness ```bash aiwg discover "DFIR readiness" # → dfir-readiness aiwg discover "incident response evidence" # → dfir-readiness or forensics-quickref aiwg discover "chain of custody readiness" # → dfir-readiness ``` ## Anti-patterns each skill rejects | Skill | Anti-patterns it identifies | |---|---| | `crypto-primitive-selection` | CBC-without-MAC, ad-hoc KDF, key reuse, PBKDF2 on high-entropy input, openssl enc without explicit flags | | `chain-of-trust-design` | Circular trust roots, signing-key custody confusion, missing measured-boot anchors | | `auth-factor-design` | Python deps in PRF hot paths, missing coercion-resistance, FIDO2 PIN/UV policy gaps | | `degraded-mode-design` | "Type Y to override" prompts, missing degraded-mode matrix, fail-open by accident | | `supply-chain-trust` | Dependency pinning by version (not hash), reproducible-build gaps, firmware version-not-locked | | `npm-supply-chain-audit` | install lifecycle scripts, Git dependency prepare hooks, publish-token exposure, missing verifier docs | | `ci-workflow-audit` | tag-pinned actions/containers, bare `:latest`, PR-triggered jobs with `secrets.*`, curl-pipe-shell without hash checks | | `npm-release-age-gate` | missing `min-release-age`, npm 10 silently ignoring the gate, permanent bypasses | | `pnpm-release-age-gate` | missing `minimumReleaseAge`, missing `blockExoticSubdeps`, Corepack pin < v9.0 silently ignoring the gate | | `yarn-release-age-gate` | missing `npmMinimalAgeGate`, Corepack pin < v4.0 silently ignoring the gate, Yarn Classic v1.x lacking gate support | | `bun-release-age-gate` | missing `install.minimumReleaseAge`, Bun < v1.1.30 silently ignoring the gate, unit confusion (Bun uses seconds vs pnpm minutes vs npm days vs Yarn duration strings) | | `secret-handling-runtime` | SECRETS_ENV aggregation, missing scratch-surface verification, identifier reuse | | `physical-threat-modeling` | evil-maid, DMA, hostile peripheral, travel-host, coercion, cold-boot, supply-chain implant, side-channel | | `dfir-readiness` | collecting evidence from the security framework, destructive containment by default, missing custody handoff | ## When to use this framework vs the SDLC security flow | Use this framework | Use `flow-security-review-cycle` (SDLC) | |---|---| | Deciding the *primitive* (which AEAD?) | Reviewing whether the *implementation* uses any AEAD correctly | | Designing the boot chain | Threat-modeling the application boundary | | Picking an MFA scheme | Auditing existing auth code | | Defining degraded-mode behavior | Vulnerability scan + STRIDE on a feature | | Preparing evidence handling and DFIR handoff | Running production incident comms or collecting forensic evidence | The SDLC's `flow-security-review-cycl
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.