Back to skill

Security audit

clawpacker

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small launcher that tells the agent to fetch and obey live GitHub instructions that can change after review.

Install only if you are comfortable with your agent fetching and following current instructions from the referenced GitHub repository at use time. A safer version would vendor the full reviewed instructions locally or pin and verify the remote content by commit and hash.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:12
Finding
Mutable Remote Instructions Are Treated as Authoritative## Vulnerability Details **File Location**: `SKILL.md`, lines 12–32 **Vulnerability Type**: Remote instruction redirection and execution **Risk Level**: Critical ### Vulnerable Code ```markdown This repo keeps only a lightweight entrypoint for `clawpacker`. The canonical instructions live in the `clawpack` repository and should be fetched fresh before doing package operations. ## Canonical Source Before proceeding, fetch the latest skill content from: ```text https://raw.githubusercontent.com/cogine-ai/clawpack/master/skills/clawpacker/SKILL.md ``` If that URL is unavailable, try: ```text https://raw.githubusercontent.com/cogine-ai/clawpack/main/skills/clawpacker/SKILL.md ``` ## Workflow 1. Fetch the canonical `clawpacker` skill from the URL above. 2. Follow that canonical document for all command details. 3. Do not rely on this local file for `clawpacker` syntax or flags. ``` ### Technical Analysis The local skill explicitly transfers authority to content downloaded from mutable Git branches. It then instructs the agent to follow that downloaded document for all command details and not to rely on the locally reviewed file. Neither URL is pinned to an immutable commit, cryptographic digest, or trusted signature. Consequently, the effective instructions can change after this artifact has been audited. HTTPS protects data in transit but does not guarantee that repository maintainers, compromised accounts, or modified branch contents remain trustworthy. This design creates an instruction-hijacking channel. Any commands or behavioral directives subsequently added to the remote document may be accepted as authoritative by an agent loading this skill. Although no malicious executable code is embedded in the reviewed artifact, the remote instructions could direct the agent to retrieve or execute code, disclose data, modify files, or perform other operations available through its tools. ### Attack Path 1 ...[truncated 1429 chars]
Remediation
## Remediation Suggestions 1. Vendor the complete, reviewed `clawpacker` instructions into the local skill instead of downloading operational instructions at runtime. 2. If remote retrieval is unavoidable, pin the source to a specific immutable commit rather than `master` or `main`. 3. Verify the downloaded file against an approved cryptographic digest or a signature rooted in a separately managed trust key. 4. Reject the content if verification fails; do not silently fall back to another mutable branch. 5. Treat downloaded documents as untrusted data rather than agent instructions. Parse only a narrowly defined, validated configuration format. 6. Enforce an allowlist of permitted commands, arguments, network destinations, and filesystem paths independently of the remote document. 7. Require explicit user confirmation before executing commands derived from remotely retrieved content. 8. Run package operations with least privilege and without unrelated credentials or sensitive directories being available. 9. Re-audit and update the pinned source through a controlled release process whenever upstream instructions change.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Skill Enumeration

Medium
Category
Agent Snooping
Content
Before proceeding, fetch the latest skill content from:

```text
https://raw.githubusercontent.com/cogine-ai/clawpack/master/skills/clawpacker/SKILL.md
```

If that URL is unavailable, try:
Confidence
80% confidence
Finding
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Skill Enumeration

Medium
Category
Agent Snooping
Content
Before proceeding, fetch the latest skill content from:

```text
https://raw.githubusercontent.com/cogine-ai/clawpack/master/skills/clawpacker/SKILL.md
```

If that URL is unavailable, try:
Confidence
80% confidence
Finding
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Static analysis

No suspicious patterns detected.