GitLab

Automating detection gap analysis with GitLab Duo Agent Platform

Mar 10, 2026Matt Coons
Automating detection gap analysis with GitLab Duo Agent Platform
SummaryAI, from the source post

This post details the implementation of AI agents within the GitLab Duo Agent Platform for automating detection gap analysis in security incidents. It describes the use of the pre-built Security Analyst Agent for initial analysis and the creation of a custom Detection Engineering Assistant agent. The custom agent's system prompt is elaborated upon, emphasizing clear role definition, encoding detection philosophy, providing tech stack context, grounding in MITRE ATT&CK, and setting output format expectations. The workflow of using these agents on closed incident issues is explained, along with lessons learned regarding system prompt iteration, incident documentation quality, and the role of AI as a force multiplier.

More from the AI-Assisted Features in DevSecOps trail