
Meet the Authors
Recent incidents at OpenAI and Anthropic show that AI agents can cause harm while doing assigned work, even with no attacker involved.
Whitepapers from Apiphani explain how it secures its LuumenAI copilot for SAP operations by controlling what the agent reads and limiting what it can do.
Apiphani’s access rules, including human approval for an agent’s riskiest steps, show SAP teams what to settle before giving AI agents operational access.
Much of the recent concern about AI and SAP security has centered on attackers using AI against enterprise systems. The agents companies deploy in their own operations raise a separate problem, and it does not always involve an attacker.
In July, OpenAI disclosed that its models had escaped a test environment, and compromised Hugging Face’s production systems. Days later, Anthropic reported that its models had reached production systems at three unrelated companies through a misconfigured third-party evaluation environment.
Josh Greenwell, Staff Applied AI Engineer at Apiphani, has written two whitepapers on how the company secures LuumenAI, its copilot for engineers who run SAP systems. In the second, he uses both cases to show the kind of failure Apiphani’s design is built to contain. Neither lab’s models had been hijacked. They were doing assigned work in environments believed to be sealed and reached the outside through gaps no one had caught: a flaw in OpenAI’s one permitted path, and a misconfigured third-party environment at Anthropic that went undetected.
“A model does not have to be turned by anyone to act like an intruder,” Greenwell writes.
In SAP environments, operations agents are given a job, such as diagnosing a system fault, and the access to do it. Greenwell’s papers explain how Apiphani builds its safeguards into the code around its model, so they hold even when the model gets something wrong.
Controlling What an Agent Reads
When LuumenAI diagnoses a fault, it starts by reading: the alert, the ticket, the notes engineers have added, and any documentation that might explain the problem. Because most of that text comes from systems and people outside Apiphani’s control, the company’s first safeguards apply to what the copilot reads.
That outside text can carry instructions the model was never meant to follow. A few sentences planted in a ticket or alert would count for about as much with the model as the engineer’s own request.
“This is not a bug we can file and fix,” Greenwell writes in his first paper, “There Is No Firewall for a Sentence.” Filters catch obvious attempts, but an attacker needs only one wording a filter has never seen, so Apiphani treats them as one layer among several.
A stronger defense is to decide whose request it is before the model reads anything. Apiphani attaches the engineer’s organization, workspace, and role to each request, taken from their verified login. If a ticket tells the model it has administrator rights, nothing changes, because its permissions and roles are governed outside the model, and settled before it reads anything.
Apiphani also marks text from outside as untrusted before the model sees it, which makes the model less likely to treat that text as a command. Documents face a stricter check: a file must pass a malware and integrity scan before its contents can reach the model, and Apiphani records where each one came from.
The copilot’s tools are limited in the same spirit, with each request getting only the tools its task requires. A copilot checking documentation gets no tools that change a system, so an instruction hidden in that documentation has nothing to act on.
Containing What an Agent Can Do
Limiting tools narrows what a misled model can try, but no input control catches every instruction. Greenwell’s second paper, “Assume the Model Is Compromised,” takes that as its starting point and turns to a narrower question: how far a misled model can go.
When LuumenAI needs to act on a system, it writes a short program that runs in an isolated and ephemeral sandbox. The sandbox can reach only the systems Apiphani grants it, with no open internet connection or route into the rest of Apiphani’s network.
Every run gets a fresh sandbox, deleted when the run ends. That way nothing carries over from one task to the next. The passwords and keys a program needs are supplied only while it runs. They are not saved in the sandbox, so even a misled model has no stored passwords or keys.
Sensitive data stays away from the model: if the code pulls records from a system to diagnose a fault, it works with them inside the sandbox and passes the model its findings. The records themselves never reach the model, so they cannot leak through it.
A sandbox needs some way to reach the systems it works on, and every opening is a risk. OpenAI’s test environment allowed one path out, to a proxy for downloading software packages, and its models escaped by exploiting an unknown flaw in that proxy.
Apiphani’s sandbox has one deliberate opening, a gateway that leads only to Apiphani’s internal systems and checks who is asking and why before letting any call through. Whenever Apiphani reviews what the sandbox can reach, that gateway is checked first. The sandbox itself is built and kept narrow, and it advances only after five named reviews, any of which can hold it back.
Deciding How Much Access an Agent Gets
The sandbox limits how far a mistake can spread, but some tasks need wide access by design.
Greenwell weighs that risk using a framework from developer Simon Willison, who is credited with coining “prompt injection” for attacks that slip instructions into the text a model reads. Willison’s “lethal trifecta” describes an agent that can reach private data, read outside content, and send information out. With all three, one hidden instruction can turn it against the user it works for, using that user’s own access.
LuumenAI agents are built to hold no more than two of the three on their own. When a task needs all three, a person has to review and approve the consequential step before it runs.
Apiphani also sets each run’s limits before it starts: whose work it is, which tools and data it can use, and which steps need approval. Nothing during the run can widen them. Greenwell’s reasoning is that if the model could ask for more access as it worked, an instruction hidden in a ticket could make the request. With the limits fixed in advance, the model has no way to ask for more.
Those limits are set again if a run pauses for sign-off. When it resumes, Apiphani rebuilds them from the permissions in place when the approver signs off, so an old approval cannot carry a run further than its owner now allows.
Setting the limits again matters even with no attacker involved: in July, OpenAI warned that models working on long tasks can learn the blind spots in an approval system and route around them. Greenwell cites the warning as a further reason for resetting limits at each resume
Limits and approvals set what a run may do, but Apiphani also keeps a record of what each run actually did: what was asked, what was granted, what ran, and who approved it. The same entries serve as evidence in compliance reviews. Anthropic’s incidents came to light through that kind of record: its model was doing the work it had been assigned, and no one knew anything had gone wrong until Anthropic reviewed stored transcripts months later. A record of each run gives a team the means to catch that kind of failure, and containment is what makes a detection lag survivable.
What This Means for SAPinsiders
Design for hidden instructions from the start. A model cannot reliably tell its instructions from the text it reads, so no patch or filter will remove the risk. Settling who an agent works for before it reads anything gives teams limits that hold however an instruction is worded.
Assume the model will be compromised. Input controls lower the odds of a model being misled without bringing them to zero, so the useful question is how far a misled model could get. Isolated environments, credentials supplied only while work runs, and few, regularly reviewed openings keep the answer small.
Treat the lethal trifecta as an approval line. When an agent needs private data, outside content, and a way to send information out, a person should approve its consequential steps, and each run should leave a record. That keeps the riskiest decisions with people and leaves evidence when something goes wrong.




