Back to skill

Security audit

Pilot Archive

Security checks for vulnerabilities and agentic risk

Overview

This skill is an archive tool, but it stores private Pilot communications in plaintext indefinitely and is unclear about using current inbox data.

Install only if you are comfortable with Pilot messages, message bodies, filenames, ports, and sender metadata being copied into local plaintext archive files. Before use, set restrictive permissions on the archive directory/files, avoid archiving secrets, and periodically delete or rotate the archive if long-term retention is not intended.

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 (2)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:42
Finding

Plaintext Communication Archives Created Without Enforced Access Controls

Content
View full analysis
> "$INDEX_FILE" ``` ```bash ARCHIVE_DIR="$HOME/.pilot/archive" FILE_INDEX="$ARCHIVE_DIR/file-index.jsonl" pilotctl --json received | jq -c '.received[] | {timestamp, from, filename, size, port, indexed_at: (now | todate)}' >> "$FILE_INDEX" ``` The workflow example repeats the same behavior: ```bash ARCHIVE_DIR="$HOME/.pilot/archive" MSG_INDEX="$ARCHIVE_DIR/message-index.jsonl" FILE_INDEX="$ARCHIVE_DIR/file-index.jsonl" mkdir -p "$ARCHIVE_DIR" # Index messages (get all, filter client-side) pilotctl --json inbox | jq -c '.messages[] | {timestamp, from, to, type, content, indexed_at: (now | todate)}' | tail -100 >> "$MSG_INDEX" # Index files (get all, filter client-side) pilotctl --json received | jq -c '.received[] | {timestamp, from, filename, size, port, indexed_at: (now | todate)}' | tail -100 >> "$FILE_INDEX" ``` ### Technical Analysis The skill archives complete message content and file-transfer metadata in unencrypted JSONL files under `~/.pilot/archive`. It creates the directory with `mkdir -p` and creates archive files through shell redirection, but it does not enforce owner-only permissions. The resulting permissions depend on the invoking process's `umask`. On a system with a permissive `umask`, the archive directory or files may be readable by other local accounts or processes. The stored information includes: - Complete message contents - Sender and recipient identifiers - Message timestamps and types - Transferred filenames and sizes - Transfer port metadata - Communication relationsh ...[truncated 1652 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:59
Finding

User-Controlled Search Terms Are Interpolated Into jq Program Source

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The 'Do NOT use this skill when' section states that current inbox messages should be accessed via pilotctl inbox directly. Yet the skill's own commands and workflow example immediately use pilotctl --json inbox to gather and index messages, which contradicts that guidance rather than merely omitting detail.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill persistently stores message contents and file-transfer metadata in local JSONL archives under the user's home directory without any warning, minimization, retention control, or access protection guidance. Because Pilot communications may contain sensitive content, this creates a confidentiality risk: secrets, private messages, filenames, and transfer metadata can accumulate indefinitely and be exposed to other local users, backups, logs, or later compromise.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The manifest positions this skill as operating on historical archived data and explicitly says not to use it for current inbox messages. However, the documented indexing commands directly pull from pilotctl --json inbox and pilotctl --json received, meaning the skill's core behavior depends on live current-state listings rather than an already historical archive source.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.