Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you can define the things you don't want it to do with mathematical precision, there is a trivial way to prevent it from doing them: your definition encodes a selector that you can apply to its output.

The real problem: you don't really know what exactly you don't want it to do. How do you suppose the LLM could?

Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people.

Just like with humans, the idea of "absolute certainty" is anathema to the principle of their function.

 help



> Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people.

The problem is that this drastically reduces the potential usefulness of agents. For example, this means you can't safely deploy an agent that acts like a customer support person, since that agent must take input from the outside but also have access to information that people on the outside must not have access to.


You can do that when you rethink the way you are building your agents. Don't try to get the agent to NOT do things it is not supposed to do.

Instead, make it not possible for it to do them in the first place.

If the agent cannot access data from other users, it has no way of divulging that data, no matter what input it goes through, for example.

See here, as an example: https://ravendb.net/quill

This is based on RavenDB's agent, and we have the concept of scoped access. The instructions you give to the agent aren't relevant, as long as the scoping is defined.

You may be able to use word trickery to get the agent to try to read other users' data, it may even give you something that looks plausible. But if it can only query on _your_ data, that is not a security breach.


This is just another variant of my observation that a publicly exposed agent can only be safely allowed to read fully public data. What you're saying is that an agent that receives credentials from a user A can only be safely allowed to read any data that user A can read directly - which is the same thing.

The problem is that there are many use cases where we'd like to use agents where this doesn't work. Basically this limits agents to being smarter self-service pages / docs , nothing more.

But what companies really want is to be able to replace, say, a customer support employee with a customer support agent. However, there is no way to do this with the kind of safety you are discussing here: if the agent can do something like provide a refund to a customer, then it must be able to do something that the customer themselves can't be allowed to do. Sure, you can absolutely make sure programmatically that an agent talking to user A can't accidentally refund user B's order. But you can't make sure programmatically that an agent talking to user A can only refund user A's order if user A has provided solid proof their order was messed up in some way.

Or say you want to run a personal assistant agent that can handle your calendar and coordinate with people looking to get in contact with you, and even answer simple questions. Again, you can't programmatically ensure that this agent will not leak details about your calendar or private life to the wrong person, while still being able to coordinate with the right people, the way a real personal assistant can.


Is that any different than it was with actual customer service reps? Honestly it just sounds like we have reinvented social engineering but with Ai agents as the targets rather than human employees. Both are vulnerable to being manipulated into similar actions its just the verbage used is different.

The human agent can be held accountable in a much different way than an AI agent. We've spent thousands of years solving principal-agent problems and incentive alignment for human agents. We basically have no idea how to do this for AI agents yet.

There are strong similarities with social engineering, but the difference is mostly in scale. With social engineering, you have to figure out different attacks for different orgs and different customer support people even at the same org. With an LLM jailbreak technique, you figure it out once and then it definitely applies to "all customer support agents" at one org (since there is a single agent, it just replies to all queries), and likely applies to many other orgs using the same LLM.

> the difference is mostly in scale

One could say that the difference is in diversity. It would be nice if each person could train completely personalized models over the course of their life. Diversity is a source of robustness when facing unknown risks.


There are structural approaches that make unauthorized data exfiltration in a PA style agent impossible. CaMel [1] is a step in that direction (although still vulnerable to side channels).

[1]: https://arxiv.org/abs/2503.18813


The calendar example is a good counterexample to your point. Calendar bot can be useful even if everything it knows is start and end of appointments and busy/maybe flag. A separate script could provide the bot an answer what is the time require to get from location of event 1 to the location of event 2. You could also set up two levels of agents - first one speaks freely but knows nothing, but the second one gathering data has strict whitelisted input and output prompts enforced, not matching prompt or output returns a error message. It could also assign a numerical value to how much you would like this timeslot to work based on you earlier input: e.g I would like all website booked appointments to be back-to-back on one day, no in-person appointments on home days.

If the first bot can take input from an attacker and give input to the second bot, you should generally assume that the attacker can control the input to the second bot directly. So the question is if you can safely expose the second bot to the public.

The question overall is what level of autonomy you want to give to such a bot, and what level of service you expect from it. The kind of thing you seem to be describing is not more than what a traditional calendar app does - people send invites, and the app records them for you to reply to later, and maybe tells them if you are already booked for that slot; adding small stuff like personal days, rules for back-to-back appointments, location-based minimum gaps is doable as well without an agent.

But what a personal assistant is supposed to do is way more than this. They're supposed to accept or refuse or delay or move meetings for you based on knowing your schedule, your preferences, the importance of these meetings, your relationships to these people, etc. They're supposed to communicate to people about your schedule to negotiate the best time - while taking care not to divulge the wrong info to the wrong person.

This is the promise of what LLMs are for - not minor improvements to Outlook. But if Anthropic can't stop their LLM from discussing nuclear technology (which is likely illegal to disseminate in the USA, per the "born secret" doctrine), I don't see how I can ever trust a bot deployed in this way not to tell my competitors that I'm busy today since I'm meeting <big client> to talk about <killer deal>.


The solutions to this sort of thing are well known and already deployed with human customer service agents. In order to access a specific customer’s records the agent has to guide the caller through an authentication process - without successfully providing valid information the records are simply not readable.

Unlike human agents AI ones can also be memory-wiped between calls so they can’t be social engineered into sharing information they recall from a previous interaction either.


