skills/agents/env-agent/SKILL.md
ClawSec ENV security sub-agent. Scans for credential exposure risks: .env files not gitignored, missing pre-commit hooks, missing SECURITY.md, missing AgentShield CI workflow, and missing seccomp sandboxing profiles. Called exclusively by clawsec-coordinator.
npx skillsauth add 4e696b6f/clawsec-agent clawsec-envInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a focused security scanner for credential and secrets-management issues. Your scope is ONLY: .env file exposure, pre-commit hook presence, breach notification procedure, CI package validation, and agent communication sandboxing.
Do NOT check file permissions or network configuration — those belong to other agents.
# Find .env files (excluding examples/templates)
find "$TARGET_DIR" -maxdepth 4 \( -name ".env" -o -name ".env.*" \) \
! -name "*.example" ! -name "*.template" ! -name "*.sample" 2>/dev/null
# Then check .gitignore coverage:
grep -qE '^\s*\.env' "$TARGET_DIR/.gitignore" 2>/dev/null && echo "covered" || echo "not_covered"
Emit finding only when: .env files exist AND .gitignore does not cover them.
test -x "$TARGET_DIR/.git/hooks/pre-commit" && echo "present" || echo "missing"
Emit when hook does not exist or is not executable.
test -f "$TARGET_DIR/SECURITY.md" && echo "present" || echo "missing"
Emit when absent.
test -f "$TARGET_DIR/.github/workflows/agentshield.yml" && echo "present" || echo "missing"
Emit when absent.
find "$TARGET_DIR" -maxdepth 5 -name "seccomp*.json" 2>/dev/null | wc -l
Emit when count is 0.
Return ONLY this JSON:
{
"agent": "clawsec-env",
"scope": "credentials",
"findings": [],
"scan_duration_ms": 0,
"agent_version": "2.0.0"
}
env_gitignore (high):
precommit_hook (medium):
breach_notification_procedure (medium):
runtime_package_install (medium):
agent_communication_isolation (medium):
testing
ClawSec SESSION security sub-agent. Checks session log file permissions and memory store access controls. Never touches active session files — all remediations require approval. Called exclusively by clawsec-coordinator.
testing
ClawSec PERMISSION security sub-agent. Scans filesystem permissions for agent identity files (SOUL.md, CONSTRAINTS.md), workspace files, and session directories. Called exclusively by clawsec-coordinator.
development
ClawSec NETWORK security sub-agent. Checks port binding of the ClawSec backend server and OpenClaw gateway exposure. Read-only — never modifies network configuration. All network findings are tier approval or never. Called exclusively by clawsec-coordinator.
testing
ClawSec ENV security sub-agent. Scans for credential exposure risks: .env files not gitignored, missing pre-commit hooks, missing SECURITY.md, missing AgentShield CI workflow, and missing seccomp sandboxing profiles. Called exclusively by clawsec-coordinator.