artificial intelligence

Distributing Security Controls Through Harness Engineering

arXiv:2607.25890

summary

The paper presents a custom harness (SHarD) that embeds OS sandboxing, skill scanning, and tool restriction into commercial AI coding agents, allowing security controls to be distributed via a single install and achieving full compliance with an OWASP‑derived test suite.

Abstract

AI coding agents are being adopted at historic speed, yet security and risk concerns remain the primary barrier to scaling agentic AI across organizations. Existing security controls for coding agents are not systematically distributed to engineering teams, and vendor-native solutions introduce ecosystem dependencies that may not suit every deployment context. This paper investigates whether off-the-shelf security controls can be implemented on commercial AI coding agents and scaled to a distributed user base via a custom agent harness. A phased testing methodology was applied across four agent configurations --- two commercial agents with and without controls, a baseline harness, and a security-hardened harness --- using a 23-test suite derived from the OWASP Top 10 for Agentic Applications. SHarD (Secure Harness Distribution), a distributable harness built on the Pi agent harness, demonstrated that three categories of security controls --- OS sandboxing, skill scanning, and tool restriction --- can be embedded and distributed via a single install command while retaining equivalent efficacy to direct installation on commercial agents. SHarD achieved an adjusted score of 100\%, matching the best securely configured commercial agent, with no regression across any test category. Notable observations include evidence that model non-determinism produces inconsistent security outcomes and that autonomous agent behavior can cross system boundaries in ways that OS sandboxing directly mitigates. Initial characteristics toward a control harness fitness framework are proposed, and a third research question is identified for future investigation.

Topics & keywords

#agentic ai#security controls#software sandboxing#harness engineering#code generation agentsSHarDPi agent harnessOS sandboxingskill scanningtool restrictionOWASP Top 10agent security testing
Distributing Security Controls Through Harness Engineering · wovepaper