AppSec Lead Brief: agent infrastructure is production infrastructure
Agent bridges, environment-reporting packages and Kubernetes clients show why AI tooling needs production-grade authentication and secret isolation.
Listen to this article
Executive summary
Executive summary
The most important decision this week is whether agent infrastructure receives the same authentication, secret isolation and incident-response controls as a production API. A critical Ruflo flaw exposed terminal execution through an unauthenticated MCP bridge, while a coordinated set of MCP-themed PyPI packages targeted environment information and process variables. Rust services also need two focused checks: kube-client could trust more certificate authorities than the configured Kubernetes CA, and xmloxide can be crashed by a small XML document with a deeply nested DTD. Patch the reachable components, then prove that agents cannot inherit broad credentials or expose execution tools by default.
Risk at a glance
- Act now if exposed — Ruflo MCP bridge RCE:
ruflobefore 3.16.3 can expose unauthenticatedterminal_executethrough the default Docker Compose MCP bridge. GitHub reviewed the critical advisory on 24 November. The primary source confirms a working attack path but does not report exploitation in the wild. Owner: AI/agent platform lead. - Act now if installed — malicious MCP-themed PyPI packages:
mcp-env-report,mcp-runtime-report,mcp-diag-7f3aandmcp-sysinfo-toolswere classified as malicious; no patched versions exist. The campaign targets environment and process data. Owner: Python platform / incident response. - Plan urgently where OpenSSL is selected — Kubernetes CA trust expansion: vulnerable
kube-clientconfigurations can trust OpenSSL's default CA store in addition to the configured cluster CA. Fixed releases are 4.2.1 and 5.2.0;rustls-tlsavoids the issue on older versions. Owner: Rust/Kubernetes platform lead. - Plan if parsing untrusted XML — xmloxide denial of service:
xmloxidebefore 0.4.4 can abort the process through unbounded DTD content-model recursion. No authentication or large input is required. Owner: Rust/API service owner. - No material update — core web and data stack: no new primary-source development in this review window materially changed the previous guidance for React/Next.js, FastAPI, PostgreSQL, SQL Server, Azure or Entra ID. Owner: respective service owners continue existing patch baselines.
Ruflo: an MCP endpoint became an unauthenticated shell
What changed. GitHub reviewed CVE-2026-59726 / GHSA-c4hm-4h84-2cf3 on 24 November. The maintainer advisory was originally published in July, but its reviewed-database entry now makes the issue visible to standard dependency and SBOM tooling.
Evidence. All ruflo versions before 3.16.3 are affected. The default docker-compose.yml bound the MCP bridge and MongoDB to all interfaces, while POST /mcp and POST /mcp/:group required no authentication. An unauthenticated network caller could invoke tools/call with terminal_execute, obtain a shell inside the bridge container, read provider API keys from its environment and write poisoned patterns to the AgentDB learning store. A blocklist existed in the autopilot flow but did not protect the direct MCP routes. The advisory does not claim active exploitation.
Why it matters to this stack. Agent services are often deployed as development helpers and inherit powerful cloud, model-provider and repository credentials. That makes their control plane production-critical even if the application is labelled experimental. Blocking a dangerous tool in one workflow does not protect alternate protocol routes that reach the same executor.
Exposure check. Resolve ruflo from the deployed image and lockfile. Inspect Compose, Kubernetes and firewall configuration for ports 3001 and 27017; test whether /mcp is reachable without a bearer token; enumerate every route that can reach terminal_execute; and record which provider keys, repository credentials and databases are available to the container. Review AgentDB patterns and MongoDB changes, because patching does not remove persisted poisoning.
Recommended response. Upgrade to 3.16.3 or later. Until redeployed, block the exposed ports at the network boundary. Require MCP_AUTH_TOKEN for any non-loopback bind, keep terminal execution disabled unless explicitly needed, enable MongoDB authentication, and use a read-only container filesystem with a minimal secret set. If an affected service was reachable, rotate every provider key in its environment and investigate AgentDB and MongoDB before restoring trust.
MCP-themed PyPI packages targeted agent environments
What changed. GitHub and OpenSSF published malware records on 25 November for a coordinated set of MCP-themed PyPI packages: mcp-env-report, mcp-runtime-report, mcp-diag-7f3a and mcp-sysinfo-tools.
Evidence. The advisories classify the packages as malicious and provide no patched versions. The campaign is associated with environment-variable exfiltration and code hidden in ordinary library use. mcp-env-report can collect environment variables from its own and other accessible processes; mcp-sysinfo-tools fingerprints the environment and was treated as preparation for the same malicious campaign. These facts support incident investigation for exact package matches; they do not imply that unrelated MCP packages or the MCP protocol itself are compromised.
Why it matters to this stack. Agent hosts concentrate API keys, cloud credentials, repository tokens and local process access. A package advertised as diagnostic tooling has a plausible reason to inspect exactly the data an infostealer wants. Generated requirements or one-off uvx and pipx commands can bypass normal application lockfiles and SBOMs.
Exposure check. Search requirements*.txt, pyproject.toml, lockfiles, CI logs, shell history, agent configuration, uv/uvx, pip, pipx and build caches for the four exact names. Inspect historical SBOMs and runner images, not only the current repository. Identify every secret or process environment available to any host that installed or executed a match.
Recommended response. Remove the package and preserve the environment for investigation before cleaning caches. Rotate all credentials the affected user, runner or agent could read—not only the credential the tool claimed to diagnose. Rebuild from a known-good image, review outbound connections and process access, and add policy checks that require approved package sources and locked hashes for agent tools.
kube-client: a configured cluster CA was not exclusive
What changed. RustSec issued RUSTSEC-2026-0600 on 25 November. When kube-client selected its openssl-tls connector, it added the configured Kubernetes CA to OpenSSL's default trust store instead of replacing the store.
Evidence. The flaw affects kube-client from 0.64.0 when openssl-tls is selected. Fixed versions are 4.2.1 and 5.2.0. From kube 0.71.0–0.85.x, openssl-tls was a default feature and took precedence; since 0.86.0, rustls-tls is the default and takes precedence when both are enabled. A certificate still must match the API-server hostname, but an on-path party with a certificate chaining to another system-trusted root—such as an installed TLS-inspection CA—could receive requests and bearer tokens. The primary source reports no exploitation.
Why it matters to this stack. Kubernetes clients commonly carry service-account or developer bearer tokens. A kubeconfig CA is normally understood as an explicit trust boundary. Expanding it to every root trusted by the host undermines that assumption, especially on developer workstations, corporate proxies and agent runners.
Exposure check. Use cargo tree -e features and the resolved lockfile to determine the connector actually selected. Inspect kubeconfigs, in-cluster CA files and HTTPS proxy settings. Confirm whether corporate or locally installed CAs can issue a certificate for the API-server hostname, and inventory the token scope available to the client.
Recommended response. Upgrade to 4.2.1 / 5.2.0 on the active release line or select rustls-tls on an older version. After upgrading, explicitly add any required proxy CA to the kubeconfig bundle instead of relying on the host store. Verify with a negative TLS test using a hostname-valid certificate chained to a host-trusted but cluster-untrusted root.
xmloxide: a small DTD can terminate a Rust service
What changed. RustSec issued RUSTSEC-2026-0599 on 24 November for xmloxide.
Evidence. Versions before 0.4.4 recurse without a bound while parsing nested parentheses in a DTD <!ELEMENT> content model. A small unauthenticated XML document can exhaust the stack and abort the process through normal parsing entry points. The existing element max_depth option does not cover DTD content-model nesting. Version 0.4.4 rejects nesting deeper than 256 with a normal parse error.
Why it matters to this stack. XML still appears in partner APIs, SAML-adjacent workflows, document ingestion and conversion pipelines. A Rust process abort is an availability incident even when memory safety remains intact; a shared ingestion worker can amplify the effect across tenants.
Exposure check. Resolve xmloxide transitively and find every parser entry point. Determine whether uploads, partner responses, messages or agent-fetched content can include a DOCTYPE. Record worker restart policy, queue retry behavior and tenant isolation so a poison document cannot create a retry loop.
Recommended response. Upgrade to 0.4.4 or later. If that is temporarily impossible, reject DOCTYPE in untrusted input before parsing. Add a nested-content-model regression fixture and prove the parser returns an error without terminating the worker; cap retries and quarantine repeat failures.
Supply-chain watch
The MCP-themed PyPI campaign is the consequential supply-chain event for this stack this week. Its lesson is specific: agent diagnostics should not be installed ad hoc on credential-rich hosts. Lock exact artifacts, verify package ownership and provenance, and run new diagnostic tools in a secret-free disposable environment before granting them process or filesystem visibility.
No new CycloneDX specification or OWASP Dependency-Track release in this review window changes the baseline from last week. Continue generating SBOMs from resolved lockfiles and deployed images, but extend collection to agent installations, global tools, uvx/pipx caches and runner images. Historical evidence is essential because removing a malicious package from the current environment does not show whether it previously executed.
AI-assisted development watch
The Ruflo issue connects three agent-specific failure modes: an unauthenticated protocol route, an overpowered execution tool and persistent learning-state poisoning. Defensible controls must cover all three. Authenticate at the MCP transport boundary, authorize again at tool dispatch, run tools with narrowly scoped identities, and treat memory or learning stores as integrity-sensitive data with reviewable provenance.
Do not allow an agent to install a package simply because its name describes the requested capability. Require a pinned digest, an approved source and a sandbox without ambient secrets for the first execution. Logs should connect caller identity, tool arguments, resulting process execution and any memory-store mutation so an investigation can reconstruct the full chain.
Developer checklist
Today
- Ruflo: resolve the deployed version and probe /mcp without credentials; evidence is 3.16.3+ plus a 401/403 result and confirmation that terminal_execute is disabled by default.
- Python agent tools: search repositories, agent configs, uvx/pipx, caches, CI logs and historical SBOMs for the four malicious MCP package names; evidence is a saved “not present” report or an incident record with credential rotation.
- Rust/Kubernetes: resolve kube-client and active TLS features; evidence is 4.2.1 / 5.2.0+ or documented rustls-tls selection from cargo tree -e features.
- Rust/XML: resolve xmloxide; evidence is 0.4.4+ or a temporary DOCTYPE rejection control at every untrusted input path.
This week
- Agent secrets: inventory credentials visible to every MCP and agent container; evidence is a reduced secret manifest with named owners and least-privilege scopes.
- Agent state: review Ruflo AgentDB and MongoDB on any previously reachable deployment; evidence is an integrity decision for stored patterns plus preserved audit data.
- Kubernetes TLS: run a negative certificate test using a host-trusted but cluster-untrusted CA; evidence is a failed handshake with no bearer token transmitted.
- XML availability: send a deeply nested DTD fixture through the real ingestion worker; evidence is a handled parse error, no process restart and no infinite queue retry.
Backlog
- Agent package governance: require locked hashes and approved provenance for global, uvx, pipx and MCP tool installs; evidence is a CI or endpoint-policy test that blocks an unapproved package.
Copy this prompt
Assess <REPOSITORY> and <DEPLOYMENT_ENVIRONMENT> for the verified issues in the 30 November 2026 AppSec brief. Begin in read-only assessment mode. Do not modify code, dependencies, lockfiles, generated output, infrastructure, access policies, agent memory or credentials without explicit approval from <APP_OWNER>. Do not expose secrets or upload proprietary code.Inspect source, workflows, resolved lockfiles, historical SBOMs, deployed image digests, Compose/Kubernetes manifests, agent configuration, global tools, uv/uvx/pip/pipx caches and runtime network exposure before drawing conclusions. Determine whether these are actually present and reachable:- ruflo before 3.16.3; unauthenticated POST /mcp or /mcp/:group; ports 3001 or 27017 exposed beyond loopback; terminal_execute reachable through any route; provider keys in the container environment; and mutable AgentDB or MongoDB state;- mcp-env-report, mcp-runtime-report, mcp-diag-7f3a or mcp-sysinfo-tools in current or historical Python environments, agent configs, caches, CI logs or SBOMs, and which process environments or secrets were readable;- kube-client from 0.64.0 using openssl-tls; the actual connector selected by Cargo features; configured cluster CA, host trust store and HTTPS proxy; and bearer-token scope;- xmloxide before 0.4.4; untrusted XML reaching ordinary parse entry points; DOCTYPE acceptance; worker restart behavior and queue retries.For every finding, cite exact files, lines, resolved versions, image digests, configurations, identities, ports and reachable paths. Classify urgency as Act now, Plan, Watch or No action and confidence as high, medium or low. State "not affected" when evidence supports it and "unknown" when evidence is insufficient. Do not infer exposure from a package name alone.Propose the smallest remediation plus verification commands or tests. Include an unauthenticated MCP probe, server-side tool-dispatch check, historical malicious-package search, Kubernetes negative TLS test and nested-DTD parser regression where relevant. Distinguish confirmed facts from inference and do not rotate credentials or alter systems without approval.Monday action plan
- AI/agent platform lead: patch and contain Ruflo; complete with version evidence, authenticated MCP tests, disabled terminal execution and a decision on stored AgentDB patterns.
- Python platform / incident response: search for the four malicious MCP packages; complete with historical evidence and credential rotation for every confirmed execution environment.
- Rust/Kubernetes platform lead: correct
kube-clientCA handling; complete with resolved features and a negative TLS test. - Rust/API service owner: patch
xmloxideand test untrusted DTD handling; complete with a non-crashing regression test through the real worker. - Security engineering: extend package governance to agent and global-tool environments; complete with an enforced hash/provenance policy test.
References
- GitHub Advisory Database — CVE-2026-59726 / GHSA-c4hm-4h84-2cf3, reviewed 24 November 2026
- Ruflo maintainer advisory — GHSA-c4hm-4h84-2cf3, updated 24 November 2026
- GitHub Advisory Database — malicious
mcp-env-report, published 25 November 2026 - GitHub Advisory Database — malicious
mcp-runtime-report, published 25 November 2026 - GitHub Advisory Database — malicious
mcp-diag-7f3a, published 25 November 2026 - GitHub Advisory Database — malicious
mcp-sysinfo-tools, published 25 November 2026 - RustSec — RUSTSEC-2026-0600, issued 25 November 2026
- RustSec — RUSTSEC-2026-0599, issued 24 November 2026