Claude Code
Quick Reference
Category: CloudAPIClient |
OS: Windows, Linux, macOS |
Privileges: user |
Free: No
Claude Code is Anthropic's official AI-assisted CLI and agentic coding tool, installed as a global npm package (@anthropic-ai/claude-code). It runs as a Node.js process, authenticates to api.anthropic.com, and can autonomously read files, execute shell commands, write code, and spawn sub-processes on the endpoint. Unlike passive chat clients, Claude Code operates with the full privileges of the invoking user — making it a high-value artifact for DFIR. Stored API keys in ~/.claude/credentials.json represent a persistent secret with broad Anthropic account access. MCP (Model Context Protocol) servers configured by the user may spawn additional local network listeners.
Details
| Field | Value |
|---|---|
| Website | https://claude.ai/code |
| License | Proprietary |
Capabilities: RemoteAPIProxy
Disk Artifacts
| Path | OS | Type | Phase | Trust | Description |
|---|---|---|---|---|---|
/usr/local/bin/claude |
Linux | Binary | Install | — | Claude Code CLI wrapper script (Linux/macOS — system npm install) |
~/.local/bin/claude |
Linux | Binary | Install | — | Claude Code CLI wrapper script (Linux — user-space npm install) |
/usr/local/lib/node_modules/@anthropic-ai/claude-code/ |
Linux | Cache | Install | — | Claude Code npm package directory (Linux/macOS) |
/opt/homebrew/bin/claude |
macOS | Binary | Install | — | Claude Code CLI wrapper script (macOS Apple Silicon via Homebrew npm) |
~/Library/Application Support/claude-code/ |
macOS | Config | Activation | — | Claude Code application support directory (macOS) |
C:\Users\*\AppData\Roaming\npm\claude.cmd |
Windows | Binary | Install | — | Claude Code CLI batch wrapper (Windows — npm global install) |
C:\Users\*\AppData\Roaming\npm\claude.ps1 |
Windows | Binary | Install | — | Claude Code CLI PowerShell wrapper (Windows) |
C:\Users\*\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\ |
Windows | Cache | Install | — | Claude Code npm package directory (Windows) |
~/.claude/credentials.json |
Any | Config | Activation | — | Stored Anthropic API token and OAuth credentials — HIGH VALUE target. Contains long-lived API keys granting full Anthropic account access. |
~/.claude/settings.json |
Any | Config | Activation | — | Claude Code configuration including model, permissions, and MCP server definitions |
~/.claude/projects/ |
Any | Log | Use | — | Per-project conversation history and context files — may contain exfiltrated data |
~/.claude/todos/ |
Any | Log | Use | — | Persisted task lists created during agentic sessions |
~/.claude/statsig/ |
Any | Cache | Use | — | Local Statsig feature flag cache used by Claude Code telemetry |
C:\Users\*\.claude\credentials.json |
Windows | Config | Activation | — | Stored Anthropic API token (Windows path) |
C:\Users\*\.claude\settings.json |
Windows | Config | Activation | — | Claude Code configuration (Windows path) |
C:\Users\*\.claude\projects\ |
Windows | Log | Use | — | Conversation history (Windows path) |
Process Artifacts
node (Use)
Claude Code runs as a Node.js process. The CLI wrapper resolves to node executing the Claude Code entry point. Parent is typically an interactive shell; in automated abuse scenarios it may be spawned by scripts or cron.
Expected parent: bash
| CLI Pattern | Phase | Trust | Description |
|---|---|---|---|
node.*claude-code.*cli |
Use | — | Node process executing the Claude Code CLI entry point |
node.*@anthropic-ai/claude-code |
Use | — | Node process running Claude Code from npm package path |
claude (Use)
Visible process name on systems where the npm wrapper sets argv[0]. On Linux/macOS the shebang wrapper may show as 'claude' in ps output.
Expected parent: bash
| CLI Pattern | Phase | Trust | Description |
|---|---|---|---|
^claude\s*$ |
Use | — | Interactive session launch |
claude\s+--print\s+ |
Abuse | — | Non-interactive single-prompt execution (automation / scripting abuse) |
claude\s+--dangerously-skip-permissions |
Abuse | — | Permissions bypass flag — suppresses all tool-use confirmation prompts |
Network Artifacts
| Description | Protocol | Ports | Bind Address | Domains | Phase | Trust |
|---|---|---|---|---|---|---|
| Primary Anthropic API — all inference requests | TCP | 443 | — |
api.anthropic.com | Use | — |
| Statsig telemetry and feature flag evaluation | TCP | 443 | — |
statsig.anthropic.com, featuregates.org | Use | — |
| MCP local server (optional — user-configured, variable port) | TCP | 3000, 8080 | 127.0.0.1 |
— | Activation | — |
Persistence Mechanisms
| OS | Type | Path | Phase | Trust | Description |
|---|---|---|---|---|---|
| Linux | Cron | ~/.bashrc |
Activation | — | API key or alias injection into shell rc files for persistent invocation |
| macOS | LaunchAgent | ~/Library/LaunchAgents/com.anthropic.claude-code.plist |
Activation | — | Optional LaunchAgent if Claude Code is configured as a background service |
Windows Event Log
| Event ID | Provider | Log File | Phase | Trust | Description |
|---|---|---|---|---|---|
| 4688 | Microsoft-Security-Auditing | Security.evtx | Use | — | Process creation for node.exe executing Claude Code entry point |
| 4663 | Microsoft-Security-Auditing | Security.evtx | Use | — | File access audit on %USERPROFILE%.claude\credentials.json |
Registry Artifacts
| Path | Phase | Trust | Description |
|---|---|---|---|
HKCU\Software\Microsoft\Windows\CurrentVersion\Run |
Activation | — | Potential persistence if Claude Code is configured to start at login |
Detection Rules
Sigma
-
detections/sigma/claude_code_network.yml(Use; trust: —) — Detects outbound connections from node.exe to api.anthropic.com -
detections/sigma/claude_code_credentials_access.yml(Abuse; trust: —) — Detects access to ~/.claude/credentials.json (API key theft indicator) -
detections/sigma/claude_code_permissions_bypass.yml(Abuse; trust: —) — Detects --dangerously-skip-permissions flag suppressing all tool-use prompts
References
-
https://claude.ai/code
-
https://www.npmjs.com/package/@anthropic-ai/claude-code
-
https://docs.anthropic.com/en/docs/claude-code