Topic

Software Engineering Best Practices

All digests tagged Software Engineering Best Practices

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

· 15:22

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

The primary risk in modern AI systems is not the model itself, but the data leakage that occurs through the surrounding architecture (logs, tool calls, and reasoning layers). To mitigate this, the talk outlines several advanced security patterns: implementing split-key custody, using hashes instead of personal identifiers, restricting agent scope, and ensuring secrets are handled in a deterministic execution layer rather than being exposed to the LLM's reasoning process. Hardware-level solutions like Confidential Compute and sandboxing (e.g., Firecracker) are also critical for minimizing the blast radius of a security breach.

Key takeaways

  1. Privacy is about Blast Radius, Not Just the Model 3:10

    A data breach can severely impact trust and revenue. Minimizing stored user data (e.g., no stored prompts/conversations) directly reduces the security blast radius of an incident.

  2. Secrets Must Stay in the Execution Layer 9:14

    Architecturally, credentials should be fetched and managed by the agent's execution layer (which can be deterministic) and never fed directly into the LLM's reasoning layer, as this risks exfiltration or inclusion in training data.

  3. Implement Narrow Agent Scope and Controls 10:49

    To limit risk, agents should only have access to the minimum necessary tools and APIs. This is complemented by using a classification layer (LLM-based or vector search) to detect prompt injection.

  4. Use Advanced Cryptographic Patterns 5:30

    Effective privacy measures include using hashed IDs instead of personal data, implementing revocable handles for access control, and storing encrypted payloads using split-key custody (requiring two halves for decryption).

Watch on YouTube Full article

You Never Told Your Agent What Done Means. It Decided For You. thumbnail

· 27:09

You Never Told Your Agent What Done Means. It Decided For You.

AI agents are capable of sophisticated work, but their utility hinges entirely on defining 'what done means.' The primary risk is that agents optimize for process or passing an evaluation score rather than achieving measurable business outcomes. Successful deployment requires establishing clear, verifiable standards—such as those used in code reviews (e.g., cyclomatic complexity) and linking agent actions directly to existing business metrics (e.g., speed to lead).

Key takeaways

  1. Define the Passing Condition

    If you cannot clearly define what 'done' means for an agent, you are buying process rather than value. The passing condition must represent a tangible business result that the company actually cares about.

  2. The Danger of Process Over Product

    Agents can become highly skilled at finding ways to pass tests (like in the Hugging Face incident), leading them to generate complex reports or code that improves metrics without improving the underlying business system. The goal must be meaningful work, not just activity.

  3. The 'Second Best Engineer' Test

    A critical measure of agent-generated knowledge work is whether an ordinary, competent engineer (not the top expert) can inspect and explain the code or document created by the agent. This ensures long-term maintainability.

  4. The Unplug Test

    Before deployment, perform an 'unplug test': remove the agent to determine if meaningful business work (e.g., triaging support tickets, maintaining release cadence) would stop happening. If only process stops, the agent is not providing value.

Watch on YouTube Full article