---
title: "Security Automation Evolved: From SlackOps to Programmatic SIEM Triage (Part 1/2)"
description: "Sourcegraph's security team built SecBot, a Slackbot that enriches SIEM alerts with context from Entitle JIT permissions, Okta, Google Workspace, GCP asset metadata and threat intel, so alerts can be triaged and closed from Slack via emoji reactions."
url: "https://swe.quest/articles/security-automation-evolved-from-slackops-to-programmatic-siem-triage-part-1-2-4945f06fa59a1bdc"
canonical: "https://sourcegraph.com/blog/from-slack-ops-to-programmatic-siem-triage"
source: "Sourcegraph"
published: "2026-05-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["threat-detection","security","go"]
---

# Security Automation Evolved: From SlackOps to Programmatic SIEM Triage (Part 1/2)

A post on [Sourcegraph](https://swe.quest/sources/sourcegraph.md), published 2026-05-28, 4 min read, Case study. Original: [https://sourcegraph.com/blog/from-slack-ops-to-programmatic-siem-triage](https://sourcegraph.com/blog/from-slack-ops-to-programmatic-siem-triage)

## Summary

Sourcegraph's security team built SecBot, a Slackbot that enriches SIEM alerts with context from Entitle JIT permissions, Okta, Google Workspace, GCP asset metadata and threat intel, so alerts can be triaged and closed from Slack via emoji reactions. After migrating detections from Elastalert regex hacks to Elastic Security, the bot templates alerts with full fields and fetches GCP descriptions at alert time rather than syncing state into Elasticsearch. Auto-close rules are written in expr-lang, a Go expression library, with custom runtime functions such as on-call lookups and project labels. Example: auto-closing changes to internal instances or by on-call Platform engineers, while still posting them to Slack for visibility.

Written by swe.quest, not by the author.

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

## Topics

- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

- SIEM alert triage
- Slack bots

## Keywords

SecBot, Elastic Security, Elastalert, expr-lang, Entitle, GCP, Okta, Redis

## Related posts

- [Streamlining Security Investigations with Agents](https://swe.quest/articles/streamlining-security-investigations-with-agents-7900a47757fc2126.md): Slack Engineering · 2025-12-01 · Medium · 9 min read · AI agents, Threat detection, LLMs, Incidents & postmortems, System design
  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.
- [Lessons on UX, security, and scale when building an enterprise-grade Slack agent](https://swe.quest/articles/lessons-on-ux-security-and-scale-when-building-an-enterprise-grade-slack-agent-718cb96cab6bcc78.md): Sourcegraph · 2026-05-04 · Medium · 5 min read · AI agents, Product engineering, Identity & auth, Resilience, Communications
  Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link\_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details.
- [What is ClickHouse Security? A technical overview of the agentic SIEM built on ClickHouse](https://swe.quest/articles/what-is-clickhouse-security-a-technical-overview-of-the-agentic-siem-built-on-55739f83613afe9b.md): ClickHouse · 2026-11-24 · Medium · 16 min read · Threat detection, Analytics & OLAP, AI agents, Observability
  ClickHouse Security is an agentic SIEM, built from RunReveal technology and now in private preview, that stores security logs in a customer's ClickHouse Cloud service.
- [How we're using Sourcegraph and a Slack bot to detect vulnerabilities and react quickly](https://swe.quest/articles/how-we-re-using-sourcegraph-and-a-slack-bot-to-detect-vulnerabilities-and-react-bfb7cc0f6f98e463.md): Sourcegraph · 2026-05-13 · Medium · 12 min read · Supply chain security, Developer tools, Video & media, Search
  Sourcegraph built a Slack bot that polls the GitHub Advisory Database every 15 minutes, triages advisories with CVSS, Hacker News buzz and a high-reach package list plus supply-chain keywords, and on a single 🚀 reaction generates detection queries, a blog scaffold, social drafts and an auto-edited Deep Search demo video.
- [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.

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)
