#8951: docs: Add security scan workflow template (Trivy + KICS + TruffleHog)
docs
Cluster:
OpenClaw Plugin Enhancements
## Summary
This PR adds security scanning examples to help OpenClaw users secure their workspaces.
## What's Included
### 1. Security Scan Workflow Template (`docs/security/scan-workflow-template.yml`)
A GitHub Actions workflow template that runs:
- **Trivy** - CVE/vulnerability scanning for dependencies
- **KICS** - Infrastructure as Code security scanning
- **TruffleHog** - Secret detection in git history
Based on [Catena-X TRG 8](https://eclipse-tractusx.github.io/docs/release/trg-8/) security guidelines used in automotive/enterprise environments.
### 2. Pre-Commit Hook Guide (`docs/security/pre-commit-secrets.md`)
Step-by-step instructions for setting up a local pre-commit hook that:
- Scans for secrets before each commit
- Blocks commits containing verified secrets
- Reduces risk of accidental secret exposure
## Why This Matters
- 91% of prompt injection attacks succeed against unprotected AI assistants ([source](https://www.zeroleaks.com/prompt-injection-study))
- Secrets in git history are a common attack vector
- Automated scanning catches issues before they become problems
## Testing
These templates have been tested and are actively used in production OpenClaw deployments.
---
## AI-Assisted Disclosure
- [x] This PR was built with AI assistance (Claude Sonnet)
- [x] Degree of testing: **manually validated** — templates tested in production OpenClaw deployment
- [x] I understand what the templates do and have reviewed all generated output
- [ ] Session logs: available on request
---
## Checklist
- [x] Docs-only change (no code modified)
- [x] No personal data included
- [x] Generic, copy-paste templates only
- [x] Documentation in English
- [x] References to industry standards (Catena-X TRG 8)
- [x] macOS CI failures are pre-existing upstream (unrelated to this PR)
Most Similar PRs
#22070: docs: add minimal public safety checklist for template sharing
by MinwooKim1990 · 2026-02-20
71.9%
#15757: feat(security): add hardening gap audit checks
by saurabhsh5 · 2026-02-13
71.4%
#7438: feat: add container vulnerability scanning before push
by Shrinet82 · 2026-02-02
70.1%
#10514: Security: harden AGENTS.md with gateway, prompt injection, and supp...
by catpilothq · 2026-02-06
69.1%
#16961: docs: warn against storing secrets in injected workspace files
by soumikbhatta · 2026-02-15
68.7%
#15794: docs(security): comprehensive security audit report
by kinder-world · 2026-02-13
68.4%
#10559: feat(security): add plugin output scanner for prompt injection dete...
by DukeDeSouth · 2026-02-06
68.1%
#7835: CI: add dependency security audit job
by M00N7682 · 2026-02-03
67.9%
#6405: feat(security): Add HTTP API security hooks for plugin scanning
by masterfung · 2026-02-01
67.7%
#17273: feat: add security-guard extension — agentic safety guardrails
by miloudbelarebia · 2026-02-15
67.7%