Back to skill

Security audit

Garmin Health Analysis (Maintained Fork)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this Garmin health analysis skill suspicious with medium confidence, mainly because its scanners report undeclared email access and cleanup that can delete unrelated messages, plus trip creation without confirmation.

Consider the verdict's Review status carefully before installing. The reported mailbox access and cleanup may affect unrelated email, and trip creation may change your Garmin account without the promised confirmation. Analysis was incomplete, so some behavior remains unevaluated.

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

Warning
Location
scripts/garmin_auth.py
Finding

MFA cleanup expunges unrelated messages from the entire INBOX

Content
View full analysis

Impact

Unrelated messages pending deletion in another client are permanently removed without a separate confirmation or a UID-scoped deletion boundary.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (28)

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 · CHANGELOG.md (reported line 165)May include surrounding context.

md
- Added `trip-list` / `trip-add` / `trip-update` / `trip-delete` subcommands to
  `garmin_calendar.py`.
- Endpoints: `GET|POST|PUT /jetlag-service/jetlag/trip`, `DELETE
  /jetlag-service/jetlag/trip/{id}`, `GET /jetlag-service/jetlag/status/daily/{date}`.
- **Live-tested end to end** on a real account: create → read-back → replace →
  delete, each verified against `trip-list` and cleaned up afterwards.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The manifest does not disclose the reported access to personal mailbox credentials, automatic MFA retrieval, or destructive email cleanup. These operations exceed ordinary Garmin data access, and mailbox-wide EXPUNGE can permanently remove unrelated messages already marked deleted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The calendar and trip functionality otherwise aligns with the declared purpose. However, the description presents trip mutations as confirmation-gated, while only replacement and deletion have preview-and-confirm branches. A valid trip-add invocation creates a trip immediately. Broader advertised features absent from this individual code chunk are not treated as mismatches.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
Use `scripts/garmin_calendar.py` for anything about travel, races or calendar entries.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trips --months-back 14 --months-fwd 6

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trips --months-back 2 --with-names

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py races --months-back 24

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py calendar --months-back 12

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py summary --months-back 14 --months-fwd 4

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-list

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-add --start 2026-11-05 --end 2026-11-09 \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-update --trip-id ID --start ... --end ... --flights ...

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-delete --trip-id ID

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-delete --trip-id ID

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-delete --trip-id ID --confirm-delete

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-update --trip-id ID --start ... --end ... --flights ...

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/garmin_calendar.py trip-update --trip-id ID --start ... --end ... --flights ... --confirm-update

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 · references/mcp_setup.md (reported line 28)May include surrounding context.

md
# Install and setup
npm install
pip3 install garminconnect fitparse gpxpy
cp .env.example .env
# Edit .env with your credentials

# Authenticate

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 · references/mcp_setup.md (reported line 29)May include surrounding context.

md
npm install
pip3 install garminconnect fitparse gpxpy
cp .env.example .env
# Edit .env with your credentials

# Authenticate
npm run auth

Garmin authentication automatically accesses a personal mailbox and deletes email, capabilities not declared by the health-analysis manifest.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The authentication helper falls back to credentials from a personal email client's configuration and accesses the inbox without a separate mailbox opt-in. Fresh login also invokes deletion of matching emails in a finally block, so even failed authentication can modify a personal mailbox beyond the expected health-data scope.

Content

No source excerpt is available for this finding.

Mailbox cleanup promises to leave other mail alone but can permanently delete unrelated messages.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Both polling and cleanup call ordinary IMAP EXPUNGE, which permanently removes every message marked deleted in the selected inbox, not just Garmin messages. Cleanup also lacks a current-attempt UID restriction, allowing unrelated pending deletions and other login attempts' passcode messages to be removed.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · scripts/garmin_calendar.py (reported line 26)May include surrounding context.

python
GET    /jetlag-service/jetlag/trip        list trips (with flights)
  POST   /jetlag-service/jetlag/trip        create
  PUT    /jetlag-service/jetlag/trip        replace
  DELETE /jetlag-service/jetlag/trip/{id}   delete
  GET    /jetlag-service/jetlag/status/daily/{date}  guidance
That path can CREATE and EDIT trips, so `trip-add` / `trip-update` /
`trip-delete` below write them. Requires garminconnect >= 0.3.18.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · CHANGELOG.md (reported line 112)May include surrounding context.

md
### Security: confirmation gate on destructive trip operations

ClawHub's security audit flagged `trip-delete` (Medium): it checked only that
`--trip-id` was non-empty and then deleted, with no confirmation gate. Correct
finding, and it also under-reported: `trip-update` is a full **replace**, so an
incomplete flight list silently drops legs.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Trip creation is explicitly ungated despite the manifest describing trip operations as confirmation-gated.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The manifest at L003 describes Jet Lag Adviser trip creation, replacement, and deletion as confirmation-gated. However, L314–L317 restrict the confirmation workflow to update/delete and explicitly state that trip-add creates a trip without a gate, allowing an account modification without the advertised confirmation safeguard.

Content

No source excerpt is available for this finding.