Back to skill

Security audit

Emacs Control

Security checks for vulnerabilities and agentic risk

Overview

This skill transparently gives an agent control over a running Emacs session, including editing and reading buffers, but its behavior is coherent with that purpose and no hidden persistence or exfiltration was found.

Install this only if you want your agent to operate inside your Emacs session. Avoid using it on buffers or kill-ring contents that may contain secrets, and require explicit user intent before full-buffer reads, ELisp evaluation, saving, or modifying non-current buffers.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The skill description is very broad ('Control Emacs. Search, edit, navigate, and pair programming with user') and does not define clear activation boundaries or user-consent constraints. In an agent system, this can cause the skill to be invoked in many contexts where it can read, modify, or evaluate content in a live editor session, increasing the risk of unintended file access or destructive edits.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% 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 117)May include surrounding context.

md
## Interface

Here is some specially designed ELisp functions for agent use, start with `emacsctl-` and return informative Lisp plist. Call them with `Eval` if possible.

### Point and Mark

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation explicitly exposes a full-buffer read capability via (emacsctl-read-buffer :buffer <buffer> :full-p t) with only a minimal 'USE WITH CAUTION' note. Because Emacs buffers may contain secrets, drafts, credentials, or unrelated user data, this creates a clear data-exposure risk if the skill is invoked too broadly or without explicit user approval.

Content

No source excerpt is available for this finding.