security-deepsec
Run a generic DeepSec-backed security review and remediation burndown for one or more target repositories. Use when asked to audit a repo, app area, service family, frontend/backend/client/SDK surface, infrastructure, or security-sensitive workflow with DeepSec; when asked to create local audit artifacts, GitHub security issues, checksite coverage, finding reports, spec/AC/test traceability, or a repeatable security burndown process.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- security-deepsec
- description
- Run a generic DeepSec-backed security review and remediation burndown for one or more target repositories. Use when asked to audit a repo, app area, service family, frontend/backend/client/SDK surface, infrastructure, or security-sensitive workflow with DeepSec; when asked to create local audit artifacts, GitHub security issues, checksite coverage, finding reports, spec/AC/test traceability, or a repeatable security burndown process.
02 资源文件 3
- 参考文档agents/openai.yaml243 B
- 参考文档references/artifact-templates.md3.3 KB
- 参考文档references/checksite-catalog.md7.5 KB
03 SKILL.md 正文
Security DeepSec
If this plugin is not initialized or an Agent IX command fails, read the dev-tools setup guide for its prerequisites and local diagnosis.
Run a DeepSec-assisted audit as an evidence-first security review. Treat DeepSec as a candidate generator and investigation accelerator, not as the whole audit. The required output is a durable, traceable burndown: local artifacts for complete coverage plus GitHub issues for promoted findings.
Core Rules
- Read local project instructions first:
AGENTS.md,CLAUDE.md, README, specs, Makefiles, and repo-specific docs. - Prefer repo-local DeepSec docs and tooling when
.deepsec/node_modules/deepsecexists. - If DeepSec is not installed in the target workspace, locate an approved local DeepSec clone or ask before installing/downloading dependencies.
- Keep audit artifacts local unless the user explicitly asks otherwise. Default to
<target-repo>/.deepsec/findings/<run-id>/. - Record every reviewed checksite, including negative review results. A complete audit includes "checked and no finding" evidence, not only promoted findings.
- Promote a finding only when file evidence, reachable behavior, impact, and remediation are clear enough to survive code review.
- For every finding, decide whether it needs a spec update, acceptance criteria update, and new tests tagged with the criterion ids they assert (the test matrix is computed by
quire matrix; do not hand-edit it). - Do not close GitHub issues until resolution comments include the tag, if any, and exact verification output.
Workflow
-
Define scope
- Identify target repos/packages from the user's request instead of assuming names.
- Record included and excluded repos, missing requested repos, and why.
- Detect tech stacks from package manifests, lockfiles, framework config, service manifests, route/client directories, infra manifests, and deployment entry points.
-
Prepare DeepSec
- Use an existing
.deepsecworkspace when present. - If initialization is needed, ask before installing or downloading dependencies.
- Keep
INFO.mdshort and project-specific: entry-point conventions, auth/session helpers, authorization and tenant/org scope, SDK/client primitives, data stores, background jobs, and deployment boundaries. - Run from
.deepsec/when using the CLI:pnpm deepsec scan,pnpm deepsec process, optionalpnpm deepsec revalidate, thenpnpm deepsec export --format md-dir --out ./findings.
- Use an existing
-
Inspect checksite coverage
- Export or inspect DeepSec data to enumerate candidate sites by file, matcher slug, severity, and status.
- Compare candidates against real entry points and sensitive flows. Add manual checksites for anything DeepSec does not cover.
- For custom or missing patterns, read DeepSec
docs/writing-matchers.mdand decide whether a custom matcher is warranted. - Use references/checksite-catalog.md for built-in DeepSec areas, manual review categories, and domain-specific examples.
-
Manually investigate
- Read code around each candidate and adjacent trust boundaries.
- Trace source to sink: user input, identity/session state, redirect URL, tenant/org ID, auth header, cookie, cache key, telemetry/log, route guard, server call, queue message, file path, SQL/query builder, or cloud resource.
- Confirm server-side assumptions. UI-only restrictions are never sufficient evidence of enforcement.
- Mark false positives and no-finding checksites explicitly with reason.
-
Create local artifact package
- Use the structure in references/artifact-templates.md.
- Include
INDEX.md,CHECKSITES.json,BURNDOWN.md,GITHUB.md,reports/*.md, and per-project checksite notes. - Keep local paths stable and include enough evidence that another agent can resume the audit.
-
Create GitHub issues for promoted findings
- Use the GitHub app or
ghif available. - Label every finding issue
security,ai-handled, anddeepsec. - Add issues to the security review project when possible.
- Include summary, impact, evidence with file/line refs, recommended remediation, verification checklist, spec/AC/test impact, and local report path.
- Create or update an index issue that links all finding issues and summarizes scope/checksite coverage.
- Use the GitHub app or
-
Remediate only when requested or clearly in scope
- Implement fixes in the owning repo, using existing patterns.
- Add focused tests for the failing security invariant and any spec/AC updates.
- Run repo-native lint/test commands, using
makewhere available. - Use Docker for permission cleanup when generated files are owned by root or containers.
- Commit each repo separately with clear messages. Push, merge, tag, and close issues only when requested or explicitly approved.
Finding Standard
A promoted finding must have:
- Reachability: how the vulnerable path can execute.
- Trust boundary: what input, identity, tenant, browser state, service principal, job payload, file, network peer, or external actor is untrusted.
- Broken invariant: the exact security property that fails.
- Impact: plausible unauthorized access, token/secret exposure, injection, XSS, CSRF, account enumeration, tenant escape, cache collision, data corruption, SSRF, RCE, or policy bypass.
- Evidence: file/line references and relevant code behavior.
- Fix: concrete remediation with criterion-tagged tests and spec/AC changes if needed.
If any part is uncertain, keep the item as a candidate or research note instead of filing it as a finding.
Commands
Use these from a DeepSec workspace when applicable:
pnpm deepsec status
pnpm deepsec scan
pnpm deepsec process
pnpm deepsec revalidate
pnpm deepsec export --format md-dir --out ./findings
pnpm deepsec metrics
Use matcher-specific scans for calibration:
pnpm deepsec scan --matchers <slug1>,<slug2>
If the user asks for a complete audit, do not stop at DeepSec output. Reconcile DeepSec candidates, manual code review, specs, tests, and GitHub issue coverage.
04 同仓库更多 Skills
assurance-onboarding
Capture a generic handoff in the fixture host.
writing-tests-typescript
Instructions for writing TypeScript tests (Jest), including typed mocks and testing patterns.
writing-tests-react
Index to React component testing guides.
writing-tests-python
Instructions for writing Python tests (pytest), including mocking, fixtures, and golden path standards.
writing-tests-pg-data
Instructions for writing tests for PG Data services, likely involving database fixtures and integration tests.
rust-style
Agent IX Rust conventions for every Rust coding and review task. Load this baseline even when the repository has additional Rust guidance; read the linked API, implementation, safety, boundary, testing, and Tokio references for the work at hand.