Skip to content

feat: /fortress - 1001-vector security audit with auto-fix - #1011

Closed
andreycpu wants to merge 1 commit into
garrytan:mainfrom
andreycpu:fortress-skill
Closed

andreycpu wants to merge 1 commit into
garrytan:mainfrom
andreycpu:fortress-skill

Conversation

@andreycpu

Copy link
Copy Markdown

Summary

Adds /fortress, a companion to /cso. While /cso audits and reports (read-only), /fortress audits AND fixes - every finding gets an autonomous fix committed atomically.

  • 1001 attack vectors across 90 security domains - the most comprehensive security taxonomy embedded in any AI coding tool
  • Auto-fix engine - finds vulnerabilities, writes fixes, commits each one atomically with the vector number in the commit message
  • Scored report (0-100) with before/after comparison and trend tracking across runs
  • Parallel verification - Agent sub-tasks independently verify findings before fixing
  • Posture checklist - non-code-scannable domains (physical, social engineering, compliance) get a structured assessment
  • Multiple modes - --scan-only, --fix-only, --diff, --domain N, --critical-only

Coverage includes:

Injection (SQL, NoSQL, command, template, SSTI, XML, serialization), Client-side (XSS, CSRF, clickjacking, prototype pollution), Authentication (JWT, OAuth, sessions), Authorization (IDOR, mass assignment, path traversal, CORS), Cryptography, SSRF, API security (BOLA, GraphQL), AI/ML (prompt injection, RAG poisoning, tool abuse), Infrastructure (cloud IAM, containers, IaC, CI/CD, supply chain), Business logic, Secrets management, Configuration, Monitoring gaps, and 50+ more domains.

Why this belongs in gstack:

/cso catches vulnerabilities. /fortress catches AND fixes them. Together they cover both workflows - audit mode for visibility, fortress mode for action. The 1001-vector taxonomy is a serious reference that makes every gstack-powered codebase more secure.

Test plan

  • bun test passes (skill validation)
  • bun run gen:skill-docs includes fortress in output
  • /fortress --scan-only produces findings report on a test repo
  • /fortress on a repo with known vulnerabilities finds and fixes them
  • /fortress --diff scans only changed files
  • Atomic commits have correct format with vector numbers

🤖 Generated with Claude Code

Companion to /cso. While /cso audits and reports (read-only), /fortress
audits AND fixes - every finding gets an autonomous fix committed atomically.

Covers 90 security domains with 1001 attack vectors:
- Injection (SQL, NoSQL, command, template, SSTI, XML, serialization)
- Client-side (XSS, CSRF, clickjacking, prototype pollution)
- Authentication (JWT, OAuth, sessions, credential management)
- Authorization (IDOR, mass assignment, path traversal, CORS)
- Cryptography (weak hashing, hardcoded keys, missing TLS)
- SSRF (basic, blind, DNS rebinding, cloud metadata)
- API security (BOLA, GraphQL, rate limiting, verbose errors)
- AI/ML (prompt injection, RAG poisoning, tool abuse, LLM output handling)
- Infrastructure (cloud IAM, containers, IaC, CI/CD, supply chain)
- Business logic (race conditions, payment bypass, workflow bypass)
- Secrets (git history archaeology, env files, CI logs, Docker layers)
- Configuration (debug mode, security headers, SRI, server disclosure)
- Plus 50+ more domains covering monitoring, compliance, DNS, privacy,
  webhooks, microservices, edge computing, and defensive tooling gaps

Key differences from /cso:
- /cso is read-only. /fortress finds AND fixes.
- Each fix is an atomic commit with vector number in the message.
- Scored report (0-100) with before/after comparison.
- Parallel verification and fixing via Agent sub-tasks.
- Posture checklist for non-code-scannable domains.
- Trend tracking across runs via .gstack/fortress-reports/

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@garrytan

Copy link
Copy Markdown
Owner

Thanks @andreycpu — the auto-fix concept is genuinely interesting. But /fortress overlaps with /cso, and gstack's approach is methodology depth over feature count. We'd rather make /cso amazing than add a parallel security skill.

If you want to contribute here, the highest-value path is adding a --fix flag to /cso with a curated set of auto-fixable patterns. Start with 10-20 fixes that are provably safe (like the ones in our slop-scan.config.json), not 1001. Quality over quantity, and a pattern list with real fixes you've verified beats a long taxonomy you haven't.

Closing. Happy to review a /cso --fix PR if you want to tackle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants