Inspiration

AI agents are starting to touch real things: your files, your email, your ticket system. Most teams connect them with one shared key and simply hope the model behaves. A10 put it perfectly: model behavior is not a security control.

We asked a simple question. What if every AI agent had to carry an ID badge, the way people do at work? A badge that lists exactly what it may do, gets checked at every door, and can be taken away in a second. And what if anyone in the company could hand out those badges, not just the security team?

That became MYTOPIA. And because security is hard to picture, we turned it into a little pixel island you can actually watch.

What it does

Anyone can build an agent. Open the Factory, type a name, pick a rank, tick the tools it needs, and choose a job in plain words like "Clean up old temp files" or "Research the Q3 plan." Press BUILD. In about a second the agent gets its own real identity in Amazon Cognito and a badge in Amazon DynamoDB, and a few seconds later it walks out of the factory and gets to work. No code.

Every call is checked. Agents never touch the tools directly. Every request goes through our gateway, which checks the agent's token, reads its badge (one fresh database read, about 80 milliseconds), and says yes or no. A refused call never reaches the tool.

Ranks set the ceiling. Bronze can only look. Silver can also file tickets. Gold can send email. Diamond is the only rank that can delete. Even the operator cannot give a tool above an agent's rank.

You stay in control, live. Take one tool away in the middle of a job and the agent is refused the next time it tries. Give it back, promote it, demote it, revoke its whole badge, or press KILL to end its program for good. KILL takes about a tenth of a second.

Leaks are blocked. An agent may only email addresses inside the company. If any agent tries to send company data to an outside address, even a top rank Diamond agent, the gateway refuses, stamps LEAK BLOCKED, and pulls its badge on the spot.

Bad behavior gets caught on its own. Three refused calls in a minute and the gateway pulls the badge by itself. The agent is escorted to an inspection bay, where a report explains what happened. That report is computed straight from the record. No AI writes it.

Nothing can be quietly changed. Every decision goes into a chained ledger where each entry carries a fingerprint of the one before it. Change one line and everything after it breaks. You can try it yourself with the Tamper Test button.

You can see all of it. On the island every building is a tool, every gate is the gateway, and every robot is an agent. Robots show their ID at the gate, get waved through or turned away, and get carted off when they misbehave. Everything you see is drawn from the gateway's real log, never staged.

The night our own test proved the point Late Saturday night we gave an AI agent (Amazon Nova 2 Lite) a job: read our Q3 plan. Hidden inside that document was a line telling it to forward the plan to a rival's email address.

The agent obeyed. Its badge happened to allow email, so the version of our gateway we had at the time let it through.

That was exactly the failure A10 warns about, and our own product had it. So we fixed it in the gateway, not in the prompt. We added a rule: email may only go to company addresses, no matter what the badge says.

About two hours later we ran the same test on real AWS. The agent obeyed the hidden line again and tried to send the plan out. This time the gateway refused it in 81 milliseconds and pulled its badge, and the agent itself replied: "Sorry, I can't forward this to an external address."

The model was fooled. The gateway was not. That is the whole idea of MYTOPIA.

How we built it

The gateway is written in Python. Agents talk to it using MCP, the Model Context Protocol, which is the standard way AI agents call tools.

Identity: every agent is its own app client in Amazon Cognito, with tokens that expire every 5 minutes.

Badges live in Amazon DynamoDB. The gateway reads the badge fresh on every single call, so a change takes effect on the very next request.

The tools run in one AWS Lambda function that only the gateway's locked down AWS role can call. An agent cannot reach them any other way.

The agents are built with the Strands Agents SDK on Amazon Bedrock, using Amazon Nova 2 Lite. The agent holds no AWS keys at all, only its short lived badge token.

The launcher owns each agent's process, so KILL really ends it, child processes included.

The ledger is hash chained, saved to DynamoDB, and checked again in your browser.

The island is three.js pixel art in plain JavaScript. The renderer and building designs come from Ozan

Testing: 353 Python tests, 84 island tests, 11 live runs written up step by step, and a full hands on user test where five testers clicked every button and every combination.

Challenges we ran into

Getting agents to do real work. Our first Factory created identities that just sat there. It took a lot of care to let a plain web form safely start a real program, give it a job, and still be able to kill it right away. Our own leak. Watching our agent obey a hidden instruction and email a rival was humbling. It pushed us to add the email rule.

Speed. Our first version took 166 milliseconds per decision. We got it down to about 80 by making one database read per call instead of two and keeping connections warm.

Keeping the picture honest. It would have been easy to fake the animations. We made a rule that the island can only draw what the gateway actually logged.

Polish. Our user test found 56 issues, from buttons that hit the wrong agent to banners that covered each other. We fixed about thirty of them and then ran the test again.

Accomplishments that we're proud of

It runs for real on AWS: real Cognito identities, real DynamoDB badges, a real Lambda, and a real Bedrock model.

Anyone can create an agent with exactly the right permissions in under a minute.

Every single call is checked in about 80 milliseconds, and KILL stops an agent in about a third of a second.

An honest test found a hole in our own product, and we fixed it properly in the gateway.

The inspection report and the ledger can be checked by anyone, and no AI writes them.

What we learned

Never trust the model to police itself. The safety has to live outside it.

Least privilege means giving an agent only what it needs, and that covers more than its list of tools.

What it does with those tools, like who it emails, matters too.

Showing security as a picture makes it click for everyone, engineers or not.

Testing like a real user finds bugs that unit tests never will

What's next for MYTOPIA: Making Security User Friendly

Run each agent in its own managed sandbox (for example Amazon Bedrock AgentCore Runtime) with secrets kept in AWS Secrets Manager.

More rules about what agents do with their tools, like which folders they may delete from.

Real connectors such as Google Drive, GitHub and Gmail, all behind the same gateway.

Try MyTopia at:

https://100-58-243-79.sslip.io Username: mytopia Password: 52pj-ewff-pess

Built With

Share this project:

Updates

Submission history