Back to skill

Security audit

TRMNL

Security checks for vulnerabilities and agentic risk

Overview

The skill does what it claims, but it publishes a writable TRMNL display webhook and sends user-provided content to that external endpoint.

Review this before installing. It should be changed to use your own TRMNL webhook stored as a secret, and the exposed webhook should be rotated or revoked. Do not use it for passwords, tokens, private reminders, personal data, or internal business information unless you are comfortable sending that content to the TRMNL endpoint.

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

Hardcoded Writable TRMNL Webhook Credential

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 12–20
Vulnerability Type: Hardcoded secret / plaintext sensitive configuration
Risk Level: High

Vulnerable Code

markdown
- **Endpoint:** `https://trmnl.com/api/custom_plugins/0d9e7125-789d-46a6-9a51-070ac95364d8`
- **Method:** POST
- **Content-Type:** application/json

## How to Send a Message

Use curl to POST a JSON payload with `merge_variables`:

```bash
curl "https://trmnl.com/api/custom_plugins/0d9e7125-789d-46a6-9a51-070ac95364d8" \

Technical Analysis

The skill embeds a device-specific, writable webhook URL directly in a tracked Markdown file. The UUID-like URL component functions as a bearer credential: possession of the complete endpoint is sufficient to submit content, with no separate authentication mechanism documented.

Anyone able to read the skill package, repository, archive, logs, or generated documentation can extract the endpoint and send arbitrary merge_variables payloads directly to the TRMNL service. Moving the same value into another tracked configuration file would not resolve the exposure; it must be revoked and replaced with a secret supplied at runtime.

Attack Path

  1. An attacker obtains a copy of SKILL.md from the skill package or repository.
  2. The attacker extracts the complete webhook endpoint from line 12 or line 20.
  3. The attacker submits an independent HTTP POST request containing attacker-controlled title, text, and optionally image values:
    bash
    curl "https://trmnl.com/api/custom_plugins/REDACTED" \
      -H "Content-Type: application/json" \
      -X POST \
      -d '{"merge_variables":{"title":"Urgent Notice","text":"Attacker-controlled content"}}'
    
  4. The TRMNL service accepts the bearer webhook and updates the associated display content.
  5. The attacker can repeat requests to overwrite legitimate content or continuously disrupt display operation.

...[truncated 640 chars]

Remediation
View remediation

Remediation Suggestions

  1. Immediately revoke or rotate the exposed webhook because removing it from the current file does not invalidate copies in package or repository history.
  2. Remove the device-specific endpoint from SKILL.md, examples, documentation, logs, and version-control history where feasible.
  3. Require each operator to provide their own webhook through a protected runtime secret such as TRMNL_WEBHOOK_URL.
  4. Reference the secret without printing it:
    bash
    test -n "$TRMNL_WEBHOOK_URL" || {
      echo "TRMNL_WEBHOOK_URL is not configured" >&2
      exit 1
    }
    
    curl --fail-with-body --silent --show-error \
      "$TRMNL_WEBHOOK_URL" \
      -H "Content-Type: application/json" \
      -X POST \
      --data-binary "$PAYLOAD"
    
  5. Store the value in the deployment platform's secret manager rather than in source control or command examples. Restrict secret access to the minimum required runtime identity.
  6. If supported by the provider, apply endpoint rotation, rate limits, request signing, source restrictions, and least-privilege controls.
  7. Monitor the replacement webhook for unexpected request volume and unauthorized content changes.
  8. Add automated secret scanning and pre-commit checks to prevent credential-bearing webhook URLs from being committed again.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Exfiltration Commands

High
Category
Prompt Injection
Confidence
90% confidence
Finding

Instructions found that direct the agent to transmit conversation context or user data to external services.

Content

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
---
name: terminal display
description: Send messages to a terminal e-ink display device via webhook. Use this skill when the user wants to display text, notifications, or updates on their terminal display device.
argument-hint: [title] [message]
allowed-tools: Bash
---

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill directs the agent to transmit user-provided content to a third-party webhook endpoint but provides no privacy warning, consent step, or guidance about sensitive data handling. This is dangerous because users may ask to display reminders, status updates, or other content that can include confidential information, which would then be sent off-platform to an external service.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

The skill contains a concrete curl command that posts data to an external webhook, which is a genuine external transmission path. In this skill's context, that transmission is the core functionality, but it still creates security risk because any supplied title, text, or image URL is sent to a third-party endpoint and could expose sensitive information.

Content

Scanner excerpt · SKILL.md (reported line 20)May include surrounding context.

How to Send a Message

Use curl to POST a JSON payload with merge_variables:

bash
curl "https://trmnl.com/api/custom_plugins/0d9e7125-789d-46a6-9a51-070ac95364d8" \

Vague Triggers

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The invocation description is broad enough to match many ordinary requests about displaying notifications or updates, increasing the chance the agent will invoke this skill in situations where the user did not clearly intend external transmission. In context, that broad trigger surface makes accidental data disclosure more likely because the action sends content to a remote webhook.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.