Back to skill

Security audit

Telegram Toolkit

Security checks for vulnerabilities and agentic risk

Overview

The skill is a Telegram bot automation guide, but it asks for broad agent powers and describes bulk messaging, monitoring, credentials, persistence, and webhook alerts with unclear limits.

Review this skill carefully before installing. Use it only for explicit Telegram bot work, run any Python dependencies in an isolated environment with pinned versions, keep bot tokens in environment variables, and avoid bulk messaging or archiving conversations unless you have clear opt-in, retention, deletion, and access-control rules. Configure OPS_WEBHOOK only to a trusted endpoint and avoid sending sensitive message or infrastructure metadata in alerts.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:217
Finding

Unpinned Third-Party Python Dependencies

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 217–221
Vulnerability Type: Unpinned and integrity-unverified third-party dependencies
Risk Level: Medium

Vulnerable Code

bash
pip install requests
pip install redis
pip install jinja2

Technical Analysis

The installation instructions resolve mutable package versions without a lockfile, explicit version constraints, cryptographic hashes, or restrictions on the package index. Consequently, the dependencies installed by users may differ from those originally reviewed by the Skill author.

Although the listed package names correspond to established projects, unrestricted resolution still exposes users to compromised upstream releases, compromised package-index accounts, malicious packages supplied through an untrusted configured index, and unexpected security or compatibility changes in future releases.

Python package installation can execute package build or installation logic with the permissions of the user running pip. The resulting packages are then imported into an environment expected to contain Telegram bot tokens, webhook addresses, conversation data, and other operational information.

Attack Path

  1. An attacker compromises an upstream package release, a package-index account, or an index configured in the victim's Python environment.
  2. A user follows the instructions in SKILL.md and runs one of the unrestricted pip install commands.
  3. pip resolves the dependency from the configured index without enforcing an audited version or expected artifact hash.
  4. The malicious or compromised artifact is downloaded and installed.
  5. Installation-time code or subsequently imported package code executes with the invoking user's privileges.
  6. The compromised dependency may access bot tokens, webhook secrets, local conversation databases, files available to the process, or network resources.

Impact Assessment

Success ...[truncated 680 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin every direct dependency to a reviewed version rather than allowing unrestricted latest-version resolution.
  2. Maintain a lockfile that records all direct and transitive dependency versions.
  3. Record cryptographic hashes for approved distribution artifacts and install them using pip install --require-hashes.
  4. Explicitly configure and document a trusted package index instead of inheriting potentially unsafe index settings.
  5. Prefer prebuilt, reviewed wheels and disable source builds where operationally practical.
  6. Install dependencies inside an isolated virtual environment under a non-administrative account.
  7. Run dependency vulnerability and provenance checks before updating pinned versions.
  8. Review updates in a controlled environment before deploying them alongside Telegram credentials or production data.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description says to use the skill whenever the user 'needs to improve efficiency, automate workflows, batch process, or optimize workflows,' which are broad everyday intents rather than specific Telegram-related triggers. This can cause the skill to match many unrelated requests outside its intended domain.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The edition field first presents the skill as a professional Telegram bot workflow tool, but then says it should be used for 'system monitoring, log analysis, operations alerting, deployment management.' That guidance materially shifts the stated intent away from Telegram bot tooling and conflicts with the rest of the document's bot-centric functionality.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest text says 'Use when' for generic system monitoring, log analysis, alerting, and deployment management, but does not clearly constrain those actions to Telegram bot operations. These are broad operational activities that overlap with many other skills and everyday requests, making invocation boundaries unclear.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill promotes bulk messaging and communication archival/retrieval without clearly warning about consent, lawful basis, retention, or handling of personal data. In a Telegram bot context, these features can facilitate spam, privacy violations, or inappropriate storage of user communications if operators follow the documentation without additional safeguards.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The webhook monitoring section describes sending alerts to an external OPS_WEBHOOK endpoint but does not warn that operational telemetry, errors, or message metadata may leave the primary environment. In practice this can leak sensitive infrastructure details or user-associated metadata to third-party systems if administrators configure external endpoints without understanding the data flow.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is described throughout the file as a Telegram bot toolkit with capabilities like conversation state machines, webhook monitoring, message templates, and bot management. However, the documented input parameters and JSON output schema describe a generic content-processing skill using fields like content, mode, style, template_used, and word_count, which conflicts with the stated Telegram automation behavior rather than merely omitting details.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

The description prominently says the skill supports Chinese interaction and is ready to use that way, but does not frame language selection as a user choice in the activation guidance. Organizational language policy issues can arise when a skill appears to steer users toward a specific language without explicit opt-in.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.