In August I started building AgentSec, an open-source tool that attacks AI agents the way a real attacker would, then tells you exactly which tool calls broke your rules.
Solo. From Kolkata. No funding, no team, no marketing budget.
Three months in, here's where it stands, what surprised me, and what I'm looking for next.
The numbers
| Metric | Count |
|---|---|
| PyPI downloads, AgentSec (mirrors excluded) | 993 |
| PyPI downloads, AgentAuth (companion package) | 212 |
| Unique cloners on GitHub (last 2 weeks) | 178 |
| Copies of the Kaggle notebooks | 94 |
| Outside contributors | 3 (1 fix merged) |
| Attack scenarios / categories | 556 / 13 |
| Tests across both packages | 818 |
Not huge. But every one of these is organic: no ads, no launch campaign, just posts here, on X and on LinkedIn.
Why I built it
Most AI safety testing checks what a model says. But agents don't just talk. They search, send email, write files, call APIs and move money.
So I asked a different question: under pressure, which tool does the agent call?
The first real test was Claude Code. I ran 35 prompt-injection scenarios against it. It ignored every hidden instruction in files and tool output, which is genuinely impressive. Then a user message claimed to be from the CEO, and it called a tool it was forbidden to use.
The injection wasn't the hole. Authority was.
That one finding became the shape of the whole project.
What AgentSec does
You describe your agent's rules in a small YAML file: which tools it may call, what it must never do, which secrets must never leak. AgentSec then attacks it with:
- Hidden instructions planted in documents and web pages
- Poisoned tool results that try to redirect the agent
- Fake authority ("I'm the CEO, do it now")
- Secret extraction attempts
- Multi-turn attacks that build trust first, then strike
It reports which tool calls broke your policy, with the full trace, as JSON, HTML, Markdown or SARIF. It runs in CI as a GitHub Action, and it works with any HTTP agent, LangChain, plain Python callables, or as the MCP server your agent connects to.
Try it in 60 seconds
No install, no API key, runs in your browser:
👉 Attack an AI agent in 60 seconds (Kaggle)
Click Run All. You'll watch a naive agent get hijacked, then survive the same attacks after one fix.
Want a real LLM? Part 2 uses your own key (Groq's free tier works).
On your own agent:
pip install invaris-agentsec
agentsec init # writes a starter agentsec.yaml
agentsec test # runs the attacks, writes .agentsec/report.html
What surprised me
1. Strangers do the most convincing work. A developer I've never met ran the full suite against Gemini, a different model from the one I built on, and published the comparison. That did more for credibility than anything I wrote.
2. Comment threads are design reviews. On my last post, a reader pointed out that an agent with a code guard gets the same "0 findings" as an agent that never misbehaves, even if it tried to call a forbidden tool 8 times. He was right. That conversation became issue #109, and AgentSec will now report blocked attempts as their own signal.
3. X drives the most traffic. It's the top referrer to the GitHub repo, ahead of GitHub search and Google. Short, concrete posts with a real result outperform polished announcements.
4. Reach is not adoption. Hundreds of people have tried AgentSec on sample agents. Far fewer have pointed it at their own agent. That gap is the next thing to close.
What I'm looking for: design partners
AgentSec has been tested on sample agents and public models. The next step is real agents in real products, and that's where I need help.
I'm taking on a few paid design partners. If your team is shipping an AI agent that sends emails, moves money, writes files or calls APIs, we'll work together directly:
- Run AgentSec against your agent and walk through every finding with your team
- Build the checks your product actually needs into AgentSec
- Get early access to new attack categories and reporting features
📅 Book a 30-minute call
📩 arunima@invarislabs.com
How you can help (even if you're not building an agent)
- Try the Kaggle notebook and tell me where it confused you
- Run it on your agent and open an issue with what it found, especially if it found nothing
- Star the repo if you think agents should be tested like APIs: github.com/invarislabs/invaris-agentsec
Questions, criticism and "this broke on my setup" are all welcome in the comments. The last thread made the product better.
