Back to skill

Security audit

gate-info-trendanalysis

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a read-only crypto technical-analysis tool, but it delegates mandatory runtime authority to parent-directory files that are not part of the reviewed artifact.

Review this skill before installing because its visible market-analysis behavior is read-only and coherent, but it depends on shared rule files outside the package. Only install it in an environment where those parent runtime-rule files are trusted and controlled, and treat updates to those files as behavior-changing updates to the skill.

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

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:11
Finding

External Runtime Rules Can Hijack Skill Instructions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 11–14
Vulnerability Type: External instruction redirection and priority override
Risk Level: High

Vulnerable Code:

markdown
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read `../gate-runtime-rules.md`
→ Also read `../info-news-runtime-rules.md` for gate-info / gate-news shared rules (tool degradation, report standards, security, routing, and optional local maintenance when `scripts/` is present).

Technical Analysis

The skill requires the agent to load two files from its parent directory before selecting or invoking any tool. It also declares those external files to have the “highest priority.” The referenced files are outside the audited skill directory and were not included in the reviewed artifact, so their contents and integrity cannot be verified.

This creates a mutable instruction-redirection boundary. An attacker who can create or modify either parent-directory file can inject instructions that are automatically adopted when the skill is loaded. Such instructions could attempt to change the skill’s documented goals, weaken its safety constraints, authorize additional tools, access unrelated data, or manipulate the resulting report.

Because the effective runtime instructions reside outside the audited package, the skill’s behavior can change after review without any modification to the files covered by this audit.

Attack Path

  1. An attacker gains write access to the directory containing gate-runtime-rules.md or info-news-runtime-rules.md, such as through a compromised installer, another package, or a writable shared skill directory.
  2. The attacker places malicious agent instructions in one of those files.
  3. A user invokes this technical-analysis skill.
  4. SKILL.md directs the agent to read the attacker-controlled p ...[truncated 1516 chars]
Remediation
View remediation

Remediation Suggestions

  1. Move all mandatory runtime-rule files into the skill package, for example:

    • references/gate-runtime-rules.md
    • references/info-news-runtime-rules.md
  2. Replace parent-directory references with package-contained paths that cannot escape the audited skill root.

  3. Remove the statement that externally loaded rules have the “highest priority.” Explicitly state that skill rules cannot override system policies, developer instructions, platform controls, or user-safety requirements.

  4. Pin the expected rule-file version and verify its integrity before use, such as with a trusted manifest and cryptographic digest.

  5. Fail closed if a mandatory rule file is missing, resolves outside the skill directory, is a symbolic link to an external location, or fails integrity validation.

  6. Validate canonical paths before reading rule files and enforce that every resolved path remains under the trusted package root.

  7. Include all behavior-affecting files in the published artifact and security-review scope so the reviewed package fully represents its effective runtime instructions.

  8. Constrain runtime behavior independently of prose instructions by enforcing an allowlist containing only the four documented read-only MCP tools.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Unrestricted Tool Access

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.

Content

Scanner excerpt · SKILL.md (reported line 16)May include surrounding context.

md
## General Rules

⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read `../gate-runtime-rules.md`
→ Also read `../info-news-runtime-rules.md` for gate-info / gate-news shared rules (tool degradation, report standards, security, routing, and optional local maintenance when `scripts/` is present).
- **Only call MCP tools explicitly listed in this skill.** Tools not documented here must NOT be called, even if they

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The trigger examples are broad enough that ordinary user phrasing like 'How is ETH technically?' or 'trend analysis' could activate this skill when the user may actually want broader research, risk, or news context. In this skill's context, misrouting matters because the skill is explicitly intended to be used only for single-coin technical analysis, so ambiguous activation can cause incomplete or misleading output rather than direct code execution or data exfiltration.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The file defines a "Technical / trend (Chinese)" scenario, but the prompt examples under that scenario are in English. This creates an inconsistent locale policy signal and may imply unsupported or forced language handling without clearly offering the user a language choice.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.