dzCodes (@dzcodes) header
dzCodes (@dzcodes) profile picture
Lisbon, Portugal
Joined February 2021
Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)Photo by dzCodes (@dzcodes)
I've been writing about agent governance for months. This is the first time I've been able to show it instead of explain it. 45 seconds, and yes, there's a dragon guarding the keys. feir.ai
API keys, passwords, wallet keys. One bad instruction and a key walks out the door. Here's what Feir does about it: keys in a vault the agent can't open, one checkpoint that denies anything not allowed, and every action sealed into a log an auditor verifies on their own machine.
73
"the agent only has read access" true right up until someone asks "just this once, for the demo"
50
Averin is out. Second out of 4 main components for FeirOS opensourced, two more to go. Plus more cool things coming.
Averin v0.1.0-alpha is out: a tamper-evident flight recorder for AI-agent activity. Signed, hash-chained records, verifiable offline without trusting the machine that produced them. Source-only alpha. Apache-2.0. github.com/FeirAI/averin
1
65
1/ Agents + long-lived secrets is a mess. I kept putting API keys (and PGP keys, SSH keys…) into agent environments and watching them leak into prompts, tool calls, and logs. So I built Vultrino – a credential proxy for the AI era.
3
2
126
2/ Core idea is simple: Agent only gets an alias + an action surface. Vultrino holds the real secret and injects/authenticates/signs on the other side. Never in the prompt. Never in the context window. Never in the agent’s memory.
1
31
if your agents can act, you need to know what they did and who said yes. building exactly that. looking for design partners, free in alpha, I'll do the integration with you feir.ai/design-partners
1
1
103
A file you never read is giving your AI orders. Your assistant obeys a rules file in your repo, and an attacker can hide a line in it that tells your AI to backdoor your code. You can't even see the line. 🧵
1
133
The setup: Cursor, Copilot and Claude all read a config file in the project (.cursorrules, CLAUDE.md, copilot-instructions). It defines how they write code, and they follow it on every generation. It's an instruction channel, not just settings.
1
73
Your AI made up a package name. An attacker was waiting for it. It suggested a library, you ran the install, and it was malware. The AI invented the name itself. 🧵
1
1
84
It's called slopsquatting. Typosquatting waits for you to fat-finger a package name. Slopsquatting waits for your AI to hallucinate one that was never real, then claims that exact name.
1
30
Your AI tools update themselves. One of them just turned malicious. No prompt, no warning. The MCP server you vetted is someone else's code now, still holding the keys you approved on day one. 🧵
2
1
95
It's a rug pull. A legit tool ships clean, earns your trust, then a later update turns hostile. Same name. Same install line. Brand-new code. The first one caught in the wild impersonated an email service and quietly copied every message it sent.
1
23
not thinking small anymore, going to tease for a bit 👀
59
Two safe tools just leaked your whole database. Both passed review. Both are approved. Chained, they're an exfil pipe. 🧵
1
1
1
159
The setup: Tool A reads your database. Read-only. You approved it. Tool B sends an email (or POSTs to a URL). Also approved. Each one is genuinely safe on its own.
1
25
You cleared the chat. The backdoor stayed. One poisoned note in your AI agent's memory and it serves the attacker in every future session. Here's where it actually lives — and how to kill it. 🧵
2
1
1
97
Most attacks against an agent die when the session ends. Context poisoning doesn't. The malicious instruction isn't in the chat you closed. It's in the store your agent reloads on boot.
1
33
give it backkkk
Wait - so Amazon, one of Anthropic’s biggest investors, allegedly jailbroke Claude and then snitched to the U.S. government? This cant be real. What.
68
You pasted a link into Cursor. The page told it to read your .env — and it listened. 🧵
1
1
73
This is indirect prompt injection. The attacker never touches your agent. They hide instructions inside content YOU point it at: a doc, a PDF, a GitHub issue, an email. You open the door.
1
33
Someone is draining your API quota at exactly the rate limit - 24/7. Your limit isn't stopping them. It's pacing them. 🧵
1
2
94
A rate limit can't be blown past - so a compromised agent doesn't try. It just waits it out. ~$0 per call, unlimited patience, hammering your paid APIs all night. You think the limit caps the damage. It only paces it.
1
1
49
to piggyback on my last post, I updated vultrino with one use tokens and option to require approval before agents can make authenticated action, check it out! github.com/zachyking/vultrin… open source, make it yours, or create some plugins and open PR
The API key you gave your agent is already stolen. Not "could leak." Stolen. Here's why rotating it changes nothing - and what actually does. 🧵
49
The API key you gave your agent is already stolen. Not "could leak." Stolen. Here's why rotating it changes nothing - and what actually does. 🧵
1
1
99
A model-assisted attacker doesn't scan or wait for a leak. It reads your whole repo in seconds. Static keys are the first thing it surfaces: sk-… · Supabase service_role · AWS keys All greppable in one pass.
1
31
5 prompts your coding agent won't run unless you tell it to. 45% of AI-generated code still fails security tests. Bookmark these and stop being the 45%. 🧵
3
1
1
108
2/ Prompt 1 — threat-model me first, code me second. > Produce a compact threat model: actors, sensitive data, trust boundaries, entry points, abuse cases, and the top 3 controls you'll enforce. Ask follow-ups if assumptions are missing. Catches: missing auth boundaries, exposed admin routes.
1
72
Your AI agent is freelancing for the attacker — and it doesn't even know it. 8 things to know before you install your next skill. 🧵
1
1
55
What's a "skill," really? A mini-app your agent loads on demand — instructions, scripts, files, tool logic. It runs as YOU, with everything you've connected. Treat it like a prompt → you get popped.
1
50
Your vibecoded app is leaking secrets right now. 5 places they're hiding — most builders have at least 2. 🧵
1
2
123
Your `.env` is in your GitHub. Bots watch new commits for keys. Push-to-abuse is minutes. Rotate first, apologize later.
1
41