agentleFS
zahidoverflowzahidoverflow/viperclaw/skills/viper-agent-skill-supplychain/SKILL.md

viper-agent-skill-supplychain

Skill22 starsChanged 15 days agoMITView on GitHub

AI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs.

  • Pipes a download into a shell
  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run viperclaw audit-mcp on project and global harness config directories after installing any new skill or MCP server.

    line 101
  2. Very specific:

    Run viperclaw secrets across .mcp.json and opencode.json before committing.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AI Agent Skill & MCP Config Supply-Chain Auditor (viper-agent-skill-supplychain)

1. Executive Scope, Standards & CWE/OWASP Mapping

  • Frameworks & Standards: OWASP MCP Top 10, OWASP Agentic AI Top 10 (ASI01–ASI10), OpenSSF Supply-Chain Integrity
  • Primary CWE Mapping: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), CWE-494 (Download of Code Without Integrity Check), CWE-798 (Hardcoded Credentials)
  • ViperClaw MCP Tools: viper_mcp_audit, viper_secrets_scan, viper_sbom_deps, viper_verify_and_report
  • ViperClaw CLI Command: viperclaw audit-mcp ~/.config/opencode && viperclaw audit-mcp ~/.gemini/config

2. Threat Model & Root-Cause Architecture

flowchart LR
  Pkg["Third-Party Skill / MCP Config"] --> Unicode["Unicode & Prompt-Boundary Scan"] --> Runner["Pinned Binary & Checksum Gate"] --> Secret["Env & Token Isolation"]

Root-Cause Analysis

Third-party AI agent skills (SKILL.md) and MCP configurations (opencode.json, mcp_config.json, .mcp.json) execute inside a developer's trusted workstation session. Unpinned npx/uvx commands, hidden Unicode tag characters, or plaintext API keys in JSON configs create immediate supply-chain risk.


3. Deterministic Discovery & Grep/AST Audit Commands

# 1. Automated ViperClaw MCP & Skill supply-chain audit
viperclaw audit-mcp .
viperclaw audit-mcp ~/.config/opencode
viperclaw audit-mcp ~/.gemini/config

# 2. Rapid static pattern discovery
rg -n "(npx|uvx|pipx|curl.*\|.*sh|wget.*\|.*sh)" skills/ .claude-plugin/

4. Senior Security Engineer 8-Point Audit Checklist

Control IDAudit Verification TargetPass CriteriaFail / Vulnerability Indicator
AGSC-01Pinned MCP Runner BinariesLocal MCP servers invoke pinned installed binaries or exact versioned packages (pkg@1.2.3).npx -y some-mcp or uvx some-mcp without version pinning.
AGSC-02No Hardcoded Tokens in MCP JSONenv / environment blocks reference OS keychain or shell environment variables, never raw keys.Plaintext GITHUB_TOKEN, OPENAI_API_KEY, or AWS_SECRET_ACCESS_KEY stored in opencode.json or mcp_config.json.
AGSC-03Zero Hidden Unicode Tag CharactersSKILL.md files contain zero invisible Unicode tag block characters (U+E0000–U+E007F).Invisible instructions embedded inside Markdown skill files.
AGSC-04No Unverified Pipe-to-Shell StepsSkills never instruct agents to run curl ... | sh or wget ... | bash.Skill tells the agent to download and execute an unverified remote script.
AGSC-05Direct Exec Instead of Shell WrapperMCP server configs invoke the executable directly as an argument list.Config wraps execution inside sh -c "..." with interpolated strings.
AGSC-06Least-Privilege Filesystem ScopeFilesystem/git MCP servers are scoped to explicit project roots, not / or $HOME.Global root filesystem write access granted to third-party MCP server.
AGSC-07Prompt-Boundary HygieneSkill files do not contain system-prompt override phrases or hidden external beacon URLs.Skill attempts to override platform safety or approval boundaries.
AGSC-08Deterministic Versioned ProvenanceInstalled skills come from reviewed Git commits or signed releases.Unreviewed community skills copied directly into global ~/.config/opencode/skills/.

5. False-Positive Elimination & CVSS v3.1 Triage Rubric

False-Positive Gate

  1. Distinguish documentation examples (clearly fenced as insecure examples) from active operational instructions.
  2. Confirm whether the audited MCP config file is actively loaded by Antigravity, OpenCode, Claude Code, Codex, or Cursor.
Severity TierBaseline CVSS v3.1 VectorQualifying Security Impact
CRITICAL (9.3)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HHidden Unicode prompt-boundary override or pipe-to-shell command in an active agent skill.
HIGH (7.5)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NUnpinned npx/uvx MCP server or plaintext production token in opencode.json / mcp_config.json.
MEDIUM (5.3)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NOverly broad shell wrapper or missing workspace scope boundary in MCP configuration.

6. Production Remediation Patterns (Vulnerable vs. Hardened Code)

// ❌ VULNERABLE: Unpinned npx runner + plaintext API token in OpenCode config
{
  "mcp": {
    "demo": {
      "type": "local",
      "command": ["npx", "-y", "unpinned-mcp-server"],
      "environment": { "API_KEY": "sk_live_hardcoded_secret_value" }
    }
  }
}

// ✅ HARDENED: Pinned local binary with zero hardcoded secrets
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "viperclaw": {
      "type": "local",
      "enabled": true,
      "command": ["/usr/local/bin/viperclaw", "mcp"]
    }
  }
}

7. Regression Testing & Continuous Verification

  1. Run viperclaw audit-mcp on project and global harness config directories after installing any new skill or MCP server.
  2. Run viperclaw secrets across .mcp.json and opencode.json before committing.
  3. Record verified findings via viper_verify_and_report.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.