Definition

An agent harness is the software around an AI model that turns it into a working agent. The harness runs the loop, supplies tools and context, holds state between steps, enforces permissions and checks the result. Engineers summarize it as: agent equals model plus harness.

An agent harness for cybersecurity, also called an AI SOC harness or a harness for agentic cyber security, does that job for defensive work: threat hunting, investigation, detection engineering, red team validation and response. In a security operations center the harness, more than the model, decides what an agent may read, what it may touch and how a person learns what it did.

Why the SOC is the hard case

Meta's Rule of Two advises that an agent combine at most two of three properties until prompt injection can be reliably detected: it reads untrusted input, it reaches sensitive systems or data, and it can change state. A SOC agent holds all three. It reads telemetry that attackers write, it reaches the most sensitive systems in the organization, and its job is to act. A security agent harness therefore needs tighter controls than a harness for a coding agent.

Why run length matters

In its November 2026 update, METR measured frontier models finishing tasks that take skilled people about 40 hours, half the time, with that horizon doubling roughly every 3.6 months. Defenders can now run agents on hunts and validation campaigns that last days. Over a long run small faults compound: context degrades, credentials outlive their task, and an agent may report success it did not achieve. A harness built for a five-minute alert triage does not cover these faults. A harness for long-running agents must.

Seven requirements

Published guidance from Anthropic, Google, Meta, OpenAI, OWASP and the 12-Factor Agents project converges on seven requirements for a harness that runs agents for long periods.

  1. Durable state. Run state lives outside the model's context, so work pauses, resumes and survives a restart.
  2. Owned context. The harness decides what the model reads on each turn, and standing instructions survive compaction.
  3. Verified completion. A check outside the agent establishes that the work is done.
  4. Limited powers. Authority is scoped to the task, with caps on blast radius, rate and spend.
  5. Untrusted input kept apart. The agent that reads attacker-controlled content is not the agent that decides and acts.
  6. Human control. A named person can stop the agent, and high-risk acts go to a person.
  7. Observable operation. Actions, plans and failures are recorded and surfaced.

These requirements exist to control and focus capable models, not to prop up weak ones. Autonomy Runs Long covers each in more depth.

Open, model neutral, in your environment

Three properties of the harness matter more as agents run longer.

  • Open source. The harness holds the controls on an agent that carries your credentials for days. With an open source agent harness your team can read, test and change those controls.
  • Model neutral. The leading model changes several times a year. When controls, memory and evidence live in the harness, a team can adopt a better model, or a local one, without rebuilding safeguards.
  • In your environment. A long-running agent accumulates hypotheses, attack paths and analyst verdicts. Where the harness runs decides who holds that learning. See What is a System of Learning?

Harness engineering in security

Harness engineering is the practice of designing and improving the harness: writing the declared intent, scoping tools and permissions, setting completion checks and reviewing the evidence each run leaves behind. In a SOC it sits beside detection engineering. Detection engineers decide what deserves attention. Harness engineers decide what agents may do about it, and under what proof.

Questions to ask a vendor

  • Can we read the harness code and the rules that govern agent behavior?
  • Can we choose and change the model, including a local model?
  • Where do run state, memory and analyst verdicts live, and who can take them away?
  • How does the harness verify that an act succeeded, apart from the agent's own report?
  • What caps apply to an agent's authority, rate and spend during a multi-day run?
  • Who can stop an agent, and what happens when the identity provider is down?
  • How is pricing affected when a single run lasts two days?