/security-appsec-review:openclaw-deployment-hardeningfrom security-appsec-review
Adds repeatable security gates to OpenClaw build and deployment workflows: preflight hardening checks, CI/CD guardrails, container runtime restrictions, and post-deploy verification.
Ships in security-appsec-review. 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.
Use this skill to add repeatable security gates around OpenClaw build and deployment workflows.
Add mandatory controls to CI before artifacts are promoted:
Example CI step order (run in a CI shell that stops on failure, with reviewed/pinned tools and an image already built and its reviewed sha256 digest supplied as IMAGE_DIGEST):
# Build
npm ci
npm run build
# Security gates
trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 .
trivy image --severity HIGH,CRITICAL --exit-code 1 "my-registry/openclaw@${IMAGE_DIGEST}"
syft "my-registry/openclaw@${IMAGE_DIGEST}" -o spdx-json > sbom.json
# Keep signing keys out of source; sign the exact digest scanned above.
cosign sign --key /secure/path/cosign.key "my-registry/openclaw@${IMAGE_DIGEST}"
Trivy reports findings without failing by default; explicit --exit-code makes the examples gates. Pin and record the scanned digest, use that same digest for SBOM/signing/promotion, and verify signatures against an explicitly trusted key or identity. These commands do not implement the full pipeline alone. See Trivy exit-code behavior.
Run OpenClaw with restrictive defaults:
no-new-privileges enabledKubernetes-oriented expectations:
runAsNonRoot: trueallowPrivilegeEscalation: falsereadOnlyRootFilesystem: trueRequire explicit promotion checks:
Avoid mutable latest tags for production OpenClaw services.
Run a hardening smoke test immediately after rollout:
kubectl get pods -n openclaw
kubectl auth can-i --as=system:serviceaccount:openclaw:default list secrets -n openclaw
kubectl get networkpolicy -n openclaw
kubectl logs deploy/openclaw -n openclaw --tail=200
Verify:
Maintain a hardened rollback workflow:
container-hardening) - Container security baseline controlskubernetes-hardening) - Pod and cluster hardening patternssbom-supply-chain) - SBOM, signing, and provenance controls# Read-only first: inventory before any active step.
which <tool> && <tool> --help | head -n 20
Adapted from BagelHole/DevOps-Security-Agent-Skills (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marslanalvi/skillsstack --plugin security-appsec-review54 skills in this plugin
/agentic-actions-auditorAudits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations./audit-augmentationAugments Trailmark code graphs with external audit findings from SARIF static analysis results, weAudit annotation files, and version-gated Trailmark 0.4.x binary-analysis graph exports. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, importing binary graph findings, cross-referencing Semgrep, CodeQL, or binary-analysis findings with call graph data, or visualizing audit findings in the context of code structure.
Other plugins' skills for the same job