adr
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Comprehensive developer workstation security audit — scans for exposed credentials, compromised application data, persistence mechanisms, and supply chain attack indicators. Use this skill whenever the user suspects their machine may be compromised, wants to check for exposed
Claude Code
$ npx -y skills add sd0xdev/sd0x-harness --skill dev-security-audit --agent claude-code
Codex
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a codex -y
Cursor
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a cursor -y
Gemini CLI
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a gemini-cli -y
GitHub Copilot
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a github-copilot -y
OpenCode
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a opencode -y
Windsurf
$ npx skills add sd0xdev/sd0x-harness --skill dev-security-audit -a windsurf -y
name: dev-security-audit description: "Comprehensive developer workstation security audit — scans for exposed credentials, compromised application data, persistence mechanisms, and supply chain attack indicators. Use this skill whenever the user suspects their machine may be compromised, wants to check for exposed secrets, asks about supply chain attacks, or wants a full security audit of their development environment. Also triggers on: 'am I compromised', 'check my security', 'scan for leaked keys', 'credential audit', 'supply chain attack', 'supply chain check', 'check if I was hacked'."
A systematic, multi-phase security audit for developer workstations. Checks for supply chain compromise indicators (via case-based IoC library at `references/cases/`), scans for exposed credentials across 20+ categories, and generates a prioritized remediation plan.
sequenceDiagram
participant U as User
participant C as Claude
participant S as System
C->>S: Phase 0: Supply Chain IoC Dispatch (case-driven)
C->>S: Phase 1: Credential & Secret Exposure Scan
C->>S: Phase 2: Application & Browser Data Scan
C->>S: Phase 3: Persistence & Backdoor Check
C->>U: Phase 4: Report Generation & Remediation PlanRun phases sequentially. Each phase produces findings that feed into the final report. Use the reference files for detailed scan targets and IoC lists.
**Evidence preservation**: Before any cleanup or deletion, always copy/archive artifacts for forensic analysis. Never destroy evidence before the report is generated.
Check for known supply chain compromises using the case library (`references/cases/`). This phase is conditional — it runs only when matching cases are found.
1. **Detect platform**: macOS / Linux / Windows 2. **Load case catalog**: Read `references/cases/README.md` for active cases 3. **Scan product presence**: For each active case, check if the product is installed on the system 4. **Execute matching cases**: Load the case file and run its Detection Commands section
| Condition | Action | |-----------|--------| | No matching case (product not installed) | Skip Phase 0, proceed to Phase 1 | | Single match | Load case file, run detection + interpretation | | Multiple matches | Iterate: execute each case sequentially |
For each matched case, report:
| Field | Description | |-------|-------------| | `case_id` | From case frontmatter (e.g., `PRODUCT-YYYY-MM`) | | `status` | `COMPROMISED` / `INCONCLUSIVE` / `CLEAN` / `NOT_INSTALLED` | | `confidence` | From case frontmatter + detection result |
If any case returns `COMPROMISED`, execute evidence preservation per case file instructions before proceeding.
Scan for ALL sensitive files an attacker with user-space read access could have exfiltrated. This scan reveals credential hygiene issues regardless of supply chain compromise status.
Read `references/scan-targets.md` for the complete list. Below is the execution strategy.
Run scans in parallel where possible (use subagents for independent categories). Group into 3 parallel tracks:
**Track A — Cloud & Infrastructure Credentials:**
**Track B — Development Tool Tokens:**
**Track C — Application Secrets & History:**
| # | Rule | Description | |---|------|-------------| | 1 | Subagent parallel | Tracks A/B/C may run via subagents in parallel for speed | | 2 | Unified output schema | All tracks emit: `Category \| Path \| Severity \| Redacted Sample \| Action` | | 3 | Dedup by key | Merge results using `(Path + Indicator Type + Token Prefix)` as dedup key | | 4 | Critical bubble-up | Critical/Critical+ findings surface immediately — do not wait for full scan |
Use these regex patterns to extract tokens from shell history and .env files:
OpenAI: sk-[a-zA-Z0-9_-]{20,}
Anthropic: sk-ant-[a-zA-Z0-9_-]{20,}
GitHub Classic: gh[posur]_[a-zA-Z0-9]{20,}
GitHub Fine-grain: github_pat_[a-zA-Z0-9_]{20,}
GitLab PAT: glpat-[a-zA-Z0-9_-]{20,}
AWS Access: AKIA[A-Z0-9]{16}
AWS Temp: ASIA[A-Z0-9]{16}
HuggingFace: hf_[a-zA-Z0-9]{20,}
npm: npm_[a-zA-Z0-9]{20,}
Docker Hub: dckr_pat_[a-zA-Z0-9_-]{20,}
Slack: xox[bsrp]-[a-zA-Z0-9-]{20,}
Stripe: [rs]k_live_[a-zA-Z0-9]{20,}
Firebase: AIza[a-zA-Z0-9_-]{30,}
JWT: eyJ[a-zA-Z0-9_-]+\.eyJ[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Install and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free…
Architecture design and documentation. Produces 3-architecture.md with component diagrams, data flow, integration points, and…
Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or…
Industry best practices conformance audit with mandatory adversarial debate. Produces audit artifact: verdict (OK/WARN/FAIL) +…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.