Back to skill

Security audit

herder-telegram

Security checks for vulnerabilities and agentic risk

Overview

The skill has a coherent Telegram-to-terminal purpose, but it needs review because it can expose terminal content externally and its command examples handle untrusted Telegram text unsafely.

Install only if you trust the Telegram chat and the gateway environment. Avoid sending secrets through this workflow, review pane output before forwarding it externally, use only trusted agent binaries, and implement these commands with shell-free argv/stdin handling rather than interpolating chat text into shell command strings.

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:106
Finding

Command Injection Through User-Controlled Prompt Interpolation

Content
View full analysis
"" ``` ```bash herdr pane run "" ``` ```bash herdr pane run "" ``` ```bash -p "" ``` ### Technical Analysis The skill instructs the agent to insert Telegram messages, prompts, replies, and questions directly into quoted shell command templates. These values are attacker-controlled. Double quotes do not make arbitrary data safe for inclusion in a shell command. Shell constructs such as command substitution using `$(...)` or backticks remain active inside double quotes. An attacker may also attempt to terminate the quoted argument and append additional shell syntax. If the agent constructs these examples as command strings and executes them through a shell, shell expansion occurs before `herdr` or the selected agent binary receives the argument. Consequently, malicious content intended to be treated as terminal text can instead execute as a local operating-system command. The same underlying defect affects both the persistent Herdr pane workflow and the documented headless alternative. ### Attack Path 1. An attacker submits a Telegram prompt, reply, or one-shot question containing shell syntax, such as a command substitution payload. 2. The skill places the input into one of the documented command templates without robust shell escaping. 3. The resulting command string is passed to a shell by the agent or command-execution environment. 4. The shell evaluates the injected substitution or appended command before invoking `herdr` or the selected CLI agent. 5. The injected operating-system command executes with the privileges and environment of the OpenClaw gateway process. 6. T ...[truncated 1204 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Ssd 3

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The core workflow is to shuttle prompts, progress, and transcripts between a terminal agent and Telegram, which creates a direct exfiltration path for whatever appears in the pane. If the pane contains secrets, local file contents, credentials, or sensitive prompts, the skill instructs relaying them to an external messaging channel without any filtering or consent gate.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Forwarding blocked-agent questions verbatim and piping the user's reply back into the pane creates a bidirectional leakage and prompt-injection channel. Sensitive interactive prompts, approval requests, file paths, or credentials shown in the pane may be disclosed to Telegram, and unreviewed user replies may drive risky actions in the terminal agent.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The headless alternative explicitly allows executing an arbitrary user-selected agent binary directly on the gateway host, outside the pane/isolation workflow the skill otherwise emphasizes. This expands the trust boundary and can enable command execution, broader filesystem/network access, and bypass of the auditing/visibility controls provided by Herdr panes.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Requiring the final report to include the submitted prompt and anything forwarded to the pane encourages retention and retransmission of potentially sensitive user input and terminal interactions. This increases the chance of unnecessary disclosure in chat logs and preserves data that may not need to leave the execution environment.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.