kosa8 / Cybersecurity / Swarm security
Topic · Multi-agent and swarm security
Swarm security: securing multi-agent systems, one sealed agent at a time
Updated
One agent working one task is easy to reason about. A swarm is many agents at once: a planner handing work to workers, twenty copies chasing twenty leads, agents reviewing each other's output. That is fast, and it gives every agent risk more places to start and more paths to spread. This page covers what multi-agent security means, the risks that only appear once agents work together, the controls that keep a failure inside one agent, and how kosa8 applies them: one microVM per agent, a swarm forked from one prepared sandbox, per-agent network and keys, and one audit trail across them all.
01What swarm security means
Swarm security, or multi-agent security, has two sides. The first is keeping any multi-agent system safe, whatever its job: coding, data analysis, research or support. The second is using a swarm of agents for security work, such as triaging alerts, detonating samples or red-teaming, where the input is hostile by design.
Both need the same thing underneath. Each agent must be cut off from the others, from the host and from the open internet, so that if one agent is fooled or hit by malware the damage stops at that agent. And every action of every agent must be recorded in one place, so the swarm can be understood as a whole. A swarm does not create new kinds of attack. It gives the attacks covered in AI agent security more places to start and more paths to travel.
02Risks specific to multi-agent systems
- Agent-to-agent prompt injection. Agents read each other's output. An instruction planted in one agent's input can ride along in its report, summary or handoff and be followed by the next agent, and the one after that. One poisoned web page can become a swarm-wide problem.
- Shared credentials. If every agent is started with the same key, a key leaked by any one of them belongs to the whole swarm, and the logs at the provider cannot say which agent used it.
- Shared filesystems. Agents that share a working directory or volume can overwrite each other's files, plant scripts another agent will run, or read data meant for a different task.
- Privilege escalation through delegation. An orchestrator with broad rights hands work to a worker; a worker with narrow rights asks a more privileged agent to act for it. Either way, the effective permission is the widest one in the chain.
- Collusion and the confused deputy. A low-trust agent persuades a high-trust agent to use its tools or approvals on its behalf. Neither agent breaks a rule on its own; together they do something no one approved.
- Runaway fan-out and cost. An agent that can start agents can start too many, and a loop between agents can run until someone notices. Compute, API spend and blast radius all grow with the count.
- Lost provenance. When an action happens three handoffs from the original request, it becomes hard to say which agent did it, on whose input, and who was accountable. Fifty agents make fifty logs, and one bad action hides among them.
- Shared tools. One MCP server used by every agent is one place to change the behaviour of all of them, if its tool description changes after you approved it.
OWASP's Top 10 for Agentic Applications for 2026 names several of these, including insecure inter-agent communication (ASI07), cascading failures (ASI08) and rogue agents (ASI10).
03Controls for securing multi-agent systems
The principle is to secure each agent as if it were alone, then control the few ways agents are allowed to touch each other.
- One isolated machine per agent. Its own kernel, its own disk, its own network. No shared filesystem, so one agent cannot plant files in another.
- No network path between agents. Agents exchange results only through channels you declare, and every exchange is recorded.
- Per-agent network rules. Each agent reaches only the hosts its job needs, enforced outside the agent.
- Per-agent keys, held outside. No agent holds a real key; each request is signed on the way out, so a compromised agent has nothing to pass on.
- Per-agent identity and scope. Each agent has its own identity, tool scope and accountable owner, so delegation cannot borrow another agent's rights and every action names its agent.
- Approvals bound to one agent. A risky call waits for a person, and the approval is for that agent's call only, so another agent cannot spend it.
- Limits on fan-out, and one stop for all. A cap on how many agents run at once, and a kill switch that halts every member together.
- One record across the swarm. Every agent writes to one tamper-evident log that the agents cannot edit, forwarded to the tools your security team already uses.
04How kosa8 applies them
kosa8 gives every agent in a swarm the same controls it gives a single agent, and adds commands that act on the swarm as a group. A swarm is forked from one prepared sandbox, so every member starts from the same warm state: the same evidence loaded, the same tools installed.
| Control | How kosa8 does it |
|---|---|
| One machine per agent | Each member is its own microVM with its own kernel and disk, forked from a checkpoint of the parent. On kosa8 Cloud one fork makes up to 1,000 copies. |
| No path between agents | Members cannot reach each other or your local network. They pass files only with kosa8 swarm send, only along links you declared with --link, and every send is in the audit log, allowed or refused. |
| Per-agent network | Every member gets the swarm's egress policy (--allow or --no-internet), enforced on the host. A member never reaches more than the parent could. |
| Keys outside | The egress broker on the host adds API keys on the way out; members hold placeholders. |
| Identity and scope | Agent tokens tie each agent to a tool scope and an accountable human owner. The scope comes from the token's record, never from what the caller asks for. |
| Approvals bound to one agent | A held call is held for the agent that made it; its approval cannot be spent by another agent making the same call. |
| Fan-out limits and a stop | Forks count against your plan's limit on copies at once, and every plan limit is a hard one. kosa8 swarm pause stops every member at once; kosa8 swarm kill also marks the swarm killed so it cannot be resumed. |
| Shared threat feed | kosa8 threat block adds a host to every sandbox's network policy, running ones included. kosa8 lab detonate adds the hosts a sample contacted. |
| One record | Every action of every member goes into the hash-chained audit log, marked human or agent. kosa8 compares members' egress and writes outliers to the log as alerts: a host only one member tried, a member sending far more than the rest, a burst of refused connections. |
Swarms run on Apple silicon Macs, x86-64 Linux with KVM and kosa8 Cloud (kosa8 cloud swarm up), on the Pro plan and above. The full reference is the swarms and threat feed guide, and the use case is on swarm security on kosa8.
05A worked example: a phishing campaign, worked by a swarm
Say a phishing campaign has delivered twenty attachments to staff. One triage sandbox is prepared with the analysis tools and the mail export, then forked into a swarm of twenty members, one per attachment, so no agent waits for tools to install.
Each attachment is detonated with kosa8 lab detonate in its own lab machine on a simulated internet, so nothing it does reaches a real host, and the hosts it contacted go into the threat feed for every sandbox. Members can reach only the threat-intelligence service on their allow-list, using a key they never hold. They pass findings to one reporting member along a declared link, not through shared memory or a shared disk, so a malicious string in one report cannot run code in another agent. Blocking a domain at the company firewall is a risky action, so it waits for an analyst.
If one member starts contacting a host none of the others tried, that shows up as an alert in the audit log and your SIEM; the analyst decides whether to block it. At the end, kosa8 evidence export packages every step of every member for the incident report. The longer version is in the post Swarm security on kosa8: many agents, each one sealed.
06What kosa8 does not cover
- What agents say to each other. There is no protocol-level protection of inter-agent messages (OWASP ASI07 is not covered). A file sent along an allowed link can carry an injected instruction; kosa8 limits what the receiving agent can do with it, not what it reads.
- Judging behaviour. kosa8 is the isolation layer, not a detection product. Swarm anomalies compare network traffic between members and are alerts: they block nothing on their own, and they do not judge what an agent decides.
- Model API spend. Plan limits cap sandboxes and copies; tokens spent at a model provider are not metered by kosa8.
- Hosted Cloud gaps. On kosa8 Cloud,
swarm send, links and swarm rewind are not available yet, and the rare-host alert is not reported. The audit log, evidence export and signed policy are features of the software on your own machines and hosts.
kosa8 has no SOC 2 report yet (SOC 2 Type II is in progress, with the report expected in January 2027) and has not had an external penetration test; the Trust Center has the detail. Swarms are on the Pro plan and above; plans start at $29 a month. Pricing.
07Questions
What is swarm security?
Running many AI agents at once, for security work or any other job, so that a failure in one agent stops at that agent. On kosa8 each member of a swarm gets its own microVM, its own network rules and its own audit trail, and the swarm can be paused or killed as a group.
What is multi-agent security?
Securing systems where several AI agents work together: planners, workers and reviewers that pass work and output between them. On top of each agent's own risks, it covers prompt injection passed between agents, shared credentials and files, privilege gained through delegation, runaway fan-out and tracing an action back to the agent that took it.
Can agents in a kosa8 swarm talk to each other?
Not over the network. Members are cut off from each other and from your local network. They pass files only with kosa8 swarm send, only along links you declared, and every send is in the audit log, allowed or refused.
Can one compromised agent leak the swarm's API key?
Not a brokered key. Keys stay with the egress broker on the host and every member holds a placeholder that is worthless anywhere else. While a member runs, the placeholder can still be spent along its allowed route, so scope the key at the provider too.
How do I stop a swarm that goes wrong?
Run kosa8 swarm pause to stop every member at once, or kosa8 swarm kill, which also marks the swarm killed so it cannot be resumed. Locally, kosa8 swarm rewind puts every member back to the swarm's start point.
Does kosa8 detect a rogue agent in a swarm?
Partly, as alerts only. kosa8 compares members' network traffic and writes outliers to the audit log, which reaches your SIEM. It does not judge an agent's behaviour or block anything on its own; you decide what to block with the threat feed.
08Guides and deep dives
- Swarm security on kosa8: many agents, each one sealed
- Use case: run many agents, keep every one sealed
- AI agent security: the threat model and the controls
- Cybersecurity for AI agents, topic by topic
- Zero trust for AI agents: non-human identity, secrets and access
- kosa8 for security operations: detonation lab, ranges and SOC agents
- Fork a running sandbox
- Git worktrees vs sandboxes for parallel coding agents
- Control map against OWASP, MITRE ATLAS and NIST (self-assessed)
- Docs: swarms and the threat feed
09Get started
kosa8 installs with one line on macOS, Linux and Windows (WSL2), or runs hosted on kosa8 Cloud. Planning a swarm of agents? Book thirty minutes to walk through how its members should be separated.
Start free Book a security review See pricing
Start free, no card → Pick a plan when you need more. Plans start at $29 a month.