Ask HN: How do you keep secrets out of your AI agents' context?

2 points | by timbowhite 15 days ago

12 comments

  • provablesecurit 15 days ago
    Personally I've built a service that runs the harness inside a microVM where I inject the secret value via a separate service so the harness only ever sees an arbitrary value. My goal is to separate the network request from the harness logic so we can keep it secure.

    In general I find that anything you put in the harness is likely to be owned, compromised or at risk. I just don't think the security primitives are widely there for these tools no matter what we're told. Agents will find a way to do something if they're given access in the harness and to the LLM.

  • waximabbax 14 days ago
    I'd seperate "the agent never receives the secret" from the "agent can use the secret".

    What I find particularly useful is secrets never leave the local machine of the user and are never saved. The safest thing of course is agent can never see and or use the secret but then running tests and experiments could be hard.

  • tensward 15 days ago
    In most harness it's already built in not to print the secrets, you can use also services like AWS secretes or 1password that allow using temporary access
  • kern79 12 days ago
    [flagged]
  • theodosiskats 13 days ago
    [flagged]
  • provared 13 days ago
    [flagged]
  • teachcharlie 13 days ago
    [flagged]
  • NickyHeC 14 days ago
    [flagged]
  • singh_abinashi 14 days ago
    [flagged]
  • Ravish_oar_main 14 days ago
    [flagged]
  • mehdizare 13 days ago
    [flagged]