Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

zt4ai-self-auditzt4ai 自审

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

4,412

周安装

182

GitHub Stars

公开资料未说明

下载量

1,441
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:zt4ai-self-audit(zt4ai 自审)
来源仓库:https://github.com/tanarchytan/zt4ai-self-audit
安装命令:
openclaw skills install zt4ai-self-audit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install zt4ai-self-audit

简介

基于零信任框架对 AI 代理工作区进行全面安全审计。

  • 覆盖技能配置、凭据管理及权限边界检查。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 遵循微软 ZT4AI 标准识别潜在风险项。
  • 输出仅为参考建议,不替代人工安全评审流程。
  • zt4ai-self-audit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
zt4ai-self-audit
description
>

ZT4AI Self-Audit

Audit your agent's skills, workspace, and configuration against Zero Trust for AI principles.

Background

AI agents process instructions and data as indistinguishable tokens in a context window. This means:

  • Skill files loaded into context can inject behavioral instructions
  • Workspace files (SOUL.md, AGENTS.md) are both operating instructions AND attack surface
  • External inputs (web content, emails, ClawHub skills) can contain prompt injection
  • Credentials in plaintext config files have no access scoping or rotation

This skill applies three frameworks:

  1. Microsoft ZT4AI — Verify explicitly, least privilege, assume breach
  2. "Caging the Agents" (arXiv:2603.17419) — Four-layer defense: workload isolation, credential proxy, network egress, prompt integrity
  3. OWASP Agentic AI Top 10 — Trust boundary violations, privilege escalation, resource exhaustion

Audit Process

Step 1: Inventory Skills

Scan all three skill locations:

echo "=== System ===" && ls /usr/lib/node_modules/openclaw/skills/ 2>/dev/null
echo "=== User ===" && ls ~/.openclaw/skills/ 2>/dev/null
echo "=== Workspace ===" && ls ~/.openclaw/workspace/skills/ 2>/dev/null

Step 2: Classify Each Skill

Assign every skill to a risk category using the classification guide in references/risk-classification.md.

Categories:

  • Behavioral modifiers (🔴 highest risk) — Skills that change how you think, override safety instincts, or inject decision-making patterns into your context
  • Credential handlers (🟡 elevated risk) — Skills that read, write, or transmit API keys, tokens, passwords
  • System modifiers (🟡 elevated risk) — Skills that write to config files, modify system state, or execute with elevated privileges
  • Tool wrappers (🟢 standard risk) — Skills that wrap external tools with well-scoped inputs/outputs
  • Read-only (🟢 low risk) — Skills that only read data and produce reports

Step 3: Audit Each Skill Against ZT4AI Principles

For each skill, evaluate against the checklist in references/audit-checklist.md.

Quick reference — the three questions:

  1. Verify explicitly: Does this skill verify identity/authorization before acting? Does it distinguish owner from non-owner input?
  2. Least privilege: Does this skill request only the access it needs? Could its scope be narrowed?
  3. Assume breach: If this skill were compromised (poisoned update, prompt injection in its files), what's the worst outcome? How would you detect it?

Step 4: Check Scripts and Executables

Find all executable code in skills:

find ~/.openclaw/skills/ ~/.openclaw/workspace/skills/ \
  -type f \( -name "*.sh" -o -name "*.py" -o -name "*.js" \) \
  2>/dev/null | sort

For each script, check:

  • Does it access credentials? (grep -li "API_KEY\|SECRET\|TOKEN\|PASSWORD" <file>)
  • Does it make network calls? (grep -li "curl\|wget\|requests\|fetch\|http" <file>)
  • Does it write to system config? (grep -li "openclaw.json\|\.env\|/etc/" <file>)
  • Does it execute arbitrary input? (grep -li "eval\|exec\|subprocess\|system(" <file>)

Step 5: Generate Integrity Baseline

Create SHA256 checksums of all skill files for future drift detection:

find ~/.openclaw/skills/ ~/.openclaw/workspace/skills/ \
  -type f \( -name "*.md" -o -name "*.sh" -o -name "*.py" -o -name "*.js" -o -name "*.json" \) \
  -exec sha256sum {} \; | sort -k2 > memory/skill-integrity-baseline.md

To verify against an existing baseline:

sha256sum -c memory/skill-integrity-baseline.md 2>&1 | grep -v ": OK$"

Any output indicates modified files — investigate before trusting.

Step 6: Assess Workspace File Security

Check the self-modification surface:

  • Can the agent modify its own SOUL.md / AGENTS.md? (Yes by default — flag it)
  • Are memory files loaded into context? (Yes — they're instruction vectors)
  • Is MEMORY.md loaded in non-owner contexts? (Should NOT be — data leak risk)
  • Are there credentials in workspace files? (grep -rli "api_key\|password\|secret" ~/.openclaw/workspace/)

Step 7: Check Network Egress

Assess outbound network restrictions:

# Check for firewall rules
iptables -L OUTPUT -n 2>/dev/null || echo "No iptables access"
ufw status 2>/dev/null || echo "No UFW"

# Check what the agent can reach
curl -s -o /dev/null -w "%{http_code}" https://httpbin.org/get --max-time 5

If the agent has unrestricted outbound access, flag as a security gap — a compromised agent could exfiltrate data to any destination.

Step 8: Produce Report

Generate a structured report using the template in references/report-template.md. Include:

  • Risk classification for each skill
  • Specific findings with severity ratings
  • Recommended remediations with priority
  • Action tier assignments (see references/action-tiers.md)

Save report to memory/zt4ai-audit-YYYY-MM-DD.md.

Ongoing Monitoring

After the initial audit:

  1. Re-verify integrity after any skill install/update (sha256sum -c against baseline)
  2. Re-audit behavioral skills whenever they're updated — these are the highest risk
  3. Update baseline after intentional skill modifications
  4. Schedule periodic audits via cron (monthly recommended)

References

  • references/risk-classification.md — Detailed classification criteria with examples
  • references/audit-checklist.md — Per-skill audit checklist
  • references/action-tiers.md — Graduated trust model for agent actions
  • references/report-template.md — Audit report template

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.22%
按下载量换算1,242

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills