Agent Self-Assessment
БесплатноБез исполняемых скриптовНе проверенSecurity self-assessment tool for AI agents. Run this against your own configuration to get a structured threat model report with RED/AMBER/GREEN ratings…
от modbender★ 21 звезда на GitHubОб этом скилле
Agent Self-Assessment
Run a structured security self-assessment against your own configuration. You will produce a threat model report with findings and remediation steps.
How to Run
When invoked, you (the agent) perform the following six checks against your actual current configuration — not hypothetically. Use exec, file reads, environment inspection, and tool introspection where needed. Then output the report.
Do not skip checks. If you cannot determine the answer, mark the check RED with reason "Cannot verify".
Check 1: Decision Boundaries
Question: Can external input trigger consequential actions directly, without a gate or approval step?
What to inspect:
- Review your active skills and tools. Which ones perform write, send, delete, pay, or deploy operations?
- Is there a human-in-the-loop gate (confirmation prompt, approval workflow, or ask-mode) before any of these fire?
- Can an incoming message (Discord, webhook, email, API call) cause a consequential action without a gate?
- Is there an explicit list of "safe" vs "gated" operations documented somewhere?
Checks to run:
1. List all tools/skills with write/send/delete/pay/deploy capability
2. For each: is ask=always, ask=on-miss, or no-ask configured?
3. Is there any path from untrusted ingress → consequential action with zero gates?
4. Are decision boundaries documented (e.g., in AGENTS.md or a policy file)?
Scoring:
- 🟢 GREEN — All consequential actions require explicit gate; boundaries documented
- 🟡 AMBER — Gates exist but not all paths covered, or documentation missing
- 🔴 RED — Direct ingress → action path exists with no gate; or cannot verify
Check 2: Audit Trail
Question: Is there an append-only, hash-chained, tamper-evident log of consequential actions?
What to inspect:
- Does an audit log file exist? (Check
audit/directory or equivalent) - Is it append-only NDJSON (one JSON object per line)?
- Does each entry include:
ts,kind,actor,target,summary,provenance? - Is there hash chaining? (
chain.prev,chain.hashfields on each entry) - Is
chain.algodocumented (e.g.,sha256(prev\nline_c14n))? - When was the last entry written? Is logging actually happening?
Checks to run:
# Check if audit log exists
ls -la audit/ 2>/dev/null || echo "No audit directory"
# Check last 3 entries
tail -3 audit/atlas-actions.ndjson 2>/dev/null | python3 -m json.tool 2>/dev/null
# Verify hash chaining present
grep -c '"chain"' audit/atlas-actions.ndjson 2>/dev/null || echo "No chain field found"
# Check entry count
wc -l audit/atlas-actions.ndjson 2>/dev/null
Scoring:
- 🟢 GREEN — Log exists, append-only NDJSON, hash chaining present, recently written
- 🟡 AMBER — Log exists but missing hash chaining, or sparse/incomplete entries
- 🔴 RED — No audit log; or log exists but is mutable/cleartext with no integrity check
Remediation: Install the audit-trail skill from ClawHub — it provides the append-only hash-chained logging implementation.
Check 3: Credential Scoping
Question: Are secrets scoped to their domain? Can a credential granted for domain A be used in domain B?
What to inspect:
- List all environment variables containing credentials (API keys, tokens, private keys)
- For each: what domain/service is it intended for?
- Are any credentials shared across multiple unrelated services?
- Is there a TOOLS.md or credential inventory documenting what each secret is for?
- Are credentials passed as arguments (visible in logs/ps output) rather than env vars?
Checks to run:
# List env vars that look like credentials (redact values)
env | grep -iE '(key|token|secret|pass|private|auth|credential)' | sed 's/=.*/=[REDACTED]/'
# Check if any credential files are world-readable
find ~ -name "*.key" -o -name "*.pem" -o -name ".env" 2>/dev/null | xargs ls -la 2>/dev/null | grep -v "^total"
# Check if credentials appear in shell history (last 20 lines)
tail -20 ~/.zsh_history 2>/dev/null | grep -iE '(key|token|secret)=' | sed 's/=.*/=[REDACTED]/'
Scoring:
- 🟢 GREEN — Each credential scoped to one domain; inventory documented; no world-readable credential files
- 🟡 AMBER — Credentials present but not fully documented; minor scope ambiguity
- 🔴 RED — Cross-domain credentials; credentials in shell history or world-readable files; no inventory
Check 4: Plane Separation
Question: Is the Ingress plane (reading/receiving inputs) isolated from the Action plane (executing consequential operations)?
What to inspect:
- Can a message you receive directly mutate state, send outputs, or call external APIs without passing through a reasoning/decision layer?
- Are ingress tools (Discord reader, email reader, webhook listener) the same tools as action tools (send, write, deplo
Установить Agent Self-Assessment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Agent Self-Assessment?
Security self-assessment tool for AI agents. Run this against your own configuration to get a structured threat model report with RED/AMBER/GREEN ratings across six security domains — decision boundaries, audit trail, credential scoping, plane separation, economic accountability, and memory safety.
Как установить скилл Agent Self-Assessment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Agent Self-Assessment запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic