Resources

People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!

Human Authorization in Agentic Workflows- 2242

Shane da Silva - TempoPosted 16 Days Ago
  • AI agents can do a lot of things now. From making API calls, to triggering deployments. If an attacker has compromised the laptop, the same is true. So, here's the question: did an authorized human intend this specific action?
  • voyt-kahmpf is the device they created to tell humans apart from synthetic replicants in Blade Runner so they used it for the name. For high-impact workflows, it verifies that an authorized person in the real-world performs a physical action before an operation is allowed. On macOS, this is simple Touch ID.
  • They had specific goals about what an approval meant:
    1. Be tied to a specific action. Not just a generic "yes".
    2. Require physical user presence.
    3. Be fast, unlike many modern security controls.
  • The design they came up with for GitHub consists of a server and a background macOS client. During registration, the client creates a P-256 signing key in the Mac's Secure Enclave, which cannot be exported. This should require Touch ID to unlock. For each approval, the client signs a payload that the macOS local client is requested to provide by the GitHub operation.
  • Here's the full flow for reviewing a PR:
    1. Reviewer approves PR but needs to sign off with the mechanism described above.
    2. GitHub sends a webhook request to the server.
    3. Server verifies the request and sends a message to the thick client.
    4. Touch ID prompt is shown about the PR. The user confirms or denies the request, and the client sends a response back to the server.
    5. Server verifies the signature and updates the GitHub status.
  • Requiring human intervention for sensitive actions is a good idea. I wonder how phish-proof this method is once the attacker has access to the computer?