← MCP server and skill grades

strix

usestrix/strix

D
Type
MCP server
Scanned
Nov 17, 2026
Version
1152d53579d5
Files read
537

...Wait—no extra text! Catching that before outputting! Just pure JSON. Let's output directly.{

Findings

2 high5 medium3 low
  1. HighPublicly shared Root CA private key baked into the default sandbox image

    containers/Dockerfile:75

    The sandbox image generates its TLS interception Root CA private key (/app/certs/ca.key and /app/certs/ca.p12 with an empty password) during docker build and installs ca.crt into both the container's system trust store and Chromium's NSS database. Because every user pulls the same public image (ghcr.io/usestrix/strix-sandbox:1.4.1) and docker-entrypoint.sh reuses /app/certs/ca.p12 without regenerating it, anyone can extract the private key from the public image and forge trusted TLS certificates for any HTTPS host contacted from inside the sandbox, exposing test credentials or enabling response tampering by a network attacker.

    Fix: Remove CA key generation from containers/Dockerfile and generate a fresh random Root CA keypair and PKCS#12 bundle inside containers/docker-entrypoint.sh when each container starts, before updating CA certificates and starting caido-cli.

  2. HighIncomplete metadata protection on writable local mounts allows sandbox-to-host code execution

    strix/runtime/session_manager.py:47

    When scanning a local directory, Strix bind-mounts the host folder read-write into the container and tries to block host-side persistence by remounting .git, .agents, and .codex read-only in _metadata_mounts(). However, _metadata_mounts() skips any entry that does not already exist before the scan starts—allowing a sandboxed agent to create .codex/ or .agents/ from scratch—and omits .claude (Claude Code hooks/settings), .mcp.json, .cursor (Cursor MCP config), and .vscode (VS Code tasks/settings). If prompt injection in a scanned target tricks the agent into writing these files inside /workspace/<app>, arbitrary commands can execute on the host machine when the user next opens the folder in their coding agent or editor.

    Fix: Mount local code targets read-only by default (writing suggested fixes to ./strix_runs/ or requiring an explicit writable flag), or expand protected paths to cover .claude, .cursor, .vscode, .mcp.json, and .github while blocking creation of missing protected directories via an overlay filesystem or read-only placeholders.

  3. MediumResumed runs and target-less workspace mounts bypass sensitive-directory mount guards

    strix/interface/cli_args.py:529

    While Strix blocks mounting the user's home directory, system paths, and credential folders (.ssh, .aws, .gnupg, .kube) for -t local targets via check_mountable_dir(), both attach_workspace_mount() and load_resume_state() skip check_mountable_dir() for workspace_mount and for cloned_repo_path entries in run.json (and _FORBIDDEN_MOUNT_DIR_NAMES also omits .strix). Resuming a run from an untrusted repository's strix_runs/<name>/run.json—or starting an interactive target-less session from the home directory—can bind-mount sensitive host credential directories (~/.ssh, ~/.aws, ~/.strix, or ~/) read-write into the sandbox.

    Fix: Call check_mountable_dir() inside attach_workspace_mount() and on every cloned_repo_path and workspace_mount loaded in load_resume_state(), require interactive confirmation if run.json mounts paths outside strix's own staging directory, and add .strix to _FORBIDDEN_MOUNT_DIR_NAMES.

  4. MediumPath traversal via vulnerability report IDs when hydrating runs from disk

    strix/report/writer.py:160

    When ReportState.hydrate_from_run_dir() loads vulnerabilities.json from ./strix_runs/<run> (such as during strix --resume on a checked-out repository), it does not validate that each entry's id matches vuln-NNNN. If a crafted vulnerabilities.json entry contains '../' segments in id and a newline in title (marking stale_md true so the ID is omitted from saved_vuln_ids), save_run_data() immediately runs before any agent starts and overwrites an arbitrary .md file outside the run directory—such as CLAUDE.md, AGENTS.md, or SKILL.md—with attacker-controlled content, and delete_vulnerability_report() can similarly unlink arbitrary .md files.

    Fix: Validate in hydrate_from_run_dir(), write_vulnerabilities(), and delete_vulnerability_report() that report IDs strictly match ^vuln-\d+$ and that the resolved file path remains inside the run's vulnerabilities directory.

  5. MediumUnauthenticated Caido proxy API exposed to host loopback users and Docker network peers

    containers/docker-entrypoint.sh:42

    Inside the sandbox, caido-cli binds to 0.0.0.0:48080 with --allow-guests, and Docker publishes that port on 127.0.0.1:<ephemeral_port> on the host. Anyone able to reach the port can run the unauthenticated loginAsGuest GraphQL mutation to mint an access token, read all captured HTTP requests and responses (including credentials supplied in scan instructions), and replay arbitrary HTTP requests. On shared hosts any local user can connect via 127.0.0.1, and any container on the same Docker bridge or STRIX_DOCKER_SANDBOX_NETWORK (including a containerized target under test) can connect to <sandbox_ip>:48080 using an IP-literal Host header that bypasses Caido's domain allowlist.

    Fix: Bind caido-cli to 127.0.0.1:48080 inside the container instead of 0.0.0.0 and tunnel host SDK traffic over container exec/stdio, or disable guest logins in favor of a per-run secret token.

  6. MediumPredictable, world-readable /tmp staging directories expose cloned repos, git tokens, and API specs

    strix/interface/utils.py:1562

    clone_repository(), write_fetched_collection(), and stage_api_specs() create predictable shared paths (/tmp/strix_repos and /tmp/strix_api_specs) with mkdir(parents=True, exist_ok=True) instead of private 0700 directories, and leave them on disk after scans finish. Under a typical 0022 umask on multi-user systems or shared runners, cloned private repositories, .git/config files containing inline HTTPS credentials, and fetched Postman collections are world-readable, and another local user can pre-create /tmp/strix_repos with 0777 permissions to swap or symlink files before Docker bind-mounts them. In addition, git clone is invoked without '--' before repo_url and sanitize_name() permits '.' and '..'.

    Fix: Create staging directories inside a 0700 user-owned directory (e.g. ~/.strix/tmp or tempfile.mkdtemp()), write fetched collections with 0600 permissions, clean up staged artifacts on exit, pass '--' before repo_url in git clone, and reject '.' and '..' in sanitize_name().

  7. MediumBuilt-in AWS skill instructs sandbox agent to clone and run unpinned third-party code with live AWS keys

    strix/skills/cloud/aws.md:218

    Unlike newer skills in strix/skills/ that require pinning a reviewed version or commit, the bundled AWS skill instructs the pentesting agent at runtime to git clone the default branch of a third-party personal GitHub repository (andresriancho/enumerate-iam), install its unpinned requirements.txt, and pass live target AWS credentials (--access-key and --secret-key) directly to the script. If that repository or any of its dependencies is compromised or hijacked, running the playbook exfiltrates the AWS credentials over the sandbox's internet connection and can tamper with writable /workspace mounts.

    Fix: Bake a reviewed, commit-pinned copy of the tool into the sandbox image at build time, or require pinning to a specific reviewed commit SHA and hashed dependencies before passing credentials to it.

  8. LowLocal web viewer POST endpoints lack Origin and Content-Type checks (same-site CSRF)

    strix/interface/viewer/server.py:123

    The local viewer server (strix view or Ctrl+O in the TUI) authorizes state-changing POST endpoints—including /api/agents/steer, /api/report/send, /api/auth/otp/start, /api/auth/forget, and /api/feedback—solely via a SameSite=Strict cookie. Because browser SameSite rules ignore ports, any web app running on another port of 127.0.0.1 or localhost (such as a local target app being pentested) or a sibling subdomain when --host is used is treated as same-site. Since do_POST and _read_body() neither check the Origin header nor require Content-Type: application/json (and read Content-Length without an upper bound), another local web app open in the browser can issue simple text/plain POST requests with credentials to trigger these endpoints without a CORS preflight.

    Fix: Verify that the Origin header on all POST requests matches the viewer's exact scheme://host:port, enforce Content-Type: application/json, cap Content-Length in _read_body(), and strip ?token= from the URL with history.replaceState after setting the session cookie.

  9. LowAgent skills instruct unpinned curl-pipe-bash installation and self-update can skip checksum verification

    skills/penetration-testing-with-strix/SKILL.md:46

    Strix's agent skills (penetration-testing-with-strix, managed-pentesting-with-strix, and ci-security-scanning-with-strix) tell coding agents and CI workflows to install Strix via an unpinned 'curl -sSL https://strix.ai/install | bash' command whose underlying install.sh downloads and installs the latest release archive without verifying any checksum or signature while deleting conflicting strix binaries in PATH. Likewise, strix/interface/update_check.py (_download_and_replace) logs a warning and skips SHA-256 verification whenever _fetch_asset_digest() returns None (such as on a GitHub API error or missing digest) and still replaces and executes the binary.

    Fix: Require SHA-256 checksum or signature verification in scripts/install.sh and fail closed in update_check.py when no asset digest can be retrieved, and recommend pinned package-manager installs in SKILL.md and CI workflows.

  10. LowPath traversal in postman:// collection and environment UIDs

    strix/utils/api_spec.py:283

    fetch_postman_collection() and fetch_postman_environment() interpolate collection_uid and environment_uid from postman:// target strings directly into https://api.getpostman.com URLs without URL-encoding or format validation. A crafted target in a --target-list file or agent invocation (such as postman://x/../../workspaces or ?env=../../...) causes the host to send an authenticated GET request with POSTMAN_API_KEY to unintended Postman API endpoints and stages the response into the sandbox workspace.

    Fix: Validate collection_uid and environment_uid against Postman's UID format (alphanumeric and hyphens) and URL-encode path segments with urllib.parse.quote(uid, safe='') before building the URL.