GoogleCloudPlatform/dgem
Zero-shot decision model on DiffusionGemma: policy templates answered in one forward pass, with a probability for every option, a hesitation score and per-policy calibration. CLI, MCP server, HTTP gateway and web Studio.
bf9796663f30github.com/GoogleCloudPlatform/dgemPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Code Safety, Capability Exposure and Behavior Transparency are not analysed and have no number.
- Code Safety and Capability Exposure: no tool's code could be followed from its input
- Behavior Transparency: no tool description could be read to compare with the code
Top risks in plain words
- MEDIUM3 production dependencies have known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
github.com/gorilla/websocket1.5.1 or later,golang.org/x/crypto0.58.1-0.20261009181718-2f1f834330b2 or later,golang.org/x/net0.62.0 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 7 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
The code of the tools could not be followed, so what they can reach is not known.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (7: 7 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
decide_custom_questionstool Evaluates an ad-hoc list of boolean, choice (<=26 options), or score (1..5) questions simultaneously in 1 forward pass against a context document, returning joi
Evaluates an ad-hoc list of boolean, choice (<=26 options), or score (1..5) questions simultaneously in 1 forward pass against a context document, returning joint answers, calibrated Shannon entropy H, and optional Stage-2 Gemini 3.x cascade escalation (gemini-3.8-flash default).
decide_policytool Executes a zero-shot multi-slot decision policy (.json.tmpl) on DiffusionGemma in O(1) forward passes, returning joint slot answers, probabilities, calibrated e
Executes a zero-shot multi-slot decision policy (.json.tmpl) on DiffusionGemma in O(1) forward passes, returning joint slot answers, probabilities, calibrated epistemic Shannon entropy H (in nats), and optional Stage-2 Gemini 3.x cascade escalation (gemini-3.8-flash default).
get_health_and_gpu_statustool Returns live health status of the dgem gateway and availability/warmup state of the selected inference backend ('vertex_first', 'vertex' 1x NVIDIA L4, or 'cloud
Returns live health status of the dgem gateway and availability/warmup state of the selected inference backend ('vertex_first', 'vertex' 1x NVIDIA L4, or 'cloudrun' 1x NVIDIA RTX Pro 6000), plus readout latency and estimated wakeup time.list_policy_templatestool Lists the executable .json.tmpl decision policies available on the server, including required variables and sample values. Filter with category: 'core', 'calibr
Lists the executable .json.tmpl decision policies available on the server, including required variables and sample values. Filter with category: 'core', 'calibration', 'multimodal', 'rerank', 'rai', or 'docs'.
locate_bounding_boxestool
No description.
locate_objecttool
No description.
warmup_gputool Wakes the scale-to-zero Cloud Run DiffusionGemma GPU instance (0 -> 1) and loads the 17.53 GiB model into VRAM. Pass wait_for_ready=true to wait until ready, or
Wakes the scale-to-zero Cloud Run DiffusionGemma GPU instance (0 -> 1) and loads the 17.53 GiB model into VRAM. Pass wait_for_ready=true to wait until ready, or wait_for_ready=false to trigger background warmup immediately.
Text the model reads (7)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
get_health_and_gpu_status tool
Returns live health status of the dgem gateway and availability/warmup state of the selected inference backend ('vertex_first', 'vertex' 1x NVIDIA L4, or 'cloudrun' 1x NVIDIA RTX Pro 6000), plus readout latency and estimated wakeup time.warmup_gpu tool
Wakes the scale-to-zero Cloud Run DiffusionGemma GPU instance (0 -> 1) and loads the 17.53 GiB model into VRAM. Pass wait_for_ready=true to wait until ready, or wait_for_ready=false to trigger background warmup immediately.
decide_policy tool
Executes a zero-shot multi-slot decision policy (.json.tmpl) on DiffusionGemma in O(1) forward passes, returning joint slot answers, probabilities, calibrated epistemic Shannon entropy H (in nats), and optional Stage-2 Gemini 3.x cascade escalation (gemini-3.8-flash default).
locate_bounding_boxes tool
locate_object tool
decide_custom_questions tool
Evaluates an ad-hoc list of boolean, choice (<=26 options), or score (1..5) questions simultaneously in 1 forward pass against a context document, returning joint answers, calibrated Shannon entropy H, and optional Stage-2 Gemini 3.x cascade escalation (gemini-3.8-flash default).
list_policy_templates tool
Lists the executable .json.tmpl decision policies available on the server, including required variables and sample values. Filter with category: 'core', 'calibration', 'multimodal', 'rerank', 'rai', or 'docs'.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionNot checked: no tool's code could be followed from its input
- 5 checks: runs programs the caller chooses, executes caller-supplied code, reads or writes any file path, requests any address, runs caller-supplied SQLNot checked: no tool's code could be followed from its input
- Tools that start processesNot known: no tool's code could be followed
- Tools that touch filesNot known: no tool's code could be followed
- Tools that call the networkNot known: no tool's code could be followed
Where the code is: 7 handlers in 1 file at commit bf9796663f30
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests4 manifests: docs-site/package.json, examples/go.mod, go.mod, studio/package.json
- Lockfiles checked against OSV3 files resolved and checked against the OSV database; 2 not resolved: docs-site/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked; docs-site/pnpm-lock.yaml: lockfile format is not supported by this analyzer, dependencies were not checked
- Known vulnerabilities in production dependencies MEDIUM3 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/modelcontextprotocol/go-sdk v1.8.0
- 1 check: credential harvestingChecked on every scan. Results in this category are published only after a person has verified them.
- Undeclared credential accessNot checked: no tool description could be read to compare with the code
- Credentials sent over the networkNot checked: no tool description could be read to compare with the code
- Tools that read credentialsNot known: no tool's code could be followed
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionNot checked: no tool description could be read to compare with the code
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (3 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
golang.org/x/netGo v0.59.0 MEDIUM 7 advisories 0.60.00.62.0
- MEDIUMGO-2026-6610 BIT-golang-2026-78660 CVE-2026-78660HTTP/2 transport accepts malformed framing-related headers in net/http
- MEDIUMGO-2026-6611 BIT-golang-2026-78669 CVE-2026-78669Excessive CPU consumption from repeated initial window changes in net/http
- MEDIUMGO-2026-6860 CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
- MEDIUMGO-2026-6603 BIT-golang-2026-78659 CVE-2026-78659HTTP/2 server memory exhaustion due to Trailer headers in net/http
- MEDIUMGO-2026-6612 BIT-golang-2026-78663 CVE-2026-78663Double flow control refund on HTTP/2 server streams in net/http
- MEDIUMGO-2026-6866 CVE-2026-97045Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
- MEDIUMGO-2026-6617 BIT-golang-2026-97032 CVE-2026-97032HTTP/2 server crash due to HPACK encoder race in net/http
github.com/gorilla/websocketGo v1.5.3 MEDIUM 1 advisory 1.5.12024-07-01
- MEDIUMGO-2026-6278 GHSA-w67g-5rqw-f597Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket
golang.org/x/cryptoGo v0.57.0 MEDIUM 1 advisory 2026-10-09
- MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/modelcontextprotocol/go-sdk v1.8.0 |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | the policy does not name a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-14 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2026-10-29 |
| Topics | calibration cloud-run decision-model diffusion diffusiongemma gemma gemma4 golang llm mcp |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.