That's just one part. After successfully authenticating, the customer service rep typically still has access to do many things that the customer would not be allowed to do themselves - that's often why you need a rep in the first place, and don't just offer a self-service UI. For example, a customer service rep can often offer a refund, or a discount, or reset some usage limit, and so on. An agent could be tricked into doing any of these, and if this is successful in one call, it can then be scaled arbitrarily, which is not possible with regular human customer support.

Human customer service agents are generally acting as a middleman verifying your authentication. They themselves have full database access.

You underspecify the problem and overgeneralize the verdict.

You want a model that talks to the outside, but itself gets questions answered using "hidden" info from the inside.

An oracle, realized by a second model with the channel between the two tightly controlled would be a practical solution.

There you could even implement something like "zero-knowledge proofs" that solve the problem of answering questions about a secret, provably without revealing it.


Multiple models could perhaps reduce the chances of a jailbreak, but not eliminate it entirely. And zero-knowledge proofs don't work for arbitrary information processing, which is exactly what you want LLMs for.

The intended goal for something like a customer support LLM-backed agent would be to process potentially secret internal information and produce non-secret answers based on the customer's query. For this to make sense, the processing has to be LLM-dependent - if it can be pre-specified in enough detail that you can devise a zero-knowledge proof scheme for it, you don't need an LLM for it at all, and it would be far cheaper to create a regular program for this.


I do understand your problem, but you don't really get the answer. Your conceptualization of "arbitrary information" is nonsense.

Your human employees aren't foolproof either, but they're all different, can learn and communicate with each other. Most attacks don't work against them or don't scale for those reasons, not because they employ magic in their brains.

Look at your concrete objection here: you "can't" sufficiently specify the problem in the first place. So how do your humans?

They don't.

Whenever they encounter something unknown, they ask for help. They investigate the problem and devise a solution cooperatively, with their superiors, if necessary.

Those superiors hold the missing specification, or invent it on the spot.

Your model would have to do the same as those humans. Your problem is, you cannot trust a model to do that when you don't know what those humans do in the first place. Nor should you.


Sure, human employees are not foolproof either.

But human employees don't have magic recipes that, when discovered and spoken, cause them to ignore all of their training and just do something the speaker wants them to do. And even if one employee does, not all of them do at the same time, to the same incantation. And what the article is showing is that LLMs still have this problem.

Again, the article is showing that Anthropic has been unable to stop Claude from giving out information that Anthropic doesn't want Claude to give out. Do you think Anthropic knows less about the proper way to secure Claude than you do? Why do you trust that if Claude can be jailbroken to ignore not just its system prompt, but its training itself, and all of the extra guardrails that monitor its output, an agent that you build on top Claude will not be practically breakable in the same way?

Sure, you tell the agent to ask other agents or a human if it's not sure. But an attacker can convince the agent that this would be unnecessary, and that it should just do or say what it was asked. This is what jailbreaking means. If there is a second guardrails agent that monitors the first agent's outputs, that can also be jailbroken, since that one still interacts (indirectly) with the attacker's input. And if an attacker finds an interaction that works like this once, they can just repeat this over and over again until someone outside the agentic systems actually puts a stop to it.


But isn't this why we call them an agent? In the customer service case, the agent IS the customer, or working on behalf of the customer. Therefore it should only have access to what that customer is authorized for. The agent does not get additional authorization. Thats like exposing an api with over privileged access. This seems pretty basic least privilege stuff imo. What am I missing?

A human customer support person absolutely has access to things on behalf of a customer that the customer can't access themselves directly. I can call a customer support person, for example, and ask them to refund a purchase, and it is up to their own judgement if they will approve this or not - I can't call some API with my credentials to refund my own purchase. This is what anyone deploying a customer support LLM agent would want to get to - and it is this part that I'm saying can't be done with LLMs at this time.

> An oracle, realized by a second model with the channel between the two tightly controlled would be a practical solution.

This sounds hand-wavy to me. What does 'the channel between the two tightly controlled' even mean?

Duct taping two insecure models won't make them secure.


I think you are already aware of it but LLM agents can never be trusted 100%. They are approximation machines. A bit like humans. For some scenarios we weight the risk and accept the potential risk versus the benefits. It sometimes takes risk to level up. And one could argue that an absolute program can make more mistakes than a approximation machine. For example in transaction assessments. Or Log files.

I'm not sure anyone is really able to meaningfully weigh the risks with LLM agents today, as the failure modes are very hard to measure and even harder to intuit.

With human employees, you can sometimes fool an employee or two, or even figure out a way to fool every employee you personally talk to - but this doesn't really scale. However, if you discover a prompt injection technique against an agent, it's like being able to raise an army of people who can each fool an entire call center worth of customer support agents. One successful attack suddenly scales up in ways in which it may be very hard to limit the damage.


Humans are notorious for sharing inside information with outsiders. This is not a new problem.

Not at the scale that Agents can, though. You can fool a human into revealing some secrets, sure. But if you discover a way to do that with an Agent, you can easily then use the injection/jailbreaking technique that you found to get every secret that the agent has access to.

Humans can be sued or fired, and the threat of it is a pretty effective deterrent in practice.

How do you propose we keep AI agents in check?


Loquebantur says "Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people."

Yes, but this won't prevent the LLM from figuring out XYZ by whatever technique (e.g., search, logic, trial-and-error, error, etc.), just as a human might do.

On a separate note I don't quite follow your last sentence, i.e.,"Just like with humans, the idea of "absolute certainty" is anathema to the principle of their function." Could you expand on that a little? (Perhaps I should get some sleep!)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: