Skip to content

Claude Code (VS Code Extension)

Quick Reference

Category: CloudAPIClient  |  OS: Windows, Linux, macOS  |  Privileges: user  |  Free: No

The Claude Code VS Code extension integrates Anthropic's AI assistant directly into the VS Code editor (and compatible forks: Cursor, Windsurf, VSCodium). Unlike the standalone CLI, it runs entirely within VS Code's extension host process (no separate binary), making process-name-based detection ineffective. The extension authenticates to api.anthropic.com and can read workspace files, execute terminal commands via the VS Code API, and interact with the editor programmatically. Its footprint is distinct from the Claude Code CLI: detection must pivot to the extension directory, VS Code process network activity, and workspace-level configuration files rather than standalone process artifacts.


Details

Field Value
Website https://marketplace.visualstudio.com/items?itemName=Anthropic.claude-code
License Proprietary

Capabilities: RemoteAPIProxy


Disk Artifacts

Path OS Type Phase Trust Description
~/.vscode/extensions/anthropic.claude-code-*/ Linux Cache Install — Claude Code extension directory (Linux/macOS — VS Code stable)
~/.vscode-insiders/extensions/anthropic.claude-code-*/ Linux Cache Install — Claude Code extension directory (Linux/macOS — VS Code Insiders)
~/.cursor/extensions/anthropic.claude-code-*/ Linux Cache Install — Claude Code extension directory (Linux/macOS — Cursor fork)
~/Library/Application Support/Code/User/globalStorage/anthropic.claude-code/ macOS Config Activation — Extension global storage including session state and cached credentials (macOS)
~/Library/Application Support/Code/User/settings.json macOS Config Activation — VS Code user settings — may contain claude.apiKey or extension configuration
C:\Users\*\AppData\Roaming\Code\User\globalStorage\anthropic.claude-code\ Windows Config Activation — Extension global storage including session state and cached credentials (Windows)
C:\Users\*\AppData\Roaming\Code\User\settings.json Windows Config Activation — VS Code user settings — may contain API key or extension config (Windows)
C:\Users\*\.vscode\extensions\anthropic.claude-code-*\ Windows Cache Install — Claude Code extension directory (Windows)
~/.config/Code/User/globalStorage/anthropic.claude-code/ Linux Config Activation — Extension global storage (Linux — XDG path)
~/.config/Code/User/settings.json Linux Config Activation — VS Code user settings (Linux — XDG path)
<workspace>/.claude/settings.local.json Any Config Activation — Per-workspace Claude Code settings — present in any repo where the extension has been configured. Reveals tool-use permissions granted per project and may indicate targeted use on sensitive repositories.

Process Artifacts

code (Use)

The VS Code main process. Claude Code extension runs in the extension host subprocess (code --type=extensionHost). No separate binary is created — all extension logic runs within VS Code's Node.js runtime. Network connections to api.anthropic.com originating from 'code' or 'code-helper' are the primary process-level indicator.

Expected parent: code

CLI Pattern Phase Trust Description
code\s+--type=extensionHost Use — VS Code extension host process hosting the Claude Code extension
code-helper\s+--type=extensionHost Use — VS Code extension host on macOS (code-helper variant)

cursor (Use)

Cursor (VS Code fork) extension host — same pattern as VS Code

Expected parent: cursor

CLI Pattern Phase Trust Description
cursor\s+--type=extensionHost Use — Cursor extension host process

Network Artifacts

Description Protocol Ports Bind Address Domains Phase Trust
Primary Anthropic API — all inference requests from VS Code process TCP 443 — api.anthropic.com Use —
Statsig telemetry and feature flag evaluation TCP 443 — statsig.anthropic.com, featuregates.org Use —
VS Code Marketplace — extension auto-updates TCP 443 — marketplace.visualstudio.com, *.gallerycdn.vsassets.io Install —

Persistence Mechanisms

OS Type Path Phase Trust Description
Windows Registry HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Code Activation — VS Code auto-start — Claude Code extension active whenever VS Code launches
macOS LaunchAgent ~/Library/LaunchAgents/com.microsoft.VSCode.plist Activation — VS Code LaunchAgent — extension loaded at every VS Code startup
Linux Cron ~/.config/autostart/code.desktop Activation — VS Code XDG autostart entry — extension active on every VS Code launch

Windows Event Log

Event ID Provider Log File Phase Trust Description
4688 Microsoft-Security-Auditing Security.evtx Use — Process creation for Code.exe (extensionHost type) making API calls
5156 Microsoft-Windows-Security-Auditing Security.evtx Use — Network connection from Code.exe to api.anthropic.com:443

Registry Artifacts

Path Phase Trust Description
HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\{VS Code extension registry} Install — VS Code extension registration — may list installed extensions including Claude Code

Detection Rules

Sigma

  • detections/sigma/claude_vscode_network.yml (Use; trust: —) — Detects VS Code or Cursor process making connections to api.anthropic.com

  • detections/sigma/claude_vscode_extension_install.yml (Install; trust: —) — Detects creation of anthropic.claude-code extension directory

References

  • https://marketplace.visualstudio.com/items?itemName=Anthropic.claude-code

  • https://docs.anthropic.com/en/docs/claude-code/ide-integrations