---
title: "Streamlining Security Investigations with Agents"
description: "Slack's Security Engineering team replaced a single-prompt prototype for triaging security alerts with a multi-agent system that chains narrowly scoped model invocations, each constrained by a JSON-schema structured output."
url: "https://swe.quest/articles/streamlining-security-investigations-with-agents-7900a47757fc2126"
canonical: "https://slack.engineering/streamlining-security-investigations-with-agents/"
source: "Slack Engineering"
published: "2025-12-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-agents","threat-detection","llms","incident-response","system-design"]
---

# Streamlining Security Investigations with Agents

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2025-12-01, 9 min read, Case study. Original: [https://slack.engineering/streamlining-security-investigations-with-agents/](https://slack.engineering/streamlining-security-investigations-with-agents/)

## Summary

Slack's Security Engineering team replaced a single-prompt prototype for triaging security alerts with a multi-agent system that chains narrowly scoped model invocations, each constrained by a JSON-schema structured output. A Director agent questions four domain experts (Access, Cloud, Code, Threat), and a Critic scores their findings against a rubric and builds a timeline from the most credible ones. The investigation moves through discovery, trace and conclude phases. A "knowledge pyramid" assigns low-, medium- and high-cost models to experts, critic and director respectively to manage token spend. A hub, worker and dashboard architecture supports real-time observation and integration with existing detection tools, and an example shows the Critic catching a credential exposure the expert had missed.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- structured outputs
- security alert triage ([easy posts on Security](https://swe.quest/tags/security.md?difficulty=easy))

## Keywords

MCP, Slack, structured outputs, multi-persona prompting, Meta-Prompting

## Related posts

- [Managing context in long-run agentic applications](https://swe.quest/articles/managing-context-in-long-run-agentic-applications-295891442705f8fe.md): Slack Engineering · 2026-04-13 · Medium · 13 min read · AI agents, LLMs, Threat detection, System design
  Slack's multi-agent security investigation service keeps long-running agent teams coherent through three context channels rather than accumulating full message history.
- [Building Investigations: what it takes to build an AI SRE](https://swe.quest/articles/building-investigations-what-it-takes-to-build-an-ai-sre-97667cae8b2c0604.md): incident.io · 2026-10-01 · Medium · 14 min read · AI agents, Evaluation, SRE, Incidents & postmortems, Observability
  Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model.
- [Blueberry: Force Multiplier For The On-Call Engineer](https://swe.quest/articles/blueberry-force-multiplier-for-the-on-call-engineer-5f4d95cf46fbb952.md): Instacart Tech · 2026-07-14 · Medium · 14 min read · AI agents, Incidents & postmortems, Observability, LLMs, SRE
  Blueberry is Instacart's Slack-native on-call reasoning harness.
- [How we detect frontier model misalignment](https://swe.quest/articles/how-we-detect-frontier-model-misalignment-98ddf97507c137b5.md): OpenAI · 2026-10-29 · Medium · 15 min read · AI safety, AI agents, Threat detection, Evaluation, Sandboxing & isolation
  OpenAI monitors frontier agents across training, evaluation, internal use and some external deployment with a four-layer pipeline: high-recall activation probes (L0), a model-based reviewer of the agent's context window (L1), security and alignment investigative agents that can run code and read full transcripts (L2), and cross-case analysis against network logs and telemetry (L3).
- [IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST](https://swe.quest/articles/ibm-and-uc-berkeley-diagnose-why-enterprise-agents-fail-using-it-bench-and-mast-8ef90262771faa1d.md): Hugging Face · 2026-02-18 · Medium · 10 min read · AI agents, Evaluation, LLMs, SRE
  Applying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
