AI Agent Hub
Back to skills
Zhongkui Skill Security Auditor icon

Zhongkui Skill Security Auditor

IT Ops & Security Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_741dc82b/zhongkui-skill.

About this skill

The Problem: Trust Gaps in the AI Agent Ecosystem

In the Skill-based Agent ecosystem, installing third-party components is akin to plugging unknown modules into a system. A seemingly harmless Skill might contain prompt injection directives, credential stealing code, or covert data exfiltration channels. Traditional static scanning or manual review often fails to capture these hybrid risks, particularly behavioral-level vulnerabilities driven by LLMs. Developers and operations teams need a systematic tool to automatically assess a Skill's security posture before installation.

Core Mechanism: A Layered Audit Framework

Zhongkui.skill provides a defense-in-depth framework with the following workflow:

  1. Layer 1: Static Checklist Audit: It performs a static scan of SKILL.md, scripts/, and dependency files against a checklist of 54 rules. This layer identifies fundamental risk patterns (R1-R12) including malicious code execution, privilege escalation, and obfuscated code. Any Skill triggering a "one-vote veto" item (e.g., eval() on external input) is directly ruled malicious, terminating the audit.

  2. Layer 2: Behavioral Emulation Assessment: Triggered when static auditing detects potential high-risk items, this layer aims to detect behavioral vulnerabilities like R8 Covert Instructions and R11 External Information Source Poisoning by simulating tool invocation chains. It incorporates specialized tests for red team adversarial tactics and agent behavioral vulnerabilities.

  3. Layer 3: Supply Chain Tracing: For high-risk or first-time published Skills, this layer traces supply chain security across 10 dimensions, including publisher reputation, CVE dependencies, version changes, and community feedback, assessing the runtime behavior of dependencies.

The tool employs a dual-verification model of 54 checklist items + 21 behavioral scenarios. The audit adheres to strict scoring and adjudication rules, outputting a three-tier verdict: "Clean," "Suspicious," or "Malicious," and follows clear error handling principles to ensure failures are actively reported, not silently skipped.

Capability Boundaries and Considerations

  • Audit ≠ Guarantee: The audit results are an automated assessment of known risk patterns, not an absolute security guarantee. For high-risk scenarios like finance, healthcare, or government, the tool's report should serve as the starting point for human review.
  • Some Capabilities are In Development: Layer 2 (Behavioral Emulation) and Layer 3 (Supply Chain Tracing) are currently marked as "Planned," with core capabilities centered on Layer 1's static audit.
  • Vulnerability Database Requires Manual Update: Its built-in patterns.json uses a two-tier structure: a manual base and an auto-incremental layer. The --update command fetches the latest threat intelligence from NVD and Seebug to maintain detection efficacy.

Use Cases

  • After downloading a new Skill from SkillHub or other sources but before formal production deployment, run the `audit <skill-path>` command to get a comprehensive security report with risk findings and a score.
  • As a tech lead needing to evaluate multiple internally-developed Skills from the team, use the `quick-audit` command to perform a rapid static scan on each, flagging candidates for deeper inspection.
  • Before publishing a self-developed Skill to a public repository, use the `audit` command on your own Skill to self-review and ensure no one-vote-veto red lines (like data exfiltration) are inadvertently crossed.
  • Integrate the `python zhongkui.py <path> --quick` command into a CI/CD pipeline to automatically perform a rapid security check on Skills after each code commit, preventing unsafe changes from being merged.

Best For

  • IT Ops or security engineers who need to automate security assessments of third-party Skills before installation.
  • Team leads responsible for managing a Skill repository or platform, who need to establish admission rules.
  • Individual developers planning to publish self-developed Skills on public platforms, wishing to preemptively mitigate security risks.
  • CI/CD engineers responsible for maintaining automation pipelines, wanting to embed a Skill security gate into the workflow.