June 19, 2026

Bot caught sniffing passwords

Hide Secrets from AI Agents and NPM install using Airgap

A new tool promises to hide your passwords from runaway AI helpers — but commenters aren’t sold

TLDR: airgap is a Linux tool that tries to stop AI helpers and shady installs from seeing your real secrets on your computer. Commenters think the idea is smart but are already arguing it may not fix the bigger problem: giving powerful AI tools too much access in the first place.

A new Linux-only tool called airgap is pitching itself as the digital babysitter for the "let the AI do it" era: it hides secret stuff like passwords, app keys, and login files from AI assistants and from shady software that tries to snoop during app installs. The pitch is simple and very 2026: if your bot is rummaging through your project, it should see fake-redacted secrets, not the real jackpot. And if a suspicious install script suddenly wants to peek into private files, airgap stops and asks first.

But the comments? Instant side-eye. The strongest reaction was basically: cute idea, but does it actually solve the real problem? One early commenter, blcknight, came in swinging with the classic "okay, but if the bot can use the file, can’t it still get the secret?" energy. They also argued the bigger danger may be the AI tool’s own access to your cloud accounts and paid model services, saying proxy-based systems like OneCLI and OpenShell feel more elegant. In other words: the community wasn’t just debating the tool — they were debating the entire philosophy of trusting AI agents in the first place.

The mood was a mix of paranoia, practical concern, and gallows humor. The article’s horror story — malware spreading through package installs and stealing tokens like a digital raccoon in your junk drawer — gave the thread a very "we are absolutely living in cursed times" vibe. The unspoken meme hanging over the whole discussion: developers now need protection not just from hackers, but from their own overeager robot interns.

Key Points

  • The article presents airgap as a Linux tool that hides secrets from AI agents and gates file access during npm installs.
  • It says secrets commonly stored in `.env`, `~/.ssh`, and `~/.npmrc` can be exposed by AI agents, malicious plugins, or npm install hooks.
  • The article cites malware campaigns including Shai-Hulud, Miasma, pgserve, and a fake tanstack package as examples of install-time secret theft.
  • Shai-Hulud is described as a self-replicating npm worm that stole npm tokens, GitHub tokens, and cloud credentials, then used stolen npm tokens to spread through republished backdoored packages.
  • The article says airgap works by running programs in new namespaces and routing filesystem access through a FUSE layer that redacts secrets or prompts for permission on unexpected file reads.

Hottest takes

"If it sources the file can't it just read the env?" — blcknight
"missing the important step of keeping the LLM credentials from the agents themselves" — blcknight
"MITM proxies seems more elegant to me" — blcknight
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.