VOOZH about

URL: https://thenewstack.io/codegate-open-source-tool-secures-ai-coding-assistants/

⇱ CodeGate: Open Source Tool Secures AI Coding Assistants - 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
2024-12-20 12:00:25
CodeGate: Open Source Tool Secures AI Coding Assistants
sponsor-aerospike,sponsored-topic,
AI / Developer tools / Open Source / Security

CodeGate: Open Source Tool Secures AI Coding Assistants

AI-generated code is vulnerable to attack. Craig McLuckie, co-creator of Kubernetes, shared news about his company's newly open sourced project, a locally hosted layer of security for AI workflows.
Dec 20th, 2024 12:00pm by Steven J. Vaughan-Nichols
👁 Featued image for: CodeGate: Open Source Tool Secures AI Coding Assistants
Image by Getty Images from Unsplash+.

That friendly, ever-so-helpful AI coding assistant? You can’t trust it.

Most programmers now use AI coding assistants such as GitHub Copilot, ChatGPT, and Amazon Q Developer. In fact, according to a 2024 Stack Overflow survey, 76% of respondents already use or plan to use AI code assistants.

That may be a big mistake.

In an e-mail interview, Craig McLuckie, one of Kubernetes’ co-creators and founder and CEO of Stacklok, a software supply chain security company, told The New Stack, “Over the past weeks, I have watched AI coding assistants exfiltrate secrets to OpenAI, and I’ve seen various [large language models] recommend deprecated and dangerous (even hallucinated) packages that AI coding assistants then try to install.”

Yow!

It gets worse. “It gets doubly complicated because foreign adversaries have been busily publishing malicious packages with names that are commonly hallucinated,” McLuckie added.

To combat this problem, he said, StackLok has a new open source project, CodeGate. Locally hosted (i.e., run by developers on their own machine) is what he calls a “privacy-focused solution that acts as an essential layer of security within a developer’s generative AI workflow.”

How CodeGate Works

Specifically, CodeGate, licensed under Apache 2, acts as a local proxy between developers and AI coding assistants. The program runs within a dedicated Docker container.  It ensures that sensitive information remains protected while leveraging AI’s productivity benefits.

CodeGate does this by monitoring prompts for code secrets, such as API keys and credentials. It encrypts your secrets on the fly as your code goes back and forth between your workstation and the AI service.

This commitment to privacy is a standout feature. The tool operates entirely on your local machine, ensuring no data except the coding assistant’s required traffic leaves your system.

The program also blocks potentially harmful libraries and deprecated dependencies by using a real-time database to identify them and intervening when an AI tool suggests such questionable components. As McLuckie told TNS, “It alerts the developer whenever an LLM recommends an unsafe dependency, but otherwise sits quietly in the background.”

CodeGate currently supports integration with popular AI providers such as OpenAI and Anthropic, as well as tools like GitHub Copilot and continue.dev. The developers plan to expand compatibility by including more tools, such as the AI pair programming tool aider and the AI code editor Cursor.

As the software development landscape evolves with AI integration, tools like CodeGate will play a crucial role in balancing the benefits of AI assistance with the necessary safeguards for security and privacy. CodeGate’s open source code base invites collaboration and scrutiny from the developer community, which should help accelerate improvements and widespread adoption.

Aerospike is the real-time database built for infinite scale, speed, and savings. Our customers are ready for what’s next with the lowest latency and the highest throughput data platform. Cloud and AI-forward, we empower leading organizations like Adobe, Airtel, Criteo, Experian, and PayPal.
Learn More
The latest from Aerospike
TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
StackLok is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Docker, Anthropic, OpenAI.
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.