Back to skill

Security audit

travel-assistant

Security checks for vulnerabilities and agentic risk

Overview

This travel assistant is not clearly malicious, but it asks for broad file and command authority that is not well scoped to travel planning.

Install only if you are comfortable granting this skill broad local read/write and command-execution authority. Prefer a version that removes exec, narrows activation to travel planning, limits file access to user-selected itinerary documents, and documents any API or export behavior clearly.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:17
Finding

Excessive Filesystem and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 17–20
Vulnerability Type: Violation of least privilege through unnecessary agent-tool permissions
Risk Level: Medium

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The skill declares general-purpose file-reading, file-writing, and command-execution tools. Its documented purpose is to organize travel information, identify missing travel preparations, retrieve weather information, and generate packing recommendations. These activities do not inherently require unrestricted local filesystem modification or system command execution.

No executable implementation, command allowlist, path restriction, argument validation, or enforced sandbox policy is included in the project. Although the documentation states that commands should run in a secure sandbox, it does not provide a technical control that enforces this boundary.

Granting these tools expands the consequences of prompt injection or attacker-controlled travel content. If the hosting agent exposes the declared tools to the skill without additional authorization controls, manipulated input could influence the agent into reading unrelated files, modifying accessible data, or executing commands outside the travel-assistance scope.

Attack Path

  1. A host loads the skill and grants the declared read, write, and exec tools.
  2. An attacker supplies adversarial content through a travel request, imported itinerary, booking text, or other skill input.
  3. The content attempts to induce the agent to invoke one of the broadly available tools.
  4. Because the skill defines no path boundaries, command allowlist, or per-operation authorization policy, the agent may access files or execute commands unrelated to travel planning.
  5. The operation runs with the filesystem access and operating-system privileges available to the hosting agent.

This path is conditional on ...[truncated 731 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec because the documented travel-planning workflow does not require arbitrary system command execution.
  2. Remove write unless a specific user-requested export feature requires it.
  3. If file access is necessary, replace general read access with a user-mediated file-selection mechanism restricted to explicit itinerary or booking files.
  4. Use dedicated, allowlisted weather and travel-information APIs instead of shell commands or unrestricted network tooling.
  5. Enforce canonical-path validation and restrict permitted files to a dedicated workspace.
  6. Require explicit user confirmation before any file modification or external side effect.
  7. Apply host-level sandboxing, minimal operating-system privileges, command and network allowlists, execution timeouts, and resource limits.
  8. Treat imported travel documents and user-provided content as untrusted data and prevent their contents from being interpreted as tool-use instructions.
  9. Document each required tool, its permitted operations, and the controls that technically enforce those limits.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation guidance says the skill should be used broadly for efficiency, automation, batch processing, and workflow optimization rather than for travel-specific tasks. Overly broad invocation criteria increase the probability that this skill is selected in unrelated contexts, where its read/write/exec capabilities could be abused under the cover of a benign travel label.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

Granting a private travel-planning skill general exec access is excessive for its stated purpose and materially increases the attack surface. If the agent is induced to use exec on attacker-influenced inputs, it could run arbitrary local commands, access sensitive files, modify the environment, or pivot beyond the travel domain.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill presents itself as a travel assistant but simultaneously advertises broad automation abilities including file processing, API integration, and command execution. This capability mismatch can mislead users and orchestrators about the true privilege level of the skill, increasing the chance it is invoked inappropriately and that high-risk tools are available under a low-risk label.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The FAQ explicitly says the assistant supports Chinese interaction, but it does not offer the user a language choice or explain a justified region-specific constraint. This is a natural-language locale policy issue because it imposes a language limitation without opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill claims command execution is restricted to a whitelist and avoids user-input command construction, but the document defines no actual whitelist or enforcement mechanism. Because the skill also exposes an exec capability, this creates a misleading safety boundary that may cause operators or downstream agents to trust unsafe command execution in a context where the permitted commands are undefined.

Content

No source excerpt is available for this finding.