security-review
Skill57 starsChanged 7 days agoMITView on GitHub
Security assessment workflow in two modes: architectural (design) and code (implementation). Use when a security trigger is detected during planning (architectural mode) or implementation/review (code mode). Covers STRIDE, OWASP, dependency scanning, Azure compliance, and GitHub security alerts. Do not use for general code quality (use frontiersquad.review), for threat modeling as a standalone activity, or for compliance audits.
192 other projects use a version of this.
Adopted by
Most recently taken up by
- bisq-network/bisqtheir own version, first seen Nov 30, 2026
- aayushsoam/clawbot-plustheir own version, first seen Nov 29, 2026
- aixisstudio/claude-skillstheir own version, first seen Nov 29, 2026
- multiplex-ai/muggle-ai-teamstheir own version, first seen Nov 29, 2026
- iamaanahmad/everything-antigravitytheir own version, first seen Nov 29, 2026
- hybridindie/comfyui_mcptheir own version, first seen Nov 29, 2026
Used with
Projects with it also use linkerd-patterns, dependency-cve-sweep and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkilllinkerd-patterns
Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.
Also in 6 projects that use this
berntpoppSkilldependency-cve-sweep
Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.
Also in 12 projects that use this
berntpoppSkillfleet-standard-adoption
Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.
Also in 12 projects that use this
xfstudioSkillteam-composition-analysis
This skill should be used when the user asks to "plan team
Also in 5 projects that use this
HABUBUSSSkillproject-guidelines-example
Also in 17 projects that use this
niloykumarbarmanSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 13 projects that use this
- +2 more from berntpopp
Other versions192 projects use a version of this.
Word for word · 1
- microsoft/frontiersquad-copilot★ 57100% same
Edited · 0
None found.
Wrote their own version · 191
- affaan-m/ECC★ 246ksame name
- github/awesome-copilot★ 42ksame name
- langfuse/langfuse★ 38ksame name
- nearai/ironclaw★ 13ksame name
- joe-bell/cva★ 6.9ksame name
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- bisq-network/bisq★ 5.2ksame name
- github/squad★ 3.5ksame name
- compozy/compozy★ 2.9ksame name
- trycompai/comp★ 2.2ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .github/plugins/frontiersquad/hooks/templates/.github/copilot-instructions.mdCopilot instructions
- adr-workflowSkill
- board-configSkill
- complexity-analysisSkill
- debugging-recoverySkill
- deep-clarificationSkill
- diagram-designSkill
- documentation-styleSkill
- domain-glossarySkill
- engineering-practicesSkill
- git-branchSkill
- git-commitSkill
- harness-learningsSkill
- init-configSkill
- init-docsSkill
- init-scaffoldSkill
- lsp-setupSkill
- next-taskSkill
- pull-requestSkill
- quality-gateSkill
- reasoningSkill
- test-disciplineSkill
- triage-workflowSkill
- work-item-creationSkill
- work-item-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 164 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Do technology decisions have security implications?
- Very specific: line 83
For Microsoft/Azure technologies: Use microsoft_docs_search to check security best practices and known service vulnerabilities
- Very specific: line 84
Use microsoft_docs_fetch to get the complete security hardening guide when a relevant gap is identified
- Very specific: line 87
Use the azure/policy tool to verify whether the proposed infrastructure complies with the organization's policies
- Very specific: line 88
Use the azure/role tool to verify whether the access model follows least privilege (RBAC)
- Very specific: line 89
Use the azure/wellarchitectedframework tool for each Azure service in the architecture to get the security pillar guidance
- Distinctive: line 91
If policies block services proposed in the ADRs, record as a High finding
- Very specific: line 180
If called from implement: review modified files
- Very specific: line 181
If called from review: review files in review scope
- Distinctive: line 182
If explicit mention: review specified files/PR
- Distinctive: line 216
Search for hardcoded credentials in the code
- Very specific: line 217
Verify that environment files are in .gitignore
- Distinctive: line 218
Verify that secrets are not exposed in configuration
- Distinctive: line 220
If there are open alerts, include them as Critical findings.
- Distinctive: line 228
Use the appropriate audit tool for the project stack.
- Distinctive: line 351
No rate limiting on authentication endpoints
- Distinctive: line 359
Does NOT edit code: Only reviews and reports
“Common” is measured: kept by at least 6 in 10 of the 164 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Review
Security Principles
| Principle | Application |
| CIA Triad | Confidentiality, Integrity, Availability in every assessment |
| Defense in Depth | Multiple layers; never rely on a single control |
| Least Privilege | Minimum permissions for each component |
| Secure by Default | Default configurations must be secure |
| Zero Trust | Never trust, always verify |
| Shift Left | Detect issues early in design, not in production |
Mode Detection
Determine the operating mode from the calling agent's context:
Architectural Mode (called from plan):
- Handoff from the
planagent after ADR creation - Feature involves: auth, sensitive data, external APIs, payments
Code Mode (called from implement or review):
- Handoff from the
implementagent after implementation - Reference to specific files or diff
Architectural Mode (Design Security)
When to Execute
This mode is mandatory when the feature involves:
| Trigger | Description |
| Authentication/Authorization | Access control, identity, permissions |
| Sensitive data | Information requiring protection (credentials, personal data) |
| External integrations | Communication with systems outside the trust boundary |
| Exposed endpoints | Interfaces accessible by users or external systems |
| Data persistence | Storage of information that crosses boundaries |
Execution Flow
- Read design artifacts:
plan.md- Stack and architecturedocs/architecture/decisions/*.md- ADRsspec.md- Requirements and user stories
- Identify attack surface:
## Attack Surface | Component | Exposure | Data | Initial Risk | |-----------|----------|------|--------------| | [endpoint] | [public/internal] | [data type] | [low/medium/high] | - Map trust boundaries:
- Where does data cross trust boundaries?
- Which components are external vs internal?
- Where is authentication/authorization applied?
Apply STRIDE (simplified):
Threat Question Typical Control Spoofing Can someone impersonate another? Strong authentication Tampering Can data be altered? Integrity, signatures Repudiation Can actions be denied? Logging, audit trail Info Disclosure Can data leak? Encryption, ACLs Denial of Service Can the system be taken down? Rate limiting, quotas Elevation Can privileges be escalated? Least privilege, RBAC - Evaluate ADRs:
- Do technology decisions have security implications?
- Are there known vulnerabilities in the chosen technologies?
- Are default configurations secure?
- For Microsoft/Azure technologies: Use
microsoft_docs_searchto check security best practices and known service vulnerabilities - Use
microsoft_docs_fetchto get the complete security hardening guide when a relevant gap is identified
- Validate Azure compliance:
- Use the
azure/policytool to verify whether the proposed infrastructure complies with the organization's policies - Use the
azure/roletool to verify whether the access model follows least privilege (RBAC) - Use the
azure/wellarchitectedframeworktool for each Azure service in the architecture to get the security pillar guidance - Include found violations as findings in the security report
- If policies block services proposed in the ADRs, record as a High finding
- Use the
Generate report:
# Security Review - [Feature] **Mode**: Architectural **Date**: [date] **Reviewer**: Copilot Security Agent ## Executive Summary **Verdict**: [APPROVED | APPROVED_WITH_CONTROLS | BLOCKED] [Summary in 2-3 sentences of the overall risk and main concerns] ## Attack Surface [Components table] ## STRIDE Analysis ### Findings | ID | Threat | Component | Severity | Status | |----|--------|-----------|----------|--------| | SEC-001 | [type] | [where] | [Critical/High/Medium/Low] | OPEN | ### SEC-001: [Title] **Severity**: [Critical/High/Medium/Low] **Component**: [where] **Description**: [what can happen] **Impact**: [consequences] **Recommendation**: [how to mitigate] ## Security Requirements Before proceeding to implementation: - [ ] [Requirement 1] - [ ] [Requirement 2] ## ADR Decisions with Security Implications | ADR | Decision | Implication | Recommendation | |-----|----------|-------------|----------------| | [number] | [decision] | [risk] | [mitigation] |Save report: Path:
docs/features/[feature]/security-review-architecture.mdPresent the Reasoning Log in the format of the
reasoningskill (use "Discarded threats" instead of "Assumptions" when applicable).Return verdict:
If APPROVED:
Security Review: APPROVED No blockers identified. Security requirements documented. Proceed to task creation.If APPROVED_WITH_CONTROLS:
Security Review: APPROVED WITH CONTROLS Findings that need to be addressed during implementation: - SEC-001: [title] (High) - SEC-002: [title] (Medium) Security requirements added to the spec. Proceed to task creation with attention to controls.If BLOCKED:
Security Review: BLOCKED Critical issues preventing progress: - SEC-001: [title] (Critical) Action required: Review design before creating tasks.
Code Mode (Implementation Security)
Execution Flow
- Identify scope:
- If called from
implement: review modified files - If called from
review: review files in review scope - If explicit mention: review specified files/PR
- If called from
- Read relevant files:
- Modified source code
- Security tests (if they exist)
- Configurations (env, secrets, configs)
Check vulnerability categories:
Category What to check Access Control Authorization, privilege escalation, unauthorized access Data Protection Exposed sensitive data, inadequate encryption Injection Unsanitized input used in commands or queries Insecure Design Missing validation, violated trust boundaries Configuration Insecure defaults, debug in production Vulnerable Components Dependencies with known vulnerabilities Authentication Weak identity and session controls Integrity Data or code can be manipulated Logging Insufficient auditing or sensitive data in logs External Requests URLs or resources controlled by external input Code checks:
Detect the project stack and apply relevant checks for:
- Dynamic code execution
- Command or data injection
- Deserialization of untrusted data
- File path manipulation
- Cross-site scripting
- Race conditions
- Denial of service
- Check secrets:
- Search for hardcoded credentials in the code
- Verify that environment files are in
.gitignore - Verify that secrets are not exposed in configuration
- Query
github/list_secret_scanning_alertsfor active alerts: If there are open alerts, include them as Critical findings.
- Check .gitignore:
- Environment files should be ignored
- Local configuration files should be ignored
- Build/dependency directories should be ignored
- Check dependencies:
Use the appropriate audit tool for the project stack.
Supplement with GitHub data:
github/list_dependabot_alertsfor known vulnerabilitiesgithub/list_code_scanning_alertsfor CodeQL alertsgithub/list_repository_security_advisoriesfor advisoriesgithub/get_global_security_advisoryfor specific CVE details
Generate report:
# Security Review - [Feature/PR] **Mode**: Code **Date**: [date] **Scope**: [files/PR] **Reviewer**: Copilot Security Agent ## Executive Summary **Verdict**: [PASSED | PASSED_WITH_FINDINGS | FAILED] | Severity | Count | |----------|-------| | Critical | 0 | | High | 1 | | Medium | 2 | | Low | 1 | ## Findings ### SEC-C001: [Title] **Severity**: High **File**: `src/auth/login.ts:42` **Category**: A03 Injection **Vulnerable code**: [code snippet] **Problem**: [description] **Remediation**: [fix snippet] ## Security Checklist - [x] No hardcoded secrets - [x] Input validation present - [ ] Authorization verified on endpoints ## Dependencies | Package | Version | CVEs | Severity | |---------|---------|------|----------| | [pkg] | [ver] | [CVE-xxx] | High |- Save report: Path:
docs/features/[feature]/security-review-code.md Return verdict:
If PASSED:
Code Security Review: PASSED No vulnerabilities identified. Can proceed with PR.If PASSED_WITH_FINDINGS:
Code Security Review: PASSED WITH FINDINGS Low/medium severity findings (non-blocking): - SEC-C002: [title] (Medium) Recommend fixing, but can proceed with PR.If FAILED:
Code Security Review: FAILED Critical/high vulnerabilities found: - SEC-C001: [title] (High) - [file:line] Mandatory fix before PR.
Severity
| Level | Criteria | Action |
| Critical | Trivial exploitation, maximum impact (RCE, massive data breach) | Blocks. Fix immediately. |
| High | Exploitation possible, significant impact (auth bypass, injection) | Blocks. Fix before merge. |
| Medium | Exploitation requires conditions, moderate impact | Non-blocking. Fix soon. |
| Low | Difficult exploitation, limited impact | Non-blocking. Backlog. |
| Info | Best practices, hardening | Informational. |
Recognized Best Practices
Acknowledge when the code follows best practices:
Best practices identified:
- Parameterized queries used consistently
- Input validation with defined schema
- Secrets loaded from environment variables
- Rate limiting implemented on public endpointsCommon Rationalizations
| Rationalization | Reality |
| "This is an internal tool, security does not matter" | Internal tools get compromised. Attackers target the weakest link in the chain. |
| "We will add security later" | Retrofitting security is 10x harder than building it in. Add controls now. |
| "The framework handles security" | Frameworks provide tools, not guarantees. You still need to use them correctly. |
| "No one would try to exploit this" | Automated scanners will find it. Security by obscurity is not security. |
| "It is just a prototype" | Prototypes become production. Security habits from day one prevent emergency retrofits. |
Red Flags
- User input passed directly to database queries, shell commands, or HTML rendering
- Secrets in source code or commit history
- API endpoints without authentication or authorization checks
- Missing CORS configuration or wildcard origins
- No rate limiting on authentication endpoints
- Stack traces or internal error details exposed to users
- Dependencies with known critical vulnerabilities not addressed
Constraints
- Does NOT implement code: Provides guidance and remediation
- Does NOT create tasks: Documents findings for the developer to resolve
- Does NOT edit code: Only reviews and reports
- Balances security with usability: Risk-based approach
- Objective: Documents vulnerabilities AND best practices
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

