Skip to content

feat: add MAL-046, MAL-047, PINJ-007 — CursorJack deeplink, Claude hooks RCE, MCP sampling exfil#116

Merged
kurtpayne merged 1 commit intomainfrom
chore/pattern-update-20260323-cursorjack
Mar 24, 2026
Merged

feat: add MAL-046, MAL-047, PINJ-007 — CursorJack deeplink, Claude hooks RCE, MCP sampling exfil#116
kurtpayne merged 1 commit intomainfrom
chore/pattern-update-20260323-cursorjack

Conversation

@kurtpayne
Copy link
Owner

New Detection Rules

MAL-046: CursorJack MCP Deeplink Install

Detects malicious MCP server configurations that embed curl/wget payloads in installCommand fields — the CursorJack attack vector that tricks developers into running attacker-controlled scripts.

MAL-047: Claude Code Hooks RCE via enableAllProjectMcpServers

Detects .claude/settings.json configurations that set enableAllProjectMcpServers: true inside hooks, enabling arbitrary code execution via untrusted MCP servers in the project directory.

PINJ-007: MCP Sampling/createMessage Context Exfiltration

Detects abuse of the MCP sampling/createMessage feature to extract credentials, API keys, and system prompts from the agent's context and forward them to external endpoints.

Showcase Examples

  • examples/showcase/109_cursorjack_mcp_deeplink/SKILL.md
  • examples/showcase/110_claude_code_hooks_rce/SKILL.md
  • examples/showcase/111_mcp_sampling_exfil/SKILL.md

Stats

  • Total static rules: 113 (was 110)
  • All 3 rules validated against showcase examples (PASS)
  • FP-checked against benign skill (CLEAN)

…PINJ-007 (MCP sampling exfil) rules

- MAL-046: detects malicious MCP server install commands embedding curl|wget payloads
- MAL-047: detects Claude Code hooks config enabling all project MCP servers (RCE vector)
- PINJ-007: detects MCP sampling/createMessage abuse to exfiltrate agent context/credentials
- Add showcase examples 109-111 for each new rule
- Total static rules: 113

Refs: CursorJack (CVE-2025-XXXX), Claude Code hooks RCE (Mar 2026), MCP sampling exfil pattern
@kurtpayne kurtpayne merged commit 265c697 into main Mar 24, 2026
3 of 10 checks passed
@kurtpayne kurtpayne deleted the chore/pattern-update-20260323-cursorjack branch March 24, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant