caro.security.update
БесплатноБез исполняемых скриптовНе проверенMaintainer skill to draft a CVE rule YAML via Nimble for a specific CVE, fill pattern + test_cases, and open a PR. Used off-cycle when a 0day lands between…
от wildcard★ 41 звезда на GitHubОб этом скилле
caro.security.update Skill
Purpose: Manually trigger the Nimble CVE authoring pipeline for a single CVE (or a batch) outside the weekly cron window. Use this when a high-severity 0day is disclosed and protection shouldn't wait until Monday 09:00 UTC.
Spec: specs/010-nimble-cve-pipeline/
Companion workflow: .github/workflows/cve-rule-sync.yml
Orchestrator script: scripts/nimble-cve-sync.ts
When to Use
- A CVE or 0day lands with CVSS ≥ 7.0 and a plausible shell-invocation vector
- The weekly cron won't run for > 24h and the exposure window matters
- You want to re-author an existing rule after the advisory was amended
- You are reviewing an auto-drafted PR and want to fill the
TODO_NIMBLE_AUTHOREDplaceholder without leaving the CLI
Do not use for:
- Non-shell CVEs (daemons, kernels, libraries without a shell attack surface)
- User-local custom rules — that's Dogma tier-3 (
~/.caro/rules/) - Generic pattern additions not tied to a CVE — use
safety-pattern-developerinstead
Prerequisites
- Maintainer access to
wildcard/caro - Working
ghCLI auth scripts/node_modules/installed (cd scripts && npm ci)- Nimble access: either
NIMBLE_API_KEYin env fornimbleCLI, OR thenimble-agentsMCP server available in the Claude session - Optional:
NVD_API_KEYenv var to raise NVD rate limit
Workflow
Phase 1 — Identify the CVE (2 min)
Confirm the CVE ID and authoritative source. Default to the NVD detail page:
https://nvd.nist.gov/vuln/detail/CVE-YYYY-NNNNN. If the CVE isn't in NVD
yet (freshly-assigned MITRE IDs can lag 24-48h), use the upstream advisory.
Capture:
- CVE ID (format
CVE-YYYY-NNNNN) - Advisory URL (NVD preferred; GHSA / vendor page acceptable)
- Disclosure date (ISO
YYYY-MM-DD) - CVSS base score
- Affected shell tool(s) — if none, stop here; this skill is out of scope.
Phase 2 — Fetch + draft (1 min)
From repo root on a fresh feature branch:
bin/sk-new-feature "security cve <cve-id>"
cd .worktrees/NNN-security-cve-<cve-id>
# Fetch the specific CVE window from NVD + KEV + GHSA.
# Use a 2-day window centered on disclosure for max recall.
npx -w scripts tsx scripts/nimble-cve-sync.ts \
--since $(date -d '<disclosed> - 1 day' +%Y-%m-%d) \
--max 5
Check that data/cve_rules/CVE-YYYY-NNNNN.yaml exists. If the sync didn't
produce it (CVE not yet in any feed), hand-draft the skeleton:
cp data/cve_rules/EXAMPLE-TEMPLATE.yaml data/cve_rules/CVE-YYYY-NNNNN.yaml
$EDITOR data/cve_rules/CVE-YYYY-NNNNN.yaml
Phase 3 — Author the pattern via Nimble (5-15 min)
The draft YAML has pattern: TODO_NIMBLE_AUTHORED and test_cases: [].
These are the model-authored parts. Two paths:
Path A — Nimble MCP (preferred inside Claude Code):
Ask Claude with the nimble-agents MCP available:
Use
nimble_extracton the CVE advisory URL, thennimble_agents_runwith thecve-pattern-authoragent (ornimble_searchfor advisories that need synthesis) to propose:
- A regex
patternthat matches exploit invocations without false-positiving on benign shell usage- At least 2
test_caseswithexpected_behavior: Blockthat exercise the exploit trigger- At least 2
test_caseswithexpected_behavior: Allowthat exercise nearby benign commandsWrite the result directly into
data/cve_rules/CVE-YYYY-NNNNN.yaml.
Path B — Nimble CLI (scripting / CI):
nimble extract "https://nvd.nist.gov/vuln/detail/CVE-YYYY-NNNNN" \
--focus academic \
> /tmp/cve-context.md
# Feed /tmp/cve-context.md to your pattern-generation prompt, then
# edit the YAML file with the proposed pattern + test_cases.
Phase 4 — Validate (30 sec)
npx -w scripts tsx scripts/validate-cve-yaml.ts \
data/cve_rules/CVE-YYYY-NNNNN.yaml
Must exit 0. Common failures:
| Error | Fix |
|---|---|
risk_level — must be one of [safe, moderate, high, critical] |
Lowercase only |
test_cases — must contain at least one expected_behavior: Allow case |
Add a benign command that must NOT be blocked |
id — must match filename stem |
Filename and YAML id: must agree |
pattern — not a valid regex |
Escape ., $, ` |
Phase 5 — Local smoke test (1 min)
Build with the new rule and confirm it blocks the exploit:
cargo build --release --features cve-rules
./target/release/caro --version | grep 'CVE rules:'
# Replace with a Block test case from your YAML:
./target/release/caro --dry-run "<exploit invocation>"
# Expect: ✗ BLOCKED with the CVE ID in the reason string.
# And a benign Allow test case:
./target/release/caro --dry-run "<benign invocation>"
# Expect: ✓ allowed (not blocked by the new rule).
Phase 6 — Open PR (2 min)
git add data/cve_rules/CVE-YYYY-NNNNN.yaml
git commit -m "feat(cve-rules): add CVE-YYYY-NNNNN pattern
Adds pattern for <one-line CVE summary>. CVS
Установить caro.security.update в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл caro.security.update?
Maintainer skill to draft a CVE rule YAML via Nimble for a specific CVE, fill pattern + test_cases, and open a PR. Used off-cycle when a 0day lands between weekly cron runs.
Как установить скилл caro.security.update?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл caro.security.update запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic