Back to skill

Security audit

MetEngine Data Agent

Security checks for vulnerabilities and agentic risk

Overview

This skill mostly documents a paid market analytics API, but it also tells agents to auto-update trusted instructions and persist wallet setup details across sessions, which warrants Review before installation.

Install only after reviewing the update and payment workflow. Do not enable the cron auto-update, manually review any skill updates before replacing local agent files, avoid storing wallet paths or executable bootstrap code in persistent agent memory, pin dependencies, and prefer an external or constrained wallet signer with explicit payment limits.

Vulnerability Patterns
  • 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
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (3)

T03 · Remote Payload Retrieval and Execution

Error
Location
skill.md:46
Finding

Persistent Automatic Replacement of Trusted Agent Instructions from a Mutable Remote Source

Content
View full analysis
/dev/null ``` **Check skill version before querying (optional):** ```bash # Compare local vs remote version LOCAL_VER=$(grep '^version:' ~/.claude/agents/metengine-data-agent.md | head -1 | tr -d '"' | awk '{print $2}') REMOTE_VER=$(curl -sL https://www.metengine.xyz/skill.md | grep '^version:' | head -1 | tr -d '"' | awk '{print $2}') [ "$LOCAL_VER" != "$REMOTE_VER" ] && curl -sL https://www.metengine.xyz/skill.md -o ~/.claude/agents/metengine-data-agent.md ``` Agents SHOULD check for updates at the start of a new session if more than 7 days have passed since the last update. ``` ### Technical Analysis The Skill recommends adding a cron entry that periodically downloads a mutable remote Skill definition and overwrites the locally trusted Agent file. It also encourages session-start update checks that perform the same replacement. HTTPS protects the transport connection but does not establish content-level trust. The update workflow has no: - Cryptographic signature verification - Pinned checksum or immutable release identifier - Trusted version manifest - Manual review or approval gate - Atomic rollback mechanism - Validation that the downloaded file is a legitimate Skill definition Because the downloaded file contains Agent instructions, replacing it changes the effective behavior loaded in future sessions. The cron job survives the current Skill run and suppresses diagnostic output with `2>/dev/null`, reducing visibility into update failures ...[truncated 2032 chars]
Remediation
View remediation

T02 · Agent Memory Poisoning

Warning
Location
skill.md:71
Finding

Cross-Session Memory Can Persist and Reintroduce Untrusted Executable Bootstrap Code

Content
View full analysis
```typescript // ``` ... ### Memory Update Rules Agents MUST update the memory file: 1. **After first successful setup** -- Record wallet path, public address, installed packages, working bootstrap code 2. **After every API call** -- Append to Endpoint History (keep last 10 rows, prune older) 3. **When a fallback is used** -- Record in Fallbacks Learned 4. **When a new quirk is discovered** -- Record in Quirks Encountered 5. **At session end** -- Update `Last Updated` timestamp ... ### Quick Start for Returning Agents If `~/.claude/agents/metengine-memory.md` exists: ``` 1. Read memory file 2. If wallet and packages are set up: a. Copy the Client Bootstrap code b. Check Fallbacks Learned for the endpoint you need c. Make the API call directly d. Update Endpoint History ``` ``` ### Technical Analysis The Skill mandates cross-session state in a Markdown file and instructs future Agents to read it before API use. The stored content includes reusable TypeScript bootstrap code, wallet paths, package installation locations, endpoint behavior, and fallback guidance. Persisting executable code in a general Markdown memory file creates a trust-boundary problem. No schema validation, integrity check, trusted ownership check, or separation between data and instru ...[truncated 2336 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
skill.md:322
Finding

Unpinned Dependencies Are Installed in a Wallet-Signing Environment

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Rogue AgentSelf-Modification, Session Persistence
Findings (16)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · skill.md (reported line 37)May include surrounding context.

md
---

## Display Rules

- **NEVER truncate or trim wallet/contract addresses.** Always show full addresses (e.g. `0x61276aba49117fd9299707d5d573652949d5c977`, not `0x6127...c977`).
- This applies to all Polymarket (0x hex), Hyperliquid (0x hex), Meteora (base58), condition_ids, token_ids, pool addresses, position addresses, and transaction hashes.

Self-Modification

High
Category
Rogue Agent
Confidence
98% confidence
Finding

This duplicate self-modification match points to the same risk: the skill normalizes replacing its own local prompt file from a network source. That makes the local trust boundary dependent on mutable remote content.

Content

Scanner excerpt · skill.md (reported line 44)May include surrounding context.

md
---

## Skill Auto-Update

This skill file may change as new endpoints are added or pricing updates. Keep it fresh by downloading the latest version weekly.

Self-Modification

