Somewhere on GitHub right now, there's probably a key with your company's name on it.
Maybe a contractor pasted it into a config file two years ago. Maybe your own Claude Code session wrote it into a settings file that got committed on a Friday afternoon. You don't remember. It doesn't matter. An AI agent is already looking for it, and it doesn't sleep, doesn't get bored, and doesn't stop at the first repo.
Los Angeles, November 16, 2026 — Just ask Barracuda. A company whose entire job is keeping hackers out handed a cloud key to an AI vendor for a project, then forgot it existed. The vendor left it sitting in a config file on GitHub. An AI hacking tool called Artex found it. For 44 hours, an attacker walked through Barracuda's cloud, its source code and its Kubernetes clusters, hunting for crypto keys. Then Barracuda had to tell its own customers to throw out their credentials and start over.
“We did not retire the key when the vendor — a company working in AI — finished that work. That is on us.”
Barracuda, via BleepingComputer
The FBI says these tools go from first scan to break-in in under three hours. No zero-day. No genius. Just one key you forgot about, and an AI fast enough to find it before you do.
And here's the part that should keep you up tonight: AI coding has you leaking more of those keys than ever.
Below is how these attacks work, and the two things you can do this week: kill the keys you've already leaked, and hack yourself before someone else does. Both come with step-by-step recipes.
Four numbers that should scare you
- <3hFirst scan to break-inFaster than your team can respond. The FBI says Artex-driven attacks can move from targeting a system to active compromise in under three hours.
- 5 minLeaked key to cloud tenantA key on GitHub is a key in their hands. Microsoft caught attackers using Artex to go from a key exposed on public GitHub into Azure tenants in as little as five minutes, GitGuardian reports.
- 5,343Leaked keys still workingOne file. One tool. GitGuardian found 31,088 secrets on public GitHub inside Claude Code's own settings file, across 23,276 repos. 5,343 still worked.
- 44hAttacker inside BarracudaEven security companies get burned. One unretired vendor key gave an attacker nearly two days inside Barracuda's cloud.
It's not one hack. It's a wave.
On Monday, the FBI sounded the alarm: hackers are turning autonomous AI hacking tools on banks, governments, defense contractors, telecoms and law firms, according to TechCrunch. The tool at the center of it is Artex. It was built so defenders could test their own networks. Now it's pointed at yours.
Its creator tried to kill it. On October 8, 74 days after the first commit, Artex came down, GitGuardian reports. It was already too late. 102 forks and copies popped up that same week, and the FBI says the open source version is still “widely accessible.” It plugs right into the same AI models your engineers use every day, from Anthropic and OpenAI to open source and non-U.S. models.
And Artex isn't even the only one. GitGuardian counted about 45 open source frameworks that turn an AI model into an attacker. On November 7, Shodan showed 1,428 Artex consoles sitting on the open internet. Many didn't even have a login.
| Victim | How they got in | What happened |
|---|---|---|
| Barracuda | A cloud key given to an AI vendor for a past project, never retired, sitting in a config file in the vendor's GitHub repo | About 10 cloud accounts over 44 hours; source code repos, Kubernetes, and the system holding customer XDR credentials |
| ConnectWise | Breach of the vendor, attributed by Microsoft to likely Chinese hackers | Microsoft 365 environments of at least 2,250 customers; data stolen |
| South Korean financial institutions | Weak defenses, including missing multi-factor authentication | Personal data of at least 68,000 people |
Look at that first row again. Barracuda didn't lose to a nation-state with a secret exploit. It lost to a key it forgot about, sitting in somebody else's repo.
Once inside, the attacker went straight for the money: crypto private keys and seed phrases. It tried to plant a container to dig through the servers' files. It tried to make itself a cloud admin, and only that last move was blocked. Barracuda said the attack looked a lot like a recent one at cloud host Railway.
Three hours. Sometimes five minutes.
There's no genius here. Just relentless speed. According to the FBI, every Artex attack runs the same loop.
Step two is where your leaked keys come in, and it is terrifyingly fast. In GitGuardian's lab, an Artex build with no secret scanner found 8 of 9 planted secrets in seconds. It wasn't even told to look for secrets. It was only asked to assess the repo. It doesn't need a key scanner. Give the AI a shell and web access, and it builds one on the spot.
The FBI calls these attacks “noisy.” They can trip your alerts. It doesn't matter. By the time someone on your team opens the alert, the attacker is already done.
“Defenders who rely on spotting malicious activity and then responding to it will often arrive after the attacker has finished.”
Arve Kjoelen, CISO of Barracuda
Your keys are already out there
Here's the part nobody wants to hear: the AI tools your team loves are mass-producing exactly the mistakes Artex hunts for.
GitGuardian found 31,088 secrets on public GitHub inside one single file: Claude Code's own .claude/settings.local.json. Across 23,276 repos. 5,343 of them still worked.
That's one file, from one tool. Now think about everything else. Your developers paste keys into prompts. Agents wire up services and write config files while nobody watches. Keys get hard-coded into source, committed in .env files, buried in AI session transcripts. Your team is shipping more code than ever, and fewer humans read any of it.
If an AI can find your weak spot in three hours, you have exactly one move: find it first.
Fix it today: kill your leaked keys
The scariest leaks now happen where nobody is watching: AI coding sessions. Codiedev watches them. It captures sessions across Claude Code, Codex and Cursor, and every company gets a Security page that names each exposed key, where it surfaced and which session leaked it. Key values are scrubbed before anything is stored. Nothing in the product ever shows a key in full.
Here's the recipe. It takes you from “oh no, we have leaked keys” to “every single one is dead,” right from your terminal. Don't want to type commands? Hand any step to Claude Code in plain English.
Connect the CLI (once)
Ask Claude Code: “Install the Codiedev CLI and connect it.” Paste your token from Integrations → Claude Code when asked.
List what's exposed
codiedev security keysThis lists the open keys that are yours, in your repos, or assigned to you. Admins can add --all to see every key in the company.
Find out how each key got there
codiedev security show <key>This shows where the key was seen, each session it appeared in, and masked excerpts of what put it there. It also links to the provider page where you rotate it. A placeholder, test, seed or example value is not a real key.
Close out the false alarms
codiedev security resolve <key> not-a-key --note "test fixture value"Get real keys out of the code
codiedev security move <key> --dry-run
codiedev security move <key>This moves a key that's hard-coded in the repo into a gitignored .env file and changes the code to read it from an environment variable. It prints only masked lines.
Rotate the key. Do not skip this.
This is the step that actually saves you. Moving a key out of your code does nothing if it was ever committed, pasted into a prompt or shared. It's still out there, and it still works. Revoke it in the provider's console and issue a new one. This is exactly how Barracuda got burned: a key that stayed alive long after anyone needed it.
Record the fix
codiedev security resolve <key> rotated --note "hard-coded in billing client; moved to env, rotated in Stripe"That note is your paper trail. Barracuda's logs weren't detailed enough to rule out what the attacker touched, so its customers paid the price in uncertainty. Don't put yours in that spot.
Stop new leaks
Admins can turn on “Stop prompts with a key,” which blocks a prompt that contains a key before it reaches the model.
Or skip the steps and give Claude Code one prompt:
Go through my open Codiedev security keys. For each one, check how it got in.
Mark placeholders and test values as not-a-key. For real keys hard-coded in
this repo, dry-run the move, then move them to .env. Never print a key value.
Give me the list of keys I need to rotate with each provider, with links.Claude Code does the digging and the code changes. You do the rotation, because only you can log in to the provider. Block out an afternoon. It's a lot cheaper than 44 hours with an attacker in your cloud.
Two habits to start today. First, put AI tool config files like .claude/settings.local.json in .gitignore. That one file leaked tens of thousands of keys. Second, keep a list of every key you hand a vendor or contractor, and kill it the day the work ends. Barracuda's key didn't even leak from its own repo. It leaked from the vendor's. You can't scan someone else's GitHub. But you can make sure the key is already dead when an attacker finds it.
Fix it forever: hack yourself first
Killing leaked keys slams the doors you know about. The next break-in will come through one you don't. So stop waiting to get attacked. Build your own attacker, aim it at your code every week, and fix what it finds before Artex gets there.
We do this to ourselves every week. Our agent thinks like an attacker and hunts for exploits it can actually pull off, including chains of tiny bugs that look harmless alone and are devastating together. For every one it confirms, it opens a fix PR. It costs about $4 to $5 a week. The only human step is reviewing the PR.
How it works
It's one Codiedev agent, deployed from a TypeScript folder. Each run starts in a fresh sandbox that is deleted when the run ends.
- Pick the work. It clones the repo read-only, lists the entry points (API routes, webhooks, server actions, jobs) and takes the next batch. A cursor in agent state keeps its place, so the whole codebase gets covered every few weeks.
- Find. A model with read-only file tools thinks like an attacker. For each entry point, it works out who could call it, follows the guards into other files, and reports only exploits it can describe end to end: who the attacker is, the exact request, and what they gain.
- Attack. One open-ended red-team pass tries to break in by any route, hunting for chains of small bugs, like an id that leaks in one response plus an endpoint that trusts that id.
- Verify. A second model call tries to disprove each finding and cites file and line. This is the one design choice that matters: without it, most findings are false positives and developers stop reading the PRs.
- Fix. Each confirmed finding of medium severity or higher gets a fix PR from a bot account. It never merges.
- Report. One summary per run: what was checked, what was confirmed, what was rejected and why. If nothing was found, it says so.
- Remember. Findings are deduplicated so the same issue never opens a second PR.
Build yours
The first run is a full baseline scan of every entry point. After that, every week it scans what changed, re-scans a slice of old code (the baseline can miss things, models get better, and new code can make old code exploitable), and runs one open-ended attack pass across the whole repo. Run this prompt in Claude Code after the CLI is connected. Swap in your repos, day and timezone:
Build a Codiedev agent called security-scan (use `codiedev agents init`).
It runs daily but only works on Fridays (Central time). For each repo in REPOS:
- First run: a baseline. Audit every entry point (routes, webhooks, jobs) in
batches of ~25, one child run per batch, saving progress so it can resume.
- Every Friday after that, three parts:
1. Audit what changed since last Friday, plus the code that calls it.
2. Re-audit the next 50 entry points of the whole codebase, keeping a
cursor in agent state and wrapping to the start, so old code is
re-checked every few weeks.
3. One open-ended attack pass across the whole repo that looks for chains
of small bugs, using parts 1 and 2 as leads.
Use two model calls for every finding: one acts as an attacker and reports
only exploits it can describe end to end; a second tries to disprove it.
For each confirmed finding of medium severity or higher, open a fix PR
(never merge). Post a summary to our team webhook after every run, even
when nothing is found.
Repo access comes from secrets REPO_READ_TOKEN and REPO_WRITE_TOKEN.
Test it locally first, then deploy it.Claude Code reads the AGENTS.md that Codiedev puts in the agent folder, so it already knows the agent SDK.
Set it up
- Build the agent: paste the prompt above.
- Give it repo access: create a GitHub or GitLab token, read-only for scanning and write only for fix branches. Then: “Add these as secrets on the security-scan agent.” Secrets reach each run as environment variables and never appear in code.
- Notifications: “Add our Slack (or Teams) webhook URL as the NOTIFY_WEBHOOK_URL secret.”
- Test locally: “Run security-scan locally against payments-api and show me the output.” Nothing is deployed.
- Deploy and run the baseline: “Deploy it, then run the baseline on payments-api now.”
- Check on it: “How did security-scan's last run go?” Or open Agents to see runs, logs and cost.
| Control | What it does |
|---|---|
| Budget | budgetUsd in agent.json caps monthly model spend |
| Approved models | Only models your admins approved in the LLM Gateway |
| Kill switch | Stop it in Agents or ask Claude Code. Cancels runs and cuts model access. A manager or admin can do it without the owner |
| Where it runs | Codiedev cloud by default, or your own AWS account. Code and secrets are deleted after each run |
| Human gate | It opens PRs and never merges. Your review and CI decide |
| Audit trail | Every run's input, log, cost and child runs stay in Agents and Traces |
Make it better over time
Every run shows up in Codiedev → Traces automatically: model calls, cost, model used and errors. Ask Claude Code to show the week's failed runs, turn a missed bug into a test case, compare a new prompt across two models before you ship it, or have a judge model score 10% of runs for accuracy.
What this won't save you from
None of this stops an attack that's already in progress. None of it replaces multi-factor authentication, which the FBI says was missing at several of the South Korean financial institutions Artex tore through. If MFA isn't on everywhere, stop reading right now and go turn it on.
But here's the truth about Artex: it doesn't break in with genius. It breaks in with the key you forgot, the vendor you never offboarded, the code nobody reviewed. And it does it faster than your team can wake up.
So don't make it easy. Kill your leaked keys today. Hack yourself every week. Make the AI attacker work for it, and make it come up empty.
Sources
- TechCrunch — “FBI says Artex AI open source hacking tool used to breach networks in ‘under three hours’” (Nov 16, 2026)
- BleepingComputer — “Barracuda links cloud breach to ARTEX AI-powered cyberattack” (Nov 16, 2026)
- GitGuardian — “Beyond ARTEX: 45 Agentic Attack Frameworks, What They Hunt For, and How to Find Them” (Nov 9, 2026)
About Codiedev
Codiedev is mission control for AI engineering. It connects AI adoption, model spend, security, and shipped outcomes from real engineering work, giving leaders the control layer to drive performance and ROI across every model their teams use.
Find your leaked keys before Artex does.
See every key your team's AI sessions exposed, where it came from, and what to rotate, then put an attacker on your own code every week.
Book a 20 min demo