Use case · Egress allow-list · Updated 2026-11-24
Bound what a hijacked agent can reach.
kosa8 enforces each agent's network allow-list on the host, outside its microVM, so even a prompt-injected agent running as root can reach only the hosts you listed; kosa8 bounds what a hijacked agent can do, it does not stop prompt injection itself.
01Who it is for
- Teams running agents that read untrusted input (web pages, issues, email, documents) and also have tools and network access.
- Security reviewers who need the data-exfiltration path closed by something the agent cannot switch off.
02How to do it
On kosa8 Cloud, create the sandbox with only the hosts it needs. Nothing else leaves.
kosa8 cloud sandbox create --no-internet --preset pypi --allow api.github.comTighten or cut it while the agent runs; the new policy applies from the next packet.
kosa8 cloud egress set sbx_abc --no-internetOn your own machine, the same allow-list is enforced in the host's userspace network.
kosa8 sandbox create agent --egress-allow api.github.comSee the policy and every refused attempt (each one is also in the audit log).
kosa8 sandbox egress agent
Make it the organization's ceiling (admin key):
curl -s -X PUT https://api.kosa8.com/v1/org/egress \
-H "Authorization: Bearer $KOSA8_ADMIN_KEY" -H 'Content-Type: application/json' \
-d '{"default":{"presets":["common"]},"enforce":true}'
03What this does not do
- It does not detect or stop prompt injection. It limits where a hijacked agent can send data and what it can call.
- An allowed host is allowed for everything. If
api.github.comis on the list, a hijacked agent can use it with whatever token it holds; keep keys in the secrets broker and scoped. - On kosa8 Cloud a sandbox with no policy reaches the internet (the default); set a policy per sandbox, or an enforced organization default.
- A deny by name is refused at DNS only; use an allow-list when it matters.
- Content is not inspected: kosa8 records host, port and, for brokered or plain HTTP, method and path, not bodies.
04What it costs
Egress rules are on every plan. The free Starter tier reaches only a fixed allow-list (registries, GitHub, Hugging Face, model APIs); an organization-wide policy needs a plan. Every plan, limit and rate: pricing.md (for agents) or the pricing page.
05Read more
06Try it now
Run code in a kosa8 sandbox in your browser, no account, or install kosa8 and start free with no card.
Updated 2026-11-24