Hacker News new | ask | show | jobs
by saagarjha 19 days ago
Sure, my view on this is more or less that often the setup that creates this kind of situation often allows the agent to effectively mint a new key anyway. For example, if you have my browser cookie or something I may not want my agent to leak this on the web, but if I use it to authenticate network requests to the service transparently the model can just go into the account page and change my password or something, then leak that. In general it is not safe to hand an agent access to a service which is designed for human interaction and assume that it was properly secured such that persistent, transferrable access is not something that can be generated.
2 comments

I think the first problem there is that the credential you're giving the agent shouldn't have access to do stuff like that.

If it's something like "only allow this key on GET requests to https://example.com/logs, and only inject it as the Authorization header" or similarly scoped rules it does provide a meaningful piece of defense in depth.

Sure, if there's a way to have GET /logs reflect the headers in the response it can still get the value out so it isn't bulletproof, but I think it's still worthwhile.

As Cursor generously demonstrated for the whole world, long-lived credentials in LLM transcripts are an attack path.

Your transcript passes in plain-text through a chain of token and compute resellers. And you have no good way of knowing who those companies are and what type of "observability" they deploy.

The only case where i dont really care normally, is if Deepseek (their own host, not random company) can see my Deepseek keys. Apart from that, yes everything else is limited.

I usually just run Pi on my Raspberry PI 4b, and give it full os access. If it messes up the raspberry, i just reformat the SD card. It helps a lot for when i want to allow Pi to connect to an Android tablet to do UI testing etc as well as when working with microcontrollers.

I've been trying out tinfoil.sh recently which does give you a reasonably good way of knowing that your inference requests and responses are private, at least.

Of course, that doesn't mean the harness can't send credentials out to the public internet if the agent accidentally generates the wrong tool call.

My view on this is that I usually do not want inference providers with my sensitive information behind an access key anyway FWIW