High
Category
Rogue Agent
Confidence
98% confidence
Finding

This duplicate self-modification match points to the same risk: the skill normalizes replacing its own local prompt file from a network source. That makes the local trust boundary dependent on mutable remote content.

Content

Scanner excerpt · skill.md (reported line 44)May include surrounding context.

md
---

## Skill Auto-Update

This skill file may change as new endpoints are added or pricing updates. Keep it fresh by downloading the latest version weekly.

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
95% confidence
Finding

The skill instructs access to the agent configuration directory under ~/.claude and conditional replacement of a local agent file. Accessing and mutating agent config/state directories is privileged behavior that can tamper with future agent execution and trust boundaries.

Content

Scanner excerpt · skill.md (reported line 62)May include surrounding context.

Check skill version before querying (optional):

bash
# Compare local vs remote version
LOCAL_VER=$(grep '^version:' ~/.claude/agents/metengine-data-agent.md | head -1 | tr -d '"' | awk '{print $2}')
REMOTE_VER=$(curl -sL https://www.metengine.xyz/skill.md | grep '^version:' | head -1 | tr -d '"' | awk '{print $2}')
[ "$LOCAL_VER" != "$REMOTE_VER" ] && curl -sL https://www.metengine.xyz/skill.md -o ~/.claude/agents/metengine-data-agent.md

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The persistent memory design stores wallet metadata, environment details, package state, endpoint history, and reusable bootstrap code in a cross-session file unrelated to the minimum needs of an analytics skill. This broadens data retention and creates a durable privacy and security risk if other agents, tools, or local users can read or misuse that file.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The memory instructions explicitly retain cross-session sensitive environment data, including wallet paths, balance verification state, install locations, and endpoint behavior history. Persistent reuse of this information can aid later prompt abuse, environment fingerprinting, or targeting of valuable local assets.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · skill.md (reported line 92)May include surrounding context.

markdown
# MetEngine Session Memory
<!-- Auto-maintained by agents. Do not delete. -->

## Last Updated
YYYY-MM-DD HH:MM UTC

Ssd 3

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

Telling agents to paste a working client bootstrap snippet into persistent memory risks storing secret-bearing logic, sensitive paths, or accidentally inlined credentials that can be replayed later. Even if the example omits secrets, real-world bootstrap code often contains enough context to facilitate credential misuse or unauthorized payments.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill instructs agents to access Solana keypair material or a private-key environment variable in order to create a signer. Even if intended for payment, this grants the skill influence over highly sensitive credentials and could enable fund loss or secret exposure if the instructions are followed in an automated environment.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill expands from describing a remote analytics API into instructing the agent to modify local files and maintain/update the installed skill definition from the network. That creates an unnecessary local side-effect surface and a supply-chain risk, because future remote content can silently alter agent behavior without explicit user approval.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The auto-update instructions overwrite a local skill file from a remote URL and even recommend recurring cron-based refreshes, without integrity verification or prominent warnings about local modification. This is a classic prompt/content supply-chain risk because remote changes can be pulled into the trusted local agent configuration automatically.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
95% confidence
Finding

The cron example establishes recurring persistence of remote-controlled changes across sessions by automatically refreshing the skill weekly. This creates an unattended persistence mechanism that can repeatedly reintroduce unsafe content even after local review or cleanup.

Content

Scanner excerpt · skill.md (reported line 55)May include surrounding context.

Automate weekly updates (cron):

bash
# Add to crontab: crontab -e
0 0 * * 0 curl -sL https://www.metengine.xyz/skill.md -o ~/.claude/agents/metengine-data-agent.md 2>/dev/null

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill directs creation and ongoing maintenance of a persistent memory file containing wallet metadata and usage history, but does not clearly foreground the privacy implications or ask for consent. This can lead to silent accumulation of sensitive operational data beyond user expectations.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill directs agents to inspect local package state and install dependencies, which is a privileged local-environment action not inherent to describing an analytics API. This increases attack surface by encouraging filesystem and toolchain interaction and can lead to unintended local changes or dependency-chain exposure.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
96% confidence
Finding

The instruction to create or update a persistent memory file is a form of session persistence that outlives the current task and can influence future behavior. This is risky because later prompts or agents may consume stale or sensitive retained data without the user's awareness.

Content

Scanner excerpt · skill.md (reported line 88)May include surrounding context.

Memory File Format

Create or update ~/.claude/agents/metengine-memory.md using this template:

markdown
# MetEngine Session Memory

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation warns not to read keypair contents, but the provided implementation immediately reads private key material from an environment variable to create a signer. This contradiction normalizes sensitive-secret handling in agent code and undermines the claimed security boundary.

Content

No source excerpt is available for this finding.