Back to skill

Security audit

Reclaim disk space on your Mac

Security checks for vulnerabilities and agentic risk

Overview

The skill is a macOS cleanup guide, but it tells users to run a broad force-delete Terminal command while overstating its safety.

Review before installing. The skill does not appear to be malicious, but users should not copy-paste the provided delete command casually. Prefer macOS storage tools or inspect cache sizes first, quit affected apps, avoid entering an admin password for this cleanup, and understand that app state or offline resources may be removed.

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
SKILL.md:19
Finding
Destructive and Unguarded Recursive Cache Deletion## Vulnerability Details **File Location**: `SKILL.md`, lines 19–22 **Vulnerability Type**: Unsafe destructive shell command **Risk Level**: Medium ### Vulnerable Code ```bash rm -rf ~/Library/Caches/* ``` ### Technical Analysis The Skill directs the user to execute `rm -rf` against every visible entry under the current user's macOS cache directory. The `-r` option recursively removes directories, while `-f` suppresses confirmation and many errors. Shell wildcard expansion causes all matching entries to be deleted immediately without displaying their sizes, validating individual targets, creating a backup, or requesting confirmation. Although the command is limited to the current user's cache directory under normal shell expansion, application caches can contain offline content, recoverable application state, or data that is expensive to regenerate. The surrounding instructions characterize the operation as completely safe, which understates its destructive and irreversible nature. The note concerning permission grants or password entry could also encourage users to grant access unnecessarily, even though elevated privileges should not normally be required for user-owned caches. This is an insecure operational practice rather than evidence of malicious intent. The project contains no remote payload retrieval, persistence, credential collection, hidden code, or dependency-related behavior. ### Attack Path 1. A user follows the cleanup instructions and opens Terminal. 2. The user pastes `rm -rf ~/Library/Caches/*`. 3. The shell expands `*` to matching cache entries. 4. `rm` recursively and forcibly deletes those entries without review or confirmation. 5. Applications may lose cached state or offline resources and subsequently malfunction, rebuild data, or perform substantial downloads. No separate attacker-controlled input or privilege-escalation step is required; the risk arises directly from the documented destructive ...[truncated 724 chars]
Remediation
## Remediation Suggestions 1. Replace blanket recursive deletion with an inspection-first workflow, such as reporting cache sizes before any removal. 2. Remove only explicitly selected, known application cache directories rather than using a wildcard across the entire cache directory. 3. Ask for explicit confirmation and identify the exact target before performing deletion. 4. Advise users to quit affected applications before clearing their caches. 5. Clearly disclose that deletion is irreversible and may remove offline resources or application state. 6. Do not suggest entering an administrator password or granting broader filesystem permissions for a current-user cache cleanup. 7. Prefer application-provided cache-management controls or macOS storage-management facilities where available. 8. If a command-line procedure remains necessary, first use a non-destructive command such as `du` to identify large cache directories, then provide narrowly scoped deletion instructions for user-approved targets.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Tool Parameter Abuse

High
Category
Tool Misuse
Content
Place the following command into the Terminal window and confirm by pressing **Return**:

```bash
rm -rf ~/Library/Caches/*

```
Confidence
96% confidence
Finding
This finding directly matches the dangerous command as written. In the context of a user-facing macOS cleanup skill, instructing non-expert users to paste a destructive wildcard deletion command into Terminal is particularly risky because the skill claims personal files stay 'completely safe,' understating real operational and state-loss risks.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
Place the following command into the Terminal window and confirm by pressing **Return**:

```bash
rm -rf ~/Library/Caches/*

```
Confidence
96% confidence
Finding
This finding directly matches the dangerous command as written. In the context of a user-facing macOS cleanup skill, instructing non-expert users to paste a destructive wildcard deletion command into Terminal is particularly risky because the skill claims personal files stay 'completely safe,' understating real operational and state-loss risks.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
```

### Что было изменено:
1.  **Команда:** Заменена на `rm -rf ~/Library/Caches/*`. Это стандартная команда для удаления временных файлов (кэша) текущего пользователя. Она безопасна, так как удаляет только временные данные, которые приложения могут создать заново при необходимости.
2.  **Описание:** Текст "About this command" скорректирован так, чтобы точно описывать действие новой команды (удаление кэша приложений), а не абстрактных "логов и системных файлов", о которых говорилось в оригинале.

```
Confidence
90% confidence
Finding
This duplicate finding points to the same repeated `rm -rf ~/Library/Caches/*` instruction in explanatory prose. The surrounding claim that the command is harmless is misleading and increases the chance of misuse, particularly by less technical users following copy-paste terminal instructions.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
```

### Что было изменено:
1.  **Команда:** Заменена на `rm -rf ~/Library/Caches/*`. Это стандартная команда для удаления временных файлов (кэша) текущего пользователя. Она безопасна, так как удаляет только временные данные, которые приложения могут создать заново при необходимости.
2.  **Описание:** Текст "About this command" скорректирован так, чтобы точно описывать действие новой команды (удаление кэша приложений), а не абстрактных "логов и системных файлов", о которых говорилось в оригинале.

```
Confidence
90% confidence
Finding
This duplicate finding points to the same repeated `rm -rf ~/Library/Caches/*` instruction in explanatory prose. The surrounding claim that the command is harmless is misleading and increases the chance of misuse, particularly by less technical users following copy-paste terminal instructions.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
```

### Что было изменено:
1.  **Команда:** Заменена на `rm -rf ~/Library/Caches/*`. Это стандартная команда для удаления временных файлов (кэша) текущего пользователя. Она безопасна, так как удаляет только временные данные, которые приложения могут создать заново при необходимости.
2.  **Описание:** Текст "About this command" скорректирован так, чтобы точно описывать действие новой команды (удаление кэша приложений), а не абстрактных "логов и системных файлов", о которых говорилось в оригинале.

```
Confidence
90% confidence
Finding
This duplicate finding points to the same repeated `rm -rf ~/Library/Caches/*` instruction in explanatory prose. The surrounding claim that the command is harmless is misleading and increases the chance of misuse, particularly by less technical users following copy-paste terminal instructions.

Missing User Warnings

Medium
Confidence
88% confidence
Finding
The skill instructs users to run a destructive recursive deletion command against their cache directory without adequately warning about side effects such as app logout, loss of saved session/state, re-download costs, or disruption to applications that may be using those files. While narrower than deleting broader home-directory content, it still normalizes risky shell usage and can cause unexpected data loss in application state.

Natural-Language Policy Violations

Low
Confidence
84% confidence
Finding
The file contains substantial Russian text surrounding an English SKILL.md body, which can impose a language assumption on users or maintainers without opt-in. The policy requires avoiding forced language or locale choices unless the skill explicitly offers a choice or documents a justified locale constraint.

Static analysis

No suspicious patterns detected.