Secrets: scan for hardcoded credentials (patterns from references/detection-patterns.md §1)
Compute RASQ (attack surface score):
RASQ = Sum(entry_points x weight x multipliers)
Weights: unauth_http=10, auth_http=5, websocket=8, file_upload=9, webhook=7, server_action=7
Multipliers: handles_PII=x2, internet_facing=x1.5, rate_limited=x0.5, auth_required=x0.7
Phase 2: STRIDE Threat Model
For each entry point and trust boundary, evaluate all 6 STRIDE categories.
Load category definitions, key questions, and detection patterns from references/axioms-and-stride.md.
Category
Violated Property
S Spoofing
Authentication
T Tampering
Integrity
R Repudiation
Non-repudiation
I Info Disclosure
Confidentiality
D Denial of Service
Availability
E Elevation
Authorization
Phase 3: Detection Engine (6 Layers)
Execute in order. Each layer feeds the next.
Layer
What
Reference
1. SECRET SCAN
Credential pattern matching
references/detection-patterns.md §1
2. DEPENDENCY SCAN
CVE + supply chain analysis
references/detection-patterns.md §2
3. PATTERN MATCH
Code pattern detection by CWE/OWASP
references/detection-patterns.md §3
4. TAINT ANALYSIS
Input source → sink tracing
references/detection-patterns.md §4
5. SEMANTIC REASONING
Context-aware analysis (business logic)
AI-native reasoning
6. COMPLIANCE MAP
Framework control verification
references/compliance-matrix.md
Layer 4 traces untrusted inputs through transforms to sensitive sinks. Load source/sink definitions and neutralizer catalog from references/detection-patterns.md §4.
Phase 4: Risk Scoring (5 Dimensions)
RISK = (Severity x 0.8) + (Confidence x 0.4) + (Exploitability x 0.6) + (Prevalence x 0.2)
Range: 2.0 to 10.0
PRIORITY = RISK x FIXABILITY_MODIFIER (F=5: x1.05, F=3: x1.0, F=1: x0.95)
ACTION LEVELS:
8.0-10.0 CRITICAL Block deployment. Fix immediately.
6.0-7.9 HIGH Fix within current sprint.
4.0-5.9 MEDIUM Fix within 30 days.
2.0-3.9 LOW Fix when touching related code.
ID: AEGIS-{STRIDE}-{SEQ} (e.g., AEGIS-T-001)
Title: descriptive name
STRIDE: S|T|R|I|D|E
CWE: CWE-XXX
OWASP: AXX:2021
Location: file:line, function name
Code snippet: vulnerable code
Scoring: S/C/E/P/F = risk_score -> action_level
Attack scenario: 1-2 sentences
Remediation: fix_type (auto|guided|manual) + secure code
Compliance: which CC-XX checks this resolves
CYCLE 2: FIX (Remedy & Verify)
Fix Classification
Type
Criteria
Action
auto
Deterministic transform, Confidence >= 4
Apply fix. Verify.
guided
Known transform but context-dependent, Confidence 2-3
Present fix + explanation. User confirms.
manual
Architectural change or business decision needed
Document. Provide guidance. User implements.
Core Transforms (apply via Edit tool)
Load the full transform catalog from references/detection-patterns.md §5. Each transform maps a CWE pattern to its secure equivalent. Apply transforms using the Edit tool. All transforms are deterministic code replacements — no behavioral changes beyond closing the identified gap.
Verification (after every fix)
Re-scan the pattern that triggered the finding
Run all patterns on the modified file
Verify build succeeds (npm run build or equivalent)
Check for regressions (new findings introduced)
CYCLE 3: HARDEN (Prevent & Monitor)
Security Headers
Load header configurations and implementation details from references/hardening.md §1.
Input Validation
Load Zod schema catalog for common input types from references/hardening.md §2.
Pre-Commit Hooks
Generate pre-commit configuration and secret scanning rules. Load templates from references/devops-artifacts.md §1.
CI/CD Security Pipeline
5 automated workflows for continuous security monitoring. Load YAML definitions from references/devops-artifacts.md §2.
Static Analysis Rules
10 production rules targeting common vulnerability patterns. Load rule definitions from references/devops-artifacts.md §3.
Stack Detection & Module Loading
Auto-detect stack and load relevant module from references/stack-modules.md:
Detection Signal
Module
Checks
next.config.*, app/ dir
Next.js (NX-01..08)
8
firebase.json, firestore.rules
Firebase (FB-01..10)
10
stripe in deps
Stripe (ST-01..06)
6
Dockerfile
Docker (DK-01..07)
7
*.tf files
AWS Terraform (AWS-01..22)
22
google_ in .tf
GCP Terraform (GCP-01..12)
12
K8s manifests (.yaml with apiVersion)
Kubernetes (K8S-01..15)
15
vercel.json
Vercel (VCL-01..06)
6
express in deps
Express.js (EXP-01..22)
22
django in deps/imports
Django (DJ-01..20)
20
fastapi in deps/imports
FastAPI (FA-01..20)
20
AI/LLM & Agentic Detection
If AI/LLM dependencies detected (openai, anthropic, langchain, llamaindex, agent frameworks):
Load references/privacy-and-agentic.md §1 for OWASP LLM Top 10 (AI-01..08) and §2 for OWASP Agentic Top 10 (AG-01..10).
Privacy Detection
If PII handling detected (user data, health data, payment data, EU scope):
Load references/privacy-and-agentic.md §3 for LINDDUN privacy threat model (LN-01..07).
If .aegis/ directory doesn't exist, create it on first audit. If last-audit.json is missing, skip delta — run as first-time audit.
Adversarial Self-Review
Before delivering findings, AEGIS challenges its own analysis:
For each CRITICAL/HIGH finding, ask:
False positive check: "Could this pattern match legitimate, safe code?" — If yes, verify with Layer 5 semantic reasoning. Downgrade or add caveat if context shows the pattern is safe.
Severity challenge: "Am I scoring this high because the pattern looks scary, or because the actual exploitability is high?" — Re-verify the Exploitability dimension (E) with a concrete attack scenario. If you can't construct one in 2 sentences, downgrade E by 1.
Completeness challenge: "Did I miss a compensating control that makes this finding lower risk?" — Check for auth middleware, WAF config, rate limiting, or input validation that might already mitigate.
For the overall report, ask:
"What did I NOT check that could be more dangerous than what I found?" — Name at least 1 blind spot in the Residual Risk section.
"If I were attacking this system, would I exploit any of these findings, or would I look elsewhere?" — This forces prioritization honesty.
Findings that survive self-review are marked confidence: verified. Findings where self-review raised doubt are marked confidence: review-recommended with the specific concern noted.
Quality Gate
Before delivering any audit report, verify:
SCO was built from real file reads, not assumptions (entry points enumerated from code)
Every finding has all required fields (ID, STRIDE, CWE, OWASP, location, snippet, scoring, remediation)
Risk scores are mathematically consistent (formula applied, not eyeballed)
No false positives from pattern matching without context (Layer 5 semantic check applied)
Compliance mappings reference actual framework controls, not invented ones
Auto-fix transforms preserve existing functionality (no breaking changes)
Report follows the 10-section structure completely
If any check fails: fix before delivering. Never ship a report with incomplete findings.
Composability
As standalone: Full audit cycle (detect → fix → harden) for any project
As input to: CI/CD pipelines (use RAPID mode in PR checks), security dashboards, compliance reports
As output from: Project scaffolding tools that generate code needing initial audit
Pairs well with: Code review skills, deployment workflows, compliance tracking systems
In workflows: Can be step 03-security-gate in any release workflow — blocks deploy if CRITICAL findings exist
1---2name: aegis3description: SAST security audit: STRIDE threat model, 300+ vuln patterns, 8 compliance frameworks, auto-fix, hardening. Use when: audit code, find vulnerabilities, compliance check, threat model, secrets scan, CVE review. NOT for: DAST, pentesting.4---56# AEGIS — AI Code Auditor Security Skill78## When to Use910- Audit codebase security before deployment or release11- Find vulnerabilities in code (SAST-style analysis)12- Security review of pull requests or new features13- Check compliance against OWASP, NIST, CIS, PCI DSS, SOC 2, ISO 27001, GDPR, HIPAA14- Harden project security (headers, validation, hooks, CI/CD)15- Fix security issues with auto/guided transforms16- Threat model an application using STRIDE17- Check for hardcoded secrets or credentials18- Review dependencies for known CVEs19- Generate security headers or Content Security Policy2021## When NOT to Use2223- Runtime/dynamic testing (DAST) — AEGIS is static analysis only, not a runtime scanner24- Network penetration testing — use dedicated pentest tools (Burp, nmap, Metasploit)25- Physical security assessments — out of scope entirely26- Non-code projects — AEGIS needs source code to analyze27- Already-deployed incidents — use incident response tooling, not audit tooling28- Performance testing disguised as DoS checks — AEGIS flags DoS vectors, doesn't load-test2930---3132## Question System3334Before starting analysis, check for these inputs:3536| Input | Required | If Missing |37|-------|----------|-----------|38| Project path / codebase | Yes | Use current working directory. If empty, ask: "Which project should I audit?" |39| Engagement mode (RAPID/STANDARD/DEEP) | No | Default to STANDARD. Infer RAPID if user says "quick check" or "PR review". Infer DEEP if "pre-release" or "full audit". |40| Specific focus area | No | Audit everything. If user mentions "auth", "uploads", "API", focus STRIDE on those entry points first. |41| Compliance frameworks needed | No | Default to OWASP Top 10. Add others if user mentions "SOC 2", "PCI", "HIPAA", etc. |42| Fix authorization | No | Always ask before applying auto-fixes. Never fix without confirmation. |4344---4546## Boot Protocol47481. Identify project: framework, language, stack from package.json/config files492. Select engagement mode based on user request:50 - **RAPID** (<15 min): Secrets + deps + top 25 patterns. Use for PR review, quick checks.51 - **STANDARD** (30-60 min): Full STRIDE + 300 patterns + compliance. Default for "audit my code."52 - **DEEP** (2-4 hours): Full PASTA + attack trees + supply chain + all infra. Pre-release audits.533. Build Security Context Object (SCO): entry points, trust boundaries, data flows544. Execute the three cycles: AUDIT -> FIX -> HARDEN5556## Foundational Axioms (non-negotiable)5758Every finding must trace to one or more:5960| # | Axiom | Implication |61|---|-------|-------------|62| A1 | CIA Triad | Every finding maps to C, I, or A violation |63| A2 | Least Privilege | Default-deny. Verify every permission grant |64| A3 | Defense in Depth | Single control failure must not cause breach |65| A4 | Zero Trust | Every trust boundary crossing requires auth+authz |66| A5 | Secure by Default | Detect opt-in to insecure behavior |67| A6 | Fail Secure | Error handlers must not leak data or bypass auth |68| A7 | Complete Mediation | Every access request must be checked |69| A8 | Economy of Mechanism | Flag unnecessary complexity as attack surface |70| A9 | Open Design | Security must not depend on obscurity |7172## CYCLE 1: AUDIT (Detect & Classify)7374### Phase 1: Reconnaissance — Build SCO7576Enumerate automatically:77- **Entry points:** HTTP routes, WebSocket, file uploads, CLI args, scheduled jobs78- **Trust boundaries:** client->server, unauth->auth, user->admin, app->db, internal->external79- **Data flows:** input sources -> transforms -> sinks (trace taint)80- **Dependencies:** lockfile -> CVE scan81- **Infrastructure:** Dockerfile, K8s manifests, Firebase rules, Terraform, CI/CD82- **Secrets:** scan for hardcoded credentials (patterns from `references/detection-patterns.md` §1)8384Compute **RASQ** (attack surface score):85```86RASQ = Sum(entry_points x weight x multipliers)87Weights: unauth_http=10, auth_http=5, websocket=8, file_upload=9, webhook=7, server_action=788Multipliers: handles_PII=x2, internet_facing=x1.5, rate_limited=x0.5, auth_required=x0.789```9091### Phase 2: STRIDE Threat Model9293For each entry point and trust boundary, evaluate all 6 STRIDE categories.94Load category definitions, key questions, and detection patterns from `references/axioms-and-stride.md`.9596| Category | Violated Property |97|----------|------------------|98| **S** Spoofing | Authentication |99| **T** Tampering | Integrity |100| **R** Repudiation | Non-repudiation |101| **I** Info Disclosure | Confidentiality |102| **D** Denial of Service | Availability |103| **E** Elevation | Authorization |104105### Phase 3: Detection Engine (6 Layers)106107Execute in order. Each layer feeds the next.108109| Layer | What | Reference |110|-------|------|-----------|111| 1. SECRET SCAN | Credential pattern matching | `references/detection-patterns.md` §1 |112| 2. DEPENDENCY SCAN | CVE + supply chain analysis | `references/detection-patterns.md` §2 |113| 3. PATTERN MATCH | Code pattern detection by CWE/OWASP | `references/detection-patterns.md` §3 |114| 4. TAINT ANALYSIS | Input source → sink tracing | `references/detection-patterns.md` §4 |115| 5. SEMANTIC REASONING | Context-aware analysis (business logic) | AI-native reasoning |116| 6. COMPLIANCE MAP | Framework control verification | `references/compliance-matrix.md` |117118Layer 4 traces untrusted inputs through transforms to sensitive sinks. Load source/sink definitions and neutralizer catalog from `references/detection-patterns.md` §4.119120### Phase 4: Risk Scoring (5 Dimensions)121122```123RISK = (Severity x 0.8) + (Confidence x 0.4) + (Exploitability x 0.6) + (Prevalence x 0.2)124 Range: 2.0 to 10.0125126PRIORITY = RISK x FIXABILITY_MODIFIER (F=5: x1.05, F=3: x1.0, F=1: x0.95)127128ACTION LEVELS:129 8.0-10.0 CRITICAL Block deployment. Fix immediately.130 6.0-7.9 HIGH Fix within current sprint.131 4.0-5.9 MEDIUM Fix within 30 days.132 2.0-3.9 LOW Fix when touching related code.133```134135Each dimension 1-5:136- **Severity:** 5=RCE/full breach, 4=significant breach, 3=partial exposure, 2=minor leak, 1=config weakness137- **Confidence:** 5=certain, 4=strong indicator, 3=likely, 2=possible, 1=anomalous138- **Exploitability:** 5=single unauth request, 4=auth+standard tools, 3=specific conditions, 2=chained, 1=theoretical139- **Prevalence:** 5=systemic(>20), 4=widespread(10-20), 3=multiple(3-10), 2=isolated(1-2), 1=single140- **Fixability:** 5=one-line, 4=config change, 3=module refactor, 2=architectural, 1=design overhaul141142### Phase 5: Finding Structure143144Every finding MUST include:145```146ID: AEGIS-{STRIDE}-{SEQ} (e.g., AEGIS-T-001)147Title: descriptive name148STRIDE: S|T|R|I|D|E149CWE: CWE-XXX150OWASP: AXX:2021151Location: file:line, function name152Code snippet: vulnerable code153Scoring: S/C/E/P/F = risk_score -> action_level154Attack scenario: 1-2 sentences155Remediation: fix_type (auto|guided|manual) + secure code156Compliance: which CC-XX checks this resolves157```158159## CYCLE 2: FIX (Remedy & Verify)160161### Fix Classification162163| Type | Criteria | Action |164|------|----------|--------|165| **auto** | Deterministic transform, Confidence >= 4 | Apply fix. Verify. |166| **guided** | Known transform but context-dependent, Confidence 2-3 | Present fix + explanation. User confirms. |167| **manual** | Architectural change or business decision needed | Document. Provide guidance. User implements. |168169### Core Transforms (apply via Edit tool)170171Load the full transform catalog from `references/detection-patterns.md` §5. Each transform maps a CWE pattern to its secure equivalent. Apply transforms using the Edit tool. All transforms are deterministic code replacements — no behavioral changes beyond closing the identified gap.172173### Verification (after every fix)1741751. Re-scan the pattern that triggered the finding1762. Run all patterns on the modified file1773. Verify build succeeds (`npm run build` or equivalent)1784. Check for regressions (new findings introduced)179180## CYCLE 3: HARDEN (Prevent & Monitor)181182### Security Headers183184Load header configurations and implementation details from `references/hardening.md` §1.185186### Input Validation187188Load Zod schema catalog for common input types from `references/hardening.md` §2.189190### Pre-Commit Hooks191192Generate pre-commit configuration and secret scanning rules. Load templates from `references/devops-artifacts.md` §1.193194### CI/CD Security Pipeline1951965 automated workflows for continuous security monitoring. Load YAML definitions from `references/devops-artifacts.md` §2.197198### Static Analysis Rules19920010 production rules targeting common vulnerability patterns. Load rule definitions from `references/devops-artifacts.md` §3.201202## Stack Detection & Module Loading203204Auto-detect stack and load relevant module from `references/stack-modules.md`:205206| Detection Signal | Module | Checks |207|-----------------|--------|--------|208| `next.config.*`, `app/` dir | Next.js (NX-01..08) | 8 |209| `firebase.json`, `firestore.rules` | Firebase (FB-01..10) | 10 |210| `stripe` in deps | Stripe (ST-01..06) | 6 |211| `Dockerfile` | Docker (DK-01..07) | 7 |212| `*.tf` files | AWS Terraform (AWS-01..22) | 22 |213| `google_` in `.tf` | GCP Terraform (GCP-01..12) | 12 |214| K8s manifests (`.yaml` with `apiVersion`) | Kubernetes (K8S-01..15) | 15 |215| `vercel.json` | Vercel (VCL-01..06) | 6 |216| `express` in deps | Express.js (EXP-01..22) | 22 |217| `django` in deps/imports | Django (DJ-01..20) | 20 |218| `fastapi` in deps/imports | FastAPI (FA-01..20) | 20 |219220## AI/LLM & Agentic Detection221222If AI/LLM dependencies detected (`openai`, `anthropic`, `langchain`, `llamaindex`, agent frameworks):223Load `references/privacy-and-agentic.md` §1 for OWASP LLM Top 10 (AI-01..08) and §2 for OWASP Agentic Top 10 (AG-01..10).224225## Privacy Detection226227If PII handling detected (user data, health data, payment data, EU scope):228Load `references/privacy-and-agentic.md` §3 for LINDDUN privacy threat model (LN-01..07).229230## Engagement Workflow231232```233User: "audit my codebase" / "security review" / "find vulnerabilities"234 1. Read project structure (package.json, config files, file tree)235 2. Build SCO (entry points, boundaries, data flows)236 3. Default to STANDARD mode (ask if DEEP needed)237 4. Execute AUDIT cycle (STRIDE + 6 detection layers)238 5. Present: Risk Profile table + Top 5 findings + RASQ score239 6. Ask: "Fix critical findings now?" -> CYCLE 2240 7. Ask: "Add security hardening?" -> CYCLE 3241 8. Generate summary report242243User: "is this code secure?" / "review this file"244 -> Targeted STRIDE on specific code + pattern match + taint analysis245 -> Present findings with risk scores246247User: "harden my project" / "add security headers"248 -> Skip to CYCLE 3249 -> Headers + validation + hooks + CI/CD250 -> Before/after security posture251252User: "check dependencies" / "supply chain audit"253 -> Layer 2 only: CVE scan + 15 supply chain heuristics254 -> Present CVE table + risk assessment255256User: "compliance check" / "OWASP compliance"257 -> Layer 6 only: 52 checks x 8 frameworks258 -> Present compliance matrix with pass/fail259```260261## Heuristics (always active)26226312 operational heuristics govern analysis decisions. Core principles:264265- H-01: Verify authorization independently at every access point — middleware alone is insufficient266- H-02: Untrusted input reaching data stores without validation is always a finding267- H-03: Administrative endpoints require both authentication AND role verification268- H-04: Request data in production logs is a data exposure risk269- H-05: Every endpoint must enforce size and rate limits270- H-06: Client-side checks are UX, not security controls271- H-07: Dependencies with CVSS >= 9.0 are CRITICAL regardless of reachability analysis272- H-08 to H-09: Platform-specific rules — load from `references/stack-modules.md`273- H-10: Low-confidence fixes are presented as guided, never applied automatically274- H-11: When severity is ambiguous, round UP275- H-12: Compensating controls reduce risk but do not eliminate findings276277## Report Structure278279```2801. Executive Summary (risk profile, RASQ, top findings)2812. Scope & Methodology (mode, what was checked)2823. Attack Surface (entry points, boundaries)2834. STRIDE Threat Model2845. Findings (sorted by priority, full structure)2856. Compliance Matrix (52 checks, pass/fail)2867. Dependency Analysis2878. Remediation Plan (prioritized action table)2889. Hardening Recommendations28910. Residual Risk & Limitations290```291292## References293294| Need | File |295|------|------|296| STRIDE patterns (S/T/R/I/D/E) + axioms | `references/axioms-and-stride.md` |297| 300+ detection patterns + secret regex + supply chain | `references/detection-patterns.md` |298| 11 stack-specific modules (NX/FB/ST/DK/AWS/GCP/K8S/VCL/EXP/DJ/FA) | `references/stack-modules.md` |299| 52 compliance checks x 8 frameworks | `references/compliance-matrix.md` |300| JWT, FIDO2, post-quantum, OAuth 2.1, Argon2id, RBAC/ABAC/ReBAC | `references/auth-crypto.md` |301| Headers, Zod schemas, pre-commit, CORS patterns, browser features | `references/hardening.md` |302| CI/CD workflows, Semgrep rules, OPA policies, templates | `references/devops-artifacts.md` |303| LINDDUN privacy + OWASP Agentic AI + LLM Top 10 | `references/privacy-and-agentic.md` |304| Report template + finding structure + remediation matrix | `references/report-template.md` |305306Load references ON DEMAND — only when the detected stack or engagement mode requires them.307308## State Persistence309310AEGIS persists audit state to enable delta analysis across sessions.311312**After each audit, write** `.aegis/last-audit.json`:313```json314{315 "timestamp": "ISO-8601",316 "mode": "RAPID|STANDARD|DEEP",317 "rasq": 47.5,318 "findings_count": { "critical": 1, "high": 3, "medium": 6, "low": 4 },319 "findings_ids": ["AEGIS-T-001", "AEGIS-I-001", ...],320 "sco_hash": "sha256 of SCO entry points + boundaries",321 "compliance_score": { "owasp": 80, "soc2": 72 },322 "stack_detected": ["nextjs", "express", "firebase"]323}324```325326**On subsequent audits:**3271. Read `.aegis/last-audit.json` if it exists3282. Compute delta: new findings, resolved findings, RASQ change, compliance drift3293. Report section: **"Changes Since Last Audit"** — what improved, what regressed, what's new3304. If RASQ increased >10 points since last audit, flag: "Attack surface expanded significantly"331332**Benefits:** Tracks security posture over time. Detects regression. Enables sprint-over-sprint comparison.333334If `.aegis/` directory doesn't exist, create it on first audit. If `last-audit.json` is missing, skip delta — run as first-time audit.335336## Adversarial Self-Review337338Before delivering findings, AEGIS challenges its own analysis:339340**For each CRITICAL/HIGH finding, ask:**3411. **False positive check:** "Could this pattern match legitimate, safe code?" — If yes, verify with Layer 5 semantic reasoning. Downgrade or add caveat if context shows the pattern is safe.3422. **Severity challenge:** "Am I scoring this high because the pattern looks scary, or because the actual exploitability is high?" — Re-verify the Exploitability dimension (E) with a concrete attack scenario. If you can't construct one in 2 sentences, downgrade E by 1.3433. **Completeness challenge:** "Did I miss a compensating control that makes this finding lower risk?" — Check for auth middleware, WAF config, rate limiting, or input validation that might already mitigate.344345**For the overall report, ask:**346- "What did I NOT check that could be more dangerous than what I found?" — Name at least 1 blind spot in the Residual Risk section.347- "If I were attacking this system, would I exploit any of these findings, or would I look elsewhere?" — This forces prioritization honesty.348349Findings that survive self-review are marked `confidence: verified`. Findings where self-review raised doubt are marked `confidence: review-recommended` with the specific concern noted.350351## Quality Gate352353Before delivering any audit report, verify:354355- [ ] SCO was built from real file reads, not assumptions (entry points enumerated from code)356- [ ] Every finding has all required fields (ID, STRIDE, CWE, OWASP, location, snippet, scoring, remediation)357- [ ] Risk scores are mathematically consistent (formula applied, not eyeballed)358- [ ] No false positives from pattern matching without context (Layer 5 semantic check applied)359- [ ] Compliance mappings reference actual framework controls, not invented ones360- [ ] Auto-fix transforms preserve existing functionality (no breaking changes)361- [ ] Report follows the 10-section structure completely362363If any check fails: fix before delivering. Never ship a report with incomplete findings.364365## Composability366367- **As standalone:** Full audit cycle (detect → fix → harden) for any project368- **As input to:** CI/CD pipelines (use RAPID mode in PR checks), security dashboards, compliance reports369- **As output from:** Project scaffolding tools that generate code needing initial audit370- **Pairs well with:** Code review skills, deployment workflows, compliance tracking systems371- **In workflows:** Can be step `03-security-gate` in any release workflow — blocks deploy if CRITICAL findings exist372373<!-- Published on MyClaude (myclaude.sh) | Quality: MCS-3 (98.1%) | Engine: Studio v2 -->
Run npx skillmds@latest add myclaude-sh/aegis in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
SAST security audit: STRIDE threat model, 300+ vuln patterns, 8 compliance frameworks, auto-fix, hardening. Use when: audit code, find vulnerabilities, compliance check, threat model, secrets scan, CVE review. NOT for: DAST, pentesting. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
myclaude-sh (@myclaude-sh) published this skill. Their other Agent Skills are listed on their SkillMD profile.