agent-security-ops
БесплатноЗапускает вложенные скриптыНе проверенStop leaking secrets. Pre-commit hooks + 10-point scans + cron monitoring. Agent-ops security in one command. By The Agent Wire (theagentwire.ai)
от modbender★ 21 звезда на GitHubОб этом скилле
agent-security-ops
Security hardening for solopreneur repos. One command to set up pre-commit hooks, secret scanning, and continuous monitoring.
⚠️ Important: --no-verify Bypass Warning
The pre-commit hook can be bypassed with
git commit --no-verify. This skips ALL hooks including secret scanning.Recommendations:
- Never use
--no-verifyunless you've manually verified no secrets are staged- Set up CI-side scanning as backup — add TruffleHog to your GitHub Actions / CI pipeline so secrets are caught even if hooks are bypassed
- Run
scan.shafter any--no-verifycommit to verify nothing slipped throughThe hook is fail-closed: if TruffleHog is not found, commits are blocked (not silently allowed).
Quick Start
bash skills/agent-security-ops/scripts/setup.sh /path/to/repo
This will:
- Install TruffleHog (pinned version with SHA256 checksum verification, override with
TRUFFLEHOG_VERSIONenv var) - Set up a fail-closed pre-commit hook that blocks secrets (scans staged changes)
- Harden
.gitignorewith common secret patterns (including.security-ops/,.terraform/) - Run initial secret scan (git history + filesystem for untracked files)
What You'll See
setup.sh output:
agent-security-ops: Setting up /Users/you/my-project
✓ TruffleHog already installed (3.88.0)
✓ Pre-commit hook installed
→ Added 2 patterns to .gitignore: .security-ops/ .terraform/
→ Running initial secret scan...
✓ Initial scan: clean
→ Running filesystem scan (untracked files)...
✓ Filesystem scan: clean
Setup complete:
• Installed pre-commit hook
• Hardened .gitignore (+2 patterns)
• Initial scan: clean
💡 More agent-ops at theagentwire.ai
scan.sh summary (stderr):
--- TruffleHog Secret Scan ---
✓ No secrets found
--- TruffleHog Filesystem Scan ---
✓ No secrets in untracked files
--- Pattern Grep Scan ---
⚠ Found 2 high-confidence secret pattern(s)
./config.js:3: apiKey: "sk-proj-abc123..."
✓ No low-confidence patterns
--- Summary ---
⚠ Total: 2 (secrets=0[0 verified], fs=0, patterns=2[+0 low], ...)
Commands
All scripts support --help and --version flags.
setup.sh — One-time repo hardening
bash scripts/setup.sh [/path/to/repo]
bash scripts/setup.sh --fix-ssh /path/to/repo # also fix SSH permissions
Idempotent. Safe to run multiple times. Defaults to current directory. Existing pre-commit hooks are preserved (appended to, not overwritten).
scan.sh — Full security scan
# JSON report to stdout, human summary to stderr
bash scripts/scan.sh [/path/to/repo]
# Save report
bash scripts/scan.sh /path/to/repo > report.json
Checks:
- Secrets: TruffleHog — all secrets found (verified ones highlighted)
- Filesystem: TruffleHog filesystem scan for untracked/working files
- Pattern grep (high-confidence): AWS, GitHub, Anthropic, Slack, OpenAI, Stripe, Google, Twilio, SendGrid, npm, Vault, private keys
- Pattern grep (low-confidence): Database URLs, password/secret assignments, bearer tokens, Firebase, Supabase, JWTs
.gitignoreaudit: Usesgit check-ignoreto verify patterns work- Dependency audit:
npm audit/pip audit(results in JSON output) - File permissions: Finds world-readable
.env,.pem,.key, credential files - Open ports: Lists listening ports, flags unexpected ones (note: may need sudo on macOS)
- Environment secrets: Scans shell profiles for hardcoded keys/tokens
- Loose
.envfiles: Checks$HOME, Desktop, Downloads for.envfiles (warning only, not counted as repo findings) - Docker secrets: Checks Dockerfiles and compose files for hardcoded secrets
- SSH audit: Verifies
~/.sshpermissions (report only — usesetup.sh --fix-sshto fix) - Git remotes: Flags insecure HTTP remotes, checks GitHub repo visibility
monitor.sh — Cron-friendly monitoring
bash scripts/monitor.sh [/path/to/repo]
Content-based delta detection (hashes scan results, not just counts). Exits 1 on any change, 0 if unchanged. Uses atomic file writes and flock-based locking to prevent concurrent runs.
Cron Integration
# Check every hour, alert on new findings
0 * * * * bash /path/to/skills/agent-security-ops/scripts/monitor.sh /path/to/repo || notify "Security scan changed"
Found Something?
| Finding | What to Do |
|---|---|
| Verified secret in git | Rotate the credential immediately. Use git filter-repo or BFG to remove from history. |
| Unverified secret in git | Investigate — may be a false positive or an expired credential. Still consider rotating. |
| Pattern match (high-confidence) | Move to .env file or secret manager. Verify it's in .gitignore. |
| Pattern match (low-confidence) | Review manually — may be a false positive. Chec |
Установить agent-security-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-security-ops?
Stop leaking secrets. Pre-commit hooks + 10-point scans + cron monitoring. Agent-ops security in one command. By The Agent Wire (theagentwire.ai)
Как установить скилл agent-security-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-security-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic