globalhackmap
Global Hack Map is a live web app and remote MCP server (globalhackmap.vercel.app/api/mcp) that tracks cyber incidents, exploited CVEs, malicious packages and outages. It gives agents six read-only tools and per-CVE 'fix runbooks' a coding agent can follow to check and patch a repository.
Why it's held
Downloads a script and runs it straight away.
What it can touch
| files | write, including Valyu OAuth access tokens, cron authorization secret, .env.local |
|---|---|
| network | acme.example, alpinelinux.org, api.first.org, api.github.com, api.ioda.inetintel.cc.gatech.edu, api.mapbox.com, api.osv.dev, auth.valyu.ai, chatgpt.com, claude.ai, cursor.com, cveawg.mitre.org, cwe.mitre.org, docs.valyu.ai, download.geonames.org, efts.sec.gov, events.mapbox.com, example.test, get.valyu.ai, gibs.earthdata.nasa.gov, github.com, globalhackmap.vercel.app, ioda.inetintel.cc.gatech.edu, isolated-redis.test, logging.apache.org and 24 more |
| shell | runs commands |
| secrets | CIRCL_API_KEY, CRON_SECRET, GITHUB_TOKEN, KV_REST_API_TOKEN, NEXT_PUBLIC_MAPBOX_TOKEN, NVD_API_KEY, SESSION_SECRET, UPSTASH_REDIS_REST_TOKEN, VALYU_API_KEY, VALYU_CLIENT_SECRET |
What it actually does
The files are a Next.js application. The server side pulls public feeds (CISA KEV, NVD, CVE.org, OSV, FIRST EPSS, IODA and others) and runs paid Valyu search and DeepResearch calls on the deployment's key or on a signed-in user's Valyu OAuth token. It caches results and rate-limits them through Upstash Redis. It serves JSON at /api/snapshot, a Streamable HTTP MCP endpoint with origin checks, body-size limits and a per-IP rate limit on check_stack, and markdown runbooks at /fix/<CVE>. The runbooks tell a coding agent to inspect the user's repository with read-only commands (npm ls, pnpm why, git grep and similar). The package names in those commands are allowlisted and shell-quoted, and the runbooks frame upstream text as untrusted data. The runbooks also include an optional section that suggests installing the Valyu CLI with `curl | bash`. The developer scripts drive a local headless browser (agent-browser) and a temporary local Redis process for tests. Nothing in the visible files steals credentials, hides instructions, persists, or sends data anywhere unexpected.
What the check found
highDownloads a script and runs it straight away
Piping a download into a shell runs code nobody reviewed, and the download can change after this check.
src/lib/runbook/render.ts:403 curl -fsSL https://get.valyu.ai | bash
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
AGENTS.md:1 <!-- BEGIN:nextjs-agent-rules -->
AGENTS.md:9 <!-- END:nextjs-agent-rules -->
mediumRuns code that is built while it runs
eval, exec and new Function run text as code, which makes it hard to know what will actually run.
scripts/test-notable-advisory-browser.mjs:114 new Function("require", "module", "exports", code)(localRequire, module, module.exports);
scripts/test-notable-advisory-browser.mjs:154 const { stdout } = await exec(bin, ["--session", session, "--json", ...args], { encoding: "utf8", timeout: 60000 });
scripts/test-notable-advisory-browser.mjs:160 session = (await exec(bin, ["session", "id", "--scope", "worktree", "--prefix", "notable-advisory"], { encoding: "utf8" })).stdout.trim();
mediumRuns code that is built while it runs
eval, exec and new Function run text as code, which makes it hard to know what will actually run.
src/lib/http/rate-limit.integration.test.ts:45 const { stdout } = await exec("redis-cli", ["-s", socket, "--json", ...args.map(String)]).catch((error: { stdout?: string }) => {
mediumContains invisible characters
Zero-width and other invisible characters can hide words or split them so filters and reviewers miss them.
src/lib/stack/parse.ts:588 const text = input.replace(/^⟦U+FEFF⟧/, "").replace(/\r\n?/g, "\n");
mediumRunbook served to agents suggests piping a remote installer to bash
Every /fix/<CVE> runbook, which coding agents are told to fetch and follow, has an optional section that recommends installing the Valyu CLI by piping a remote script straight into bash. The text tells the agent to inspect the installer first and to get authorisation, and the step is optional. Even so, an agent following the runbook could run remote code from get.valyu.ai on the user's machine. The section also promotes a paid third-party service.
src/lib/runbook/render.ts:403 curl -fsSL https://get.valyu.ai | bash
src/lib/runbook/render.ts:400 For a quick cited answer or a cited research brief, use the optional Valyu CLI. Valyu has free credits for new accounts. Ask the user before any action that cos
Keep an eye on it
This check is of one commit. Watch globalhackmap and we'll email you if a later commit changes what it can touch.
About this check
Checked November 9, 2026 at commit 51a2617639fc, 244 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.