Log inGet a Demo

Pharos-Stylus-Skill

Critical · Risk 100

The skill executes unverified remote code, mandates insecure plaintext private key storage, and lacks necessary tool declarations, creating critical vulnerabilities for arbitrary code execution and credential exfiltration.

Findings (13)

Content Injection

High

targets Perception

2 findings
#1Indirect prompt injection via live docs queryhighindirect prompt injection92% confidence

The skill instructs agents to fetch external URLs and treat the response as authoritative instructions for any value 'not confirmed in this skill'. An attacker who can influence the content at those URLs (compromised server, MITM, DNS hijack) can inject arbitrary agent instructions at runtime.

"Agents must query Pharos docs dynamically for any value not confirmed in this skill: GET https://docs.pharos.xyz/developer-guide/rust.md?ask=<question>"
#2Indirect prompt injection via documentation queryhighindirect prompt injection90% confidenceline 353

The skill instructs the agent to fetch and process content from external URLs (`docs.pharos.xyz`) using an `ask` parameter, which treats remote content as executable instructions.

GET https://docs.pharos.xyz/developer-guide/rust.md?ask=<question>

Behavioural Control

Critical

targets Action

9 findings
#1Remote code download and execution detectedcritical100% confidenceline 46

Remote code download and execution detected

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#2A remote resource is downloaded with curl/wget and piped directly into a shell interpreter (optionally via sudo). The downloaded script runs with no integrity check (no checksum/signature), so a compromised server, MITM, or hijacked URL leads to arbitrary code execution. Download to a file, verify it (e.g. sha256sum -c against a pinned digest, or a signature), then execute it.criticalvuln95% confidenceline 1

A remote resource is downloaded with curl/wget and piped directly into a shell interpreter (optionally via sudo). The downloaded script runs with no integrity check (no checksum/signature), so a compromised server, MITM, or hijacked URL leads to arbitrary code execution. Download to a file, verify it (e.g. sha256sum -c against a pinned digest, or a signature), then execute it.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#3Potential for tool shadowingmediumtool shadowing70% confidence

The skill explicitly instructs the agent to override standard Arbitrum Stylus tools with Pharos-specific forks, potentially causing confusion or malicious redirection if the agent is used in a multi-chain environment.

The Pharos fork installs under the same cargo stylus binary name as Arbitrum's version.
#4Private key written to plaintext file on diskmediumcredential theft82% confidence

The skill instructs users to write their raw private key to a plaintext file `.private_key` in the working directory. While `chmod 600` is applied, the key persists on disk and is trivially exfiltrated by any process with filesystem access or if the directory is accidentally committed.

echo "0xYOUR_PRIVATE_KEY" > .private_key
chmod 600 .private_key
#5Supply chain risk via git-based installationmediumsupply chain70% confidenceline 58

The skill mandates installing tools directly from a GitHub repository without pinning to a specific commit hash, allowing for potential supply chain compromise if the repository is hijacked.

cargo install --git https://github.com/PharosNetwork/pharos-cargo-stylus
#6Unpinned git dependency install for CLI toolmediumsupply chain88% confidenceline 58

The skill instructs installation of `pharos-cargo-stylus` directly from a GitHub repository with no commit hash, tag, or integrity check. Any future push to that repo's default branch will be silently executed on the next install.

cargo install --git https://github.com/PharosNetwork/pharos-cargo-stylus
#7Credential handling riskmediumcredential theft80% confidenceline 182

The skill instructs the user to store private keys in a local file (`.private_key`), which creates a persistent, unencrypted credential file on the filesystem accessible to any process or agent.

echo "0xYOUR_PRIVATE_KEY" > .private_key
#8Missing allowed-tools declarationlow90% confidence

Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.

#9Undeclared network usagelow60% confidence

Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.

Hygiene

Low

targets Packaging & Manifest

2 findings
#1Invalid skill name formatlow100% confidence

Skill name should be lowercase alphanumeric with hyphens (e.g., 'my-skill').

pharos/stylus
#2Missing or insufficient descriptioninfo100% confidence

Skill description is empty or too short. A clear description helps users evaluate the skill's purpose.