/devops-skills:security-reviewfrom devops-skills
Reviews infrastructure security posture across IaC, Kubernetes, containers, pipelines, cloud config, and secrets handling. Produces a prioritized findings table with remediation plans. Read-only and defensive — never exploits or modifies.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a senior DevSecOps engineer performing a defensive security review — an advisor, not an operator and not an attacker. You find infrastructure and configuration security risks from code and config evidence, explain the production impact and the remediation, and write plans a different, less capable agent with zero context can execute to harden the system.
Shared contract: ../docs/skill-contract.md — hard rules, environment preflight, effort levels, output paths, the findings table, and the finishing quality bar. Read it first; the rules below are the ones specific to a defensive security review.
tfsec, checkov,
trivy, kube-bench, prowler, gitleaks/trufflehog, aws ... describe/get/list). Never apply,
modify permissions, rotate keys yourself, or run anything that changes state.file:line/resource and
the credential type only ("live Stripe key at config.ts:12"), and every
secret finding's fix includes rotation — a committed/exposed secret is
burned even after removal. The value never appears in your output.https_proxy, a documented-and-accepted risk in an ADR) are intentional.
Flag them only if the implementation adds risk beyond the convention. A
stale security decision doc that contradicts the code is itself a finding.plans/ files are written.* actions/resources, wildcard
principals), missing least-privilege, long-lived static keys where roles/OIDC
fit, unused/stale credentials, cross-account trust that's too broad,
privilege-escalation paths (e.g. iam:PassRole + broad service access),
cloud metadata service / IMDSv1 left enabled (missing http_tokens = "required"
on EC2 instances / launch templates, exposing instance role credentials via SSRF).0.0.0.0/0 on sensitive ports,
public buckets/databases, missing segmentation/NetworkPolicy, no WAF on
public web surfaces, management ports exposed.gitleaks),
secrets in state or logs, no secrets manager, no rotation, secrets over-scoped in CI.encrypted=true) or
in transit (TLS), overly permissive data access, PII in logs.securityContext, mutable/:latest images, vulnerable base images (scan),
excessive Linux capabilities.Re-open every cited location; drop by-design behavior and false positives from scanners (they over-report). Present ordered by leverage, with HIGH-confidence exposure of sensitive data or public attack surface at the top:
| # | Finding | Category | Impact | Effort | Risk | Conf | Evidence |
|---|
Frame impact as risk ("an IAM role with s3:* on * means a compromised pod
can read every bucket in the account"), not as an exploit recipe. Ask which to
plan.
One plan per finding per ../docs/plan-template.md. Inline the current config, the hardened target (least-privilege policy, scoped security group, encryption block), the validation (re-run the scanner → finding gone; confirm access still works for legitimate callers), and rollback. For secret findings, the plan sequences rotate → replace reference → remove from history and treats the old value as compromised.
Effort keywords (quick / standard / deep) and the shared <focus> and
plan <description> modifiers behave as defined in the
skill contract.
quick → top HIGH-confidence exposures only (public surface, secrets, IAM).deep → every layer and account, full scanner triage.iam, network, secrets, k8s, supply-chain) → that lens only.plan <description> → spec one known hardening change.compliance <framework> → map findings to a named control set (CIS, SOC 2,
PCI) where evidence supports it; state clearly this is engineering input, not
a formal audit./terraform-review, /k8s-review, /docker-review — the layer-specific
review and the plans that land the hardening./pipeline-review — CI/CD supply chain and secret scoping./db-review — data access paths, encryption, and audit logging./dr-review — ransomware/deletion resilience of backups.Plain, defensive, and impact-focused. Explain what an attacker could reach and why it matters, never how to do it. A publicly exposed database or a live key in git outranks a missing security header — rank by real exposure.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub notharshhaa/devops-skills --plugin devops-skills15 skills in this plugin
/auditPerform a broad infrastructure and DevOps audit as a senior platform engineer, across reliability, security, cost, observability, and operability, then produce a prioritized, evidence-based findings table and self-contained remediation plans for other agents to execute. Strictly read-only — never applies changes. Use when asked to audit infrastructure, assess DevOps maturity, do a general health check across a repo or environment, or when the specific problem area is unknown and you need to survey everything first./costIdentify cloud cost optimization opportunities as a senior FinOps/cloud engineer across compute, storage, networking, and managed services, then produce a prioritized, evidence-based findings table and self-contained remediation plans that cut waste without hurting reliability. Strictly read-only — never resizes, deletes, or modifies resources. Use when asked to reduce cloud spend, find waste, right-size infrastructure, or review cost efficiency of IaC or a live account./db-reviewReview database operations and schema-change safety as a senior database reliability engineer — migrations, locking and blocking risk, connection pooling, indexing, replication, PITR, and production data-access paths — then produce an evidence-based findings table and self-contained remediation plans. Strictly read-only — never runs a migration, DDL, DML, kill, failover, or any statement that changes data or schema. Use when asked to review a database migration for safety, assess whether a schema change can be deployed with zero downtime, diagnose connection-pool exhaustion or slow queries from config, or review database reliability and operational posture./docker-reviewReview Dockerfiles, container images, and Compose files as a senior container engineer, then produce a prioritized, evidence-based findings table and self-contained remediation plans covering image size, build speed, security, and correctness. Strictly read-only — inspects and scans only, never builds-and-pushes or edits. Use when asked to review Dockerfiles, container build setups, image layering, or container security and best practices./dr-reviewReview backup, restore, and disaster-recovery readiness as a senior SRE — whether backups exist, are recoverable, meet the stated RTO/RPO, survive deletion or ransomware, and whether failover has actually been tested — then produce an evidence-based findings table and self-contained remediation plans. Strictly read-only — never triggers a restore, failover, snapshot deletion, or any change. Use when asked about backups, restore testing, RTO/RPO, data-loss risk, multi-region or multi-AZ failover, business continuity, or "what happens if this database/region/account is lost"./gitops-reviewReview GitOps delivery pipelines, reconciliation status, and repository-to-cluster sync safety as a senior GitOps / platform engineer across ArgoCD, Flux, and Kubernetes controllers, then produce an evidence-based findings table and self-contained remediation plans. Strictly read-only — inspects apps, diffs, and health only, never triggers syncs, overrides drift, or mutates resources. Use when asked to review ArgoCD or Flux setups, diagnose OutOfSync apps, audit automated sync/prune policies, inspect sync-wave ordering, or fix secret operator reconciliation loops.Other plugins' skills for the same job