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
In this repository72 other files it gives its agents.
- llms.txtllms.txt
- viper-ai-llm-guardrailsSkill
- viper-api-gateway-apigee-kongSkill
- viper-auth-oauth-jwtSkill
- viper-aws-iam-cloud-auditSkill
- viper-bola-idorSkill
- viper-browser-extension-mv3Skill
- viper-browseros-agentSkill
- viper-cicd-hardeningSkill
- viperclawSkill
- viper-container-k8s-auditSkill
- viper-crypto-tls-auditSkill
- viper-csrf-samesite-auditSkill
- viper-dependency-sbomSkill
- viper-deserialization-parserSkill
- viper-diff-pr-reviewSkill
- viper-dns-email-domainSkill
- viper-electron-tauri-desktopSkill
- viper-fastapi-django-flaskSkill
- viper-file-upload-storageSkill
- viper-gcp-azure-cloud-auditSkill
- viper-github-repo-governanceSkill
- viper-go-service-auditSkill
- viper-graphql-wsSkill
- viper-grpc-protobuf-auditSkill
- viper-headers-csp-corsSkill
- viper-iac-terraform-auditSkill
- viper-incident-forensics-triageSkill
- viper-injection-oracleSkill
- viper-java-spring-auditSkill
- viper-js-harvesterSkill
- viper-kafka-rabbitmq-queueSkill
- viper-linux-systemd-hostSkill
- viper-logging-pii-complianceSkill
- viper-mcp-server-auditSkill
- viper-mobile-api-configSkill
- viper-multitenant-isolationSkill
- viper-nextjs-react-rscSkill
- viper-nginx-envoy-gatewaySkill
- viper-nodejs-express-nestjsSkill
- viper-oauth-oidc-complianceSkill
- viper-openapi-rest-schemaSkill
- viper-orchestratorSkill
- viper-payment-stripe-pciSkill
- viper-php-laravel-wordpressSkill
- viper-postgres-redis-mongoSkill
- viper-privacy-gdpr-hipaaSkill
- viper-proof-judgeSkill
- viper-proxy-fingerprintSkill
- viper-proxy-parser-alignmentSkill
- viper-race-logicSkill
- viper-rag-vector-auditSkill
- viper-rate-limit-dos-resilienceSkill
- viper-remediation-patch-verifierSkill
- viper-ruby-rails-auditSkill
- viper-rust-memory-unsafeSkill
- viper-saml-sso-enterpriseSkill
- viper-sbom-slsa-provenanceSkill
- viper-secrets-auditSkill
- viper-semgrep-rule-authorSkill
- The first 60 shown.
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
- Very specific: line 101
Run viperclaw audit-mcp on project and global harness config directories after installing any new skill or MCP server.
- Very specific: line 102
Run viperclaw secrets across .mcp.json and opencode.json before committing.
≈ “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.
Files
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 ID | Audit Verification Target | Pass Criteria | Fail / Vulnerability Indicator |
AGSC-01 | Pinned MCP Runner Binaries | Local 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-02 | No Hardcoded Tokens in MCP JSON | env / 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-03 | Zero Hidden Unicode Tag Characters | SKILL.md files contain zero invisible Unicode tag block characters (U+E0000–U+E007F). | Invisible instructions embedded inside Markdown skill files. |
AGSC-04 | No Unverified Pipe-to-Shell Steps | Skills never instruct agents to run curl ... | sh or wget ... | bash. | Skill tells the agent to download and execute an unverified remote script. |
AGSC-05 | Direct Exec Instead of Shell Wrapper | MCP server configs invoke the executable directly as an argument list. | Config wraps execution inside sh -c "..." with interpolated strings. |
AGSC-06 | Least-Privilege Filesystem Scope | Filesystem/git MCP servers are scoped to explicit project roots, not / or $HOME. | Global root filesystem write access granted to third-party MCP server. |
AGSC-07 | Prompt-Boundary Hygiene | Skill files do not contain system-prompt override phrases or hidden external beacon URLs. | Skill attempts to override platform safety or approval boundaries. |
AGSC-08 | Deterministic Versioned Provenance | Installed 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
- Distinguish documentation examples (clearly fenced as insecure examples) from active operational instructions.
- Confirm whether the audited MCP config file is actively loaded by Antigravity, OpenCode, Claude Code, Codex, or Cursor.
| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
| CRITICAL (9.3) | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H | Hidden 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:N | Unpinned 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:N | Overly 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
- Run
viperclaw audit-mcpon project and global harness config directories after installing any new skill or MCP server. - Run
viperclaw secretsacross.mcp.jsonandopencode.jsonbefore committing. - Record verified findings via
viper_verify_and_report.
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
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.

