T08 · Insecure Dependencies
- Location
SETUP.md:7- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a disclosed Telegram button helper that sends and edits bot messages, with some setup and example-documentation risks but no evidence of hidden persistence, destructive actions, or credential theft.
Use this only with a Telegram bot and chats you control. Prefer a pinned or otherwise trusted OpenClaw CLI install, keep the bot token out of shell history and logs, use environment variables or secure config, and treat the backup/delete example as a simulated message flow rather than proof that any file operation happened.
SETUP.md:7Unpinned Global Installation of a Third-Party npm Package
SETUP.md:56Telegram Bot Token Exposed Through a Command-Line URL
The description presents a broader interactive Telegram UI skill centered on creating inline-button messages and handling user interactions. However, the supplied code only performs one narrow action: editing an existing Telegram message's text using openclaw message edit. While message editing is mentioned in the description, the primary advertised capabilities—creating interactive messages, formatting inline buttons, and handling callbacks—are not implemented in this code chunk. This is a material description-to-behavior mismatch because the actual code supports only a small subset of the declared purpose.
The declared description presents a feature for creating interactive Telegram messages with inline buttons and handling related runtime behaviors such as callback handling and message editing. The supplied code does not implement those capabilities. Instead, it only validates the shape and basic constraints of a JSON button definition passed on the command line. This is related to Telegram button formatting as a supporting utility, but it is materially narrower than the declared primary purpose and omits the core interactive behaviors described. Therefore, the description does not accurately represent what this code chunk actually does.
The script sends a success message stating that files were deleted successfully even though no deletion occurs. In an automation context, false destructive-operation confirmations can mislead operators into believing sensitive cleanup happened, causing data exposure, failed incident response, or unsafe follow-on actions based on a false system state.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
Method 2 - Via Telegram API:
curl "https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates"
Look for "chat":{"id":123456789} in the response.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
---
name: telegram-interactive-buttons
description: Create interactive Telegram messages with inline buttons using OpenClaw CLI. Use when you need user interaction in Telegram (selection from a list, confirmation dialogs, workflow menus, quick actions). Handles button formatting, callback handling, and message editing. Critical for UX-friendly Telegram automation.
metadata:
{
"openclaw":
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
openclaw message send \
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
#!/bin/bash
# Example: Basic Yes/No confirmation dialog
# This is the simplest form of interactive buttons
#
# ⚠️ SECURITY WARNING:
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
TARGET="telegram:YOUR_CHAT_ID" # ⚠️ REPLACE WITH YOUR CHAT ID
echo "Sending yes/no confirmation..."
openclaw message send \
--target "$TARGET" \
The manifest describes a skill for creating interactive Telegram messages, handling callbacks, and editing messages for UX. This example presents and confirms 'file' operations including deletion and backup, which goes beyond message/button handling and implies operational workflows unrelated to the stated Telegram-interaction scope.
The script claims that a backup was initiated and files are being copied, but it performs no such action. False assurances about backup status can lead users to rely on nonexistent data protection, increasing the risk of data loss if they proceed with risky operations under the assumption that a backup exists.
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
- `--target` (required): Telegram chat ID
- `--message-id` (required): ID of message to edit (returned from original send)
- `--message` (required): New message text (buttons automatically removed)
## Button Structure
The manifest describes a skill for creating interactive Telegram messages, handling button formatting, callbacks, and message editing. At L240, the documentation explicitly recommends using the CLI via exec, which introduces command-execution capability not justified by that purpose and goes beyond simple message/button operations.
This markdown file describes running example scripts that send Telegram messages and labels the full flow as the recommended production pattern, but it does not clearly warn users that executing the examples will transmit content to a real Telegram target. Because this file is the user-facing description for behavior that affects privacy and external systems, a brief disclosure would be appropriate.
No suspicious patterns detected.