/sdlc-toolkit:triage-securityfrom sdlc-toolkit
Triage security advisories (CVEs, breach notices, dependency vulnerabilities) against the workspace stack, draft a Slack response stating whether the project is affected, and hand off follow-up work to the create-ticket skill. Use when the user says "triage security", "security advisory", "security news", "check security brief", or provides a Slack permalink, CVE ID, or pasted advisory text.
Ships in sdlc-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this workflow when a security advisory lands and the team needs to confirm whether the workspace is affected and respond on Slack.
This skill reads pm_tool from config for optional ticket hand-off. Currently supported: linear.
Read <workspace>/.cursor/skills-config.yaml before acting. If missing, tell the user to run bootstrap-config first.
Required config keys:
slack.channels.security_news — channel name where advisories are publishedslack.channels.security_news_id — cached channel ID (avoids a lookup per run)slack.channels.security_draft — channel where the draft response is posted. Defaults to slack.channels.security_news so replies thread on the original advisory; override only when drafts should go to a separate channel (e.g. a team-internal review channel)security.draft_only — when true, always use slack_send_message_draft instead of sendingsecurity.custom_input — free-form rules (escalation contacts, standard wording, vendors known not to be in use)security.scanners.auto_scan — when true (default), run the bundled scanner scripts before manual grepping. The scripts skip silently when their CLI is missing, so this is safe to leave onsecurity.scanners.enabled — list selecting which scanners to run: osv, trivy, npm-audit, pip-audit, snyk, installed-pip, installed-npm. Defaults to auto (all installed scanners)security.scanners.severity — minimum severity threshold for noisy scanners (high by default; lower to low for breach/runtime advisories)repos — every repo listed here is scanned; the stack is inferred from each repo's manifests and IaC, never from a hardcoded listAt least one scanner CLI must be installed. Run the bundled helper to install all supported scanners in one step:
bash .claude/skills/triage-security/scripts/install-deps.sh
Individual tools and their install commands:
| Scanner | macOS | Linux / other |
|---|---|---|
| osv-scanner | brew install osv-scanner | go install github.com/google/osv-scanner/cmd/osv-scanner@latest |
| trivy | brew install aquasecurity/trivy/trivy | aquasecurity.github.io/trivy |
| npm audit | brew install node | apt-get install nodejs |
| pip-audit | pip install pip-audit | pip install pip-audit |
| snyk | npm install -g snyk && snyk auth | npm install -g snyk && snyk auth (free account required) |
Missing scanners are skipped gracefully — the skill logs a SKIP: line for each absent tool and continues with whatever is installed. Having zero scanners installed will prevent Step 3 from producing any output; install at least osv-scanner or trivy for a useful scan.
One of:
https://<workspace>.slack.com/archives/<CHANNEL_ID>/p<TS>)slack.channels.security_newsIf the input is ambiguous (e.g. a CVE ID with no version info), ask one clarifying question before scanning.
Parse the user input:
channel_id from the URL path and message_ts from the p<digits> segment (insert a . six digits from the end, e.g. p1776747784617779 → 1776747784.617779). Use slack_read_thread with those values.slack_read_channel on slack.channels.security_news_id with limit: 1 to fetch the latest brief. If the ID is missing, fall back to slack_search_channels with slack.channels.security_news, then cache the ID via bootstrap-config.A single brief often contains multiple findings (breach notices + CVEs + version bumps). For each advisory, record:
Keep this list compact — one bullet per advisory. Do not paraphrase beyond what the source says.
Before any manual grepping, run the bundled scanner scripts against every repo listed in repos. The scanners are the deterministic backbone of this skill: they hit real vulnerability databases (OSV, GitHub Advisory, vendor-specific) so verdicts do not rely on the LLM "knowing" a CVE.
The skill ships these scripts under skills/triage-security/scripts/:
| Script | Purpose |
|---|---|
auto-scan.sh <repo> | Orchestrator — runs every available scanner and emits one section per scanner |
scan-osv.sh <repo> | OSV-Scanner (Google) — broad coverage, no auth, recommended default |
scan-trivy.sh <repo> | Trivy filesystem scan — vulns, IaC misconfig, secrets |
scan-npm-audit.sh <repo> | npm audit for every package-lock.json in the tree (declared deps) |
scan-pip-audit.sh <repo> | pip-audit for requirements*.txt and pyproject.toml (declared deps) |
scan-installed-pip.sh <repo-or-venv> | Audit actually-installed packages in any virtualenv found under the path; catches lockfile drift and ad-hoc pip install |
scan-installed-npm.sh <repo> | npm audit against node_modules plus the installed tree from npm ls --all; catches drift between lockfile and what's on disk |
scan-snyk.sh <repo> | Snyk — only runs when SNYK_TOKEN is set or snyk auth was done |
scan-docker-image.sh <image-ref> | Trivy image scan; useful when the advisory targets runtime layers (CPython, libc, OpenSSL, Postgres) that source-tree scanners can't see |
check-cve.sh <CVE-ID> <repo> | Targeted check when the advisory names one specific CVE |
Manifests show what's declared; installed-package scanners show what's actually loadable at runtime. Run both — drift is the common reason a "Not affected" verdict turns out to be wrong.
For each repo:
bash <plugin>/skills/triage-security/scripts/auto-scan.sh <repo-path>
If security.scanners.enabled selects a subset, pass it as the second argument:
bash <plugin>/skills/triage-security/scripts/auto-scan.sh <repo-path> osv,trivy
When the advisory targets a runtime layer (e.g. "CPython 3.11.x prior to 3.11.10", "OpenSSL", "Postgres 16.x"), also scan the relevant container image — scan-docker-image.sh is intentionally separate from auto-scan.sh because it takes an image reference, not a repo path:
bash <plugin>/skills/triage-security/scripts/scan-docker-image.sh postgres:16.13
Each scanner skips silently when its CLI is missing — never abort the workflow because a tool isn't installed; just record which scanners ran. If security.scanners.auto_scan is false, skip this step and rely on the manual evidence pass below.
Capture each scanner's output verbatim. When the advisory names a specific CVE, prefer check-cve.sh <CVE-ID> <repo-path> for a focused yes/no signal.
Scanners cover dependency CVEs well but miss runtime versions, IaC, and vendor breaches. For every advisory, also pick the right place to look based on the technology named:
| Advisory target | Where to look |
|---|---|
| npm package (axios, react, etc.) | package.json, package-lock.json, yarn.lock |
| Python package | pyproject.toml, requirements*.txt, poetry.lock, uv.lock |
| Python runtime / CPython | Dockerfile, pyproject.toml, .python-version |
| Postgres / Snowflake / DB engine | docker-compose*.yml, terraform, helm values, .env.example |
| Vendor/platform (Vercel, Azure, AWS, n8n) | *.yml CI files, IaC, README, deployment docs |
Use Grep for package names and Read for version pins. Record: repo, file path, pinned version, whether it satisfies the advisory's "safe" range. If neither the scanner output nor the manifests reference the advisory's technology in any repo, mark Not applicable — but only after scanning each repo, not from a config shortcut.
If a repo path does not exist on disk, note it but do not fail the run. Honour any exclusions stated in security.custom_input (e.g. "Vercel not in use") but still record the check in the draft so reviewers can see the diligence.
For every advisory produce one verdict:
security.custom_input.When scanner output and manual evidence agree, state the verdict with high confidence. When they disagree (e.g. npm audit flags a dep but the lockfile shows a patched version), prefer the manifest evidence and note the disagreement in the user-only report.
Before drafting the Slack message, hand off every Affected — action required item to the create-ticket skill so the ticket URL can be embedded in the Slack draft.
Security: <advisory short title>security.custom_input, verification checklist.Hotfix (plus any domain label such as Infrastructure when the evidence is scoped).Todo.Confirm with the user once before creating (batch-confirm when multiple). Do not open tickets silently. Capture each ticket ID + URL for the Slack draft.
Compose one short message. Only include Affected items. Uncertain and Not affected items stay in the end-of-run report to the user, never in Slack — the security channel only needs to see what we're acting on.
Use this exact template:
:warning: *<Workspace> triage — action required*
:red_circle: *Affected* (<count>)
• *<advisory short title>* — <one-line current state + concrete action, e.g. "RDS on 16.8, upgrading to 16.13">. Ticket: <linear-url|PROJ-###>[ · cc <@SLACK_ID>]
:white_check_mark: _No other items applicable to our stack._
*Scanned repos:*
• <repo 1>
• <repo 2>
• <repo 3>
If there are zero Affected items, the message is even shorter — skip the :red_circle: block and use :white_check_mark: *<Workspace> triage — no action required* as the header.
Emoji budget (do not add more):
| Element | Emoji |
|---|---|
| Header when action required | :warning: |
| Header when nothing affected | :white_check_mark: |
| Affected section bullet | :red_circle: |
| "No other items applicable" line | :white_check_mark: |
Wording rules:
cc <@SLACK_ID> inline only when security.custom_input names a notification target for that class of change (credential/DB rotations, infra upgrades).<url|PROJ-###>; never paste bare URLs.Follow any additional tone/wording rules from security.custom_input.
Default to slack_send_message_draft addressed to slack.channels.security_draft. When that key is unset, fall back to slack.channels.security_news so the draft threads directly on the original advisory.
Only use slack_send_message directly if security.draft_only is false AND security.custom_input (or the user in-session) explicitly authorises direct send for this run.
When the source was a Slack message and the draft channel equals the source channel (the default), always thread the reply by passing thread_ts equal to the source message's ts.
Return a structured summary to the user that covers everything — including the Uncertain and Not-affected items that were deliberately omitted from Slack.
repos. Uncertain scans go under Uncertain, not Not affected.create-ticket → start-task → finish-task.security.draft_only is false and an explicit per-run authorisation is given.Security triage — <date>
- Source: <permalink | channel | pasted>
- Advisories: <n>
- Affected · action required: <n>
- Affected · monitoring: <n>
- Uncertain: <n>
- Not affected: <n>
- Tickets created: <PROJ-###, PROJ-###>
- Slack: draft <id> in <#channel>[, threaded on <source ts>] | posted to <#channel>
- Scanned repos: <list>
- Scanners run: <e.g. osv, trivy, npm-audit | "none — manual evidence only">
- Skipped repos: <list or "none">
### For you only (not in Slack)
**Uncertain (<n>)**
- <advisory> — <specific question blocking classification>
**Not affected (<n>)**
- <advisory> — <one-line reason with file evidence, e.g. "no `axios` in any package.json or lockfile", "dbt profiles.yml uses type: postgres, no Snowflake">
Always produce the "For you only" block even when empty (write "none") so the user sees the full picture and can sanity-check what was omitted from Slack.
If a step could not complete, say exactly which step stopped and why.
scripts/auto-scan.sh (opens in a new tab)scripts/check-cve.sh (opens in a new tab)scripts/install-deps.sh (opens in a new tab)scripts/scan-docker-image.sh (opens in a new tab)scripts/scan-installed-npm.sh (opens in a new tab)scripts/scan-installed-pip.sh (opens in a new tab)scripts/scan-npm-audit.sh (opens in a new tab)scripts/scan-osv.sh (opens in a new tab)scripts/scan-pip-audit.sh (opens in a new tab)scripts/scan-snyk.sh (opens in a new tab)scripts/scan-trivy.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vecten/sdlc-toolkit --plugin sdlc-toolkit13 skills in this plugin
/analyse-taskAnalyse a ticket from the configured PM tool, gather context from the codebase, produce a tech or non-tech plan, update the ticket, prepare questions for PM/client, send a Slack notification, and draft a client email. Use when the user says "analyse task", "analyze ticket", "plan task", "review ticket", "what does this ticket need", or provides a ticket URL/ID with analysis intent.
/bootstrap-configAuto-generate or update the skills-config.yaml file for the current workspace. Scans repos, resolves PM tool and Slack IDs, asks structured questions for gaps. Use when the user says "bootstrap config", "setup skills config", "update skills config", "initialize workspace", or when any other skill detects that skills-config.yaml is missing.
/create-releasePrepares and opens a release branch from the dev branch using release/YYYY-MM-DD, supports per-repo target branches from config, collects changes, enriches release notes with PM tool metadata, pushes branch, creates a PR, and optionally notifies Slack. Use when the user asks to create, cut, or prepare a release.
/create-ticketCreate a structured issue in the configured PM tool with required metadata prompts, defaults, cached IDs from skills-config.yaml, and fallback ID refresh. Use when user says "create ticket", "open ticket", "log request", or similar.
/debug-sentryInvestigate a Sentry issue from a provided Sentry URL, explain the likely root cause, propose a mitigation plan, create a ticket in the configured PM tool, then hand off implementation start to the start-task skill and wrap-up to the finish-task skill when appropriate. Use when the user says "debug sentry", "sentry", "fix sentry issue", or provides a Sentry issue link.
/finish-releaseWrap up a production release by updating tickets to Done in the configured PM tool and drafting a client-facing release email. Use when the user says "finish release", "close release", "release done", "post-release", "release deployed", or asks to prepare a release email or mark released tickets as done.