Back to skill

Security audit

gate-info-trendanalysis

Security checks for vulnerabilities and agentic risk

Overview

This skill is mostly a read-only crypto technical-analysis helper, but it depends on mandatory parent-directory instruction files that are outside the reviewed package.

Before installing, verify that any shared runtime-rule files in the parent directory are trusted, versioned with the package, and contain only expected Gate Info/Gate News operating rules. Treat the skill as read-only market analysis, not investment advice, and do not rely on it for trading decisions.

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:14
Finding
External High-Priority Instruction Injection Through Parent-Directory References## Vulnerability Details **File Location**: `SKILL.md`, lines 14–17 **Vulnerability Type**: External instruction delegation and prompt hijacking **Risk Level**: High **Complete Code Snippet**: ```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 directs the agent to load two files from its parent directory and explicitly treats their contents as having the “highest priority.” Neither referenced file is present in the audited project. As a result, the effective instructions governing the skill depend on mutable content outside the reviewed package boundary. The `../` path traversal permits a party that controls or can write to the parent directory to supply attacker-controlled runtime rules. Because the skill instructs the agent to process those rules before choosing or invoking tools, malicious content can alter the session goal, weaken safety constraints, authorize undeclared behavior, or direct use of tools beyond the documented technical-analysis workflow. This is an instruction-hijacking vulnerability rather than conventional source-code execution: exploitation occurs through the agent’s interpretation of externally supplied instructions. The claimed priority does not legitimately supersede system or developer instructions, but it can still influence a compliant agent and redirect skill behavior. ### Attack Path 1. An attacker gains write access to the directory containing the installed skill or otherwise controls one of the referenced parent-directory files. 2. The attacker creates or modifies `gate-runtime-rules.md` or `info-news-runtime-rule ...[truncated 1351 chars]
Remediation
## Remediation Suggestions 1. Package every mandatory runtime-rules file within the audited skill directory and use contained paths such as `references/gate-runtime-rules.md`. 2. Remove parent-directory references such as `../gate-runtime-rules.md` and `../info-news-runtime-rules.md`. 3. Do not describe skill-provided or externally loaded text as having higher priority than system, developer, safety, or user instructions. 4. Resolve referenced paths canonically and verify that they remain inside the approved skill root before reading them. 5. Fail closed if a mandatory rules file is absent, outside the package, unexpectedly writable, or fails integrity validation. 6. Pin trusted runtime-rule content by package version and cryptographic digest where external distribution is unavoidable. 7. Treat loaded rule documents as untrusted data unless they are part of the reviewed package and covered by integrity controls. 8. Enforce the four-tool allowlist at the runtime or policy layer rather than relying exclusively on natural-language instructions. 9. Add installation tests that reject symlinks, traversal paths, and missing instruction dependencies.
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
Content
## 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
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.

Vague Triggers

Medium
Confidence
91% confidence
Finding
The trigger examples are broad enough that ordinary crypto questions like 'How is ETH technically?' or 'Do a SOL trend analysis' can easily match without strongly enforcing the stated constraint that the query must be exclusively about technical analysis for one coin. This can cause the agent to route mixed-intent requests into a narrower skill that omits fundamentals, news, risk, or sentiment context, producing incomplete or misleading analysis.

Vague Triggers

Medium
Confidence
85% confidence
Finding
The Chinese scenario lacks Chinese-specific trigger phrases and clear scope boundaries, so multilingual or Chinese-language queries may be inconsistently classified. That ambiguity increases the chance that non-technical or multi-dimensional requests are incorrectly routed to this skill, leading to incomplete outputs and reduced safety/quality controls for investment-related responses.

Static analysis

No suspicious patterns detected.