Back to skill

Security audit

Trilium

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Trilium Notes helper that discloses its need for a Trilium API token and does not include hidden code, persistence, or unrelated behavior.

Install only if you are comfortable giving the agent access to your Trilium database through an ETAPI token. Use a server and token you control, avoid sharing the token in chat, and review any requested note updates or deletions before allowing them.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
---
name: trilium
description: Work with Trilium Notes (notebook app) and automate via Trilium Notes ETAPI. This skill allows you to read, search, and create notes in your Trilium database. Use to manage notebook content or search for information within Trilium. To get started: (1) In Trilium, go to Options -> ETAPI and create a new ETAPI token. (2) Set TRILIUM_ETAPI_TOKEN and TRILIUM_SERVER_URL in your environment or .env file.
---

# Trilium Notes

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/api.md (reported line 15)May include surrounding context.

md
- `GET /etapi/notes/{noteId}/content`: Get note content.
- `PUT /etapi/notes/{noteId}/content`: Update note content.
- `POST /etapi/notes`: Create a new note.
- `DELETE /etapi/notes/{noteId}`: Delete a note.

### Search
- `GET /etapi/notes?search={query}`: Search for notes using the Trilium search syntax.

Static analysis

No suspicious patterns detected.