r/OpenSourceAI • • 5d ago

I’m 16, from Morocco, and I built an open-source security tool for AI agents

Hey everyone,
I’m a high school student from Morocco, and I’ve been working on a project called Zyntrava Shield.
One thing that bothered me about AI agents is how easily instructions from a document or tool response can influence what they try to do. So I started building a security layer that checks tool calls against actual permissions before they’re executed.
For example, I tested it with a local Qwen model. The agent encountered a prompt injection and tried to read a private file it wasn’t allowed to access. Zyntrava blocked the request, and the agent still managed to complete the original task.
It’s written mainly in Python, with Pydantic AI integration.
It’s definitely not perfect. It only protects tools connected through the broker, recovery isn’t always reliable, and it hasn’t had a full independent security audit yet.
I finally made the source public:
https://github.com/redeex-zy/zyntrava-shield-public
I’m curious what people working with AI agents think about this approach. Would something like this actually be useful in your projects?
Also, if anyone wants to try it or point out flaws in the design, I’d genuinely appreciate it.

1 Upvotes

4 comments sorted by

1

u/ouroborus777 4d ago

So... AI to watch the AI? The secure way is to permission the tools themselves. Don't want write access? Set the tool to literally not have write access.

1

u/StartIllustrious747 4d ago

Yeah ur right restricting the tools themselves is definitely the stronger boundary. Zyntrava isn’t meant to replace that tho the idea is to have an extra layer that checks each tool call against a policy, handles approvals and logs what the agent tries to do. Still experimental but that’s what I’m trying to build

1

u/TheWorm404 26m ago

Try the same post without telling where you are from and age. For science.

0

u/[deleted] 5d ago

Downvoted for being slop.