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
Hightargets Perception
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>"
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
Criticaltargets Action
Remote code download and execution detected
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
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
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.
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
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
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
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
Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.
Hygiene
Lowtargets Packaging & Manifest
Skill name should be lowercase alphanumeric with hyphens (e.g., 'my-skill').
pharos/stylus
Skill description is empty or too short. A clear description helps users evaluate the skill's purpose.