WhoBuilt

How Secrets Leak Through AI Agents (and How to Stop It)

Oct 11, 2026· 15 min· 6.8K views·Watch on YouTube

Speaker

Joshua Mo, lead developer relations engineer at Venice AI and former lead maintainer of the Rig Rust AI framework, explains how to reduce privacy risks in AI agents at an AI Engineer talk.

Why privacy matters

Joshua argues that breaches can damage trust and put customer relationships at risk. Keeping less user data reduces the potential impact of an incident. Venice says it does not store prompts or conversations and offers privacy tiers, including anonymization for some third-party providers and models hosted in trusted execution environments.

How secrets leak through agents

Observability helps teams debug production systems, but logs and traces can capture prompts, personal information, and secrets if configured carelessly. In a typical agent flow, a runtime retrieves a credential from a vault and passes it to the LLM, where it could be exposed or used in training data. Joshua uses an OpenClaw-style agent as an example.

Reduce what agents can access

Joshua recommends storing hashes instead of direct personal identifiers, encrypting stored data with split-key custody, and using revocable handles for access to resources such as database pools. He also advises limiting agents to the tools they need and adding a classification layer to check for prompt injection. A smaller tool set can also leave more room in the context window and help agent performance.

Keep credentials in the runtime

The reasoning layer can send instructions while a more deterministic agent runtime handles credentials and tool execution. For example, a browser tool could log in using credentials held by the runtime instead of passing a password into the model. Sandboxes and virtual machines can help contain agents, but internet access may still allow data exfiltration, so permissions need monitoring.

Use confidential compute carefully

Joshua suggests building an agent runtime that the team controls, including its execution steps, observability, and tools. Venice says its trusted execution environment can run inference privately and return an attestation for verification. Joshua notes that confidential tool calls remain an engineering challenge, including how to make encrypted calls practical to use.

Takeaways

  • Keep credentials in the execution runtime instead of putting them in model context.
  • Give agents only the tools and permissions required for their task.
  • Review observability settings so prompts, secrets, and personal data are not captured in logs or traces.
  • Use hashes, encryption, and revocable handles to reduce exposure of identifiers and credentials.
  • Treat sandboxing as one layer of protection and monitor any agent with internet access.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • works at
    Lead DevRel Engineer
    “I'm currently the lead developer relations engineer at Venice AI.”
    YouTube
    Unverified2 sources· Talk, Web· archived
  • feature
    Venice AI: Offers a web app for talking to its models
    “we also have a web app where you can talk to our models”
    YouTube
    Unverified1 source· Talk
  • feature
    Venice AI: Does not store prompts or conversations
    “We don't store any prompts or conversations.”
    YouTube
    Unverified1 source· Talk
  • feature
    Venice AI: Creator studio includes video, audio, image generation, and transcription
    “a studio offering for content creators that includes video, audio, image generation, and transcription”
    YouTube
    Unverified1 source· Talk
  • feature
    Venice AI: Anonymizes user footprints for providers such as OpenAI and Claude
    “We anonymize your user footprint so they can't identify you simply from your prompt or request.”
    YouTube
    Unverified1 source· Talk
  • feature
    Venice AI: Hosts models in trusted execution environments and provides verifiable inference attestation
    “models hosted in trusted execution environments, meaning you can verifiably prove that your inference was run in a totally private process”
    YouTube
    Unverified1 source· Talk
  • uses
    “we store results in a totally encrypted payload using split-key custody”
    YouTube
    Unverified1 source· Talk
  • feature
    Venice AI: Stores polled endpoint results in encrypted payloads using split-key custody
    “we store results in a totally encrypted payload using split-key custody”
    YouTube
    Unverified1 source· Talk
Show all 10 facts

Related talks