Back to skill

Security audit

warrior-trading

Security checks for vulnerabilities and agentic risk

Overview

This is a trading-guidance skill with no executable payload, but it requests file-write permission that is not explained or needed for its stated purpose.

Review this before installing because it requests permission to write files even though the skill only provides trading guidance. Prefer a version that removes file_write or clearly scopes any write behavior. Also treat the trading content as high-risk financial guidance and verify independently before acting on it.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
claw.json:7
Finding

Unnecessary File-Write Permission Violates Least Privilege

Content
View full analysis

Vulnerability Details

File Location: claw.json:7
Vulnerability Type: Excessive system permission
Risk Level: Medium

Vulnerable Code

json
"permissions": ["network", "file_write"],

Technical Analysis

The manifest grants the Skill permission to write files, but the reviewed functionality consists only of trading methodology, scanner criteria, and risk-management guidance. Neither SKILL.md nor instructions.md documents a workflow that requires creating or modifying files.

Granting file_write without a functional requirement violates the principle of least privilege. Although the package contains no executable scripts or direct file-writing implementation, the unnecessary capability broadens the authority available when the Skill is loaded. If an adversarial prompt, compromised runtime component, or future modification causes the agent to invoke file operations, the granted permission could permit changes that are unrelated to the Skill's stated purpose.

Attack Path

  1. A user installs or loads the Skill.
  2. The hosting platform grants the permissions declared in claw.json, including file_write.
  3. An adversarial instruction or compromised context induces the agent to perform a file-write operation.
  4. The agent writes to a location allowed by the platform's permission boundary.
  5. Files may be created, overwritten, or altered even though file modification is unnecessary for the documented trading-guidance task.

The exact writable scope depends on the host platform's sandbox and access-control implementation. The reviewed files do not establish that unrestricted filesystem access is available.

Impact Assessment

Successful exploitation could provide the ability to create or modify files within the runtime's authorized write scope. Potential consequences include integrity loss, corrupted user data or configuration, and preparation for follow-on attacks if security-sensitive ...[truncated 287 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove file_write from the manifest because no reviewed feature requires it:
    json
    "permissions": ["network"],
    
  2. Reassess whether network is also necessary. Retain it only if the runtime actually retrieves live market, scanner, or news data.
  3. If network access is retained, restrict it to explicitly approved market-data and news domains where the platform supports destination allowlisting.
  4. If a future feature genuinely requires file output, request narrowly scoped access only when that feature is invoked. Constrain writes to a dedicated application-owned directory and prevent overwriting existing or security-sensitive files.
  5. Add automated manifest checks that reject permissions not mapped to a documented feature and test the Skill under a deny-by-default permission policy.
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