Back to skill

Security audit

Imessage Sender

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent image-sending purpose, but it can automatically transmit local files through Messages and contains unsafe AppleScript construction that could be abused.

Review before installing. Only use this with explicit recipient and file confirmation, and avoid sending sensitive files. The author should validate image files, restrict or confirm paths and recipients, pass AppleScript values as arguments instead of interpolating them, and clean up staged copies after sending.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/send.py:44
Finding

AppleScript Injection Through Unsanitized Recipient and File Path

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/send.py:27
Finding

Arbitrary Local File Disclosure Through Missing Image and Path Validation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (6)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill invokes shell commands and performs file-writing behavior but does not declare any tool scope such as permissions or allowed-tools. This creates a mismatch between what the skill can do and what reviewers or enforcement systems can constrain, increasing the risk of unauthorized command execution or unintended file modification.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The phrase 'automatically send' authorizes autonomous action that transmits user data through a messaging app without an explicit approval gate at send time. Because images are often sensitive, automatic dispatch increases the chance of accidental disclosure and makes prompt-injection or ambiguous requests more dangerous in this skill context.

Content

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

md
### Send Image

When user requests to send an image, automatically send via iMessage to the phone.

### Manual Commands

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger 'When user requests to send an image, automatically send via iMessage to the phone' is broad and can activate on loosely phrased user requests without confirming the recipient, image path, or intent. In a messaging context, overly permissive activation can lead to accidental exfiltration of private images to the configured phone number.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill omits a clear warning that using it will transmit an image to a phone number via iMessage and copy the file into ~/Pictures/openclaw-send/. Missing disclosure of these side effects undermines informed consent and may cause users to expose sensitive data or leave unintended local copies behind.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The code automatically assumes a China locale by prepending +86 to any 11-digit recipient number. This imposes a specific regional convention without offering the user a choice or documenting that the skill is intended only for a China-specific context.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
95% confidence
Finding

The subprocess call itself is not using a shell, but it passes attacker-controlled data into an AppleScript string executed by osascript. Both recipient and send_path are interpolated without escaping, so crafted input containing AppleScript metacharacters such as quotes can break out of the intended string and inject arbitrary AppleScript commands, potentially triggering arbitrary local actions on the Mac through scriptable applications.

Content

Scanner excerpt · scripts/send.py (reported line 60)May include surrounding context.

python
end tell
    '''
    
    result = subprocess.run(
        ['osascript', '-e', script],
        capture_output=True,
        text=True

Static analysis

No suspicious patterns detected.