logoalt Hacker News

s_u_d_o • yesterday at 6:45 PM • 6 replies • view on HN

I don’t see how this should concern me as an AI engineer building agentic and multi-agentic systems. For me, we can build the system in a way to sandbox the the agent(s), and if the model requires sensitive info, we can implement a credential brokering system alongside, so that the model cannot have real access to any sensitive information, and on the other hand, we could implement guardrail systems continuously monitoring the agent (i/o & runtime) for anything suspicious it does. The moment it performs something that is not or should not be performed, the guardrail should stop that engine’s execution and raise a flag. If someone could see that this system is vulnerable (from agents mis-behaving pov), feel free to discuss/challenge.


Replies

tsimionescu • yesterday at 10:28 PM

If some piece of information that the agent wants requires a credential to access, that automatically means that this piece of information is sensitive to some extent, right? So even if the agent itself can never see (and thus never leak) the credential, the same can't be said for the information obtained with said credential. Basically if an agent can take input from attackers, you should consider that every system that the agent can access is directly exposed to the same attackers. You have a credential brokering system? Cool - would you expose it directly to an attacker? If not, then you shouldn't expose it to a public agent either, since an attacker can always trick the agent into making that same request and returning the info it gets to the attacker.

So a public agent can only be safely deployed if it strictly has access to public information. An agent that can access sensitive internal information must only process information received from those who can also access that sensitive information - e.g. you can't have an agent that has access to payroll info that can also monitor emails that HR personnel receive from anyone else in the company, it must only be allowed to see/send email from/to those who already have access to the payroll info. This is very hard to get right, especially if you try to chain agents to any extent. And it also greatly reduces the usefulness of agentic systems.

➕ show 1 reply
mnahkies • yesterday at 7:21 PM

I agree - I think large amounts of the risk is mitigated through the appropriate permissioning of boundaries between your agent and the external world.

Trivial example: if you have an support agent that can issue refunds, and have business rules around when refund is allowed you need to surface an API that enforces said rules to the agent, and have a fallback/human escalation for any situations that can't be judged through deterministic business logic. This essentially reduces the agents job to intent recognition and dispatch of well defined business processes.

➕ show 1 reply
Lucasoato • yesterday at 6:49 PM

The jailbreak could theoretically break those guardrails if they rely on an llm model as well. However that’s hard to achieve, especially if using multiple guardrails that have LLMs coming from different vendors.

➕ show 2 replies
thevinter • yesterday at 6:56 PM

How sure are you that a rogue AI agent won't be able to bypass whatever sandbox you put it in? Almost no system runs in a vacuum, and for many tasks you still need some form of internet connection.

➕ show 1 reply
pianopatrick • yesterday at 7:48 PM

Seems like setting up a firewall or normal containers. In theory you can prevent all sorts of things, but in practice people commonly misconfigure something or the other leaving an opening.

➕ show 1 reply
rsoto2 • yesterday at 8:18 PM

This is hilarious and an example of "defense in depth." Guardrails monitor responses what if the agent just hides them? "credential brokering... so that the model cannot have real access to any sensitive information" so you still give it credentials and give it sensitive information? You just give credentials a short expiry or something? not going to work.

"The moment it performs something that should not be performed, the guardrais should stop and raise a red flag"

Ok so after bad things happen you could mitigate it? Hilarious.

➕ show 1 reply