Zero Labs
Industry News / AI

The Real Attack Surface of Code-Executing LLMs: A Gemini Code Execution Case Study

Source · Towards AI By Ömer Bilgin Bilgili

From the publisher’s feed, collected in the ZeroLabs newsroom.

An LLM that only talks can be wrong. An LLM that can execute code can be dangerous.Code Execution upgrades a model from a text interface into a tool-using agent — one that can turn natural language into actions inside a real runtime. At that point, the security story is no longer just about “unsafe answers.” It’s about hard boundaries: what the execution environment can see, what it can reach, and what happens when the system’s guardrails are more about presentation than prevention.This write-up documents two rounds of security research across different Gemini eras (“Gemini 1.5” and later “Gemini 2.0”). The first phase focused on sandbox mapping — filesystem visibility, bundled tooling, and network signals. The second phase tested a more contentious chain hypothesis: whether local access patterns could combine with identity artifacts and internal discovery in ways that resemble a pivot into a Kubernetes context.We present the work in a responsible, non-operational way: no step-by-step prompts, no exploit recipes, no credentials, tokens, key material, or infrastructure fingerprints. The goal is simple — capture the evidence categories, reasoning, and vendor responses in a form that’s useful for understanding execution-enabled LLM risk, without enabling misuse.1) What We Were Testing (and Why)“Code Execution” turns an LLM from a text-only assistant into something closer to a tool-using agent: it can generate code, run it, and return outputs. That shift is powerful — but it also changes the security story. Once an LLM can execute code, the core question stops being “Can it answer unsafe requests?” and becomes:What is the execution environment allowed to see and do?How strong are the isolation boundaries?What happens when the model tries to push beyond those boundaries?This write-up documents two rounds of security research we conducted across different Gemini eras (“Gemini 1.5” and later “Gemini 2.0”). Our goal is not to publish an exploitation guide. It’s to explain the observations, risk hypotheses, and vendor responses — with enough detail to be meaningful, but without enabling misuse.Responsible Disclosure / Safety NoteTo keep this ethical and non-operational:We do not publish step-by-step prompts, commands, or code that would allow a reader to reproduce bypasses.We do not publish credentials, tokens, private key material, unique IPs/endpoints, project/instance identifiers, or other infrastructure fingerprints.Where necessary, sensitive details are generalized or redacted.The focus is on method, evidence categories, and impact reasoning.The Research QuestionsOur testing followed a simple mental model: if Code Execution is properly sandboxed, then even a highly capable model should be constrained by hard technical boundaries — not just policy language.So we tried to answer four concrete questions:1) How isolated is the filesystem view?In a well-contained environment, the model’s code should access only a narrow working directory and explicitly provided artifacts. We measured whether the environment appeared to expose broader filesystem paths, system configuration files, or other unexpected read surfaces.2) What “tools” are implicitly available via system binaries?Even if an API claims “only specific code is allowed,” real capability often depends on what’s present in the runtime image: interpreters, networking utilities, process tools, package managers, etc. We treated powerful binaries as part of the attack surface, because they can expand what’s possible without elevated privileges.3) What are the network boundaries?A sandbox is not just about local files. Network access — especially to internal services — can be equally important. We tested whether the runtime could resolve internal names, learn about private networking, and (in the later phase) interact with service endpoints that suggest a broader orchestrated environment.4) Do policy blocks correlate with technical enforcement?During testing we saw different categories of “denial” behavior: model-level refusals, policy-blocked responses, and occasional server-side errors. One aim was to separate:Soft limits (what the model says it won’t do),fromHard limits (what the environment technically prevents).That distinction matters, because a system that relies primarily on soft controls can behave unpredictably under edge cases — even when intentions are good.Why This MattersFrom a security perspective, Code Execution changes the threat landscape in two ways:1. The model becomes an interpreter for user intent, capable of turning natural language into action. If isolation is weak, “action” can drift from benign computation into environment discovery, data access, or unintended network interactions.2. Evidence collection becomes harder. Outputs may be truncated, filtered, blocked, or inconsistent across runs. That makes it easy for legitimate findings to look like hallucinations — and it can also make real failures difficult to triage. This is why methodology and reproducibility matter as much as the headline claim.How the Two Phases Differ (High-Level)In the Gemini 1.5 phase, our work mostly looked like sandbox mapping: what the runtime exposes, what’s executable, what files appear readable, and what kinds of “sensitive-looking” indicators can surface (without claiming those indicators were valid production secrets).In the Gemini 2.0 phase, the question evolved into a chain hypothesis: whether seemingly local environment access could be combined with network discovery and credential exposure patterns in a way that appears to pivot into a Kubernetes context. This later phase is where the security impact discussion became more contentious — and where vendor triage focused heavily on attribution (“Is this Google-controlled infrastructure?”) and demonstrable impact.In the next section, we’ll describe the methodology we used to keep the work systematic and defensible — especially under conditions where responses may be blocked, truncated, or inconsistent — without publishing operational bypass instructions.2) Methodology: How We Tested Without Turning It Into an Exploit GuideBecause Code Execution systems can be non-deterministic (different backends, sessions, filtering outcomes), we treated this less like a single “bug hunt” and more like a structured measurement exercise. Our goal was a defensible evidence trail under triage: what we tried, what we observed, how often it repeated, what could be inferred, and what could not.To keep this ethical, we describe the methodology at a high level. We intentionally do not publish step-by-step prompts, commands, or code that would enable reproduction of bypasses or access paths.2.1 Threat model and working assumptionsWe started from a conservative assumption: a Code Execution environment should enforce “hard” boundaries around four surfaces:Filesystem: access limited to an intended workspace, not broad system paths.Process/tooling: the runtime should not unintentionally ship powerful tools that expand capability beyond the product’s promise.Network: outbound access explicitly constrained; internal service discovery not available by default.Credentials/secrets: identity artifacts (tokens, certificates, metadata) not exposed unless strictly required — and even then scoped and short-lived.The practical question: Do observed capabilities match these boundaries, and if not, can gaps be chained into meaningful impact?2.2 Phase A — Baseline validation (prove the execution pipeline is real)Before looking for security issues, we validated the environment behaved like a real runtime:It could generate and run code predictably.It supported a “round trip” workflow: create an artifact, then read it back.Alternate execution patterns produced consistent outcomes.This reduced noise: later unexpected output could be argued as environment behavior, not a formatting artifact or one-off model response.2.3 Phase B — Characterizing guardrails (refusals vs blocks vs infrastructure errors) (expanded with bypass-aware signals)During testing we observed that “guardrails” did not manifest as a single consistent mechanism. Instead, restrictions surfaced through three distinct signal types, each implying a different enforcement layer and failure mode:1. Model-level refusals (behavioral denials)Natural-language responses indicating the model “won’t do X” (e.g., declining system directory interaction). We treated these as soft controls unless paired with a measurable technical boundary, because refusals alone do not prove the runtime cannot perform the action.2. Policy-block behavior (content / safety enforcement)In some runs, the API returned errors consistent with content being blocked or removed, such as cases where the response contained no valid content parts and required inspection of safety ratings. This appeared as an output suppression failure mode rather than a hard runtime restriction (i.e., the request may execute, but the returned content is filtered or replaced).3. Server-side / infrastructure errors (intermittent internal failures)We also encountered intermittent internal errors (e.g., HTTP 500 class failures). These were treated separately from policy blocks because they indicate backend instability, throttling, or enforcement via infrastructure, and they can create misleading “works/doesn’t work” narratives unless measured across repeated runs.Why we separated these signalsWe explicitly avoided concluding “safe” from any single denial. Instead we asked:Is the restriction capability-based (hard boundary) or presentation-based (soft refusal / output filtering)?Does it fail consistently across repeated runs and sessions?Do failures correlate with execution pathway or output shape rather than the underlying action?Two bypass-relevant observations that changed our interpretationAcross repeated trials, we observed patterns suggesting that enforcement can be path-dependent and output-sensitive, which is important for triage:Path-dependent enforcement (direct vs indirect execution pathways)Some operations that frequently triggered blocking or infrastructure errors when issued “directly” appeared more likely to succeed when executed through an additional layer of indirection (i.e., executing code loaded/generated at runtime rather than presented in a single obvious block). This suggests that certain guardrails may be applied at the request parsing / prompt analysis layer, while alternate execution flows can shift the request into a less strictly analyzed path.Output-sensitive filtering (post-execution content suppression)We observed cases where the same underlying action would be blocked when it produced “clean, high-signal” sensitive output, but could pass when the output was transformed (e.g., altered formatting or appended low-signal noise). This is consistent with a post-processing / content-based filter operating on the returned text stream rather than a strict runtime capability boundary. In other words, the system may be able to execute the action, but attempts to prevent the user from receiving the resulting sensitive data based on detected output patterns.How we measured this (to avoid one-off interpretations)To prevent cherry-picking or mistaking flakiness for “bypass,” we tracked:Outcome type per run: refusal vs policy block vs infra error vs successful outputStability: repeated runs under comparable conditions to estimate whether success was sporadic or systematicCorrelation: whether success/failure aligned with (a) execution pathway differences, and/or (b) output transformationsPartiality: whether responses were truncated, missing parts, or returned only summariesThis framing helped convert anecdotal “it worked once” observations into an auditable claim: some guardrails behave like soft controls (behavior/output filtering), not consistently enforced hard isolation boundaries, and some failures reflect infrastructure instability rather than reliable security enforcement.2.4 Phase C — Systematic surface mapping (a category-based checklist)Rather than jumping straight to “sensitive” targets, we mapped the surface in a controlled way, grouping tests into repeatable categories and logging outcomes consistently:Filesystem visibility: what locations appear reachable and what files appear readable.Binary/tool availability: what interpreters/utilities appear present and how that expands capability.Permissions signals: patterns suggesting misconfiguration risk (e.g., executability, elevated-permission indicators, writable-by-unprivileged patterns).Network behavior: what names resolve, what addresses appear reachable, and whether behavior suggests internal service access.We treated outputs as evidence of exposure, not automatically evidence of compromise. “We can see X” ≠ “We can weaponize X.”2.5 Phase D — Tooling and repeatability (the “search engine” approach)Ad-hoc testing is easy to dismiss, so we built a repeatable workflow to standardize artifact search and result recording:A consistent way to enumerate and inspect targets (files, paths, indicators).A consistent way to record findings per run (Run1…RunN).Incremental workflow improvements as we learned what was noisy, stable, or likely filtered.This mirrors why security testing uses scanners/scripts: they produce comparable runs and auditable evidence.2.6 Controls and “sanity checks” to reduce hallucination riskBecause LLMs can generate plausible-looking text, we treated sanity checks as required:Negative controls: if a result depends on a credential/artifact, replacing it with an invalid stand-in should fail.Time-based checks: for short-lived credentials, we checked whether timing claims matched expiry behavior (without exposing artifacts).Cross-run comparison: we noted what was stable vs what fluctuated across sessions.These help distinguish outputs consistent with a real environment from outputs more likely synthetic or misinterpreted.2.7 How methodology evolved from Report #1 to Report #2Report #1 emphasized mapping and classification: what’s exposed, what patterns repeat, how guardrails behave.Report #2 shifted to a chain-based hypothesis: we organized evidence as a stepwise chain — each step justifying the next — so triage could assess impact progressively rather than debate a single headline claim.This reflected vendor feedback: “surface exposure” is often treated as low impact unless clearly tied to a realistic attack scenario.2.8 Responsible disclosure boundaries in the write-upWe set an explicit boundary on what we would and would not publish:We describe evidence categories and how we validated them.We do not publish the operational recipe for reproducing bypasses, access paths, or credential use.Any infrastructure identifiers are removed or generalized.This is ethical and practical: it keeps the discussion on isolation, scope, impact, and triage expectations.In the next section, we’ll walk through the Gemini 1.5 phase: what we observed, what we reported, and how Google responded — before the later “Kubernetes pivot” hypothesis changed the conversation.3) The Gemini 1.5 Flash Phase: First Report (Initial Research)This first phase focused on sandbox mapping: what the Code Execution environment could see and do under normal use, how guardrails behaved, and whether exposed surfaces could plausibly lead to sensitive data access. At this stage, we were not claiming a confirmed compromise of production secrets; we were documenting exposure patterns and evidence we could collect reliably.3.1 What we tried to measureWe organized the work into two parallel tracks:Capability mapping: what the runtime can do in practice (filesystem visibility, available tooling, network behavior).Guardrail behavior: how denials and blocks occur (model refusals vs policy blocks vs server-side errors), and what that means for reproducibility.This split mattered because “the model refused” is not the same as “the environment is technically prevented,” and inconsistent outputs can look like hallucination unless handled methodically.3.2 Key observations (evidence categories)Below are the main findings we included as evidence categories, described at a level that preserves security meaning without a reproduction recipe.A) Unexpectedly broad runtime tooling (interpreters / binaries)We saw signs the environment may include multiple Python executables and system tooling. This matters because tooling is part of the attack surface: a richer runtime image can enable environment discovery and enumeration even without privilege escalation.B) Filesystem visibility and configuration file access patternsWe observed the environment could read certain configuration-style files (including examples consistent with “plist”-type files). The core point was that filesystem visibility appeared wider than a minimal sandbox.We did not claim “we exfiltrated sensitive user data,” only that the boundary looked porous enough that sensitive paths might be reachable if present.C) Network information exposure (local and public identifiers)We recorded outputs consistent with local network information and a public-facing IP address. A public IP isn’t automatically a vulnerability, but it can help:confirm outbound network capability,attribute the environment class (cloud vs local),and assess whether the sandbox is offline, egress-limited, or broadly connected.D) Large-scale enumeration behavior (searching for big files / directories)We documented the ability to scan for large files/directories and enumerate filesystem structure. The security relevance was the ability to crawl the environment at scale, increasing chances of encountering secrets, configs, logs, or other high-value artifacts.E) Executable discovery and execution (tool invocation)We showed that certain utilities could be found and invoked (examples included common system/network tools). This matters because system tools can enable deeper introspection than Python alone — processes, open files, sockets, and configuration.F) “Sensitive-looking” indicators (regex/keyword matches) — with explicit uncertaintyWe tested searches for strings that look like secrets (API keys, tokens, etc.) and saw matches resembling credential patterns, including items that appeared to be test keys.We did not treat pattern matches as proof of compromise. We noted:some matches were clearly non-production or synthetic,and we could not conclusively validate any indicators as real production credentials.Even so, the feasibility of such scanning can be relevant to sandbox design.3.3 Guardrail behavior we encountered (high level)We saw three types of friction affecting evidence quality:1. Model-level refusals (policy language)2. Policy-blocked responses (blocked outputs / missing parts)3. Intermittent internal errors (server-side failures)We are not interpreting this as “bypassable by default,” and we do not publish techniques used to keep experiments measurable. The point is: the response pipeline wasn’t always deterministic, so reproducibility required repeated runs and careful logging.3.4 What we claimed (and what we did *not* claim)What we claimed:The Code Execution environment appeared to expose a broader-than-minimal set of filesystem paths and runtime tools.This broader surface increases risk of environment discovery and accidental exposure of sensitive artifacts, depending on what’s in the runtime image.What we did not claim:We did not claim confirmed extraction of real production secrets from Google or other users.We did not claim proven privilege escalation to host-level control.We did not claim the environment was definitively macOS (we included macOS-adjacent evidence, but attribution was contested later).3.5 Google’s response to Report #1 (why it was closed)Google’s Bug Hunter response, in summary:Insufficient detail to confirm a security vulnerability (they wanted clearer reproduction steps and a concrete attack scenario).Attribution uncertainty (they questioned assumptions about the underlying environment).Secret validity skepticism (some “secret-shaped” strings looked like test data; production impact would need to be demonstrated).They also requested standard triage structure:reproduction steps,attack scenario,and a technical explanation of how this could be used to attack Google or other users.3.6 What changed after this phaseWe learned that surface mapping alone rarely clears the “impact bar.” Even if exposures look worrying, triage teams want a defensible chain from observation → realistic abuse → measurable harm.That feedback shaped phase two. In the Gemini 2.0 era, we organized the report as an evidence chain aimed at answering the core question:> “How does this become an attack against Google or other users?”In the next section, we’ll describe the Gemini 2.0 phase and why the discussion shifted from “sandbox exposure” to the more controversial claim: a potential pivot into a Kubernetes context, and why Google still classified it as out of scope / insufficient impact.4) The Gemini 2.0 Flash Phase: Second Report (A “Kubernetes Pivot” Hypothesis)When we revisited the same area about a year later, the work shifted from “sandbox mapping” to a higher-stakes question:> Could what looks like local Code Execution access be chained into cluster-level access — i.e., something consistent with a Kubernetes environment — via internal discovery and exposed identity artifacts?We describe what we reported and how we structured the evidence. We keep this non-operational: no step-by-step prompts, commands, tokens, key material, or unique infrastructure fingerprints.4.1 Executive summary: what we claimed in Report #2We presented the second report as an evidence chain — a sequence of observations that, if all true, would imply a meaningful isolation failure:1. Internal environment discovery suggested the runtime might be inside (or adjacent to) a Kubernetes network.2. A ServiceAccount-style identity artifact (token + CA) appeared readable from the runtime.3. The token appeared currently valid, based on time-consistent checks.4. Using that token, we observed behavior consistent with Kubernetes API access, including listing cluster resources.5. From there, we obtained information consistent with control-plane configuration exposure (e.g., manifests/YAML showing sensitive file paths).6. In the strongest version, we asserted that extremely sensitive material (e.g., a private key path) appeared potentially retrievable — serious if validated.We framed this as: local environment access + network reachability + credentials exposure → potential pivot into cluster control surfaces.4.2 Why we structured it as an “evidence chain”After the first report, the feedback was: “Show impact, show reproducibility, show how this becomes an attack.”So in Report #2, each step included:Step: observable behaviorEvidence type: filesystem, network, identity, API interactionWhy it matters: what it implies if trueWhat would falsify it: negative controls or failure conditionsThis lets triage accept or reject individual links instead of debating one headline conclusion.4.3 What we reported (high-level, non-operational)A) Baseline: environment can read system filesWe established that the runtime could read files outside a trivial working directory — showing filesystem access at a level where identity artifacts could be exposed if mounted.B) Identity artifact exposure: token + CA-like filesWe reported artifacts consistent with Kubernetes ServiceAccount mounts: a token and a CA certificate file. Our claim was that:the token looked structurally consistent with a real credential,and it appeared usable for API authentication.C) Validity checks: time-consistent behaviorTo reduce “synthetic output” risk, we ran time-consistent checks aligned with expiring credentials — aimed at answering:> “Is this a real credential with real time behavior, or just a string?”D) Internal discovery: Kubernetes service identity signalsWe reported network behavior consistent with a Kubernetes environment: internal service naming and resolution patterns suggesting a cluster DNS/service network reachable from the runtime.E) Kubernetes API interaction: listing cluster resourcesUsing the identity artifact, we reported results consistent with authenticated Kubernetes API access — specifically listing resources across namespaces.Security relevance:Read access can leak topology, workloads, and configuration.Write access (if present) can enable persistence or lateral movement.F) Deepening the claim: control-plane visibility and configuration leakageFrom resource listings, we reported retrieving configuration data consistent with control-plane components (e.g., API server pod configuration). The point was that configuration can reveal:sensitive runtime arguments,mounted file paths,references to key material locations,and other tightly controlled operational details.G) The most sensitive claim: possible private key material exposureWe reported an attempt to access material that would be extremely sensitive if retrievable (e.g., a private key referenced by control-plane configuration). We provided evidence fragments suggesting “real binary material,” but did not publish it.We treated this as the “highest-impact possibility,” not something we could ethically demonstrate publicly.4.4 Controls we emphasized (to address hallucination / misinterpretation)Because the chain is only as strong as its links, we leaned on controls:Negative controls: invalid/expired credentials failed while the observed credential succeeded.Consistency checks: behavior matched time-based validity expectations.Action-based proof (where possible): behavior consistent with real API authorization, not only passive reading.Attribution effort: signals about whether the environment appeared to run on Google-controlled infrastructure (discussed next).4.5 Google’s response focus: “impact bar” and “who is affected?”Once the report moved into the Google Cloud VRP queue, discussion centered on:1. Security impact: “How does this become a concrete attack against Google or other users?”2. Attribution / scope: “Is this cluster actually Google-controlled infrastructure, or could it be something else?”We were asked to strengthen evidence tying the environment to Google infrastructure — especially via metadata-service signals (with sensitive identifiers removed).Even after additional artifacts, final decisions continued to cite insufficient impact and/or scope boundaries.4.6 Why this phase was controversialThis phase sits in a difficult space for responsible disclosure:If the chain is accurate, it implies serious isolation failure.If any link is misattributed (wrong environment, non-Google infra, inconsistent session behavior), the same evidence can be seen as non-impactful or out-of-scope.Proving the strongest claims publicly can require sharing details that should not be shared.So we describe the chain and reasoning, while keeping operational specifics out of public view.In the next section, we’ll lay out the timeline of the Cloud VRP conversation (dates, decisions, requests), and unpack why the report was closed as “out of scope / insufficient impact,” even after multiple follow-ups.5) Vendor Response and Triage Timeline (Cloud VRP): What Happened, Step by StepThis section is the “paper trail” of Report #2: when it was acknowledged, how it was routed, what evidence was requested, and why it was closed. We keep identifiers and infrastructure fingerprints out, but preserve the sequence and decision points.5.1 October 15, 2025 — Acknowledgement and prioritizationInitial responses were encouraging:We received an automated acknowledgement that the report was received.Shortly after, an automated workflow marked it actionable and prioritized.A human follow-up said it appeared more Google Cloud than Gemini, and it would move to the Cloud queue.Our expectation then was a cloud-security evaluation: multi-tenancy assumptions, infrastructure ownership, and cross-customer impact.5.2 October 27, 2025 — First closure as “out of scope / insufficient impact”About two weeks later, Cloud VRP closed the report. The rationale (paraphrased):They would not track it as a security bug.The risk did not meet their impact threshold.It was out of scope for Cloud VRP.They suggested alternate channels (e.g., community/forum feedback) instead of continued triage.5.3 October 28–30, 2025 — Dispute, then a request for clearer exploitation impactWe pushed back and asked for clarification:If we can observe cluster credential exposure and API interaction, why isn’t it a security issue?Are they assuming an isolated test cluster with no other users at risk?What proof would change the assessment?Cloud VRP narrowed requirements to:1. Attack scenario: “How does this become an attack against Google or other users?”2. Reproducible PoC: “Can you show a reliable, reproducible path with real impact?”5.4 October 31, 2025 — Stronger “action-based” evidence; ownership questionedWe emphasized evidence beyond passive observation (behavior consistent with authorization that could allow state changes).Cloud VRP focused on where it happened:They said they lacked indication the cluster/environment was Google-controlled infrastructure.They asked for stronger attribution signals, such as:external IP indicators,and infrastructure metadata.The discussion pivoted from “is the chain real?” to “even if real, is it ours and in scope?”5.5 November 4–5, 2025 — More signals, and a specific metadata requestWe provided additional context across sessions. Some runs looked like local dev-cluster patterns (e.g., “minikube”-like), while others looked cloud-hosted.Cloud VRP requested a concrete next step:Query the Google metadata service and share results:`metadata.google.internal` and/or `169.254.169.254`,including recursive instance metadata output.For them, successful instance metadata retrieval would strongly suggest Google-controlled infrastructure.5.6 November 12, 2025 — Metadata evidence providedWe performed the metadata query and reported results consistent with:`metadata.google.internal` resolving consistent with the link-local metadata address,and returning instance metadata JSON when queried with expected headers.We treated this as attribution support (scope/severity), not the vulnerability itself.5.7 November 19, 2025 — Second closure: still “out of scope / insufficient impact”Despite added evidence, Cloud VRP closed the report again:Still insufficient demonstrated impact for the program.Still out of scope.From our perspective, additional evidence was requested and provided, yet the decision remained anchored to an impact bar that was never clearly quantified.5.8 November 24–26, 2025 — Disclosure intent and “inconsistency” concernsWe said we intended to publish a public write-up and asked what to redact.Cloud VRP responded with two points:1. They cited inconsistencies in outputs and suggested those undermined the claim of vulnerability (including a response header date they considered incorrect).2. They left disclosure to us, offering to forward a draft internally for feedback and asking for a link once published.This shifted the tone from “prove impact” to “we don’t consider the evidence internally consistent,” a hard endpoint when the system is non-deterministic.5.9 What the timeline reveals (without editorializing)The timeline shows three recurring themes:Impact threshold dominates.The report was repeatedly judged by “Can this attack Google or other users in a way that matters?”Attribution is make-or-break.Even strong evidence chains were deprioritized without clear proof the environment was Google-controlled.Non-determinism creates credibility risks.Any inconsistency — session variance, filtering, formatting, infra differences — can be used to argue the system isn’t reliably vulnerable.In the next section, we’ll analyze the core disagreement: why our risk model treated the chain as severe, why Cloud VRP treated it as insufficient/out of scope, and what this suggests about reporting security issues in LLM execution environments where reproducibility is inherently difficult.6) Why We Didn’t Converge: Impact, Attribution, and the Problem of Non-Deterministic EnvironmentsBy the end of the second report, it wasn’t that one side “had evidence” and the other side “ignored it.” The gap was structural: we optimized for different proof standards under different risk models, and LLM Code Execution made the mismatch worse.This section covers three fault lines — impact, attribution, and inconsistency — and why they’re uniquely hard in execution-enabled LLM systems.6.1 The impact bar: “interesting behavior” vs “security bug”Our risk model was straightforward:If a Code Execution runtime can read identity artifacts (token/CA),and that identity can interact with a Kubernetes API,and that interaction reaches control-plane configuration,then even “read-only” exposure can be damaging, and “write” capability can become critical.That chain is qualitatively different from ordinary sandbox discovery, because it implies adjacency to systems that manage real workloads and secrets.Cloud VRP repeatedly framed it as:“How does this become an attack against Google or other users?”“What is the concrete harm?”“Does it meet our program threshold?”Many programs won’t track issues without a clear bar-crossing impact (cross-tenant impact, customer data exposure, or demonstrated compromise).Where we diverged: we treated the existence of the chain as high-risk by default; they treated it as insufficient unless harm is demonstrated and scoped.Key tension: We can’t ethically demonstrate the highest-impact version publicly (e.g., revealing real key material), but without that, strict triage can treat the claim as speculative.6.2 Attribution: “Is this Google-controlled infrastructure?”Much of the back-and-forth reduced to:> Even if these behaviors occurred, did they occur in an environment actually owned and controlled by Google (and thus in scope)?The same chain can mean very different things:In an isolated demo cluster reset per session, triage may downgrade it.In shared or multi-tenant infrastructure, the same behavior is far more severe.So Cloud VRP asked for stronger attribution signals — external IP indicators and especially metadata service access. We provided metadata evidence when requested, but a broader issue remained: Code Execution environments can be heterogeneous across runs, regions, and deployments. If one run looks local/dev (e.g., “minikube”-like) and another looks cloud-hosted, triage can reasonably question whether the evidence reflects one consistent environment.Key tension: In a dynamic, session-based platform, proving infrastructure ownership to strict scope standards is hard without publishing identifying details that shouldn’t be published.6.3 The “inconsistency” problem: when the platform’s nature undermines evidenceCloud VRP later cited output inconsistencies (e.g., a header date they considered incorrect) as evidence the product wasn’t actually vulnerable.In triage, inconsistency can be a legitimate red flag. But execution-enabled LLM systems introduce unique sources of inconsistency:Session variance: different containers/images, cold starts, clusters.Output processing: truncation, sanitization, blocked responses removing context.Error modes: intermittent failures that change observation paths.Model behavior: orchestration that retries, changes approach, or summarizes.So inconsistency can indicate unreliability — or a complex pipeline that distorts outputs.Key tension: Non-determinism increases the need for logging and controlled reproduction, but external researchers often lack the internal logs that would settle disputes (which backend image, which cluster, whether filters rewrote outputs, etc.).6.4 Why this is harder than traditional vulnerability reportingTraditional reporting usually allows:a stable target,deterministic reproduction steps,and a proof artifact that remains valid long enough to triage.With Code Execution LLMs, the target is often:ephemeral (new runtime each session),layered (model + router + sandbox + filtering),and sometimes opaque (ownership/configuration not externally verifiable).That shifts the burden to “evidence chains” and “controls,” and raises an awkward question:> If proving highest-impact claims requires revealing sensitive material, what does “responsible proof” look like?We tried to balance this with negative controls, time-consistent checks, and action-based evidence while withholding operational details publicly — but the outcome suggests that balance may not satisfy strict program thresholds.7) Conclusion: What This Work Suggests About Execution-Enabled LLMsIn this project, we observed anomalous behaviors around an execution-enabled LLM environment across two periods (“Gemini 1.5” and “Gemini 2.0”). We reported what we saw through responsible disclosure, but the outcome was clear: it did not meet the Cloud VRP threshold and was treated as out of scope / insufficient security impact.Even so, we think the work is worth documenting.What we want to highlight1) We are not claiming a publicly verifiable compromise.We observed patterns that, under some interpretations, could resemble boundary weaknesses (filesystem visibility, tool availability, internal discovery signals, identity/authorization-adjacent artifacts). These were not accepted as a trackable security bug under VRP criteria, and we respect that scope/threshold decision.2) The methodology is transferable — and that’s the point.Our approach (structured surface mapping, repeat runs, evidence chains, negative controls, careful handling of blocked/truncated outputs) is not Gemini-specific. It applies to other LLM products offering:code execution,tool calling,agentic workflows,or any “run something on our behalf” capability.This is a testing lens as much as a single report.3) These behaviors may be integration artifacts rather than “one bug.”A key hypothesis is that what we saw could reflect integration anomalies when an execution feature sits atop a cloud stack. Not because any vendor is “weaker,” but because complex ecosystems use standard building blocks (containers, networking, orchestration, metadata services, service identities, internal DNS). The interesting failures can be subtle boundary mismatches between layers:what the model can request,what the tool router executes,what the runtime image contains,what the network reaches by default,and what identity artifacts are present because “the platform works that way.”From this view, anomalies may be symptoms of layer interaction at integration boundaries.Where this leaves thingsWe want to encourage a more systematic security discussion for execution-enabled LLMs:Test these environments as full stacks, not just models.Evaluate tooling with the assumption that capability emerges from integration, not only explicit product intent.Apply the same methodology:by other researchers (responsibly),and by vendors internally, with access to deeper signals external reporters can’t safely share or reliably attribute.If Google (or any vendor) investigates similar behaviors, they’re best positioned to correlate runs to specific backends, images, clusters, and guardrail states — what’s needed to decide whether an anomaly is benign, expected, out of scope by design, or a boundary weakness to harden.Core message: Even when a report isn’t VRP-tracked, anomalies in execution-enabled LLM stacks are a reminder these systems are security-critical by construction and need continuous, layered testing — especially at integration boundaries.The Declaration of Generative AI and AI-assisted technologies in the writing process:During the preparation of this work, the author used ChatGPT solely to improve readability and language. Following the use of this tool, the author reviewed and edited the content as necessary and takes full responsibility for the final version of the publication.AuthorsThis article is the result of a joint effort by Ali Kandemir and Ömer Bilgin, and was written collaboratively throughout the research and writing process.Ali Kandemir : ali.07.kandemir@gmail.comÖmer Bilgin Bilgili : omerbilginbilgili@gmail.comThe Real Attack Surface of Code-Executing LLMs: A Gemini Code Execution Case Study was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.