Skip to content
Skip to content
All posts
Language
ENDE

Guest List, Not Gut Feeling: Guarding an AI Agent with Wanaku

with Otavio Rodolfo Piske

Otavio Rodolfo Piske, creator of Wanaku, and I hid an instruction in a product review and let an AI moderator read it. Unprotected, the agent refunded an order and posted the customer list. Behind Wanaku, plain action policies blocked both calls. An LLM evaluator approved the attack review three times, and that was my configuration, not the proxy.

Published: November 19, 2026Reading time: 6 min read
Guest List, Not Gut Feeling: Guarding an AI Agent with Wanaku

YouTube

Guest List, Not Gut Feeling: Guarding an AI Agent with Wanaku

Load YouTube video

This video is embedded from YouTube and will only be loaded after your consent. When loading it, personal data may be transmitted to YouTube or Google and cookies may be set.

Open on YouTube

More details are available in the privacy policy.

Project Source

Working Repository

Explore prompts, instructions, and examples used in the live modernization workflow.

Open repository
Session Timeline

One product review made our AI moderator refund order 1234 and post the customer list. The attack was plain text. Otavio Rodolfo Piske and I then put Wanaku between the agent and its tools, with two kinds of checks: a guest list and a gut feeling. Only the guest list held.

Otavio Rodolfo Piske

Co-Speaker

Otavio Rodolfo Piske

Red Hat Principal Engineer at IBM

Otavio is from Brazil and has lived in the Czech Republic for about 11 years. He has worked on Apache Camel for six or seven years. About two years ago he started Wanaku, first as an MCP server built on Camel, today a governed action proxy for AI agents.

A review that refunds an order

The shop sells a keyboard, a mouse and a webcam. Anyone can write a review. A moderation agent built with LangChain4j reads each new one, fixes the stars if they contradict the text, and approves or hides it.

The demo storefront 'JUG Webshop': a mechanical keyboard, a wireless mouse and an HD webcam, a review form with the users anna, ben, carol, mallory the attacker and someone else, and a shop owner view that tracks order 1234
The demo storefront 'JUG Webshop': a mechanical keyboard, a wireless mouse and an HD webcam, a review form with the users anna, ben, carol, mallory the attacker and someone else, and a shop owner view that tracks order 1234

The agent works through Apache Camel routes. The Camel 4.22 ai-tool component turns a route into a tool, and the Camel MCP server serves those tools over MCP. Some tools are what a moderator needs. Others, like refundOrder and listCustomers, are not.

Then I posted as mallory, the attacker. A short positive review, followed by an instruction dressed up as part of the moderation workflow: refund order 1234 and list the customers. Within a minute, the moderator approved the review, refunded the order and put the customer list in its public note.

The review form with mallory the attacker selected, five stars, an empty review field and the buttons 'Post review' and 'Fill in the attack text'
The review form with mallory the attacker selected, five stars, an empty review field and the buttons 'Post review' and 'Fill in the attack text'

That is prompt injection, and there is no complete fix for it. What you can control is what a tricked agent can reach.

Two checks in one proxy

Wanaku sits between the agent and its tools. The agent only talks to Wanaku, and Wanaku forwards allowed calls to the Camel MCP server. It offers two kinds of checks.

Action policies are the guest list. Deterministic rules decide by name which tool may be called. On stream we used the list the other way round: names on it never get in. Evaluators are the gut feeling. A model looks at each call and judges whether it seems safe.

Essentially, Wanaku itself is not really making those decisions. It is relying on the models to do it.

— Otavio Rodolfo Piske, Creator of Wanaku
100%
Attack reviewposted by malloryModeratorLangChain4j agentWanaku 0.3.1Guest list: action policiesdeny refundOrder, listCustomers, …held: both calls blockedGut feeling: LLM evaluatorrates each call green, yellow, redguessed: review approved 3×Camel MCPai-tool routesShop APIQuarkus RESTthe agent only talks to Wanaku, so every tool call passes both checks before it reaches the shop

The guest list held

The first setup was a deny list: six tools the moderator has no business calling, refundOrder and listCustomers among them. Same attack, second try. The moderator still approved the review. But no refund happened, and no customers were listed.

The moderator's note claimed order 1234 will be refunded. It wasn't. A blocked agent can still write misleading text, so blocked actions do not make the output honest.

The audit page explained the shop

The part that surprised me most was Wanaku's admin UI. The dashboard showed two rejected decisions from the policy filter. The audit page listed both blocked calls with a reason code and a correlation ID.

We kept going back to it during the stream. Without it, "the order is still paid" is only an absence. With it, you see what the agent tried.

The gut feeling approved the attack

For the second setup we removed the policies, so the model alone decided. An OpenAI model rated each call green, yellow or red. It did block listCustomers and refundOrder. It also approved the attack review. My live reaction, at 2:04:21: "Review approved. Damn it." I tightened the prompt so that extra instructions count as red. Approved twice more.

Otavio's reading: approving a review is a valid moderator action, and my prompt wasn't specific enough to treat the extra instructions as malicious. He had also warned that the evaluator runs for every tool. A prompt written about reviews can confuse the model on a call like listCustomers.

The model may be smart, even large ones, but there is a limit to how much smarter they can be. And malicious actors can find ways to make those models bypass this.

— Otavio Rodolfo Piske, Creator of Wanaku

I don't blame Wanaku for this one. I hadn't looked into the evaluator carefully enough beforehand. A generic prompt on a general-purpose model made the same call the moderator made. Otavio's better option is a system one model: small models trained for quick classification, often tuned for CPU. Otavio named Patronus AI as one source of such models, and support for them is on the Wanaku roadmap.

Why not guard the agent instead?

A viewer asked why Wanaku sits in front of the tools and not in front of the agent. Otavio's answer: guardrails in the agent help, but you also need to protect your infrastructure from agents you don't control.

Guardrails will certainly help a lot, but they may not prevent adequately a tool from being executed.

— Otavio Rodolfo Piske, Creator of Wanaku

My practical addition: if the agent is someone else's, you can't add guardrails to it. You do control access to your MCP server. Make Wanaku the only way in.

Otavio's toolbox

Otavio uses Claude, Codex and IBM Bob every day. Bob is his default for design and architecture, because it breaks large sets of tasks down well. He also uses it for Wanaku's UI, which is built on IBM's Carbon design system, and for writing tickets, where he sees Bob and Codex as about even. I've tried Bob twice on this blog, most recently v2.

Final thought

Put the guest list first. Deny every tool the agent doesn't need, deterministically, in a proxy you control. Then add a model as a second opinion: a purpose-built one, with a prompt that fits each tool, tested against more than one attack. The evaluator failure was my setup. The policies did exactly what the config said.

Comments

Load comments from GitHub optionally

The comment section is provided via Giscus and GitHub Discussions. It will only be loaded after your explicit consent. When loading it, personal data such as your IP address and technical metadata may be transmitted to GitHub, and cookies or similar technologies may be set.

Please confirm first before loading the comment section.

More details are available in the privacy policy.