How Datadog’s IT team automated monitoring third-party accounts
Clarity is an internal tool that audits accounts in SaaS apps like Slack, GitHub, Zoom and Google Workspace against Workday, the HR source of truth, and flags any account that doesn't match an active employee. A scheduled CloudWatch rule triggers an AWS Lambda each weekday morning. It compares user email lists across apps and emits tagged Datadog gauge and count metrics plus faceted logs per account. It then opens Freshservice tickets and posts Slack Block Kit summaries that link to prefiltered logs. DynamoDB stores state between runs so flagged accounts keep a history and get re-ticketed if they remain unresolved past the SLA.
Related posts
- How Datadog’s IT team automated account inactivity and SaaS spend management
Datadog Engineering mediumAdeptDatadog extended its Clarity tool into Clarity License Manager, a set of Python AWS Lambda microservices backed by Postgres on RDS. It tracks per-app user activity from SaaS APIs and Google Workspace SAML audit logs, warns inactive users via Slack, and auto-deactivates accounts after a configurable threshold (default 90 days). Each SaaS app is integrated through a shared adapter/interface (get_users, get_last_activity_data, deactivate_user, activate_user) with YAML config for thresholds, notification counts and custom activity definitions, such as Zoom Pro usage. Accounts are restored in seconds through a Freshservice ticket, and the team chose to build rather than buy over concerns about privileged access, privacy, per-seat cost and limited customizability.
- Using ChatOps to help Actions on-call engineers
GitHub Engineering easyNoviceGitHub's Actions on-call engineers use Hubot-driven ChatOps commands in Slack to turn repetitive diagnosis steps into shared, auditable commands. Examples include analyzing a failing run URL without direct access to a private repository, generating Kusto queries for error impact, searching team-specific docs and ADRs for playbooks, and running database health checks. The health checks use IQR-based anomaly detection on CPU, memory and worker metrics to point at root causes such as PAGELATCH_SH blocking. The broader recommendation is to codify subject-matter experts' playbooks into ChatOps so they become living, iteratively improved incident runbooks.
- Slack Audit Logs and Anomalies
Slack Engineering mediumAdeptSlack Enterprise Grid audit logs record platform actions and include anomaly events that flag unusual behaviour such as new user agents, excessive downloads, unexpected scraping, IP address changes and session fingerprint mismatches. Anomalies are best treated as investigation leads rather than incidents: tune them by allowlisting trusted CIDR ranges and ASNs, correlate them (a user_agent plus excessive_downloads plus session_fingerprint pattern suggests a stolen cookie being used to scrape), and aggregate per-user counts against historical norms. Ingesting the full audit log stream, not just anomalies, supplies context such as which files were downloaded. A walkthrough of a departing employee scraping data shows the dashboard investigation flow and session termination, and recommends allowlisting expected user agents rather than blocklisting bad ones.
- When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos
Datadog Engineering mediumAdeptAn AI agent called hackerbot-claw targeted Datadog's public repositories in late February 2026. It opened PRs in datadog-iac-scanner that hid a base64-encoded curl|bash payload in filenames, exploiting a GitHub Actions workflow that interpolated changed-file names into a shell script. It also filed issues in datadog-agent carrying prompt injection payloads aimed at a claude-code-action triage workflow. Datadog's LLM-based BewAIre reviewer flagged the PRs within seconds, and org-wide rulesets, minimal token permissions and disabled Actions PR approval meant the attacker could only push a harmless branch, while the prompt injections failed. The incident shows why to avoid interpolating untrusted input in workflows and to enforce least-privilege CI controls.
- Lessons on UX, security, and scale when building an enterprise-grade Slack agent
Sourcegraph mediumAdept
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. On the enterprise side it supports Enterprise Grid's one-app-to-many-workspaces model, auto-links Slack users to Sourcegraph accounts by verified email so permissions match code access, and validates setup by forcing a fresh Slack event-URL ping with a random retry parameter. Abuse is controlled with simple Redis fixed-window counters per user and team that fail open if Redis is down.