Back to skill

Security audit

Himalaya

Security checks for vulnerabilities and agentic risk

Overview

This is a documentation-only skill for using an email CLI, and its sensitive actions are expected for managing email accounts.

Install only if you intend to let the agent help operate your email account. Review recipients, message IDs, attachment paths, and delete/send commands before running them, and prefer keyring or password-manager based credential storage over plaintext config values.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (8)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

System keyring (requires keyring feature)

toml
backend.auth.keyring = "imap-example"

Then run himalaya account configure <account> to store the password.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · references/configuration.md (reported line 50)May include surrounding context.

System keyring (requires keyring feature)

toml
backend.auth.keyring = "imap-example"

Then run himalaya account configure <account> to store the password.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

himalaya account configure

text

Or create `~/.config/himalaya/config.toml` manually:

```toml
[accounts.personal]

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill shows commands for composing and sending email, including template send, but does not warn users that executing them will transmit content, headers, and recipient information over SMTP and potentially to external parties. For markdown files, behaviors affecting privacy or external data transmission should be explicitly disclosed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file describes himalaya message delete 42 as a common operation but provides no warning that it deletes user email and may affect mailbox state or retention. Under the markdown-specific missing-warning rule, destructive actions that can affect user data should be accompanied by a user-facing caution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The attachment download section instructs users to save attachments, including to a specific directory, but does not warn that this writes files to the local filesystem and may overwrite or expose sensitive data depending on location and defaults. Markdown descriptions should disclose behaviors that affect user data or system state.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

This markdown file provides concrete configuration examples that place passwords directly in config fields and later references OAuth client credentials and tokens. Although it notes that raw passwords are 'testing only, not recommended,' it does not provide an explicit broader warning that these settings expose sensitive credentials in local configuration or command output/history if handled carelessly.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation shows MML attachment syntax using local filesystem paths without explicitly warning that those paths cause the referenced files to be read and sent in outbound email. In an agent or automation context, a user may copy these examples and unintentionally exfiltrate sensitive local files, especially if path values are templated or influenced by untrusted input.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.