← 返回 Skills 市场
thomastrumpp

ztp

作者 thomastrumpp · GitHub ↗ · v2.0.0
cross-platform ⚠ suspicious
626
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ztp
功能描述
A mandatory security audit skill for validating new code, skills, and MCP servers against the SEP-2026 Zero Trust protocol.
安全使用建议
Before installing or trusting this as a Gatekeeper, consider the following: - Provenance: the skill has no homepage and an unknown source. Ask the publisher for provenance, a cryptographic release, or maintainer contact information before using it as an authoritative gate. - Path mismatch: SKILL.md shows a different script path (skills/openclawSecurity/...) than the included files (scripts/shield_pro.py). Confirm the correct runtime invocation and update the docs to avoid accidental failures. - Dynamic import/execution: the code references a dynamic scan harness (importlib/util and tests that mention a 'trap'). Dynamic importing can execute code; obtain and review the SafeImportHarness implementation to ensure it truly prevents side effects (no fork/exec, no uncontrolled os.system, no network during import). - External/semantic scanning: the tool can optionally call external tools or LLM-based semantic checks. Confirm whether any API keys or network endpoints would be used automatically, which environment variables they would read, and whether code or findings are transmitted outside your environment. - False positives and policy strictness: the forbidden-imports and forbidden-calls lists include commonly-used modules (e.g., functools, open). Expect false positives; plan for a manual-review workflow and test the tool on benign code to understand its rules. - Review risky constructs: review any code that uses importlib, eval/exec handling, or automated dynamic execution traps. Also run the included unit tests in an isolated sandbox to validate behavior. If you need to proceed: run the tool in an isolated environment (air-gapped or heavily restricted container), inspect the SafeImportHarness codepath, and verify that no network connections are made and no environment secrets are read before giving it gatekeeper status.
功能分析
Type: OpenClaw Skill Name: ztp Version: 2.0.0 The OpenClaw AgentSkills bundle is a security audit tool designed to detect malicious patterns, obfuscation, and unauthorized network/system access in code and documentation. The `SKILL.md` provides clear, benign instructions for the AI agent to run security scans. The core `shield_pro.py` script implements static (AST, regex) and dynamic (SafeImportHarness) analysis to identify vulnerabilities and malware, but it does not contain any malicious logic itself. The `SafeImportHarness` actively prevents dangerous system calls during module import, acting as a defense mechanism. While `os.popen` is used in `generate_markdown_report` for a benign purpose (getting the current date), and `scan_semantic` checks for an `OPENCLAW_AI_API_KEY` without performing any external communication, these do not indicate malicious intent. The overall design and implementation align with its stated purpose as a security gatekeeper.
能力评估
Purpose & Capability
Name/description say 'SEP-2026 Gatekeeper' and the code implements a static/dynamic Python auditor (AST-based ShieldPro, network and supply-chain heuristics). That aligns with the stated audit purpose. However: the SKILL.md calls this 'mandatory' and a platform Gatekeeper while the skill metadata does not force install (always:false) and the package has unknown source/homepage — lack of provenance is inconsistent with a component that claims to be an authoritative 'Gatekeeper'.
Instruction Scope
SKILL.md directs running shield_pro.py to scan targets and recommends running additional scanning tools (Bandit, Safety, Trivy, Garak). Those instructions stay within an expected audit scope (static/dynamic analysis). Two concerns: (1) the documented command path in SKILL.md is 'skills/openclawSecurity/scripts/shield_pro.py' while the manifest contains 'scripts/shield_pro.py' (path mismatch — the command as written may fail unless installed under a different layout); (2) the runtime code uses importlib/util and references a dynamic scanning harness (tests/scan_dynamic, 'SafeImportHarness' implied) — dynamic import/load code can execute target code unless the harness is correctly sandboxed. SKILL.md strongly states 'No Execution', but code indicates it may perform controlled dynamic checks — you should verify the SafeImportHarness implementation before trusting it.
Install Mechanism
No install spec — instruction-only with included scripts. This minimizes install-time risks (no remote downloads). The skill ships code files in the bundle; that is expected for an instruction+script auditor.
Credentials
The skill declares no required environment variables or credentials (good). However SKILL.md and tests reference a 'semantic' scan step (semantic recommendation if API key missing) and recommend external tools like 'garak' (LLM prompt-injection testing). That implies optional use of external APIs/keys; the skill does not declare where those keys would come from. Confirm whether any external-model API keys (or other credentials) would be read at runtime (and from which env vars) before enabling the skill.
Persistence & Privilege
Metadata does not set always:true, and the skill is user-invocable only — no special persistent/system privileges are requested. The skill does not declare or appear to modify other skills or global agent settings from the provided files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ztp
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ztp 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
ZTP 2.0.0 introduces a comprehensive mandatory security audit skill based on the SEP-2026 Zero Trust protocol. - Enforces static code analysis and supply chain security checks for all new Skills, MCP Servers, and scripts. - Provides step-by-step audit workflow and clear criteria for accept/reject decisions. - Integrates the Shield Pro 2.0 analyzer, with optional support for SOTA tools (Bandit, Safety, npm audit, Trivy, Garak). - Ensures all code is scanned before use or execution, prioritizing Zero Trust and non-execution principles. - Supplies clear usage instructions and actionable output thresholds for manual review or rejection. Inspired by https://www.youtube.com/watch?v=AGxcQ-j64Ms&t=2s
元数据
Slug ztp
版本 2.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ztp 是什么?

A mandatory security audit skill for validating new code, skills, and MCP servers against the SEP-2026 Zero Trust protocol. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 626 次。

如何安装 ztp?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ztp」即可一键安装,无需额外配置。

ztp 是免费的吗?

是的,ztp 完全免费(开源免费),可自由下载、安装和使用。

ztp 支持哪些平台?

ztp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ztp?

由 thomastrumpp(@thomastrumpp)开发并维护,当前版本 v2.0.0。

💬 留言讨论