dd-audit-key-compromise

Installation
SKILL.md

Audit Trail: API Key Compromise Investigation

Reconstruct what a Datadog API key did, where requests originated, and which resources were affected.

This timeline is Audit Trail events matched by @metadata.api_key.id. It does not cover application keys, personal access tokens, service account tokens, or workload identity mappings. Log intake records the API key UUID in the datadog.api_key_uuid log tag. That tag is not an audit event.

Prerequisites

pup auth login   # OAuth2 (recommended)
# or set DD_API_KEY + DD_APP_KEY with audit_logs_read scope

You need the key ID of the suspect key (not the key value). Find it in Datadog UI under Organization Settings > API Keys, or from context showing @metadata.api_key.id.

Investigation Workflow

Step 1 — Establish timeline

Installs
584
GitHub Stars
186
First Seen
May 8, 2026