frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

AI coding agents accidentally introduced vulnerable dependencies

3•hsin003•1h ago
Recently we discovered something unexpected on one of our servers: a cryptominer running in the background.

The machine was hosting a web service built using Next.js. The first sign of trouble was unusually high CPU usage. Even during low traffic periods, the server was consistently running near 100% utilization. After inspecting running processes and network activity, we found a background process downloading and executing a mining binary.

ROOT CAUSE

The entry point was CVE-2025-29927, a vulnerability in Next.js that allows middleware protections to be bypassed. This enabled an attacker to reach internal endpoints that were assumed to be protected. Once they hit the exposed endpoint, they executed a script that pulled down the miner.

HOW "VIBE CODING" FAILED US

This application was largely generated using AI-assisted tools (Claude Code and OpenAI Codex). This workflow—often called "vibe coding"—involved describing the desired functionality and letting the AI assemble the codebase.

The project worked perfectly, but the AI pinned a vulnerable dependency version in the package.json. Because the app ran normally and passed functional tests, we missed the audit step. Automated scanners found the vulnerability within hours.

THE BROADER LESSON

AI increases development speed, but it also increases the "security debt" of every deployment. In traditional development, you review versions carefully. With AI-generated scaffolding, that step is easy to overlook.

The attack chain:

AI-generated project -> Vulnerable dependency -> Middleware bypass -> Automated scan -> Cryptominer

HOW WE FIXED IT

