Back to skill

Security audit

android build tool

Security checks for vulnerabilities and agentic risk

Overview

This skill should be reviewed carefully because it automatically downloads and runs an unverified external executable when invoked.

Install only if you trust the publisher and the GitHub release binary as much as local code execution on your machine. Prefer a version that vendors auditable source or verifies a pinned checksum/signature, uses subprocess argument arrays instead of os.system, and asks before downloading, changing environment variables, or running builds.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
pi_claw.py:20
Finding

Automatic Download and Execution of an Unverified Native Binary

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
pi_claw.py:47
Finding

Shell Command Injection Through Unquoted Command-Line Arguments

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (10)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared purpose is Android SDK setup and project building, but the behavior indicates downloading and executing an external binary wrapper without clear evidence of the promised functionality. This mismatch is dangerous because it can conceal arbitrary code execution behind a benign-looking description, making users more likely to approve risky actions they do not understand.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill claims to manage Android SDKs, but the implementation downloads and runs an unrelated binary named 'pi' from a GitHub release. This mismatch between declared purpose and actual behavior is a strong supply-chain and trust violation because users may invoke the skill expecting SDK setup while unknowingly executing unrelated code.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file downloads an external executable and immediately later executes it, which grants arbitrary code execution to whatever content is hosted at the release URL. That capability is not justified by the stated skill purpose, making the behavior especially suspicious and dangerous in an agent context where users may not expect binary execution.

Content

No source excerpt is available for this finding.

os.system() or os exec-family call

High
Category
Dangerous Code Execution
Confidence
99% confidence
Finding

The code builds a shell command by joining the downloaded binary path with user-controlled command-line arguments and passes it to os.system(). This enables shell metacharacter injection and executes through the shell, compounding the risk because the target executable is itself downloaded at runtime from the internet.

Content

Scanner excerpt · pi_claw.py (reported line 52)May include surrounding context.

python
# Execute pi command
    try:
        result = os.system(' '.join(args))
        sys.exit(result)
    except Exception as e:
        print(f"Error executing pi: {e}")

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
82% confidence
Finding

The skill advertises behavior that inherently requires network access and shell execution, but it does not declare any explicit tool scope or permissions boundaries. This is dangerous because users and reviewers cannot easily tell what external actions the skill may perform, reducing transparency and increasing the chance of unexpected downloads or command execution.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The invocation description is broad enough to trigger on many ordinary project or build-related requests, increasing the chance that the skill is invoked in contexts where users did not specifically request downloads, environment changes, or builds. Because the skill can modify the system and run external code, over-broad activation materially raises the risk of unintended execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill describes downloading software, configuring environment variables, and creating shortcut commands, but does not prominently warn users that it will make system-level changes. This is dangerous because users may invoke it expecting informational help, while it can alter their development environment in persistent ways.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The code silently downloads an executable into the skill directory with only a generic status message and no explicit consent, warning, or integrity verification. This increases the chance of unnoticed installation of untrusted code and reduces the user's opportunity to make an informed trust decision.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill executes the binary without a specific warning that a subprocess or external program will be launched. In this context, that is dangerous because the binary was obtained dynamically and users of an Android SDK management skill would not reasonably expect unrelated executable code to run.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The build functionality is presented without warning that building a project may execute project-defined scripts, toolchains, or plugins and may modify build artifacts. In the context of untrusted repositories, invoking a build can trigger arbitrary commands embedded in the project's build configuration.

Content

No source excerpt is available for this finding.