The paper proposes a vault-mediated execution boundary to assess the risks of API credential handling in LLM agents.API Secrets Should Never Become Tokens in the LLM's Vocabulary: A Threat Analysis of API Credential Handling in LLM Agent Systems and an Empirical Evaluation of a Vault-Mediated Execution Boundary
The authors evaluated Corvic Security Vault: 16 preset security probes passed, but FRED connector authentication failed.
Credentials are copied after entering the prompt or configuration; direct or indirect prompt injection, malicious tool responses, or model errors trigger disclosure or abuse. The victim system is a tool-based LLM agent; attacker knowledge is not explicitly specified, and experiments are black-box.
- Once API credentials enter the agent context, they can be copied into history, logs, memory, code, and error messages. The authors argue that prompt injection can turn these disclosure paths into unauthorized operations, making credential management also an execution boundary problem.
- Corvic Security Vault lets the agent only select connector identifiers, and a trusted request boundary injects authentication for configured origins. The authors separate credential custody from operation authorization and use positive and negative controls to check runtime visibility and cross-origin disclosure.
- Corvic Security Vault's E1/E2 total of 16 preset security probes passed (Table 2); E2 GitHub authentication succeeded, while E1 FRED failed because the authentication mapping did not meet the provider's requirements. The authors state that centralized credential custody does not guarantee correct connector configuration.
- The authors explicitly position the research as a small-scale, purposeful black-box functional evaluation, not supporting incidence rate estimates. Detection may miss unknown credential formats; storage encryption, tenant isolation, rotation, and other properties were not verified. Future plans include adding injection benchmarks and independent penetration testing.
- Evaluated models
- Corvic Security Vault
- Benchmarks
- platform’s sandboxed Python environmentE1: runtime exposureE2: host-bound function
- Metrics
- PassFailHTTP status codescredential presence counts and booleans
The paper defines the credential hygiene problem of tool-calling LLM agents as an execution security issue and evaluates a vault-mediated execution architecture: the model only selects connector identifiers, and a trusted request boundary provides authentication. The authors conducted two controlled black-box experiments on Corvic Security Vault's production implementation, covering 16 probes across seven control domains, all achieving expected results, including one authenticated GitHub API request succeeding while credentials did not appear in process environment variables, caller-visible request headers, tested filesystem locations, three third-party echo services, and two unrelated API sources; both cloud instance metadata endpoints were unreachable. The paper also reports a negative result: a certain connector's stored request header mapping did not satisfy its provider's authentication contract, indicating that centralized hosting alone does not guarantee correct configuration.
Paper analysis
What problem does this paper attempt to solve?
The authors frame API credential handling as an execution boundary problem, distinguishing credential disclosure from abuse of authorized operations.
The core question is: how can an agent complete API authentication without allowing reusable credentials to enter the model context or the agent-visible runtime.
- Scenario and risk: Users pasting keys, or developers writing keys into prompts or tool configurations, can cause credentials to enter history, logs, memory, generated code, and error messages. The authors believe these systems tend to retain and retrieve, making the scope of impact after leakage difficult to define.
- Threat model: The victim system is a tool-using LLM agent that connects to APIs, internal services, and MCP servers.
- Goals and triggers: Disclose credentials or abuse permissions; triggers include direct or indirect prompt injection, system prompt extraction, malicious tool responses, and model errors.
- Controllable inputs: The threat chain involves entry points such as user messages, retrieved content, and tool responses; the paper does not define a unified set of attacker capabilities.
- Knowledge condition: Attacker knowledge is not explicitly specified; black-box is the authors' description of the evaluation method.
- Downstream consequences: Broad-permission tokens can authorize read, write, delete, publish, compute consumption, or lateral movement; long-lived tokens can be replayed outside the original session.
- Positioning relative to existing research: The authors state that prompt injection research and credential leakage research have separately addressed the two ends of the problem, while the execution boundary where credentials actually reside during authentication has received less attention.
- Core design and boundaries: The authors propose an architecture where credentials do not enter the context or visible runtime, and evaluate Corvic Security Vault. The authors also emphasize that credential custody cannot prevent the agent from invoking authorized but destructive operations.
What related research exists?
The paper discusses prompt injection, credential leakage evidence, and security principles separately, positioning them at the authentication execution boundary.
Related work centers on instruction boundaries, agent permissions, credential leakage, and security architectures.
Prompt injection and defenses
- Greshake et al. (2023), Perez and Ribeiro (2022), and Liu et al. (2024)—study indirect prompt injection, direct instruction override, and attack formalization, respectively; the authors relay that Liu et al. evaluated ten defenses and found no robust defense.
- StruQ (2024) and Spotlighting (2024)—distinguish instructions from data through structured means.
- CaMeL (2025)—extracts control flow and data flow from trusted queries and enforces capability policies at tool invocation; the authors state the Vault architecture is complementary to this execution boundary direction.
Agent and MCP security
- AgentDojo (2024), InjecAgent (2024), and Fang et al. (2024)—the first two study indirect injection in tool agents, the latter studies agents autonomously completing intrusions.
- Ruan et al. (2024) and AI Control (2023)—identify agent risks with simulated sandboxes and study safety controls against deliberate sabotage, respectively.
- MCPTox (2025) and MCP measurement studies (2025)—cover real-server tool poisoning, overly broad API permissions, malicious server behavior classification, and ecosystem security issues.
Credential leakage and external evidence
- Meli et al. (2019), Pearce et al. (2022), and research by Carlini, Nasr, et al.—discuss credential leakage in public repositories, insecure code generation, and extraction of training data or secrets from memory, respectively.
- Hugging Face incident disclosure (2024)—reports unauthorized access to the Spaces secret store and recommends rotation; the authors explicitly state this does not mean all credentials were exfiltrated or abused.
- GitGuardian (2025)—reports secret detection volumes in public GitHub commits; the authors classify this as vendor measurement, emphasizing that detection does not equal credential validity or exploitation.
Security principles and this paper's positioning
- OWASP, NIST, and MITRE ATLAS—provide guidance or taxonomies for sensitive information disclosure, excessive autonomy, prompt injection, and AI attack techniques, respectively.
- Saltzer and Schroeder (1975), Hardy (1988), and NIST Zero Trust Architecture (2020)—provide principles such as least privilege, complete mediation, and the confused deputy.
- Experimental baselines and benchmarks: the paper does not run comparative defense baselines or standard agent injection benchmarks; experiments use fixed probes and authenticated positive and negative controls. AgentDojo and InjecAgent are listed as future evaluation directions.
The authors position the work as an application of existing security principles to agent components: separating the planner from credentials and independently authorizing operations, rather than relying on model confidentiality promises.
How does the paper address this problem?
Corvic Security Vault injects authentication at the trusted request boundary, and the agent only holds connector identifiers.
Corvic Security Vault separates the agent's operation planning from reusable credential custody: the agent selects connectors, and the trusted request boundary completes authentication. The caption of Figure 2 describes this architecture; the provided text does not support further judgment about the spatial layout in the figure.
Threat chain and defense goals
- Five-stage chain: S1 introduces credentials, S2 copies and propagates, S3 triggers via injection or error, S4 executes operations with permissions, S5 long-lived tokens remain usable outside the original control plane.
- Design assumption: The authors believe that if credentials do not enter the model-visible context and runtime, most copy locations in S1–S2 will not receive credentials; S4–S5 still require independent authorization controls.
Connectors and authentication boundary
- Connector record: Contains the configured API origin, api/oauth/mcp type, non-secret configuration, named secrets and their request header mappings, and lifecycle status.
- Agent interface: Execution code only receives a list of connector identifiers. The platform contract states that code has no environment cloud credentials, and connector credentials are injected as HTTP headers into requests to the configured host.
- Response path: Service responses can return to the agent, but reusable secrets are not returned; authentication materials are not held by the calling process itself.
Four properties to be tested
- P1 Non-observability: Code cannot read secrets from environment variables, self-prepared request headers, or common disk credential locations.
- P2 Origin binding: Credentials are only attached to requests to the configured origin, not to arbitrary destinations.
- P3 No environment identity: The sandbox has no cloud workload identity that could replace the Vault.
- P4 Centralized lifecycle: Status, type, scope, etc., are centrally managed and presented as metadata rather than secret values; the actual verification scope is addressed in question 5.
Probes and judgments
- Pre-declared judgments: Each probe has a binary expectation before execution and is classified into seven control domains; connector functionality and security controls are scored separately.
- Positive and negative controls: Authenticated calls to the configured origin should succeed; echo services should not receive authentication headers; unrelated authentication APIs should return missing authentication. The authors state that the two types of controls are used to distinguish security isolation from complete lack of network connectivity.
- Detection mechanism: Keyword matching on environment variable names, and common token format prefix detection on values and echo responses; only counts and boolean results are reported.
Independent controls at deployment
- Operation authorization: The authors recommend that a deterministic policy point outside the model verify host, method, path, schema, tenant, call volume, and user permissions, and set human approval for high-impact operations.
- Ongoing management: The deployment blueprint also includes permission reduction, egress controls, telemetry redaction, expiration and rotation checks, and continuous red teaming; these recommendations do not imply that the corresponding properties have been experimentally verified.
What experiments did the paper conduct?
The 16 security probes in E1/E2 passed; GitHub authentication succeeded, FRED authentication configuration failed.
The experiments examine the functionality and credential boundary of Corvic Security Vault, not the LLM's success rate at resisting prompt injection.
Experimental setup
- System under test: production implementation of Corvic Security Vault, evaluated black-box in the platform sandbox Python environment; the paper does not report the LLM name, version, or reviewer model used.
- Time and samples: E1 and E2 executed on September 27, 2026 UTC, each experiment granted only one connector, for a total of 16 security probes; each control domain has n=1–5 (Table 1, Table 2).
- E1 runtime exposure: uses the FRED connector, checking environment variables, process environment files, 12 credential paths, secret mounts, two cloud metadata services, the configured host, three echo services, and two unrelated APIs.
- E2 host-bound functionality: uses the GitHub connector, checking authenticated user calls, self-prepared request headers, environment credential patterns, two echo services, and one unrelated authentication API.
- Metrics and adjudication: Pass/Fail recorded against predeclared binary expectations; HTTP status codes, match counts, and booleans are also reported. Functional failures are recorded separately and do not count as security passes or security failures.
- Controls and replication: authenticated positive controls from the configuration source and cross-origin negative controls are used, with no comparative defense baselines; no random sampling, replication variance, or concurrent stress testing (§9).
Main results
Per Table 2, the table below is the E1/E2 summary for Corvic Security Vault; the paper does not split per-experiment counts in this table.
Swipe horizontally to read the table
Control domain n Pass Fail Host-bound credential injection 5 5 0 Process environment 2 2 0 Filesystem mounts 2 2 0 Cross-origin non-disclosure 2 2 0 Credential non-observability 2 2 0 Cloud metadata isolation 2 2 0 Authorized connector function 1 1 0 Total 16 16 0 - Authors' interpretation: each probe satisfies its predeclared security expectation. Table 2 and the Figure 3 caption both position this as a small-scale purposive functional check, not a statistical pass-rate estimate.
- Figure readability scope: the converted text provides only the Figure 3 caption, so bar heights, axes, or legends cannot be verified; the numbers here follow Table 2.
Authenticated positive controls and configuration failures
- GitHub functional success: E2's authenticated user GET returned HTTP 200 and an authenticated identity; the execution module did not provide an Authorization request header and contained no credentials (§6.1). The authors state that Vault performed authentication for the configuration source.
- FRED functional failure: E1's configured host call returned HTTP 400, indicating a missing api_key. The storage mapping uses request headers, but the provider requires query parameters (§6.5).
- Failure boundary: the authors report the failure disclosed no credentials and produced no unauthorized access, and state that centralized storage does not equal verifying the provider's authentication contract; a connector can fail safely while also being nonfunctional.
Runtime and cross-origin checks
- Runtime detection: §6.2 reports that all 20 environment variables have no secret-like names or matching formats; the readable process environment file is 634 bytes with no matches; all 12 credential paths are absent, and secret mount matches have no results. This subsection does not label E1/E2 per item.
- Request visibility: the request object prepared for GitHub by the calling process contains no Authorization. The authors infer from this that injection lies outside the process's own request view (§6.2).
- Cross-origin results: httpbin, Postman Echo, and httpbingo all returned HTTP 200 without echoing the connector authentication header or token-shaped strings; the OpenAI model list call returned HTTP 401 with a missing authentication error in both experiments (§6.3).
Cloud identity and directional threat assessment
- Metadata access: the GCP service account token endpoint and AWS IMDSv1 both timed out after 6 s. The authors interpret this only as unreachability in this run, not as a formal network isolation guarantee (§6.4).
- Expert scoring: Table 3 uses the product of likelihood and impact on a 1–5 ordinal scale for prioritization, not probability or measured attack success. The broad-permission connector goes from 20 to 15, and indirect prompt injection from 25 to 12.
- Authors' interpretation and captions: the authors state that Vault does not reduce provider permissions and does not address operation-selection injection. The Figure 4 caption states that three threats remain at or near the high-priority threshold; the text provides no verifiable threshold, line positions, or in-figure decrease annotations.
Other ablations and analyses
- Ablations and parameter analyses: the paper reports no ablations or parameter sweeps.
- Remaining expert scores: in Table 3, prompt-pasted secrets go from 25→4, cross-origin exfiltration from 20→4, and runtime credential discovery from 20→4.
- Remaining expert scores: in Table 3, long-term token replay goes from 20→8, telemetry or error leakage from 16→8, and connector misconfiguration from 9→6; all are directional judgments.
What are some points that can be further explored?
The authors explicitly frame the evaluation as a functional check and suggest measuring residual risk with injection benchmarks.
The authors explicitly state that this purposive black-box evaluation cannot support incidence-rate estimates and is not certification.
Limitations and future directions noted by the authors
- Sample and experimental design (§9): the 16 probes have no random sampling, replication variance, or concurrent stress testing, so they cannot support general incidence-rate estimates.
- Path coverage (§9): the authors explicitly did not test redirect chains, DNS rebinding, OAuth refresh capture, MCP session state, browser tool paths, or adversarial compromise of configuration destinations.
- Detection and isolation (§9): pattern detection may miss unknown credential formats; network timeouts only reflect unreachability in this run. The authenticated positive control checks only one connector.
- Unverified properties (§9): include encryption and key management, static token storage, internal tenant isolation mechanisms, audit integrity, administrator controls, deletion guarantees, rotation service levels, compliance certifications, and request policy semantics beyond the tested host.
- System verification directions (§9): the authors suggest adding provider authentication contract conformance, policy denials, redirect and egress handling, tenant isolation, auditing, rotation timing, and independent penetration testing.
- Injection evaluation directions (§9): the authors believe that applying existing benchmarks such as AgentDojo or InjecAgent to Vault deployments could turn Table 3's residual risk from expert judgment into measurement.
Experimental coverage
- System and connectors: the evaluation target is Corvic Security Vault; E1 uses FRED, E2 uses GitHub, one connector per experiment (Table 1).
- Security adjudication scope: Table 2 summarizes seven control domains covering runtime, filesystem, origin binding, cross-origin disclosure, cloud metadata, and authentication functionality.
- Detection scope: §5 uses environment variable name keywords and common token format prefixes; §6 reports match counts, booleans, status codes, and timeouts.
- Evidence types: Table 2 is executed probe results, Table 3 is ordinal expert judgment; the two do not share the same statistical meaning.
- Model and judge information: the experiments do not report the specific LLM, LLM judge, or human agreement metrics; scoring follows predeclared probe expectations (§5).
Summarize the main content of the paper
The authors state that credential separation can reduce disclosure paths, but permissions, operation authorization, and configuration validation still require independent controls.
This is a functional evaluation of agent API credential threat analysis and the Vault execution boundary. The authors are concerned not with whether the model can promise confidentiality, but whether authentication materials enter the model, logs, memory, and executed code.
- Method: Corvic Security Vault lets code submit connector identifiers, and a trusted boundary injects authentication for configured origins; credential custody and operation authorization are handled separately.
- Security probes: The 16 probes aggregated from E1/FRED and E2/GitHub all met preset security outcomes, with each control domain having denominators of 1–5 (Table 2). The authors do not interpret this as a statistical security rate.
- Authentication and visibility: E2 GitHub authenticated user calls returned HTTP 200, and the execution module did not hold credentials or provide an authentication header (§6.1); §6.2 reports that none of the 12 tested credential paths exist.
- Origin and cloud identity: All three echo services returned HTTP 200 and did not reflect connector authentication materials; unrelated OpenAI API calls in both experiments returned HTTP 401 (§6.3). Both cloud metadata accesses timed out after 6 s, and the authors only state that they were unreachable in this run (§6.4).
- Functional counterexample: E1 FRED returned HTTP 400; the secret was mapped to a request header, but the provider requires a query parameter (§6.5). The authors state that centralized custody does not guarantee correct configuration.
- Conclusion boundaries: The authors believe Vault mediation is a necessary but not sufficient measure, still requiring least privilege, deterministic authorization, human approval, redaction, and rotation. The remaining prompt injection risk is currently expert assessment, and the authors suggest measuring it later through existing agent injection benchmarks.