Skip to content
Neutral Works
Go back

Continuous Purple Teaming with CI/CD, IaC, and AI

Tech

We recently prototyped a platform to modernize Purple Teaming, evolving the practice from ad-hoc manual testing to a fully automated, continuous validation loop. By unifying Offensive Security Development, Cloud Security, Infrastructure-as-Code (IaC), and Detection Engineering, this architecture transforms offensive operations into a high-velocity code pipeline.

The architecture also aligns with modern Purple Team frameworks, such as ‘The Always-On Purple Team: Automated CI/CD for Detection Engineering’ (Stephen Sims and Erik Van Buggenhout, RSA Conference 2024). However, our platform expands upon that foundation in several critical areas, including:

For illustration purposes, below is how the system integrates security automation, cloud infrastructure, and AI to continuously exercise cyber defence capabilities:

1. Infrastructure-as-Code (IaC) Foundation

The battlefield is defined entirely in code utilizing Terraform and Cloud Service Provider (e.g., Azure) to ensure consistency and reproducibility.

2. AI-Driven Offensive Security Operations

Speed and sophistication are driven by a pre-compiled AI Agent (e.g., a Go binary) powered by an enterprise AI application building platform (e.g., Azure AI Foundry, Amazon Bedrock, Google Vertex AI) which acts as an autonomous offensive security researcher.

3. Detection-as-Code & Adaptive Cyber Defence

Cyber Defence is treated as a software engineering discipline, integrating logging and detection logic directly into a CI/CD pipeline.

In summary, by codifying the entire kill chain - from infrastructure provisioning to payload delivery and event-driven alert engineering - we advance beyond static quarterly assessments to continuous integration for security. This platform enables us to exercise detection capabilities at machine speed, ensuring our cyber defence evolve faster than the threats they face.

As always, I hope you find this article useful, and thank you for reading.


Related: For how AI-driven harnesses perform in a real exam setting, see Passing OSAI with a Custom Agent Harness Architecture. For the threat intelligence side, see Applying Graph Theory to CTI and Threat Hunting.


Share this post:

Previous Post
Passing OSAI with a Custom Agent Harness Architecture
Next Post
Practicing Windows SSPI in Go WebSocket Connections