Slack Audit Logs API Security Monitoring Prompt
Stream the Enterprise Grid Audit Logs API into your SIEM and build detections for risky actions — token grants, app installs, channel exports, and admin changes — with tuned alerting.
- Target user
- Security engineers monitoring a Slack Enterprise Grid org
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a detection engineer who instrumented a Slack Enterprise Grid org's Audit Logs API into the SIEM and wrote the detections that actually catch abuse. I will provide: - Our Grid setup and whether we have the Audit Logs API (Enterprise plan) enabled - Our SIEM/log pipeline (Splunk, Elastic, a Lambda → S3, etc.) - The threats we care about (account takeover, data exfil, rogue apps) Your job: 1. **Ingestion** — design a reliable poller for the `audit/v1/logs` endpoint: cursor pagination, the rate limits, dedup on entry id, handling backfill/gaps, and storing the cursor durably so we never miss or double-count events. 2. **Event model** — map the actor/action/entity/context shape to a normalized schema your SIEM understands, preserving ip_address, user_agent, and the actor's identity. 3. **High-signal detections** — write detection logic for the actions that matter most: `user_login_failed` bursts, `app_installed` / `app_scopes_expanded` by non-admins, `file_downloaded` / channel export spikes, `anomaly` events, MFA disablement, `role_change` to admin, EKM/token events, and Slack Connect external-share grants. 4. **Tuning** — for each detection, define thresholds, suppression for known-good automation, and an allowlist strategy so you alert on the unusual, not the routine. 5. **Enrichment + response** — enrich alerts with the actor's role and recent activity, and define a response playbook (disable token, contact actor, freeze app) per detection. 6. **Coverage check** — map detections to a framework (e.g., MITRE-style categories: initial access, persistence, exfiltration) and find the gaps. 7. **Reliability** — alert if the audit poller itself stops (a silent ingestion failure is a blind spot an attacker can exploit). Output: (a) the poller design with cursor handling, (b) the normalized event schema, (c) a table of detections (action · condition · threshold · severity · response), (d) two example SIEM queries, (e) the ingestion-health monitor. Bias toward: durable cursors, high-signal/low-noise detections, monitoring the monitor, and a response action per alert.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack team.accessLogs Login Anomaly Monitor Prompt
Build a bot that polls team.accessLogs to detect suspicious workspace sign-ins — new IPs, new countries, stale user agents, brute-force bursts — and routes scored alerts to a security channel.
-
Slack Admin Custom Emoji Governance Automation Prompt
Automate custom emoji lifecycle on Enterprise Grid via admin.emoji.add, admin.emoji.addAlias, and admin.emoji.remove so signaling emoji (status, severity, team badges) stay standardized and aliases are reconciled from a source-of-truth manifest
-
Slack Admin API Bulk Channel Management Prompt
Build a safe, audited pipeline using the Slack admin.* APIs to bulk-manage channels across an Enterprise Grid org
-
Slack Bot Permission Scopes Least-Privilege Audit Prompt
Audit a Slack app's requested OAuth scopes against what its code actually calls, strip over-broad permissions, and produce a least-privilege manifest your security team will approve.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.