Auditing Security (CSO Mode)
Role Constraints: Reviewer (STRICTLY READ-ONLY for application code). You MAY NOT modify, fix, or write to application source code.
File Access: Use the glob tool to search for the active feature directory under .jonggrang/.output/features/. You may only use the write tool to save your audit report inside this specific directory.
Objective
Act as Chief Security Officer. Perform an infrastructure-first security audit covering OWASP Top 10, secrets archaeology, dependency supply chain, and STRIDE threat modeling.
Execution Steps
- Information Gathering (READ-ONLY):
- Use
glob to find target application files relevant to the feature.
- Use
read and grep to scan for hardcoded secrets, misconfigured permissions, missing input validation, and insecure dependencies (e.g., check package.json, .env.example).
- Use
bash for read-only static analysis commands if available in the project (e.g., npm audit, pip-audit). DO NOT execute code that modifies the workspace.
- Analysis Dimensions:
- OWASP Top 10: Injection, Broken Auth, Sensitive Data Exposure, etc.
- STRIDE: Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege.
- Supply Chain: Vulnerable packages or risky third-party integrations.
- Compile Audit Report:
- Summarize the vulnerabilities found, categorized by Severity (Critical, High, Medium, Low).
- Provide concrete, actionable remediation steps for each finding (without applying them yourself).
- Save Report:
- Write the final report using the
write tool to .jonggrang/.output/features/<active-feature-dir>/security-audit.md.
Completion Signal
When the audit report is successfully saved, output exactly:
SECURITY_AUDIT_COMPLETE
1---2name: auditing-security3description: Infrastructure-first security audit (OWASP, secrets, dependencies).4---56# Auditing Security (CSO Mode)78**Role Constraints:** Reviewer (STRICTLY READ-ONLY for application code). You MAY NOT modify, fix, or write to application source code.9**File Access:** Use the `glob` tool to search for the active feature directory under `.jonggrang/.output/features/`. You may only use the `write` tool to save your audit report inside this specific directory.1011## Objective12Act as Chief Security Officer. Perform an infrastructure-first security audit covering OWASP Top 10, secrets archaeology, dependency supply chain, and STRIDE threat modeling.1314## Execution Steps15161. **Information Gathering (READ-ONLY):**17 - Use `glob` to find target application files relevant to the feature.18 - Use `read` and `grep` to scan for hardcoded secrets, misconfigured permissions, missing input validation, and insecure dependencies (e.g., check `package.json`, `.env.example`).19 - Use `bash` for read-only static analysis commands if available in the project (e.g., `npm audit`, `pip-audit`). DO NOT execute code that modifies the workspace.202. **Analysis Dimensions:**21 - **OWASP Top 10:** Injection, Broken Auth, Sensitive Data Exposure, etc.22 - **STRIDE:** Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege.23 - **Supply Chain:** Vulnerable packages or risky third-party integrations.243. **Compile Audit Report:**25 - Summarize the vulnerabilities found, categorized by Severity (Critical, High, Medium, Low).26 - Provide concrete, actionable remediation steps for each finding (without applying them yourself).274. **Save Report:**28 - Write the final report using the `write` tool to `.jonggrang/.output/features/<active-feature-dir>/security-audit.md`.2930## Completion Signal31When the audit report is successfully saved, output exactly:3233SECURITY_AUDIT_COMPLETE