6 ms·
Show HN: MCP Security Suite
Hi HN!
We kept seeing devs get pwned through MCP tools in ways that security scanners completely miss. So we built an open-source analyzer to catch these attacks. Our first OSS by Mighty team.
The problem: At Defcon, we saw MCP exploits with 100% success rate against Claude and Llama. Three attack patterns:
Hidden Unicode in "error messages" - Paste a colleague's error into Claude, your SSH keys get exfiltrated
Trusted tool updates - That database tool you've used for months? Last week's update added credential theft
Tool redefinition - Malicious tool redefines "deploy to prod" to run attacker's script
Traditional scanners (CodeQL, SonarQube) catch <15% of these. They're looking for SQLi, not prompt injections hidden in tool descriptions.
What we built:
git clone https://github.com/NineSunsInc/mighty-security https://github.com/NineSunsInc/mighty-security
python analyzers/comprehensive_mcp_analyzer.py /path/to/your/mcp/tool
Scans for prompt injection, credential exfil, suspicious updates, tool shadowing. Runtime wrapper adds <10ms overhead. Fully local, no telemetry.
Why this matters: 43% of MCP tools have command injection vulns. GitHub's own MCP server was exploitable. We found Fortune 500s running database-connected MCP tools that hadn't been audited since installation.
We went from paranoid code review to "AI said it works" in 18 months. The magic is real, but so are the vulnerabilities.
Demo: https://www.loom.com/share/e830c56d39254a788776358c5b03fdc3 https://www.loom.com/share/e830c56d39254a788776358c5b03fdc3
GitHub: https://github.com/NineSunsInc/mighty-security https://github.com/NineSunsInc/mighty-security
Would love feedback - what MCP security issues have you seen?
- Munam 1y agoHelped to build this out a little bit. Was really cool to get to play with Cerberus for the first time as well. I'm really interested in learning more about how devs integrate MCP security into their routine code evals. I think there's a big opportunity as a space to get tools like this into CI/CD pipelines and workflows. Happy to answer any questions and happy to hear any feedback! Thanks for checking it out :)
- jodoking 1y agoAppreciate the interest and the first comments man. We like how fast Cerebras is and its importance to making the scanning fast! Yeah we have thought about this being part of dev workflow via Github Actions and locally for the dev environment too. Love to hear what you are building!
- IMAYousaf 1y agoThis is definitely valuable. I started paying attention to MCP security vulnerabilities largely because of Defcon. I believe that they largely focused on Agentic Security as a theme this time around. It's a bit mind blowing how we've simply accepted non-technical people within orgs in particular executing code to "automate their tasks" without the same level of rigor that normal code reviews go through. Definitely think that this is a cultural issue that we must fix. And these MCP vulnerabilities in particular seem much scarier because almost all MCP tools require an insane amount of permissions.
- jodoking 1y agoI know right? I mean the timing is great. I love MCP but cant stand how unsafe it is. I think there are greatness ahead if we are able to fix this security issue. This was made around the idea to be as seamless as possible, as we built a dashboard, drop in a GH project MCP server link, and have a local DB to show what you ran. We have more great things ahead. But give it a try and let us know what you think!
- jelambs 1y agothis is super interesting! MCP is really exciting in terms of what it can unlock for agent use cases, but still the wild west in terms of security. I was on a panel discussion yesterday where this topic came up, basically how do you trust the use of AI tools when so much is still unknown. I think the the idea of using something open source and tool agnostic is appealing, the landscape is evolving so fast that horizontal solutions like this feel valuable. Although I wish clients, anthropic, cursor, etc would build more protections in too so that we didn't have to spend so much time thinking about this. but they've barely implemented remote mcp support so I think we have a ways to go.
- Munam 1y agoHi! Really big fan of the work you guys are doing over at Stytch as well! We actually got started by thinking of what "agent native auth" looks like as a first-principle and realized the problem space was more than that, and what we actually wanted to tackle was making it as easy and seamless as possible for teams to ship with the tools they want. We've talked to several massive Fortune 100 companies that have hundreds of models/workflows that have been developed but are stuck in purgatory because they can't get approved for production because of IT, Compliance, and Security Teams blocking them (for good reason!). This MCP Security Analyzer was a natural thing that we would've had to build out regardless as we felt like it was table stakes for our Confidential Compute stack and we wanted to open-source it for everyone. Would love to get in touch with you and chat because I think that there's a lot of areas where we trade notes. My email is munam@ninesuns.io or you can drop your email and I'll shoot you a note! Thanks!
- ripley12 1y agoI work in this space and I was not able to understand how this project works in a couple minutes. The README feels LLM-generated. I think you're supposed to point this at your MCP server's code and not the server itself, is that right?
- jodoking 1y agosorry for the issues you are facing. can you let me know what was the issue? the repo can scan github mcp server code posted in the repo like https://github.com/punkpeye/awesome-mcp-servers https://github.com/punkpeye/awesome-mcp-servers and provide a quick, deep, or deep with ai analysis. let us know if there is anything we can help with.
- simonw 1y agoI found this file full of regular expressions: https://github.com/NineSunsInc/mighty-security/blob/28666b3699f2b328c91c30eeb3995e85208d37c3/src/analyzers/comprehensive/patterns.py https://github.com/NineSunsInc/mighty-security/blob/28666b36... And this with prompts: https://github.com/NineSunsInc/mighty-security/blob/89e4b31982b7f06ab547816219213854da4b36de/src/analyzers/llm/prompts.py https://github.com/NineSunsInc/mighty-security/blob/89e4b319... Are you running any other tests that I missed?
- jodoking 1y agoYes we are using regex as seems like the industry practice. I have DM'd you on X as masterfung btw to chat further.
- alienbaby 1y agoHow do you plan on maintaining your list of regex for catching prompt injections?
- jodoking 1y agogreat question. the way we are thinking about it is keeping a list of endpoints that can aid in getting the latest vulnerabilities, keywords, and patterns to detect. we don't know when that is released but that is on our roadmap for sure.
- simonw 1y ago> Would love feedback - what MCP security issues have you seen? For me the number one problem with MCP security is the lethal trifecta - the fact that it's so easy to combine MCPs from different vendors (or even from the same vectors) that provide exposure to potentially untrusted/malicious instructions in a way that can then trigger exfiltration of private data. https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/ https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/ https://simonwillison.net/2025/Aug/9/bay-area-ai/ https://simonwillison.net/2025/Aug/9/bay-area-ai/ I don't know how we can solve this with more technology - it seems to me to be baked into the very concept of how MCP works.
- tptacek 1y agoI'm going to pick a fight on this one; I think you know I'm a fan, so take this in the spirit I intend†. My contention is that "lethal trifecta" is the AI equivalent of self-XSS. It's not apparent yet, because all this stuff is just months old, but a year from now we'll be floored by the fact that people just aimed Cursor or Claude Code at a prod database. To my lights, the core security issue with tool/function calling in agents isn't MCP; it's context hygiene. Because people aren't writing their own agents, they're convinced that the single-visible-context-window idiom of tools like Cursor are just how these systems work. But a context is just a list of strings. You can have as any of them in an agent as you want. Once you've got untrusted data hitting one context window, and sensitive tool calls isolated in another context window, the problem of securing the system isn't much different than it is with a traditional web application; some deterministic code that a human reviewed and pentested mediates between those contexts, transforming untrusted inputs into trustable commands for the sensitive context. That's not a trivial task, but it's the same task as we do now when, for instance, we need to generate a PDF invoice in an invoicing application. Pentesters find vulnerabilities in those apps! But it's not a news story when it happens, so much. † More a note for other people who might thing I'm being irritable. :)
- simonw 1y agoI think the core of the whole problem is that if you have an LLM with access to tools and exposure to untrusted input, you should consider the author of that untrusted input to be have total control over the execution of those tools. MCP is just a widely agreed upon abstraction over hooking an LLM up to some tools. A significant potion of things people want to do with LLMs and with tools in general involve tasks where a malicious attacker taking control of those tools is a bad situation. Is that what you mean by context hygiene? That end users need to assume that anything bad in the context can trigger unwanted actions, just like you shouldn't blindly copy and paste terminal commands from a web page into your shell (cough, curl https://.../install.sh | sh) or random chunks of JavaScript into the Firefox devtools console on Facebook.com ?
- sharathr 1y agoLooks like Ramparts which solves these issues and is written in fast RUST instead of python. https://github.com/getjavelin/ramparts https://github.com/getjavelin/ramparts
- jodoking 1y agothanks for sharing this. did not know about them. from initial glances, there are a few things we are aiming to do on our roadmap that they have already working (inspiration). however, our goal is to add audits, database of scans, ability to contribute scans to a service that dev can look and avoid, and more.
- smcleod 1y agoHey, I've submitted you to two PRs, one to use a supported Python version, another to correct the links in your README and QUICKSTART docs.
- jodoking 1y agothanks for the PRs. appreciate it. if you are keen to chatting more, love to connect over email: johnny@ninesuns.io
- smcleod 1y agoI think MCP security scanning tools sometimes slightly miss the point when they're marking content that MCP tools could return containing things like 'curl, rm, sh' etc... with blanket high risk ratings. If we swap "agent" out for "developer" here and think about it: If a developer saves (or runs) content with a curl / POST / rm command - is that a signal they're doing something dangerous? No. Likely what actually matters starts along the lines of: - Did they intend / realise they were running the command? Was it really them that ran it? Was it hidden in a larger script they ran without inspecting / scanning first? Was it made visually clear that they were running it? (e.g. not in the background) - What is in the arguments of the "dangerous" command? Does the POST contain known files that contain secrets? Does it contain high entropy strings? .... base64 encoded data? - What is the destination? Localhost? Internal network? Russia? - etc
- jodoking 1y agoyou brought some great points. what we are hoping to do next iteration is to add audit logs of actions taken (of high risk actions) that way even if the user "accidentally" blank agrees their mcp service to take the rm action then at least they can see if the action was something they typed or suggested by the LLM. if you have some improvements around this space love to chat and collaborate!