We realized that if we are using AI to speed up development, we need automated "brakes" to match that speed. We moved our apps onto Containarium ( https://github.com/FootprintAI/Containarium ), an open-source platform that uses ZFS-backed, unprivileged LXC containers to consolidate 100+ isolated environments onto a single VM with integrated security monitoring and vulnerability scanning.

This ensures that even if a developer accidentally deploys a vulnerable dependency, the breach is isolated from the host and flagged by runtime monitoring.

OPEN QUESTION

I’m curious how others are handling the "AI audit" problem. Are you adding automated security gates to your dev environments, or are you strictly relying on traditional dependency scanning and hoping the "vibe" doesn't miss anything?

Comments

hsin003•1h ago
Hi HN — author here.

This incident showed how AI-generated code can inadvertently introduce vulnerabilities. The cryptominer ran because a dependency version chosen by an AI coding agent had a known CVE.

Containarium now runs centralized pentests and vulnerability checks for all applications on the platform to prevent similar attacks.

Curious if others have similar workflows or lessons learned with AI-generated projects.

newexpand•1h ago
The attack chain you described highlights a gap that most teams overlook: AI-generated code passes functional tests but skips the "why this version?" review that experienced developers do instinctively.

I think the real issue is visibility. When AI generates a project, every dependency choice is implicit — there's no PR comment explaining why it pinned next@14.1.0 instead of 14.2.1. In a human workflow, someone would have caught that during review.

Two things that have helped in my workflow: 1. Running `npm audit` as a post-generation step before even testing functionality 2. Treating AI-generated commits as "untrusted by default" — reviewing them with the same rigor as external contributor PRs

hsin003•1h ago
CVEs are time-dependent. Even if npm audit guarantees no known vulnerabilities at the moment you merge a PR, new CVEs can emerge later, silently impacting your system without anyone realizing it.

That’s why I think continuous monitoring and centralized pentesting are essential — not just at merge time, but throughout the lifecycle of AI-generated projects.

speakingmoistly•31m ago
I think some folks are very quick to drop rigor and care as "traditional practices" as if we're talking about churning butter by hand. One thing that might be valuable to keep in mind is that LLM tooling might feel like an expert, but generally has the decisionmaking skills of a junior. In that light, the rigor and best practices that were already (hopefully) part of software engineering practice are even more important.

> In traditional development, you review versions carefully. With AI-generated scaffolding, that step is easy to overlook.

If in "traditional development", everything is reviewed carefully, why wouldn't it be when some of the toil is automated? If anything, that's exactly what the time that's freed up by not having to scaffold things by hand should be invested in: sifting through what's been added and the choices made by the LLM to make sure they are sound and follow best practices.

The Official DR DOS Website

https://www.dr-dos.com/
1•Tomte•1m ago•1 comments

Show HN: Astrocartography AI – an interactive astrocartography map generator

1•iamouyang•4m ago•0 comments

How Napoleon Became Short

https://worldhistory.substack.com/p/how-napoleon-became-short
1•crescit_eundo•5m ago•0 comments

The U.S. Mint dropped the olive branch from the dime

https://fortune.com/2026/03/12/us-mint-drops-olive-branch-dime-peace-war/
2•janandonly•6m ago•0 comments

Flipping Bits in Memory Without Accessing Them (2014) [pdf]

https://users.ece.cmu.edu/~yoonguk/papers/kim-isca14.pdf
1•jruohonen•7m ago•0 comments

OpenClaw Skills

https://github.com/VoltAgent/awesome-openclaw-skills
1•theorchid•7m ago•0 comments

AI Hallucinations: How They Reshape the Way We Think

https://chungmoo.substack.com/p/ai-hallucinations-how-they-reshape
1•chungmoo•8m ago•0 comments

RAM-only privacy architecture and why humans fail before the tech does

2•Shefoz•10m ago•0 comments

Made a R coding tool that feels like cheating

https://rchat.dev/
1•ilukaspesek•10m ago•0 comments

The world needs a server reboot, XP reset, and for PunkBuster to be re-enabled

1•conorcleary•11m ago•0 comments

The Webpage Has Instructions. The Agent Has Your Credentials

https://openguard.sh/blog/prompt-injections/
1•everlier•14m ago•0 comments

Apple's Liquid Glass UI Isn't Going Anywhere; Siri Home Hub, Foldable iPhone

https://www.bloomberg.com/news/newsletters/2026-03-15/apple-s-liquid-glass-ui-isn-t-going-anywher...
1•tambourine_man•14m ago•0 comments

Nathan Fillion Says 'Firefly' Animated Series in Development

https://deadline.com/2026/03/nathan-fillion-firefly-animated-series-development-1236754122/
3•Rant423•15m ago•0 comments

Ask HN: Did you ever have a supernatural experience?

2•general_reveal•16m ago•1 comments

BYD shifts to local parts in Brazil factory in bid for market leadership

https://www.reuters.com/sustainability/sustainable-finance-reporting/byd-shifts-local-parts-brazi...
2•kaycebasques•19m ago•0 comments

Thorny issue plaguing lithium-ion batteries laid bare in new study

https://phys.org/news/2026-03-thorny-issue-plaguing-lithium-ion.html
1•Brajeshwar•19m ago•0 comments

Mikk – your AI wrote the code but doesn't know what breaks

1•Ansh_Dhanani•19m ago•0 comments

We do not have a democracy

https://joelx.com/we-do-not-have-a-democracy/
1•silexia•19m ago•1 comments

Show HN: Experiments Mapping the "Primitive Layer" in Language Models

https://github.com/dchisholm125/graph-oriented-generation
1•dchisholm125•20m ago•0 comments

Inverses

https://code.jsoftware.com/wiki/Vocabulary/Inverses
1•tosh•21m ago•0 comments

BYD's Brazil plant secures 100k vehicle orders from Argentina and Mexico

https://carnewschina.com/2026/03/15/byds-brazil-plant-secures-100000-vehicle-orders-from-argentin...
1•kaycebasques•21m ago•0 comments

Show HN: Notebooklm-SDK – Unofficial Node.js/Bun Client for NotebookLM

https://github.com/agmmnn/notebooklm-sdk
1•agmmnn•22m ago•0 comments

Linux 7.0 Lands Improvements to Deal with Rust Changes, Build Reproducibility

https://www.phoronix.com/news/Linux-7.0-rc4-More-Rust
2•Bender•22m ago•0 comments

Open Source PLFM Radar. Up to 20Km Range

https://hackaday.io/project/205190-open-source-plfm-radar-up-to-20km-range/details
1•throwaway2037•22m ago•0 comments

Show HN: AntroCode-A zero-dependency,single-file local AI client,159 clone in 4D

https://github.com/AntroMind/antrocode
1•AntroMind0310•24m ago•0 comments

Dyalog and AI [video]

https://www.youtube.com/watch?v=H_wdKeJ8gt4
1•tosh•25m ago•0 comments

Show HN: Agent 404 – Stop AI agents from hitting dead links and making things up

https://www.agent404.dev/
2•lnbharath•26m ago•0 comments

GlobalDex – AI agent readiness index with WebMCP detection

https://globaldex.ai
1•saeba•27m ago•0 comments

Show HN: Execute local LLM prompts in remote SSH shell sessions

https://github.com/tgalal/promptcmd
1•smudgy3746•29m ago•0 comments

LLM Time

https://graydon2.dreamwidth.org/322732.html
1•WhyNotHugo•29m ago•0 comments