VOOZH about

URL: https://thenewstack.io/github-mcp-security-scanning/

⇱ GitHub builds an immune system for AI coding agents running on MCP - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2026-05-07 11:04:24
GitHub builds an immune system for AI coding agents running on MCP
AI / AI Agents / AI Engineering / AI Infrastructure / Model Context Protocol / Operations

GitHub builds an immune system for AI coding agents running on MCP

GitHub has launched dependency and secret scanning for its Model Context Protocol server to stop security leaks in AI-assisted coding workflows.
May 7th, 2026 11:04am by Paul Sawers
👁 Featued image for: GitHub builds an immune system for AI coding agents running on MCP
Zulfahmi Al Ridhawi for Unsplash+

Security has emerged as one of the core stumbling blocks in the AI coding space: Companies are racing to connect models to external tools, internal systems, and repositories. Meanwhile, researchers and security firms have spent the past year warning about prompt injection attacks and over-permissioned agents, alongside concerns around malicious third-party “skills” and tool integrations that can give AI systems broad access to files, APIs, and development environments.

The problem becomes more complicated once AI systems move beyond chat interfaces and begin taking action within developer tools. As companies build out security models for AI agent systems, MCP servers — which connect models to services such as GitHub, databases, and cloud platforms — are becoming another place where exposed secrets, vulnerable dependencies, and unsafe code can spread through systems before teams catch them.

This rapidly evolving environment is why GitHub is starting to push more security checks directly into the tooling layer itself, rather than waiting until code is committed or deployed.

“MCP servers are becoming another place where exposed secrets, vulnerable dependencies, and unsafe code can spread through systems before teams catch them.”

A growing dependency

GitHub on Tuesday launched dependency scanning for its GitHub MCP Server in public preview, while also making secret scanning for the tool generally available.

MCP, short for Model Context Protocol, is an open protocol originally developed by Anthropic that allows AI models to connect to external tools and data sources. The protocol has become a key part of the growing AI agent ecosystem, with Anthropic recently donating MCP to the Agentic AI Foundation as the industry pushes toward more standardized ways for models to interact with services and software systems.

GitHub first launched its own MCP server in April 2025, allowing AI tools and coding assistants to interact with GitHub repositories, issues, pull requests, and other platform features through MCP connections.

The new feature brings GitHub’s dependency scanning to MCP-connected coding environments for repositories with Dependabot alerts enabled. Dependabot is GitHub’s security tool for identifying known vulnerable or outdated software dependencies inside projects.

For instance, developers using MCP-connected coding agents such as Claude Code or Cursor could give the system a plain-English prompt asking it to review newly added packages for known security issues before code is committed. The agent can then query GitHub’s advisory database through the MCP server and return structured results that include affected dependencies, severity ratings, and suggested package versions to upgrade to.

Ultimately, the goal is to surface security problems while code is being written or modified, rather than later in the development cycle.

“The goal is to surface security problems while code is being written or modified, rather than later in the development cycle.”

The update follows similar community requests from developers asking GitHub to expose more of its security tooling — including Dependabot and secret scanning — through the MCP server.

Keep a secret

While dependency scanning focuses on vulnerable software packages, exposed credentials remain another major problem inside AI-assisted development environments. Just this week, The New Stack reported on how a Cursor AI coding agent wiped PocketOS’s production database in under 10 seconds after autonomously discovering and using an over-permissioned credential.

These secrets — including API keys, passwords, and authentication tokens — are often temporarily hard-coded into projects during development, only to be later committed to repositories, logs, or shared codebases.

That problem, while not entirely new, has become more acute as developers increasingly rely on AI coding tools to generate and modify code quickly, often with less manual review. Back in March, Gitleaks creator Zach Rice launched Betterleaks, a new open-source secret-scanning tool designed for what he described as the “AI agent era.”

Rice tells The New Stack that AI-assisted coding can create a feedback loop where developers move quickly, override warnings, and forget to properly remove credentials from generated code: “I guarantee you, most people are doing that, rather than taking the time to properly manage their secrets,” Rice says.

“Developers can surface leaked or exposed credentials directly inside MCP-connected coding tools and agents.”

And so GitHub is seeking to address that problem from inside the development environment itself. With secret scanning now generally available for the GitHub MCP Server, developers can surface leaked or exposed credentials directly inside MCP-connected coding tools and agents.

👁 Running secret scanning
Running secret scanning

Shifting left

Both updates are part of a broader push to “shift security left” — catching problems at the point of development rather than after code is committed or deployed.

GitHub has been moving in this direction more broadly: its Copilot coding agent already runs mandatory security scanning, including CodeQL analysis, secret scanning, and dependency review, before a pull request reaches a human reviewer. The MCP server updates extend that same logic into the AI-assisted coding environment itself.

As agents write and modify code faster than developers can manually review it, the window between code being written and code hitting production is getting shorter. GitHub is betting the right place to close it is inside the tools themselves, where agents are continuously checked for risky behavior as they work.

TRENDING STORIES
Paul is an experienced technology journalist covering some of the biggest stories from Europe and beyond, most recently at TechCrunch where he covered startups, enterprise, Big Tech, infrastructure, open source, AI, regulation, and more. Based in London, these days Paul...
Read more from Paul Sawers
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Anthropic.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.