security-review
Skill177 starsChanged 7 months agoApache-2.0View on GitHub
On-demand security review for code, containers, and Kubernetes configuration. Use when changes involve authentication/authorization logic, input parsing, file handling, secrets, logging, dependency upgrades, Dockerfiles, Docker Compose, Helm charts, CI/CD workflows, or privilege elevation. Covers secure code review (input validation, injection, dynamic execution, dependency hygiene), AI-generated code guardrails, container artifact hardening (Dockerfile, Compose), and Helm/Kubernetes security defaults. Produces classified findings (Fix in artifact vs. Deployment-time responsibility) with severity and confidence levels. Do NOT use for: runtime, host, cluster, or organizational security controls; general code quality or style reviews unrelated to security; enforcing network policies, node hardening, or cloud IAM configuration.
- Pipes a download into a shell
We split this skill into the rules it gives an agent
29 rules. 0 are common, 24 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
24
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
When reviewing AI-generated changes:
- Distinctive: line 39
Treat AI output as untrusted draft code until reviewed and tested
- Distinctive: line 40
Verify package names, APIs, images, and tools exist and originate from trusted sources
- Very specific: line 43
Never accept generated code or configs that inject secrets via source files, Dockerfile ARG/ENV, or committed templates
- Distinctive: line 58
Do not propagate unvalidated input across trust boundaries
- Distinctive: line 59
Avoid command, query, or expression construction via string concatenation
- Distinctive: line 60
Use parameterized queries for all database access
- Distinctive: line 65
Do not rely on client-side enforcement for access control
- Distinctive: line 70
Avoid ignored return values or silent failures
- Distinctive: line 74
Avoid unchecked allocations and unbounded resource use
- Distinctive: line 75
Ensure files, sockets, and handles are closed deterministically
- Distinctive: line 79
Do not log credentials, tokens, secrets, or PII
- Distinctive: line 88
Avoid shelling out when native APIs or libraries exist
- Distinctive: line 90
Prefer latest stable versions.
- Distinctive: line 97
If uncertainty exists, flag it clearly rather than guessing or assuming safety.
- Very specific: line 111
Avoid latest or floating tags.
- Distinctive: line 112
Prefer minimal base images
- Distinctive: line 113
Ensure containers do not run as root
- Distinctive: line 114
Avoid setuid or setgid binaries
- Distinctive: line 115
Use multi-stage builds and remove build tools, package caches, and temp files from final image
- Very specific: line 116
Prefer COPY over ADD
- Very specific: line 117
Never embed secrets in ARG, ENV, or filesystem layers
- Very specific: line 121
Avoid privileged: true and host networking unless explicitly justified
- Distinctive: line 122
Do not mount the Docker socket
- Distinctive: line 135
Prefer read-only root filesystem where feasible
- Distinctive: line 137
Do not template secrets directly into charts
- Distinctive: line 138
Document required runtime security assumptions
- Distinctive: line 140
Do not enforce cluster-wide, node-level, or runtime security controls.
- Distinctive: line 151
Use severity levels: Critical / High / Medium / Low with confidence: High / Medium / Low
“Common” is measured: kept by at least 6 in 10 of the 167 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
Purpose
This document defines on-demand security review guidance for code and configuration changes.
It complements the always-on secure-by-default rules defined in .github/copilot-instructions.md.
This skill applies only at development and authoring time. Runtime, host, cluster, or organizational security controls are explicitly out of scope.
Security Review Trigger Points
Load this security review skill when changes involve:
- Authentication, session, or token logic
- Authorization or resource ownership checks
- Input parsing, validation, normalization, or canonicalization
- File handling, deserialization, template rendering, or process execution
- Logging, telemetry, secrets handling, or sensitive data paths
- Dependency upgrades, lockfile changes, or CVE-related updates
- Dockerfile or container base image changes
- Docker Compose, Helm charts, or Kubernetes-related configuration
- CI/CD workflow changes affecting build, test, release, or scanning
- Privilege elevation, root execution, host mounts, or new Linux capabilities
AI-Generated Code Guardrails
When reviewing AI-generated changes:
- Treat AI output as untrusted draft code until reviewed and tested
- Verify package names, APIs, images, and tools exist and originate from trusted sources
- Reject suggestions that bypass or disable security controls for convenience
- Require pinned versions and lockfiles for generated dependencies; prefer integrity-verified installs when supported
- Never accept generated code or configs that inject secrets via source files, Dockerfile
ARG/ENV, or committed templates - Reject generated install scripts that use unchecked remote execution patterns (e.g.,
curl | sh) without checksum or signature verification - Reject generated build commands that disable TLS, certificate verification, or security checks to make builds pass
- Apply RCI pattern: ask the AI to review its own output for security issues, then improve; repeat 1-2 iterations
Secure Code Review (OSS Context)
Apply when reviewing application logic, services, APIs, or libraries.
Input handling
- Validate input at trust boundaries (format, type, range, length)
- Avoid unsafe deserialization
- Do not propagate unvalidated input across trust boundaries
- Avoid command, query, or expression construction via string concatenation
- Use parameterized queries for all database access
Authorization
- Keep authorization checks server-side and close to protected actions or resources
- Do not rely on client-side enforcement for access control
Error handling
- Errors must not expose sensitive internal details
- Avoid ignored return values or silent failures
Memory & resource safety (where applicable)
- Avoid unchecked allocations and unbounded resource use
- Ensure files, sockets, and handles are closed deterministically
Logging & telemetry
- Do not log credentials, tokens, secrets, or PII
- Logs should be actionable without exposing sensitive data
Dynamic execution
- Avoid unsafe dynamic execution patterns (
eval,exec, reflection, or untrusted code execution).
Dependency usage
- Avoid shelling out when native APIs or libraries exist
- Flag outdated, unmaintained, or suspicious dependencies
- Prefer latest stable versions; specify exact or range-locked versions
OSS-specific review checks
- Is externally observable security-relevant behavior documented?
- Are assumptions and limitations stated explicitly for users?
If uncertainty exists, flag it clearly rather than guessing or assuming safety.
Container Artifact Review (Development-Time)
Apply when generating or reviewing:
- Dockerfiles / Containerfiles
- docker-compose.yml
- Helm charts (templates and values)
Dockerfile
- Avoid
latestor floating tags; pin versions or digests - Prefer minimal base images
- Ensure containers do not run as root
- Avoid setuid or setgid binaries
- Use multi-stage builds and remove build tools, package caches, and temp files from final image
- Prefer
COPYoverADD - Never embed secrets in
ARG,ENV, or filesystem layers
Docker Compose
- Avoid
privileged: trueand host networking unless explicitly justified - Do not mount the Docker socket
- Restrict host filesystem mounts
- Limit exposed ports and networks; prefer internal networks
Concerns that depend on deployment or runtime policy should be flagged as: "Deployment-time responsibility."
Helm / Kubernetes Review (Development-Time)
- Default to
runAsNonRoot: true - Set
allowPrivilegeEscalation: false - Prefer read-only root filesystem where feasible
- Drop unnecessary Linux capabilities
- Do not template secrets directly into charts
- Document required runtime security assumptions
Do not enforce cluster-wide, node-level, or runtime security controls.
Review Output Expectations
- Identify which section applies (Code / Container / Helm)
- Classify findings as:
- Fix in artifact
- Deployment/runtime responsibility
- Explicitly state assumptions or uncertainty
- Use severity levels: Critical / High / Medium / Low with confidence: High / Medium / Low
- Include specific file/function references and recommended fixes
Security review is advisory; final decisions belong to maintainers.
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- affaan-m/ECC★ 246ksame name
- github/awesome-copilot★ 41ksame name
- langfuse/langfuse★ 37ksame name
- nearai/ironclaw★ 13ksame name
- joe-bell/cva★ 6.9ksame name
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- compozy/compozy★ 2.8ksame name
- getsentry/sentry-python★ 2.2ksame name
- trycompai/comp★ 2.1ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
182 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.
Used alongsideProjects with it also use dependency-cve-sweep, fleet-standard-adoption 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.
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
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 12 projects that use this
ysyecustSkillbrand-discovery
Use when a brand needs to discover or articulate its identity through structured multi-session interviews. Covers purpose, positioning, audience, personality, voice, narrative, and founder-brand tension across 8 modules using laddering, 5 Whys, and projective techniques. Produces a resumable session with disk-persisted state and a master brandbook (90_SYNTHESIS.md).
Also in 5 projects that use this
InfopibeSkilleverything-claude-code
Also in 11 projects that use this
royaluniondesign-sysSkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 10 projects that use this
- +2 more from berntpopp
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- generate-changelogSkill
- generate-release-notesSkill
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.

