logoalt Hacker News

ATechGuyyesterday at 6:57 PM2 repliesview on HN

> allowNet: ["api.openai.com", "*.anthropic.com"],

How to know what domains to allow? The agent behavior is not predefined.


Replies

CuriouslyCyesterday at 7:24 PM

The idea is to gate automatic secret replacement to specific hosts that would use them legitimately to avoid exfiltration.

falcor84yesterday at 7:26 PM

Well, this is the hard part, but the idea is that if you're working with both untrusted inputs and private data/resources, then your agent is susceptible to the "lethal trifecta"[0], and you should be extremely limiting in its ability to have external network access. I would suggest starting with nothing beyond the single AI provider you're using, and only add additional domains if you are certain you trust them and can't do without them.

[0] https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/