cd /news/ai-agents/securing-ai-agents-part-9-eight-sett… · home › topics › ai-agents › article
[ARTICLE · art-182585] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Securing AI Agents, Part 9: Eight Settings to Review Today

Ham of FX Hamrat published the final installment of a nine-part series on securing AI agents, distilling prior incident findings into eight configuration settings users and businesses can review immediately. The recommendations include running agents under least-privilege accounts, keeping secrets such as .env files outside the agent's workspace, disabling no-confirmation modes outside test environments, restricting outbound destinations, and enabling tamper-resistant logging. He cites IBM research finding 63% of breached organizations had no AI usage policy or were still drafting one, and notes that even all eight measures cannot eliminate the risk of trickery without an external control that blocks the agent's final action.

recommendation

Run agents under a non-admin account with secrets outside the workspace, keep confirmation mode on outside test areas, and restrict outbound destinations to what the task needs.

more in playbook: Securing agents and AI tools
read3 min views1 publishedDec 5, 2026

This article was written with the help of AI. The facts and figures were checked against the sources listed at the end.

Hi, I'm Ham from FX Hamrat. Last time I described watching the exit. This time I sum up what you can do yourself, starting today. Each item is a spot that actually became a hole in the incidents of Parts 3 and 4.

Give the AI less power, keep secrets away from it, and do not make no-confirmation mode your everyday setting. That alone makes the damage from most of these incidents far smaller.

Eight things to review today. The top four are easy for individuals. The bottom four matter especially for business use.

An AI agent runs with the rights of whoever starts it. Run it as an administrator, and the AI can touch the whole PC. Use your everyday account, and keep the work you hand to the AI inside a dedicated folder.

If files containing passwords or API keys (such as .env) sit in the AI's work folder, the AI can read them. That is exactly where s1ngularity looked. Keep keys outside the workspace, with only the permissions needed and short expiry. Many AI agents have a setting that skips confirmation and allows every action. It is handy when you are in a hurry, but if an instruction slips in while it is on, no one is there to stop it. If you use it, use it only in a test area where nothing important can break.

A README for an unfamiliar project says "run this command," and you let the AI just do it. When I tested this with real AI agents, this kind of trick got through at least once on all three models I tried. Be especially careful with commands that fetch something from the internet and run it immediately without checking.

Limit the email addresses, chats and outside services the AI can send to, to those your work needs. In both EchoLeak and the GitHub case, the leak happened at the final step of sending data out.

A backup the AI can reach can be deleted along with everything else. As with ransomware, keep copies somewhere disconnected or set to be undeletable.

If you cannot tell afterwards what happened, you cannot fix it. Turn on settings that record the commands the AI ran and where it sent things. Storing the records where the AI cannot rewrite them gives extra peace of mind. In IBM's research (Part 7), 63% of breached organizations had no AI usage policy or were still writing one. Which AI may be used, by whom, with what data? Even one page of rules to start with reduces shadow AI used without anyone knowing.

To be honest, doing all eight does not bring the chance of being tricked to zero. Items 1 to 3 shrink the damage, and items 5 to 7 help you notice. That is the limit of what you can do on your own.

Beyond that, as Part 8 explained, you need an "exit watchman" that stops the final action no matter what the AI read. That is the end of this series. Thank you for reading all nine parts.

── more in #ai-agents 4 stories · sorted by recency
── more on @fx hamrat 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/securing-ai-agents-p…] indexed:0 read:3min 2026-12-05 · —