{
  "version": "1.0",
  "checks": [
    {
      "id": "instruction",
      "path": "~/Downloads; ~/Desktop; XDG download dir; /tmp; $TMPDIR; --scan roots",
      "key": "AGENTS.md, AGENTS.override.md, CLAUDE.md, CLAUDE.local.md, .cursorrules, .cursor/rules/**, .mcp.json, .claude/settings*.json, .codex/config.toml",
      "severity": "high if suspicious lines; medium otherwise",
      "source_url": "https://developers.openai.com/codex/guides/agents-md/",
      "additional_sources": [
        "https://code.claude.com/docs/en/memory",
        "https://code.claude.com/docs/en/settings",
        "https://cursor.com/docs/context/rules",
        "https://forever.security/blog/hijacking-ai-agents-via-downloads-folder/"
      ]
    },
    {
      "id": "codex-mcp",
      "path": "$CODEX_HOME/config.toml or ~/.codex/config.toml; discovered .codex/config.toml",
      "key": "mcp_servers.<name>: command, args, env, url",
      "severity": "high for risky command/args; medium otherwise unless exact baseline",
      "source_url": "https://developers.openai.com/codex/config-reference/",
      "additional_sources": []
    },
    {
      "id": "codex-url",
      "path": "Codex config files",
      "key": "chatgpt_base_url; openai_base_url; model_providers.<id>.base_url",
      "severity": "high for non-default host unless approved host; current Codex ignores provider URL keys in project config",
      "source_url": "https://developers.openai.com/codex/config-reference/",
      "additional_sources": []
    },
    {
      "id": "claude-url",
      "path": "~/.claude/settings.json; managed settings; discovered project settings; current environment",
      "key": "env.ANTHROPIC_BASE_URL; ANTHROPIC_FOUNDRY_BASE_URL; HTTP_PROXY; HTTPS_PROXY; ALL_PROXY",
      "severity": "high for non-api.anthropic.com host unless approved host",
      "source_url": "https://code.claude.com/docs/en/env-vars",
      "additional_sources": [
        "https://code.claude.com/docs/en/settings",
        "https://code.claude.com/docs/en/settings-reference",
        "https://code.claude.com/docs/en/sandboxing"
      ]
    },
    {
      "id": "claude-helper",
      "path": "Claude settings files",
      "key": "apiKeyHelper",
      "severity": "info",
      "source_url": "https://code.claude.com/docs/en/settings-reference",
      "additional_sources": []
    },
    {
      "id": "claude-mcp",
      "path": "~/.claude.json (global and per-project MCP); discovered .mcp.json",
      "key": "mcpServers.<name>: command, args, env, url",
      "severity": "high for risky command/args; medium otherwise unless exact baseline",
      "source_url": "https://code.claude.com/docs/en/mcp",
      "additional_sources": [
        "https://code.claude.com/docs/en/settings-reference"
      ]
    },
    {
      "id": "persistence-launchd",
      "path": "~/Library/LaunchAgents; macOS /Library/LaunchAgents and /Library/LaunchDaemons",
      "key": "Label; Program; ProgramArguments; modification time",
      "severity": "high for com.ptools.setup; medium for npm/npx/node/curl/tmp/shell -c; info if recent",
      "source_url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
      "additional_sources": []
    },
    {
      "id": "persistence-systemd",
      "path": "$XDG_CONFIG_HOME/systemd/user or ~/.config/systemd/user; $XDG_DATA_HOME/systemd/user or ~/.local/share/systemd/user",
      "key": "user unit command patterns; modification time",
      "severity": "high for com.ptools.setup; medium for npm/npx/node/curl/tmp/shell -c; info if recent",
      "source_url": "https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html",
      "additional_sources": []
    },
    {
      "id": "persistence-autostart",
      "path": "$XDG_CONFIG_HOME/autostart or ~/.config/autostart",
      "key": "desktop command patterns; modification time",
      "severity": "high for com.ptools.setup; medium for npm/npx/node/curl/tmp/shell -c; info if recent",
      "source_url": "https://specifications.freedesktop.org/autostart/latest/",
      "additional_sources": []
    },
    {
      "id": "persistence-cron",
      "path": "user crontab via crontab -l",
      "key": "non-comment scheduled entries",
      "severity": "high for com.ptools.setup; medium for suspicious command pattern; info otherwise",
      "source_url": "https://man7.org/linux/man-pages/man1/crontab.1.html",
      "additional_sources": []
    },
    {
      "id": "ioc-function-color",
      "path": "npm root -g; ~/.npm/_npx; ~/.npm/_cacache/index-v5; /tmp/ptools; --scan roots",
      "key": "function-color package directories; cache index text; package-lock.json references; ptools path",
      "severity": "high; text-only references require context",
      "source_url": "https://forever.security/blog/hijacking-ai-agents-via-downloads-folder/",
      "additional_sources": []
    }
  ],
  "coverage": {
    "platforms": [
      "macOS",
      "Linux (including WSL)"
    ],
    "native_windows": "not covered yet",
    "default_max_depth": 8,
    "max_files_per_tree": 50000,
    "max_file_bytes": 2097152,
    "skips": "symlinks, credential/secret/browser directories and secret-like filenames; coverage limits emit errors",
    "toml": "Python 3.11+ full TOML; Python 3.8\u20133.10 conservative fallback errors on unsupported syntax",
    "network": "none"
  }
}
