An agent with network access: what to lock down first
Giving an AI agent access to a production firewall is scary, and rightly so. These are the five guardrails we put in place before letting ours touch anything.
The question we hear most is not "does the agent get it right?". It is "what if it changes something on its own?". The honest answer is that no model is reliable enough for that question to depend on it. So safety cannot live in the model. It has to live around it.
1. The account only reads
The first guardrail is the simplest and the strongest: the account the agent uses on the device has no write permission. If the agent decides, by mistake, to delete a rule, the firewall itself refuses.
config system accprofile
edit "agent-read-only"
set sysgrp read
set netgrp read
set fwgrp read
set vpngrp read
set loggrp read
set utmgrp read
next
end
This sounds obvious, but many integrations start with the admin account "just for testing" and never change.
2. The connector refuses
Between the agent and the device there is a connector. It has its own list of what may pass: reads only. A command outside the list never reaches the device, even if the account would allow it.
Rule of thumb: two independent guardrails for the same thing. If one fails because of a configuration mistake, the other holds.
3. The red list
Some changes never go into a plan unless a human writes them by hand: management interface, default routes, admin accounts, high availability. The agent can investigate these areas. It cannot propose changing them.
4. Approval outside the chat
When the agent proposes a change, it becomes a literal plan: the exact commands, the check and the rollback. A person approves that text, and only that text. A "go ahead" said in the conversation does not count, because the conversation is exactly where the agent can be tricked.
5. Someone else executes
The agent never applies the plan. A separate executor applies it. It checks that the plan matches the approved one byte for byte, runs it line by line and measures the result. If the check fails, it rolls back without asking.
At the end, there is a record: who asked, who approved, what changed and what was measured afterwards. That record is what lets the team sleep.
Want to see these guardrails working on your network?
request a demo