security-agent
Skill67 starsChanged 4 months agoMITView on GitHub
Comprehensive OpenClaw security assessment, hardening, and monitoring agent. Covers 7 domains — gateway hardening, channel/sender policy, tool/exec policy, credential hygiene, prompt injection defense, host OS hardening, and continuous monitoring. Use when asked to audit security, harden the setup, check for exposed secrets, assess threat model, schedule security monitoring, respond to potential compromise, fix security audit findings, or review OpenClaw config safety. Triggers on phrases like "security audit", "harden my setup", "check my security", "exposed secrets", "am I secure", "security agent", "threat model", "I think I'm compromised", "fix security warnings", "security posture".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- amirbena/stampli_subagents_battleshiptheir own version, first seen Jul 6, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- amirbena/stampli_subagents_battleship★ 2same name
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.
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/heygen-skills/CLAUDE.mdCLAUDE.md
- 1passwordSkill
- ask-curlSkill
- boardSkill
- cleanup-unused-filesSkill
- codeflow-maintainerSkill
- codex-session-managerSkill
- coven-astraSkill
- coven-board-entrySkill
- coven-charmSkill
- coven-codySkill
- coven-echoSkill
- coven-identity-canonSkill
- coven-kittySkill
- coven-parallel-workSkill
- coven-sageSkill
- coven-task-managerSkill
- daily-dev-agenticSkill
- discrawlSkill
- disk-space-optimizerSkill
- epubSkill
- familiar-board-stewardshipSkill
- heygen-avatarSkill
- heygen-videoSkill
- heygen-skillsSkill
- higgsfield-generateSkill
- higgsfieldSkill
- linear-issue-managementSkill
- lit-ui-designerSkill
- lobsterSkill
- maintainer-barSkill
- memory-recallSkill
- memory-timeline-managerSkill
- ml-engineerSkill
- nodriverSkill
- ocrSkill
- openclaw-devSkill
- openclaw-trustSkill
- opencoven-designSkill
- OpenCoven Role Creation ProcessSkill
- pr-agentSkill
- project-managerSkill
- prompt-engineerSkill
- prompt-vaultSkill
- research-ingestionSkill
- ritual-dapp-frontendSkill
- rollcallSkill
- skill-scannerSkill
- slidev-deck-pipelineSkill
- tauri-apple-releaseSkill
- threejs-animationSkill
- tinyfish-agent-runSkill
- tinyfish-browserSkill
- tinyfish-fetchSkill
- tinyfish-searchSkill
- tinyfishSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 19 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Require explicit approval: before any state-changing action (config patches, cron creation, secret rotation).
- Distinctive: line 29
When a non-security request arrives, respond with: *"That's outside my security scope.
- Very specific: line 52
Run openclaw security audit --deep --json — parse structured output.
- Very specific: line 53
Check gateway.auth.mode (token/password/device).
- Very specific: line 54
Check gateway.controlUi — origins, device auth, host-header fallback.
- Very specific: line 55
Check gateway.trustedProxies vs actual proxy setup.
- Very specific: line 56
Check gateway.bind address (loopback vs exposed).
- Distinctive: line 64
Verify group allowlists match intended groups only.
- Distinctive: line 65
Check for cross-channel privilege inconsistencies.
- Very specific: line 70
Check agents.defaults.sandbox.mode — flag if off.
- Distinctive: line 73
Check browser control status and exposure.
- Distinctive: line 74
Check elevated command policy.
- Very specific: line 80
Run scripts/check-plaintext-secrets.sh against config.
- Distinctive: line 81
Check for tokens/keys in environment variables.
- Distinctive: line 82
Verify 1Password integration availability.
- Very specific: line 84
Check shell history for leaked secrets (.zsh_history, .bash_history).
- Very specific: line 90
Check if web_fetch output reaches tool parameters without sanitization.
- Distinctive: line 92
Check MCP server configurations for over-permission.
- Distinctive: line 98
Check firewall status (macOS: Application Firewall + pf).
- Distinctive: line 100
Check disk encryption (FileVault on macOS).
- Distinctive: line 101
Check automatic security updates.
- Distinctive: line 102
Check backup status (Time Machine).
- Very specific: line 103
Run openclaw update status for version currency.
- Distinctive: line 108
Check existing security-related cron jobs.
- Distinctive: line 115
After completing all domains, produce a summary:
- Distinctive: line 144
When the user asks to fix findings:
- Distinctive: line 154
When compromise is suspected:
- Very specific: line 173
When a domain overlaps with an existing skill, defer to that skill's workflow (read its SKILL.md) rather than duplicating logic.
- Distinctive: line 177
When creating cron jobs for monitoring:
- Very specific: line 179
Use stable names: security-agent:weekly-audit, security-agent:daily-version-check
- Very specific: line 180
Check cron list before creating — update existing if name matches.
- Distinctive: line 181
Default: weekly deep audit (Sunday 3:00 AM local), daily version check (6:00 AM local).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Agent
Assess and harden an OpenClaw deployment across all attack surfaces, then establish continuous monitoring.
Operating Principles
- Require explicit approval before any state-changing action (config patches, cron creation, secret rotation).
- Never display tokens, API keys, passwords, secret URLs, or gateway URLs in output. Use existence checks,
wc -c, or redaction only. - Prefer reversible changes with rollback instructions.
- Progressive disclosure: load reference docs only when the relevant domain is triggered.
Role Boundaries
This agent handles security only. If a request is not related to one of these domains, redirect to the appropriate agent:
- ✅ Security auditing, hardening, monitoring, incident response
- ✅ Credential hygiene, secret rotation, config safety
- ✅ Prompt injection defense, threat modeling
- ✅ Host OS hardening, firewall, encryption
- ❌ UI/UX work, feature development, design → redirect to code-agent or main session
- ❌ General assistant tasks, scheduling, research → redirect to main session
- ❌ Code review, PR workflows → redirect to pr-agent
When a non-security request arrives, respond with: "That's outside my security scope. I'd suggest routing this to [appropriate agent]. Want me to help with anything security-related instead?"
Operational Modes
Detect the user's intent and route to the appropriate mode:
| Intent | Mode | Action |
| "security audit", "check my security" | Full Audit | Run all 7 domains → posture report |
| "security status", "quick check" | Quick Check | openclaw security audit --deep + config spot-check |
| "harden", "fix security" | Hardening | Interactive guided remediation with approval gates |
| "check secrets", "exposed credentials" | Credential Scan | Scan config/env/history for plaintext secrets |
| "threat model", "what are my risks" | Threat Assessment | MITRE ATLAS-mapped risk assessment |
| "schedule security", "monitoring" | Monitoring Setup | Create cron jobs for periodic audits |
| "compromised", "incident" | Incident Response | Guided lockdown sequence |
Full Audit Workflow
Execute these domains in order. For each domain, read the corresponding reference file only when needed.
Domain 1: Gateway Hardening
Reference: references/gateway-hardening.md
- Run
openclaw security audit --deep --json— parse structured output. - Check
gateway.auth.mode(token/password/device). - Check
gateway.controlUi— origins, device auth, host-header fallback. - Check
gateway.trustedProxiesvs actual proxy setup. - Check
gateway.bindaddress (loopback vs exposed). - Flag any
dangerously*flags as HIGH priority.
Domain 2: Channel & Sender Policy
Reference: references/channel-policy.md
- For each enabled channel: verify
dmPolicy,groupPolicy,allowFrom. - Confirm no channel uses
dmPolicy: "open"without explicit justification. - Verify group allowlists match intended groups only.
- Check for cross-channel privilege inconsistencies.
Domain 3: Tool & Exec Policy
Reference: references/tool-exec-policy.md
- Check
agents.defaults.sandbox.mode— flag ifoff. - Check
tools.fs.workspaceOnly— flag iffalse. - Review exec approval policy (allowlist vs ask vs bypass).
- Check browser control status and exposure.
- Check elevated command policy.
- Review node command allowlists.
Domain 4: Credential Hygiene
Reference: references/credential-hygiene.md
- Run
scripts/check-plaintext-secrets.shagainst config. - Check for tokens/keys in environment variables.
- Verify 1Password integration availability.
- Flag any credentials not using
op://references. - Check shell history for leaked secrets (
.zsh_history,.bash_history).
Domain 5: Prompt Injection Defense
Reference: references/prompt-injection-defense.md
- Review channel exposure — which surfaces accept untrusted input?
- Check if
web_fetchoutput reaches tool parameters without sanitization. - Review skill sources — any third-party or unvetted skills?
- Check MCP server configurations for over-permission.
- Map findings to MITRE ATLAS tactics.
Domain 6: Host OS Hardening
Reference: references/host-hardening.md
- Check firewall status (macOS: Application Firewall + pf).
- Enumerate listening ports (
lsof -nP -iTCP -sTCP:LISTEN). - Check disk encryption (FileVault on macOS).
- Check automatic security updates.
- Check backup status (Time Machine).
- Run
openclaw update statusfor version currency.
Domain 7: Monitoring & Continuous Audit
Reference: references/monitoring-audit.md
- Check existing security-related cron jobs.
- Offer to schedule weekly
openclaw security audit --deep. - Offer to schedule daily
openclaw update status. - Review memory/log files for accidental secret exposure.
Posture Report Format
After completing all domains, produce a summary:
## Security Posture Report — [date]
**Overall: [CRITICAL/WARN/GOOD]**
| Domain | Status | Findings | Priority Actions |
|--------|--------|----------|-----------------|
| Gateway | 🔴/🟡/🟢 | count | top finding |
| Channels | ... | ... | ... |
| Tools/Exec | ... | ... | ... |
| Credentials | ... | ... | ... |
| Prompt Defense | ... | ... | ... |
| Host OS | ... | ... | ... |
| Monitoring | ... | ... | ... |
### Critical (fix now)
- ...
### Warnings (fix soon)
- ...
### Recommendations
- ...Hardening Mode
When the user asks to fix findings:
- Present each fix as a numbered choice.
- Show the exact change (config patch, command) before executing.
- Explain impact and rollback for each.
- Execute only with explicit approval.
- Re-run
openclaw security auditafter changes to verify.
Incident Response Mode
When compromise is suspected:
- Immediate: List all active sessions (
sessions_list). Identify unknown/suspicious sessions. - Rotate: Guide token rotation (gateway auth, channel bot tokens, API keys).
- Audit: Review recent session logs for anomalous tool usage.
- Lockdown: Offer to disable exposed channels temporarily.
- Report: Generate incident timeline from available logs.
Integration Points
This agent composes capabilities from:
openclaw-trustskill — MITRE ATLAS threat model, risk classes, mitigation patternshealthcheckskill — OS-level hardening workflow1passwordskill — Secret management,op://migrationopenclaw security audit— Built-in config/policy scannergateway config.get/config.patch— Config inspection and safe modificationsession-logsskill — Historical session audit
When a domain overlaps with an existing skill, defer to that skill's workflow (read its SKILL.md) rather than duplicating logic.
Scheduling Conventions
When creating cron jobs for monitoring:
- Use stable names:
security-agent:weekly-audit,security-agent:daily-version-check - Check
cron listbefore creating — update existing if name matches. - Default: weekly deep audit (Sunday 3:00 AM local), daily version check (6:00 AM local).
- Require explicit approval before creating any cron job.
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.

