Files
Gavin K 045126c9af fix: security hardening — GHA injection, wrong constant, invalid JSON
- .github/workflows/release.yml: Fix script injection by moving
  user-controlled inputs (module_path, tag_suffix) to env vars instead
  of direct ${{ }} interpolation in shell blocks. Pin
  softprops/action-gh-release to SHA (v2.6.2). Add explicit
  permissions: contents: read to the detect job.

- collection/ai_surface/ai_surface.c: Replace INVALID_FILE_ATTRIBUTES
  with the correct (DWORD)0xFFFFFFFF for GetFileSize error check.
  Both happen to be 0xFFFFFFFF but the former is semantically wrong.

- discovery/wallpaper_enum/metadata.json: Remove trailing comma that
  made the file invalid JSON.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-06-11 03:21:24 +00:00
..
2026-01-09 10:25:47 -05:00

AI Surface Map BOF

Summary

Maps AI tooling on Windows developer endpoints and highlights triage-ready AI agent and MCP artifacts that may expose workflow data, local state, and credentials.

Purpose

ai_surface helps operators quickly determine AI-related artifacts for collection.

It currently checks:

  • Windows Copilot package and storage paths
  • Office Copilot indicators and cache paths
  • Edge profile storage locations
  • GitHub Copilot VS Code storage paths
  • Third-party AI desktop traces for ChatGPT, Claude, Cursor, LM Studio, Ollama, and Windsurf
  • AI agent profile artifact categories with concise triage output:
    • %USERPROFILE%\.codex (sessions, auth/config, history, logs/state DB, sandbox/cache, memories/skills)
    • %USERPROFILE%\.claude (sessions/projects, paste-cache, history, settings/credentials, plans/tasks/todos, shell/IDE/debug)
  • MCP-related configuration files:
    • %APPDATA%\Claude\claude_desktop_config.json
    • %USERPROFILE%\.claude.json
    • %USERPROFILE%\.cursor\mcp.json
    • %USERPROFILE%\.codeium\windsurf\mcp_config.json
    • Project .mcp.json
    • Project .cursor\rules\mcp.json
  • Likely VS Code / VS Code Insiders extension storage folders whose names suggest MCP-backed integrations

Project config discovery is bounded. The BOF checks the root and direct children of common developer directories such as:

  • %USERPROFILE%\source
  • %USERPROFILE%\src
  • %USERPROFILE%\code
  • %USERPROFILE%\repos
  • %USERPROFILE%\projects
  • %USERPROFILE%\Documents\GitHub
  • %USERPROFILE%\Documents\Repos
  • %USERPROFILE%\Documents\Projects
  • %USERPROFILE%\Desktop

Example Output

[i] Mapping AI developer surface:

[i] Windows Copilot:
[+] Package: MicrosoftWindows.Client.CBS_cw5n1h2txyewy
[+] LocalState: C:\Users\user\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\LocalState
[+] Copilot: C:\Users\user\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\LocalState\Copilot
[i] Copilot visible in taskbar

[i] GitHub Copilot:
[+] VS Code Copilot: C:\Users\user\AppData\Roaming\Code\User\globalStorage\github.copilot
[+] VS Code Copilot Chat: C:\Users\user\AppData\Roaming\Code\User\globalStorage\github.copilot-chat
[+] VS Code workspaceStorage: C:\Users\user\AppData\Roaming\Code\User\workspaceStorage

[i] Third-party AI:
[+] Claude: C:\Users\user\AppData\Roaming\Claude\Local Storage\leveldb
[+] Cursor: C:\Users\user\AppData\Roaming\Cursor\Local Storage\leveldb
[+] Windsurf: C:\Users\user\AppData\Roaming\Codeium\Windsurf

[i] AI Agent Artifacts:
[+] Codex profile: C:\Users\user\.codex
[i]   sessions
[i]   auth/config
[i]   history
[i]   logs
[i]   state db
[i]   sandbox/cache/tmp
[i]   memories/skills
[+] Claude Code profile: C:\Users\user\.claude
[i]   sessions/projects
[i]   paste-cache
[i]   history
[i]   settings/credentials
[i]   plans/tasks/todos
[i]   shell/IDE/debug
[i] AI agent artifact summary: Codex=yes Claude Code=yes

[i] MCP Configuration Discovery:
[+] Claude Desktop MCP Config: C:\Users\user\AppData\Roaming\Claude\claude_desktop_config.json
[i]   Size: 612 bytes
[i]   Preview:
[i]     {  "mcpServers": {    "filesystem": {      "command": "npx",      "args": [ "-y",
[i]     "@modelcontextprotocol/server-filesystem", "C:\\Users\\user\\Documents" ],      "env":
[i]     { "OPENAI_API_KEY": "sk-..." } } } }
[+] Cursor Global MCP Config: C:\Users\user\.cursor\mcp.json
[i]   Size: 304 bytes
[i]   Preview:
[i]     { "mcpServers": { "github": { "command": "docker", "args": [ "run", "--rm", ... ] } } }
[+] Project Cursor MCP: C:\Users\user\source\demo\.cursor\rules\mcp.json
[i]   Size: 211 bytes
[i]   Preview:
[i]     { "mcpServers": { "internal-api": { "command": "python", "args": [ "server.py" ] } } }
[i] MCP summary: 3 artifacts, 3 previews, 0 preview errors