[
  {
    "startMs": 12520,
    "text": "Hi, everyone. Uh, welcome to my talk. I'm Joshua Mo. And today, we're going to be talking about some of the challenges of building a privacy-respecting AI system. So just for an introduction as to who I am, I'm currently the lead developer relations engineer at Venice AI. So currently, I handle partnerships, documentation, talking to developers, um, some engineering,"
  },
  {
    "startMs": 42600,
    "text": "and other things, other things as well."
  },
  {
    "startMs": 48180,
    "text": "Uh, so prior to this, I was actually the lead maintainer for Rig, which is the leading AI framework in Rust. Um, so what is Venice? So Venice is a private and unrestricted AI platform. Uh, so we host all the latest open source models. We're a hundred percent OpenAI compatible. We don't store any prompts or"
  },
  {
    "startMs": 77880,
    "text": "conversations, and we also have a web app that you can use to talk to our models as well. We also have a studio offering that is, um, a offering for our content creators. That includes video, audio, image generation, and transcription."
  },
  {
    "startMs": 102500,
    "text": "So why does privacy matter? So let's di- deep dive into this. So, as we know, data breaches are increasingly becoming an eventuality, which means that essentially, reputational risk matters. You only need one data breach before your users stop trusting you and then move on to another provider. Or, if you're enterprise, maybe you lose that enterprise customer who's been"
  },
  {
    "startMs": 132400,
    "text": "fueling almost ninety percent of your annual revenue. So in this case, sensitive data can severely increase the impact of any security incident. As well as that, storing less use, uh, user data directly reduces the blast radius of a security, security incident that happens. So how does Venice do privacy today? Well, there's a few ways."
  },
  {
    "startMs": 162480,
    "text": "The first way is that we don't store any prompts or conversations, of course, as we mentioned previously, which means that any digital footprint incurred in your side is sa- is essentially reduced to zero. So when you use models like GLM five point two and Kimi two point seven, you can guarantee that none of your conversations will be saved on our side. It'll be all stored locally. We also have predefined tiers of privacy. So private by default means that the aforementioned,"
  },
  {
    "startMs": 192600,
    "text": "uh, measures apply. For providers like OpenAI and Claude, uh, we anonymize your user footprint so that none of-- Well, they can't identify you from your, simply from your prompt or your request. We also have models hosted in trusted execution environments, meaning that you can verifiably prove that your inference"
  },
  {
    "startMs": 222520,
    "text": "was run in a totally private process. As well as that, we also use a privacy-first software architecture. So for endpoints like video, uh, generation, where you have to poll the endpoints, we store the results in a totally encrypted payload using split key custody, meaning that attackers can't access your data, and neither can the team should their accounts be compromised. So I"
  },
  {
    "startMs": 252460,
    "text": "just want to introduce you to the guide- the, uh, the idea that not all systems are made equal. So not all systems are made private. Some companies may claim their systems are private, but they're not really. Uh, you guys know how it goes. So while models are a very important part of an agentic system, in fact, they're a vital part of the system, um, they are still only one part. And in fact, to"
  },
  {
    "startMs": 282420,
    "text": "create a complete system to accompany an LLM in doing a task, you have to build an entire process around it. However, these systems are also much more prone to data leakage and breaches. So the real question is: How can we optimize for this kind of problem?"
  },
  {
    "startMs": 302600,
    "text": "So one example I just wanted to bring up was observability logging. So observability, as many of you know, is a core part of any serious production system today. So just to break it down quickly, observability can be broken down into metrics, logs, and traces. So traces are simply a span of work, uh, done over a unit of time. Metrics as, are simply numbers like counters, gauges, for instance. And logs are the actual messages."
  },
  {
    "startMs": 333040,
    "text": "So logging, as we all know, is actually pretty great for debugging, especially in production or deve- dev environments. But you can also accidentally store prompts and secrets by default if you're not careful, which can also hold personal information. However, when you use Venice, you don't need to worry about any of that. So let's talk about how secrets can flow through a regular agent. So for example, let's say you're, you're"
  },
  {
    "startMs": 362896,
    "text": "using OpenClaw. You send a user request that gets sent to an agent runtime. The runtime might need a secret that it will fetch from a 1Password vault, for instance, or HashiCorp Vault. The secret will then get sent to the LLM reasoning layer."
  },
  {
    "startMs": 384096,
    "text": "Um, oh my God."
  },
  {
    "startMs": 391276,
    "text": "So the reasoning layer will then make an API request through a tool call, which will then return the answer back to the user. However, due to this, the way that it's architected, the secrets get fed directly to the LLM, which means it then may get used in training data. So in terms of privacy preserving patterns that work, one thing that we've used at Venice is storing hashes that rep-"
  },
  {
    "startMs": 421396,
    "text": "represent IDs that we need, as opposed to direct data. So for example, if you need to identify a user for rate limiting purposes, you might not want to use their direct user footprint directly. You might want to, you know, store it as a hash, for instance, just so you can identify them without directly using any of their personal data. As well as that, we encrypt data and store it in an inaccessible enclave using split key custody."
  },
  {
    "startMs": 451456,
    "text": "So for context, encryption keys are stored in two halves, a read half and a write half. By splitting these, the attacker cannot access the data due to needing both halves for the decryption to complete. Additionally, you can use design patterns like handles that can be easily revoked. So a handle is simply an object that grants you access to something. So for example, let's"
  },
  {
    "startMs": 481396,
    "text": "say you have a database pool using a handle. So when you have the handle, you can access the database pool. When you don't, then you can't access it. This is very important, especially when you're using authorization like JSON web tokens or session keys. That may be, uh, a core part of your authorization system. Other than that, of course, engineering your prompts with privacy in mind can be,"
  },
  {
    "startMs": 511496,
    "text": "uh, very helpful for engineering teams who are using coding harnesses like Cursor and Claude Code. In terms of protecting agent handle data, so essentially ensuring narrow agent scope to re- to decrease risk. So for example, let's say you pull tools from an MCP server that may have fifteen, twenty different tools. You don't really want to use all of them. You actually only really need one. But you also need an API"
  },
  {
    "startMs": 541236,
    "text": "key to handle that, uh, API call. So if you pull that API key in from, you know, your, your password vault, and then you send it as part of the agent, um, what can happen is that it gets exfiltrated through, through the agent, uh, on a tool call to whatever, you know, web server is being hosted by a bad actor, for instance. As well as that, um, we also have a"
  },
  {
    "startMs": 571236,
    "text": "classification layer in front of an agent to check for prompt injection, for example. So there's a couple of ways you can do this. So you can either use an LLM-based, uh, layer to do this, or you can alternatively use a semantic, um, search layer. For example, using vector search, uh, via something like Qdrant, LanceDB, or additionally you can"
  },
  {
    "startMs": 601276,
    "text": "use an in-memory process."
  },
  {
    "startMs": 605336,
    "text": "It should also be noted that tight context loops caused by narrow agent scope can also improve context window performance. So for example, because you don't have as many tools, uh, your agents may be able to perform much better. It's well known that when you fill your context window, by doing so, when you reach near the limit of your context window, performance can actually degrade, uh, considerably."
  },
  {
    "startMs": 635736,
    "text": "By keeping an empty or near empty context window, we can make sure that the agent is performing at its best."
  },
  {
    "startMs": 646796,
    "text": "So let's look at keeping secrets out of the model. So here we have a user request that gets sent to the reasoning layer. This reasoning layer is actually then, uh, formulating a series of non-deterministic inputs for an agentic runtime. So by tying the password vault to the agentic runtime instead of the reasoning layer, what happens then is that the run-- the agent runtime is"
  },
  {
    "startMs": 676876,
    "text": "essentially turned into an execution layer, which then we can, you know, we can consider it deterministic. We can, uh, do all kinds of things that you normally wouldn't be able to do for privacy and security reasons at the LLM layer. Uh, so for example, let's say you want to use a, a browse use tool, and you need to log into a, into a website that requires your credentials. With this, uh,"
  },
  {
    "startMs": 706796,
    "text": "software architecture, it's much more reasonable to say that it's private and secure rather than feeding your password se-- uh, directly into the reasoning layer. As well as, you know, calling external APIs. So in terms of sandboxing your agents, um, it, it's a very well-known fact that using sandboxes and VMs, for example, Firecracker, um, and, you"
  },
  {
    "startMs": 736720,
    "text": "know, AWS EC2 in a VPC, can significantly upgrade the security of your agent. However, this doesn't act as a cure-all for your agentic systems. Uh, so for example, if you have internet access enabled for your agent, it can still accidentally exfiltrate data through external API access if you're not careful, and therefore monitoring permissions"
  },
  {
    "startMs": 766840,
    "text": "is essential. So my personal suggestion is"
  },
  {
    "startMs": 775000,
    "text": "building your own agentic runtime. So essentially building your own coding harnesses where you can add your own steps, your own observability, uh, your own tools, things of that nature, essentially owning the execution layer and reasoning layer."
  },
  {
    "startMs": 793220,
    "text": "So let's talk about privacy at the hardware level very quickly. So in terms of this, um, there's something I like to call confidential compute, where a trusted execution environment essentially, uh, at the hardware level enables the inference process to be run privately. So with Venice, how this works is that when you send a request, uh, you get a response, and then we actually return an attestation that you can then, um,"
  },
  {
    "startMs": 823060,
    "text": "verify with our attestation verifier. So in terms of this, what this actually means is that you can fully isolate an agent at the reasoning layer cryptographically and prove it. In terms of, oh, confidential tool calls, there is still some work to be done. Um, TEEs are still great for tool calls. However, we also offer end-to-end encryption. Um, but there's also, you know, some work to be done there because of,"
  },
  {
    "startMs": 853460,
    "text": "uh, the need to provide an ergonomic API experience while still allowing users to return entirely encrypted tool calls. This is still kind of an ongoing challenge. Um, in terms of this, a very reliable solution would be to allow providers to own the compute layer at which your tool call's being run. However, um, ooh."
  },
  {
    "startMs": 880200,
    "text": "Sorry, just give me a sec."
  },
  {
    "startMs": 891800,
    "text": "So in terms of confidential tool calls, um, yeah, there's definitely some work to be done."
  },
  {
    "startMs": 902440,
    "text": "Um, yeah, that's it. Thank you for listening."
  }
]
