cyber-audit
When to Use
- Use when the user asks whether their machine or projects are affected by a CVE, breach, or package advisory.
- Use when a read-only local security exposure report is appropriate.
Hard rules
- Read-only. No installs, removes, upgrades, restarts, network calls, or file modifications outside
~/Documents/security-audits/.
- No
sudo. Never.
- One report per invocation. Always end by writing the
.md file (even if the verdict is "Not affected" — the audit trail matters).
- If a check requires a state-changing command, skip it and note "not checked (would require state change)" in the table. Do not run it.
Workflow
- Identify scope. Extract from the advisory: package/binary name, affected versions, platform (macOS / Linux / Windows), attack vector (supply chain / RCE / local / network).
- Run checks in parallel (Bash tool, multiple calls in one message). Pick relevant checks for the advisory type — don't run all of them.
- Build the table as you go. Each row = one check + concrete result (version number, path, "None", "N/A").
- Write the report to
~/Documents/security-audits/YYYY-MM-DD-<short-kebab-slug>.md. Use today's date from the environment header.
- Tell the user the verdict in one line + path to the report.
Check menu (pick what's relevant)
# --- Node / npm ecosystem (supply-chain advisories) ---
which npm pnpm yarn; npm root -g; pnpm root -g 2>/dev/null
ls /opt/homebrew/lib/node_modules # global npm
find ~ -maxdepth 8 -type d -name "<pkg>" 2>/dev/null \
| grep -v -E "(Library/Caches|\.Trash)" # installed copies
find ~/Documents ~/Desktop ~/Downloads -maxdepth 8 -type f \
\( -name "package.json" -o -name "package-lock.json" \
-o -name "pnpm-lock.yaml" -o -name "yarn.lock" \) 2>/dev/null \
| xargs grep -l "<pkg>" 2>/dev/null # direct + transitive
# --- Python ecosystem ---
which python3 pip pipx uv
pip list 2>/dev/null | grep -i "<pkg>"
find ~/Documents -maxdepth 6 -name "requirements*.txt" -o -name "pyproject.toml" \
-o -name "poetry.lock" -o -name "uv.lock" 2>/dev/null | xargs grep -l "<pkg>" 2>/dev/null
# --- Homebrew / system binaries ---
brew list --versions <formula> 2>/dev/null
which <binary>; <binary> --version 2>/dev/null
# --- Running processes / listeners (for RCE / network CVEs) ---
pgrep -lf "<binary>"
lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null | grep "<port>"
# --- LaunchAgents / LaunchDaemons (persistence / autostart) ---
ls ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons 2>/dev/null \
| grep -i "<vendor>"
# --- Env vars that change exposure (e.g. OLLAMA_HOST, listening addr) ---
launchctl getenv <VAR>; grep -r "<VAR>" ~/.zshrc ~/.zprofile ~/.config 2>/dev/null
# --- VS Code / browser extensions (for IDE-targeted advisories) ---
ls ~/.vscode/extensions 2>/dev/null | grep -i "<ext>"
If the advisory mentions an ecosystem not above (Rust cargo, Go modules, Ruby gems, Docker images, etc.), apply the same pattern: global install path + manifest grep + running processes.
Report template
File: ~/Documents/security-audits/YYYY-MM-DD-<short-kebab-slug>.md
# <Subject> — Audit
**Date:** YYYY-MM-DD
**Host:** the user's Mac
## <CVEs | Advisory> in scope
- **<ID or source> "<Name>"** — <one-line description>. <Affected versions or scope>.
## Audit results
| Check | Result |
|---|---|
| <Check 1> | <Result> |
| <Check 2> | <Result> |
## Verdict
**<Not affected. | Affected. | Partially affected.>**
- <Rationale bullet 1>
- <Rationale bullet 2>
## Action taken
None — diagnostic only, no files modified, no <packages installed/removed | services started/stopped | firewall rules changed>.
## Follow-ups
- <Actionable item, or "None" if truly nothing>
Match the tone of the two existing reports in ~/Documents/security-audits/ — terse, factual, bulleted, no hedging.
Verdict wording
- Not affected. — package/binary absent, or installed but patched, or not running and not exposed.
- Affected. — vulnerable version present and reachable by the attack vector.
- Partially affected. — present but mitigated (e.g. binary installed but service not running, or listener bound to loopback only). Spell out the mitigation in the bullets.
When to break the read-only rule
Never on your own. If the verdict is "Affected", list the remediation command in Follow-ups and stop. The user runs it.
Reference
Two existing reports in ~/Documents/security-audits/ show the expected style:
baseline-audit.md (long-form baseline audit — different format, do not mimic)
YYYY-MM-DD-example-advisory.md and any newer YYYY-MM-DD-*.md files (this is the format to match)
Limitations
- Adapted from
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.
- For commands, remote access, scheduling, bro
1---2name: cyber-audit3description: Run read-only exposure checks for security advisories and write a structured local audit report. 4category: Document Processing5source: antigravity6tags: [python, node, markdown, claude, ai, agent, automation, workflow, template, document]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/cyber-audit8metadata:9 source: https://skillmd.com/skills/sickn33/cyber-audit10---111213# cyber-audit1415## When to Use1617- Use when the user asks whether their machine or projects are affected by a CVE, breach, or package advisory.18- Use when a read-only local security exposure report is appropriate.1920## Hard rules2122- **Read-only.** No installs, removes, upgrades, restarts, network calls, or file modifications outside `~/Documents/security-audits/`.23- **No `sudo`.** Never.24- **One report per invocation.** Always end by writing the `.md` file (even if the verdict is "Not affected" — the audit trail matters).25- If a check requires a state-changing command, **skip it and note "not checked (would require state change)"** in the table. Do not run it.2627## Workflow28291. **Identify scope.** Extract from the advisory: package/binary name, affected versions, platform (macOS / Linux / Windows), attack vector (supply chain / RCE / local / network).302. **Run checks in parallel** (Bash tool, multiple calls in one message). Pick relevant checks for the advisory type — don't run all of them.313. **Build the table** as you go. Each row = one check + concrete result (version number, path, "None", "N/A").324. **Write the report** to `~/Documents/security-audits/YYYY-MM-DD-<short-kebab-slug>.md`. Use today's date from the environment header.335. **Tell the user** the verdict in one line + path to the report.3435## Check menu (pick what's relevant)3637```bash38# --- Node / npm ecosystem (supply-chain advisories) ---39which npm pnpm yarn; npm root -g; pnpm root -g 2>/dev/null40ls /opt/homebrew/lib/node_modules # global npm41find ~ -maxdepth 8 -type d -name "<pkg>" 2>/dev/null \42 | grep -v -E "(Library/Caches|\.Trash)" # installed copies43find ~/Documents ~/Desktop ~/Downloads -maxdepth 8 -type f \44 \( -name "package.json" -o -name "package-lock.json" \45 -o -name "pnpm-lock.yaml" -o -name "yarn.lock" \) 2>/dev/null \46 | xargs grep -l "<pkg>" 2>/dev/null # direct + transitive4748# --- Python ecosystem ---49which python3 pip pipx uv50pip list 2>/dev/null | grep -i "<pkg>"51find ~/Documents -maxdepth 6 -name "requirements*.txt" -o -name "pyproject.toml" \52 -o -name "poetry.lock" -o -name "uv.lock" 2>/dev/null | xargs grep -l "<pkg>" 2>/dev/null5354# --- Homebrew / system binaries ---55brew list --versions <formula> 2>/dev/null56which <binary>; <binary> --version 2>/dev/null5758# --- Running processes / listeners (for RCE / network CVEs) ---59pgrep -lf "<binary>"60lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null | grep "<port>"6162# --- LaunchAgents / LaunchDaemons (persistence / autostart) ---63ls ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons 2>/dev/null \64 | grep -i "<vendor>"6566# --- Env vars that change exposure (e.g. OLLAMA_HOST, listening addr) ---67launchctl getenv <VAR>; grep -r "<VAR>" ~/.zshrc ~/.zprofile ~/.config 2>/dev/null6869# --- VS Code / browser extensions (for IDE-targeted advisories) ---70ls ~/.vscode/extensions 2>/dev/null | grep -i "<ext>"71```7273If the advisory mentions an ecosystem not above (Rust cargo, Go modules, Ruby gems, Docker images, etc.), apply the same pattern: global install path + manifest grep + running processes.7475## Report template7677File: `~/Documents/security-audits/YYYY-MM-DD-<short-kebab-slug>.md`7879```markdown80# <Subject> — Audit8182**Date:** YYYY-MM-DD83**Host:** the user's Mac8485## <CVEs | Advisory> in scope8687- **<ID or source> "<Name>"** — <one-line description>. <Affected versions or scope>.8889## Audit results9091| Check | Result |92|---|---|93| <Check 1> | <Result> |94| <Check 2> | <Result> |9596## Verdict9798**<Not affected. | Affected. | Partially affected.>**99100- <Rationale bullet 1>101- <Rationale bullet 2>102103## Action taken104105None — diagnostic only, no files modified, no <packages installed/removed | services started/stopped | firewall rules changed>.106107## Follow-ups108109- <Actionable item, or "None" if truly nothing>110```111112Match the tone of the two existing reports in `~/Documents/security-audits/` — terse, factual, bulleted, no hedging.113114## Verdict wording115116- **Not affected.** — package/binary absent, or installed but patched, or not running and not exposed.117- **Affected.** — vulnerable version present *and* reachable by the attack vector.118- **Partially affected.** — present but mitigated (e.g. binary installed but service not running, or listener bound to loopback only). Spell out the mitigation in the bullets.119120## When to break the read-only rule121122Never on your own. If the verdict is "Affected", list the remediation command in **Follow-ups** and stop. The user runs it.123124## Reference125126Two existing reports in `~/Documents/security-audits/` show the expected style:127- `baseline-audit.md` (long-form baseline audit — different format, do not mimic)128- `YYYY-MM-DD-example-advisory.md` and any newer `YYYY-MM-DD-*.md` files (this is the format to match)129130## Limitations131132- Adapted from `davidondrej/skills`; verify local paths, tools, credentials, and agent features before acting.133- For commands, remote access, scheduling, bro