Back to skill

Security audit

Youtube Notification Analysis

Security checks for vulnerabilities and agentic risk

Overview

This skill is disclosed as a YouTube investment-analysis helper, but it can move from untrusted video content directly toward real trade execution without a clear approval step.

Install only if you intend this skill to access your YouTube notification context and analyze financial videos. Do not allow it to place trades unless your agent or trading skill separately requires explicit review and approval of the exact asset, side, quantity, account, price, and risk before every order.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:14
Finding
Untrusted YouTube Content Can Influence Automated Financial Trades## Vulnerability Details **File Location**: `SKILL.md`, lines 14-19 **Vulnerability Type**: Untrusted content used to drive sensitive financial actions without an approval boundary **Risk Level**: High ```markdown 3. **Extract video IDs**: From snapshot, find investment-related videos 4. **Get subtitles**: - First try: `yt-dlp --write-subs --skip-download --sub-lang zh-Hans,en <video_url>` - If no subtitles: Download video + whisper-cpp analysis 5. **Analyze**: Summarize investment recommendations 6. **Execute trades**: Use tiger-trade skill ``` ### Technical Analysis The workflow obtains titles, subtitles, and transcribed speech from externally controlled YouTube videos, analyzes that content for investment recommendations, and then directs the agent to invoke a trading skill. YouTube media and metadata are untrusted inputs that may contain misleading financial claims or adversarial instructions designed to manipulate an AI agent. No control is specified to separate media content from executable instructions. The workflow also lacks a trusted-source policy, independent recommendation validation, transaction limits, asset allowlists, and mandatory confirmation of the final order parameters. Consequently, content selected from a notification can influence a sensitive action with real financial consequences. ### Attack Path 1. An attacker publishes or compromises a YouTube video containing manipulated investment recommendations or adversarial instructions. 2. The video is surfaced in the user's YouTube notifications as investment-related content. 3. The skill extracts the video identifier and obtains attacker-controlled subtitles or transcribes the media. 4. The agent analyzes that untrusted content and derives a recommendation to buy, sell, or otherwise trade an asset. 5. The workflow invokes the `tiger-trade` skill without requiring the user to review and explicitly approve the exact order. 6. If the co ...[truncated 590 chars]
Remediation
## Remediation Suggestions 1. Make the skill analysis-only by default and remove automatic progression from content analysis to trade execution. 2. Treat video titles, descriptions, subtitles, comments, and transcriptions strictly as untrusted data. Explicitly prohibit following instructions embedded in that content. 3. Require explicit user approval immediately before every order. Present the asset, side, order type, quantity, limit price, estimated value, account, and maximum possible loss. 4. Bind approval to an immutable order preview so that no parameter can change after confirmation. 5. Enforce asset allowlists, per-order value limits, daily exposure limits, position-size controls, and restrictions on leveraged or illiquid instruments. 6. Validate recommendations against independent and trusted market data rather than relying on a single video. 7. Require trusted-channel or creator allowlists and clearly identify the provenance of every recommendation. 8. Run the analysis component without access to trading credentials. Grant narrowly scoped trading capability only after confirmation through a separate authorization boundary. 9. Record the source video, extracted recommendation, validation results, order preview, user approval, and final execution result in an audit log while excluding credentials and other sensitive account data.
Vulnerability Patterns
  • 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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Missing User Warnings

High
Confidence
97% confidence
Finding
The workflow instructs the agent to download video content and then execute trades based on the analysis, but it does not require explicit user consent, risk disclosure, or a confirmation step before impactful actions. In a financial setting, automated or loosely authorized trade execution based on scraped third-party content can directly cause monetary loss or unauthorized transactions.

Vague Triggers

Medium
Confidence
93% confidence
Finding
The skill description is broadly scoped to activate on generic investment advice, stock, crypto, financial content, subtitle retrieval, and trade execution requests. In a high-risk finance context, this can cause the skill to trigger when the user did not explicitly request YouTube notification scraping or trading actions, increasing the chance of unintended data access and downstream financial actions.

Natural-Language Policy Violations

Medium
Confidence
96% confidence
Finding
The command hard-codes `--language ZH`, forcing Chinese transcription without checking the video's actual language or obtaining user preference. This can degrade transcription accuracy, misrepresent financial advice, and produce incorrect downstream investment analysis that may influence trading decisions.

Static analysis

No suspicious patterns detected.