[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CFKNVYCK0T5JDSDDBYD5RW":3,"skill-same:01M7CFKNVYCK0T5JDSDDBYD5RW":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":5,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CFKNVYCK0T5JDSDDBYD5RW","security-audit-checklist",null,"Run a comprehensive security audit across application code, cloud infrastructure, containers, CI\u002FCD pipelines, and infrastructure-as-code. Covers privacy compliance, OWASP basics, secret leakage, API security, IAM misconfigurations, storage exposure, Kubernetes hardening, and network security. Use when the user asks to audit, review, or harden app or cloud security, check for secrets, scan for XSS\u002FSQLi, verify security headers, review Terraform\u002FCloudFormation, audit AWS\u002FGCP\u002FAzure configs, or perform any security-focused review.","getedgehq\u002Fskills","getedgehq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F327350993?v=4","01M7CEH5YJQYF1PB3MDG9PA5HX","01M7CEH5ZAPY8TX4H3E04KM875",5,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-audit-checklist\ndescription: Run a comprehensive security audit across application code, cloud infrastructure, containers, CI\u002FCD pipelines, and infrastructure-as-code. Covers privacy compliance, OWASP basics, secret leakage, API security, IAM misconfigurations, storage exposure, Kubernetes hardening, and network security. Use when the user asks to audit, review, or harden app or cloud security, check for secrets, scan for XSS\u002FSQLi, verify security headers, review Terraform\u002FCloudFormation, audit AWS\u002FGCP\u002FAzure configs, or perform any security-focused review.\n---\n\n# Security Audit Checklist\n\nRun these checks on any system before shipping to production or after major changes.\n\n## Before you start\n\nThe checklist itself is prose and needs nothing. The three scanners under\n`scripts\u002F` are Python, so running those needs **Python 3** on your machine\n(`python3 --version`). Without it you can still work the checklist by hand; you\njust do not get the automated secret scan, header check and IaC read.\n\n## 1. Privacy & Data Governance\n\n- [ ] **Privacy policy exists** if the app collects, stores, or processes any user data. Link it in the footer and signup flows.\n- [ ] **Know where user data is stored**: document the primary database, caches, logs, backups, and third-party services. Check data residency requirements (GDPR, CCPA).\n- [ ] **Data minimization**: only collect what you need. Delete or anonymize data you do not use.\n\n## 2. Secret & Key Hygiene\n\n- [ ] **.env values are not leaking**: scan the full repo for hardcoded secrets.\n- [ ] **Never expose API keys in frontend code**: no keys in JS bundles, no sensitive values in public env prefixes (`REACT_APP_`, `NEXT_PUBLIC_`, `VITE_`).\n- [ ] **Move keys server-side or behind a proxy**: all third-party API calls that require secrets must go through a backend endpoint.\n- [ ] **Remove secrets from logs**: grep logs and error reporters for keys, tokens, and passwords. Mask or redact them before output.\n- [ ] **Rotate leaked credentials immediately** if anything is found.\n\n**Quick scan commands:**\n\n```bash\n# Run the bundled secret scanner\npython3 scripts\u002Fscan_secrets.py .\n\n# Manual ripgrep patterns\ngrep -rE '(api[_-]?key|secret|token|password)\\s*[:=]\\s*[\"\\047][a-zA-Z0-9_\\-]{16,}' --include='*.{js,ts,py,go,rb,php,java,json,yaml,yml,env,sh,tf,hcl}' .\ngrep -rE 'AKIA[0-9A-Z]{16}' .  # AWS keys\ngrep -rE 'ghp_[a-zA-Z0-9]{36}' .  # GitHub tokens\ngrep -rE 'sk-[a-zA-Z0-9]{48}' .   # OpenAI keys\n```\n\n## 3. Security Headers\n\n- [ ] `Content-Security-Policy` restricts script sources and blocks inline execution where possible.\n- [ ] `X-Frame-Options` or `frame-ancestors` prevents clickjacking.\n- [ ] `Strict-Transport-Security` enforces HTTPS.\n- [ ] `X-Content-Type-Options: nosniff` is present.\n- [ ] `Referrer-Policy` limits referrer leakage.\n\n**Check headers on a live URL:**\n\n```bash\npython3 scripts\u002Fcheck_headers.py https:\u002F\u002Fyour-app.com\n```\n\n## 4. OWASP Top 10 Basics\n\n| # | Risk | What to check |\n|---|------|---------------|\n| A01 | Broken Access Control | Every endpoint checks auth and authorization. No IDOR bugs. |\n| A02 | Cryptographic Failures | Passwords hashed with bcrypt\u002FArgon2. TLS 1.2+ enforced. No sensitive data in URLs. |\n| A03 | Injection | SQL uses parameterized statements. No raw string concatenation into queries. |\n| A04 | Insecure Design | Rate limits on auth and sensitive actions. Business logic has abuse checks. |\n| A05 | Security Misconfiguration | Default credentials removed. Debug mode off in prod. Error messages do not leak stack traces. |\n| A06 | Vulnerable Components | Dependency audit: `npm audit`, `pip-audit`, `cargo audit`, `snyk test`. |\n| A07 | Auth Failures | Session tokens are random and rotated on privilege change. MFA for sensitive accounts. |\n| A08 | Data Integrity | Lockfiles present, signed commits where possible. |\n| A09 | Logging Failures | Security events logged without secrets. |\n| A10 | SSRF | Server-side requests use an allowlist. No user-controlled URLs hitting internal services. |\n\n## 5. Input Validation & Injection\n\n- [ ] **SQL Injection**: all queries use ORM parameters or prepared statements.\n- [ ] **XSS**: user output is HTML-escaped. `dangerouslySetInnerHTML` and similar bypasses are audited.\n- [ ] **Command Injection**: no `exec()`, `system()`, or `eval()` with user input.\n- [ ] **Path Traversal**: file paths are sanitized and restricted to an allowlist directory.\n- [ ] **NoSQL Injection**: MongoDB queries use parameterized objects.\n\n## 6. API Security\n\n- [ ] **Check API responses for sensitive data**: no internal IDs, password hashes, tokens, or unnecessary PII.\n- [ ] **Authentication on all non-public endpoints**: no open admin or debug routes.\n- [ ] **Rate limits before someone burns your API bill**: per-IP and per-user rate limiting on expensive or auth endpoints. Return `429` with `Retry-After`.\n- [ ] **CORS is tight**: `Access-Control-Allow-Origin` is not `*`. Preflight required for state-changing methods.\n\n## 7. Auth & Session\n\n- [ ] **Password policy**: minimum 8 characters, no max length that prevents passphrases.\n- [ ] **Brute-force protection**: exponential backoff or CAPTCHA after failed logins.\n- [ ] **Session management**: secure, httpOnly, SameSite cookies. JWTs have short expiry and refresh rotation.\n- [ ] **Password reset**: tokens are single-use, random, and expire quickly.\n\n---\n\n## 8. Cloud Provider Security\n\nApplies to AWS, GCP, Azure, and any other cloud platform.\n\n### 8.1 Identity & Access Management (IAM)\n\n- [ ] **No root account access keys** exist. Root MFA is enabled.\n- [ ] **Least privilege principle**: every role, user, and service account has the minimum permissions required. No wildcard (`*`) actions or resources unless absolutely necessary.\n- [ ] **No long-lived access keys** for users. Prefer IAM roles with temporary credentials (STS, instance profiles, workload identity).\n- [ ] **MFA enforced** for all human users, especially admins and billing access.\n- [ ] **Inactive identities removed**: delete or disable users, roles, and service accounts unused for 90+ days.\n- [ ] **Cross-account access** uses explicit role assumptions with external ID where applicable. No trust policies with `Principal: *`.\n\n### 8.2 Storage (S3 \u002F GCS \u002F Azure Blob)\n\n- [ ] **No public buckets\u002Fcontainers** unless intentionally hosting public static assets. Block public access at the account level.\n- [ ] **Encryption at rest** enabled (AES-256 or KMS). No unencrypted storage volumes or snapshots.\n- [ ] **Encryption in transit** enforced (HTTPS\u002FTLS only). No `http` allowed.\n- [ ] **Lifecycle policies** delete or transition old data. Versioning enabled for critical buckets.\n- [ ] **Bucket policies** do not grant `Principal: *` or `AllUsers`. Access is via IAM roles, not hardcoded keys.\n- [ ] **Logging enabled** for access logs and object-level events (S3 Server Access Logs, CloudTrail data events).\n\n### 8.3 Compute (EC2 \u002F GCE \u002F Azure VM \u002F Lambda \u002F Cloud Run)\n\n- [ ] **No default security groups** allowing 0.0.0.0\u002F0 on sensitive ports (22, 3389, 3306, 5432, 6379, 27017).\n- [ ] **SSM \u002F Session Manager** used instead of direct SSH where possible. No port 22 open to the internet.\n- [ ] **IMDSv2 required** on AWS EC2 (disable IMDSv1).\n- [ ] **Instance metadata** is not exposed to containers or untrusted code.\n- [ ] **Function runtime** uses minimal privileges. Lambda\u002FGCP Cloud Functions do not run with admin roles.\n- [ ] **Function environment variables** do not contain plaintext secrets. Use secrets manager (AWS Secrets Manager, GCP Secret Manager, Azure Key Vault).\n\n### 8.4 Database & Cache\n\n- [ ] **No public access**: databases are in private subnets or VPCs. No `0.0.0.0\u002F0` in security groups.\n- [ ] **Encryption at rest and in transit** enabled.\n- [ ] **Automated backups** with point-in-time recovery.\n- [ ] **Strong authentication**: no default passwords. Use IAM database auth or TLS client certs where supported.\n- [ ] **Audit logging** enabled for connections and schema changes.\n\n### 8.5 Networking\n\n- [ ] **VPC \u002F network segmentation**: prod, staging, and dev are in separate networks or at least separate subnets.\n- [ ] **Security groups \u002F firewalls** are deny-by-default. Only required ports are open.\n- [ ] **No overly permissive CIDRs**: `0.0.0.0\u002F0` is avoided except for HTTPS (443) on public-facing load balancers.\n- [ ] **Private subnets** for databases, caches, and internal services. NAT Gateway or VPC endpoints for outbound internet.\n- [ ] **DDoS protection** enabled where applicable (AWS Shield, Cloud Armor, Azure DDoS Protection).\n- [ ] **DNS \u002F Domain**: DNSSEC enabled if the registrar supports it. No dangling DNS records pointing to expired IPs or deleted resources (subdomain takeover risk).\n\n### 8.6 Logging, Monitoring & Alerting\n\n- [ ] **CloudTrail \u002F Audit Logs \u002F Activity Logs** enabled across all regions and services.\n- [ ] **Log integrity**: logs are immutable or stored in a separate account with write-once permissions.\n- [ ] **Sensitive data not logged**: cloud logs do not include passwords, tokens, or PII.\n- [ ] **Alerts configured** for root login, IAM policy changes, public bucket creation, security group changes, and failed auth spikes.\n- [ ] **Log retention** meets compliance requirements (typically 1 year).\n\n---\n\n## 9. Container & Orchestration Security\n\n### 9.1 Docker \u002F Container Images\n\n- [ ] **No secrets in images**: scan Dockerfiles and layers for `.env`, `config.json`, or hardcoded credentials.\n- [ ] **Minimal base images**: use distroless, Alpine, or scratch instead of full Ubuntu\u002FDebian where possible.\n- [ ] **No running as root**: Dockerfile sets `USER` to a non-root UID\u002FGID.\n- [ ] **Image scanning**: enable vulnerability scanning in the registry (ECR, GCR, ACR, Docker Hub) and block critical CVEs in CI.\n- [ ] **Immutable tags**: do not use `latest` in production. Pin to digest or specific semver.\n- [ ] **Multi-stage builds**: build artifacts and dev dependencies do not end up in the final image.\n\n### 9.2 Kubernetes\n\n- [ ] **RBAC**: least-privilege roles and role bindings. No cluster-admin for service accounts.\n- [ ] **No default service account tokens** mounted into pods that do not need them (`automountServiceAccountToken: false`).\n- [ ] **Network policies**: default-deny ingress\u002Fegress, then explicitly allow required traffic.\n- [ ] **Pod security standards**: enforce `restricted` or `baseline` profile. No privileged containers, no hostPath, no hostNetwork.\n- [ ] **Secrets encryption**: etcd encryption at rest is enabled. No plaintext secrets in Git.\n- [ ] **Container runtime security**: seccomp, AppArmor, or SELinux profiles applied.\n- [ ] **Admission controllers**: use OPA\u002FGatekeeper or Kyverno to enforce policies (no latest tag, required labels, resource limits).\n- [ ] **Resource limits**: every pod has CPU and memory limits to prevent DoS via resource exhaustion.\n\n---\n\n## 10. Infrastructure as Code (IaC)\n\n- [ ] **No secrets in Terraform \u002F CloudFormation \u002F Pulumi \u002F CDK**: state files do not contain plaintext passwords or keys. Remote state is encrypted and access-controlled.\n- [ ] **Terraform state backend** is secure: S3 with SSE-KMS, DynamoDB locking, and no public read access.\n- [ ] **IaC scanning**: run `checkov`, `tfsec`, or `terrascan` on Terraform\u002FCloudFormation before merge.\n- [ ] **Drift detection**: scheduled scans detect manual console changes that diverge from IaC.\n- [ ] **Modules are version-pinned**: do not pull modules from branches or unversioned sources.\n\n**Quick IaC scan:**\n\n```bash\npython3 scripts\u002Fscan_iac.py .\n\n# Or use dedicated tools if installed:\ncheckov -d . --framework terraform,cloudformation,dockerfile\n# tfsec .\n```\n\n---\n\n## 11. CI\u002FCD Pipeline Security\n\n- [ ] **No secrets in pipeline configs**: no hardcoded tokens in `.github\u002Fworkflows`, `.gitlab-ci.yml`, Azure Pipelines, or Jenkinsfiles.\n- [ ] **Secrets are injected** from the CI platform's native secrets manager (GitHub Secrets, GitLab CI Variables, Azure DevOps Library).\n- [ ] **Pipeline permissions are minimal**: CI service accounts have only the permissions needed to deploy.\n- [ ] **Branch protection**: direct pushes to main\u002Fmaster are blocked. All changes require PR\u002FMR + review.\n- [ ] **Signed commits or merge requirements**: require signed commits or at least verified merge commits for sensitive repos.\n- [ ] **Dependency scanning**: SCA tools (Snyk, Dependabot, Renovate) run on every PR.\n- [ ] **SAST**: static analysis (Semgrep, CodeQL, SonarQube) runs on every PR.\n- [ ] **Container scanning**: images are scanned for CVEs before deployment.\n- [ ] **No self-hosted runners** exposed to the public internet without VPN or IP allowlisting.\n- [ ] **Pipeline does not run untrusted code** from forks without manual approval (prevent pwn requests).\n\n---\n\n## 12. Domain & DNS Security\n\n- [ ] **DNSSEC** enabled at the registrar if supported.\n- [ ] **No dangling CNAME \u002F A \u002F NS records** pointing to expired services (subdomain takeover risk).\n- [ ] **Wildcard certificates** or per-subject certificates from a trusted CA. No self-signed certs in production.\n- [ ] **Certificate expiry monitoring**: alerts 30 and 7 days before expiry.\n- [ ] **CDN \u002F WAF** configured with sensible rules (SQLi, XSS, LFI blocks). Rate limiting enabled at the edge.\n\n---\n\n## Audit Output\n\nAfter running the checklist, produce a concise markdown report with:\n\n1. **Summary** — Pass \u002F Fail \u002F Needs Review per category.\n2. **Critical findings** — Anything that must be fixed before production.\n3. **Recommended fixes** — Specific code changes, config updates, or library upgrades.\n4. **Risk matrix** — Likelihood × Impact for each finding.\n5. **Remediation timeline** — Suggest priority order and deadlines.\n","# Security Audit Checklist\n\nRun these checks on any system before shipping to production or after major changes.\n\n## Before you start\n\nThe checklist itself is prose and needs nothing. The three scanners under\n`scripts\u002F` are Python, so running those needs **Python 3** on your machine\n(`python3 --version`). Without it you can still work the checklist by hand; you\njust do not get the automated secret scan, header check and IaC read.\n\n## 1. Privacy & Data Governance\n\n- [ ] **Privacy policy exists** if the app collects, stores, or processes any user data. Link it in the footer and signup flows.\n- [ ] **Know where user data is stored**: document the primary database, caches, logs, backups, and third-party services. Check data residency requirements (GDPR, CCPA).\n- [ ] **Data minimization**: only collect what you need. Delete or anonymize data you do not use.\n\n## 2. Secret & Key Hygiene\n\n- [ ] **.env values are not leaking**: scan the full repo for hardcoded secrets.\n- [ ] **Never expose API keys in frontend code**: no keys in JS bundles, no sensitive values in public env prefixes (`REACT_APP_`, `NEXT_PUBLIC_`, `VITE_`).\n- [ ] **Move keys server-side or behind a proxy**: all third-party API calls that require secrets must go through a backend endpoint.\n- [ ] **Remove secrets from logs**: grep logs and error reporters for keys, tokens, and passwords. Mask or redact them before output.\n- [ ] **Rotate leaked credentials immediately** if anything is found.\n\n**Quick scan commands:**\n\n```bash\n# Run the bundled secret scanner\npython3 scripts\u002Fscan_secrets.py .\n\n# Manual ripgrep patterns\ngrep -rE '(api[_-]?key|secret|token|password)\\s*[:=]\\s*[\"\\047][a-zA-Z0-9_\\-]{16,}' --include='*.{js,ts,py,go,rb,php,java,json,yaml,yml,env,sh,tf,hcl}' .\ngrep -rE 'AKIA[0-9A-Z]{16}' .  # AWS keys\ngrep -rE 'ghp_[a-zA-Z0-9]{36}' .  # GitHub tokens\ngrep -rE 'sk-[a-zA-Z0-9]{48}' .   # OpenAI keys\n```\n\n## 3. Security Headers\n\n- [ ] `Content-Security-Policy` restricts script sources and blocks inline execution where possible.\n- [ ] `X-Frame-Options` or `frame-ancestors` prevents clickjacking.\n- [ ] `Strict-Transport-Security` enforces HTTPS.\n- [ ] `X-Content-Type-Options: nosniff` is present.\n- [ ] `Referrer-Policy` limits referrer leakage.\n\n**Check headers on a live URL:**\n\n```bash\npython3 scripts\u002Fcheck_headers.py https:\u002F\u002Fyour-app.com\n```\n\n## 4. OWASP Top 10 Basics\n\n| # | Risk | What to check |\n|---|------|---------------|\n| A01 | Broken Access Control | Every endpoint checks auth and authorization. No IDOR bugs. |\n| A02 | Cryptographic Failures | Passwords hashed with bcrypt\u002FArgon2. TLS 1.2+ enforced. No sensitive data in URLs. |\n| A03 | Injection | SQL uses parameterized statements. No raw string concatenation into queries. |\n| A04 | Insecure Design | Rate limits on auth and sensitive actions. Business logic has abuse checks. |\n| A05 | Security Misconfiguration | Default credentials removed. Debug mode off in prod. Error messages do not leak stack traces. |\n| A06 | Vulnerable Components | Dependency audit: `npm audit`, `pip-audit`, `cargo audit`, `snyk test`. |\n| A07 | Auth Failures | Session tokens are random and rotated on privilege change. MFA for sensitive accounts. |\n| A08 | Data Integrity | Lockfiles present, signed commits where possible. |\n| A09 | Logging Failures | Security events logged without secrets. |\n| A10 | SSRF | Server-side requests use an allowlist. No user-controlled URLs hitting internal services. |\n\n## 5. Input Validation & Injection\n\n- [ ] **SQL Injection**: all queries use ORM parameters or prepared statements.\n- [ ] **XSS**: user output is HTML-escaped. `dangerouslySetInnerHTML` and similar bypasses are audited.\n- [ ] **Command Injection**: no `exec()`, `system()`, or `eval()` with user input.\n- [ ] **Path Traversal**: file paths are sanitized and restricted to an allowlist directory.\n- [ ] **NoSQL Injection**: MongoDB queries use parameterized objects.\n\n## 6. API Security\n\n- [ ] **Check API responses for sensitive data**: no internal IDs, password hashes, tokens, or unnecessary PII.\n- [ ] **Authentication on all non-public endpoints**: no open admin or debug routes.\n- [ ] **Rate limits before someone burns your API bill**: per-IP and per-user rate limiting on expensive or auth endpoints. Return `429` with `Retry-After`.\n- [ ] **CORS is tight**: `Access-Control-Allow-Origin` is not `*`. Preflight required for state-changing methods.\n\n## 7. Auth & Session\n\n- [ ] **Password policy**: minimum 8 characters, no max length that prevents passphrases.\n- [ ] **Brute-force protection**: exponential backoff or CAPTCHA after failed logins.\n- [ ] **Session management**: secure, httpOnly, SameSite cookies. JWTs have short expiry and refresh rotation.\n- [ ] **Password reset**: tokens are single-use, random, and expire quickly.\n\n---\n\n## 8. Cloud Provider Security\n\nApplies to AWS, GCP, Azure, and any other cloud platform.\n\n### 8.1 Identity & Access Management (IAM)\n\n- [ ] **No root account access keys** exist. Root MFA is enabled.\n- [ ] **Least privilege principle**: every role, user, and service account has the minimum permissions required. No wildcard (`*`) actions or resources unless absolutely necessary.\n- [ ] **No long-lived access keys** for users. Prefer IAM roles with temporary credentials (STS, instance profiles, workload identity).\n- [ ] **MFA enforced** for all human users, especially admins and billing access.\n- [ ] **Inactive identities removed**: delete or disable users, roles, and service accounts unused for 90+ days.\n- [ ] **Cross-account access** uses explicit role assumptions with external ID where applicable. No trust policies with `Principal: *`.\n\n### 8.2 Storage (S3 \u002F GCS \u002F Azure Blob)\n\n- [ ] **No public buckets\u002Fcontainers** unless intentionally hosting public static assets. Block public access at the account level.\n- [ ] **Encryption at rest** enabled (AES-256 or KMS). No unencrypted storage volumes or snapshots.\n- [ ] **Encryption in transit** enforced (HTTPS\u002FTLS only). No `http` allowed.\n- [ ] **Lifecycle policies** delete or transition old data. Versioning enabled for critical buckets.\n- [ ] **Bucket policies** do not grant `Principal: *` or `AllUsers`. Access is via IAM roles, not hardcoded keys.\n- [ ] **Logging enabled** for access logs and object-level events (S3 Server Access Logs, CloudTrail data events).\n\n### 8.3 Compute (EC2 \u002F GCE \u002F Azure VM \u002F Lambda \u002F Cloud Run)\n\n- [ ] **No default security groups** allowing 0.0.0.0\u002F0 on sensitive ports (22, 3389, 3306, 5432, 6379, 27017).\n- [ ] **SSM \u002F Session Manager** used instead of direct SSH where possible. No port 22 open to the internet.\n- [ ] **IMDSv2 required** on AWS EC2 (disable IMDSv1).\n- [ ] **Instance metadata** is not exposed to containers or untrusted code.\n- [ ] **Function runtime** uses minimal privileges. Lambda\u002FGCP Cloud Functions do not run with admin roles.\n- [ ] **Function environment variables** do not contain plaintext secrets. Use secrets manager (AWS Secrets Manager, GCP Secret Manager, Azure Key Vault).\n\n### 8.4 Database & Cache\n\n- [ ] **No public access**: databases are in private subnets or VPCs. No `0.0.0.0\u002F0` in security groups.\n- [ ] **Encryption at rest and in transit** enabled.\n- [ ] **Automated backups** with point-in-time recovery.\n- [ ] **Strong authentication**: no default passwords. Use IAM database auth or TLS client certs where supported.\n- [ ] **Audit logging** enabled for connections and schema changes.\n\n### 8.5 Networking\n\n- [ ] **VPC \u002F network segmentation**: prod, staging, and dev are in separate networks or at least separate subnets.\n- [ ] **Security groups \u002F firewalls** are deny-by-default. Only required ports are open.\n- [ ] **No overly permissive CIDRs**: `0.0.0.0\u002F0` is avoided except for HTTPS (443) on public-facing load balancers.\n- [ ] **Private subnets** for databases, caches, and internal services. NAT Gateway or VPC endpoints for outbound internet.\n- [ ] **DDoS protection** enabled where applicable (AWS Shield, Cloud Armor, Azure DDoS Protection).\n- [ ] **DNS \u002F Domain**: DNSSEC enabled if the registrar supports it. No dangling DNS records pointing to expired IPs or deleted resources (subdomain takeover risk).\n\n### 8.6 Logging, Monitoring & Alerting\n\n- [ ] **CloudTrail \u002F Audit Logs \u002F Activity Logs** enabled across all regions and services.\n- [ ] **Log integrity**: logs are immutable or stored in a separate account with write-once permissions.\n- [ ] **Sensitive data not logged**: cloud logs do not include passwords, tokens, or PII.\n- [ ] **Alerts configured** for root login, IAM policy changes, public bucket creation, security group changes, and failed auth spikes.\n- [ ] **Log retention** meets compliance requirements (typically 1 year).\n\n---\n\n## 9. Container & Orchestration Security\n\n### 9.1 Docker \u002F Container Images\n\n- [ ] **No secrets in images**: scan Dockerfiles and layers for `.env`, `config.json`, or hardcoded credentials.\n- [ ] **Minimal base images**: use distroless, Alpine, or scratch instead of full Ubuntu\u002FDebian where possible.\n- [ ] **No running as root**: Dockerfile sets `USER` to a non-root UID\u002FGID.\n- [ ] **Image scanning**: enable vulnerability scanning in the registry (ECR, GCR, ACR, Docker Hub) and block critical CVEs in CI.\n- [ ] **Immutable tags**: do not use `latest` in production. Pin to digest or specific semver.\n- [ ] **Multi-stage builds**: build artifacts and dev dependencies do not end up in the final image.\n\n### 9.2 Kubernetes\n\n- [ ] **RBAC**: least-privilege roles and role bindings. No cluster-admin for service accounts.\n- [ ] **No default service account tokens** mounted into pods that do not need them (`automountServiceAccountToken: false`).\n- [ ] **Network policies**: default-deny ingress\u002Fegress, then explicitly allow required traffic.\n- [ ] **Pod security standards**: enforce `restricted` or `baseline` profile. No privileged containers, no hostPath, no hostNetwork.\n- [ ] **Secrets encryption**: etcd encryption at rest is enabled. No plaintext secrets in Git.\n- [ ] **Container runtime security**: seccomp, AppArmor, or SELinux profiles applied.\n- [ ] **Admission controllers**: use OPA\u002FGatekeeper or Kyverno to enforce policies (no latest tag, required labels, resource limits).\n- [ ] **Resource limits**: every pod has CPU and memory limits to prevent DoS via resource exhaustion.\n\n---\n\n## 10. Infrastructure as Code (IaC)\n\n- [ ] **No secrets in Terraform \u002F CloudFormation \u002F Pulumi \u002F CDK**: state files do not contain plaintext passwords or keys. Remote state is encrypted and access-controlled.\n- [ ] **Terraform state backend** is secure: S3 with SSE-KMS, DynamoDB locking, and no public read access.\n- [ ] **IaC scanning**: run `checkov`, `tfsec`, or `terrascan` on Terraform\u002FCloudFormation before merge.\n- [ ] **Drift detection**: scheduled scans detect manual console changes that diverge from IaC.\n- [ ] **Modules are version-pinned**: do not pull modules from branches or unversioned sources.\n\n**Quick IaC scan:**\n\n```bash\npython3 scripts\u002Fscan_iac.py .\n\n# Or use dedicated tools if installed:\ncheckov -d . --framework terraform,cloudformation,dockerfile\n# tfsec .\n```\n\n---\n\n## 11. CI\u002FCD Pipeline Security\n\n- [ ] **No secrets in pipeline configs**: no hardcoded tokens in `.github\u002Fworkflows`, `.gitlab-ci.yml`, Azure Pipelines, or Jenkinsfiles.\n- [ ] **Secrets are injected** from the CI platform's native secrets manager (GitHub Secrets, GitLab CI Variables, Azure DevOps Library).\n- [ ] **Pipeline permissions are minimal**: CI service accounts have only the permissions needed to deploy.\n- [ ] **Branch protection**: direct pushes to main\u002Fmaster are blocked. All changes require PR\u002FMR + review.\n- [ ] **Signed commits or merge requirements**: require signed commits or at least verified merge commits for sensitive repos.\n- [ ] **Dependency scanning**: SCA tools (Snyk, Dependabot, Renovate) run on every PR.\n- [ ] **SAST**: static analysis (Semgrep, CodeQL, SonarQube) runs on every PR.\n- [ ] **Container scanning**: images are scanned for CVEs before deployment.\n- [ ] **No self-hosted runners** exposed to the public internet without VPN or IP allowlisting.\n- [ ] **Pipeline does not run untrusted code** from forks without manual approval (prevent pwn requests).\n\n---\n\n## 12. Domain & DNS Security\n\n- [ ] **DNSSEC** enabled at the registrar if supported.\n- [ ] **No dangling CNAME \u002F A \u002F NS records** pointing to expired services (subdomain takeover risk).\n- [ ] **Wildcard certificates** or per-subject certificates from a trusted CA. No self-signed certs in production.\n- [ ] **Certificate expiry monitoring**: alerts 30 and 7 days before expiry.\n- [ ] **CDN \u002F WAF** configured with sensible rules (SQLi, XSS, LFI blocks). Rate limiting enabled at the edge.\n\n---\n\n## Audit Output\n\nAfter running the checklist, produce a concise markdown report with:\n\n1. **Summary** — Pass \u002F Fail \u002F Needs Review per category.\n2. **Critical findings** — Anything that must be fixed before production.\n3. **Recommended fixes** — Specific code changes, config updates, or library upgrades.\n4. **Risk matrix** — Likelihood × Impact for each finding.\n5. **Remediation timeline** — Suggest priority order and deadlines.\n",{"name":5,"description":7},"main","01960aeb08909dbd0c1a2d4f219cdb300099b8b9",0,"https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills","https:\u002F\u002Fgetedge.cc","https:\u002F\u002Fgithub.com\u002Fgetedgehq","2026-11-12 10:05:02",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add getedgehq\u002Fskills --skill security-audit-checklist",{"tool":37,"command":38},"bunx","bunx skills add getedgehq\u002Fskills --skill security-audit-checklist",{"tool":40,"command":41},"pnpm","pnpm dlx skills add getedgehq\u002Fskills --skill security-audit-checklist","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002FSKILL.md",true,[45,51,55,61,65],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"DERIVATION.json","REFERENCE","参考文档",4006,"https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002FDERIVATION.json",{"path":52,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":15},"LICENSE","许可证",10756,{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fcheck_headers.py","SCRIPT","脚本",1699,"https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002Fscripts\u002Fcheck_headers.py",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fscan_iac.py",7136,"https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002Fscripts\u002Fscan_iac.py",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fscan_secrets.py",3482,"https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fsecurity-audit-checklist\u002Fscripts\u002Fscan_secrets.py",[70,78,86,93,100,108],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CFVPC1P7JN60J5AN9AZZ5G","zero-downtime-cloud-move","Runbook for moving a live app from one cloud to another (Google Cloud to AWS, AWS to Google Cloud, a PaaS to your own account, or one storage provider to another) without downtime. The agent inventories what is really running, builds the new stack next to the old one, keeps a one-line rollback for every phase, proves the new stack with real workloads before any traffic moves, cuts over with a checklist, watches a fixed window after the switch, copies data with an idempotent job whose second pass must report 0 left, and deletes the old cloud last. Use when someone asks to migrate, move or replatform a production app, switch cloud providers, move a backend, database files or object storage, plan a DNS cutover, or decommission an old cloud account.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fzero-downtime-cloud-move\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fzero-downtime-cloud-move\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CFVH8VN6G2KE8PBFD1CRMN","zayats-ceo-branding","Build an evidence-based CEO positioning paper, Personal Branding Roadmap, and editorial workflow using Marina Zayats's public method. Use for executive branding, LinkedIn ghostwriting briefs, profile strategy, and recurring CEO-approved content planning.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fzayats-ceo-branding\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fzayats-ceo-branding\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CFV9BB7G8K8CX9RKZ3GECX","yc-app-roast","YC App Roast: roast a YC or a16z Speedrun application. Use when a founder wants their YC or Speedrun answers scored, asks \"what would a YC partner think\", wants the weak answers found or rewritten, or wants their draft checked before they submit. Scores every answer 0-10 against public advice from YC and Speedrun partners, names the top issue with the exact words that cost points, and writes a rewrite from the founder's own facts. Works for YC and a16z Speedrun. Not affiliated with Y Combinator or a16z.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fyc-app-roast\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7CFV11Z1HB9EEWFQ6PCJ98X","yc-app-review","YC App Review: get a YC or a16z Speedrun application reviewed by people you trust. Use when a founder wants friends, mentors or alumni to review their YC or Speedrun application, or asks to share their draft for feedback. Builds a shareable review page (one HTML file, application-portal look) where reviewers leave notes per question and press \"Send my notes\" to send them back as text, then parses the notes into proposed rewrites. Optional tracked private links per reviewer. Works for YC and a16z Speedrun. Not affiliated with Y Combinator or a16z.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fyc-app-review\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7CFTSVJV7XCSW62W39MX8CZ","x-growth-playbook","X Growth Playbook. Analyse a person's own X (Twitter) posts and tell them what to post next, with the numbers behind every claim. Compares quote posts vs originals, links vs no links, short vs long, time of day in their timezone, media vs text and the topics they name, reports medians with n, then writes a 10-step plan and the next 7 posts in their voice. Use when the user says \"analyse my X posts\", \"what works on my Twitter\", \"how do I grow on X\", \"what should I post next on X\", \"audit my X account\", or shares an X data archive, X API export or a list of their posts. Runs on the user's computer.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fx-growth-playbook\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fx-growth-playbook\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7CFTK101S3P00MQ129G5YNH","workplan","Create, update, or close work plans for multi-step tasks. Use when starting refactors, bug lists, feature work, migrations, or any task with 2+ steps. Also use after auto-compaction to re-orient. Triggers: \"workplan\", \"work plan\", \"create a plan\", \"what's the plan\", \"where was I\", or when Claude detects a multi-step task that needs tracking.","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fworkplan\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgetedgehq\u002Fskills\u002Fblob\u002Fmain\u002Fworkplan\u002FSKILL.md",[],[]]