dd-audit

โดย datadog-labs

การตรวจสอบเส้นทางการตรวจสอบ - ใครเปลี่ยนแปลงอะไร การประนีประนอมคีย์ สาเหตุหลักของต้นทุนที่เพิ่มขึ้น หลักฐานการปฏิบัติตามข้อกำหนด (SOC 2/PCI) และการตรวจสอบกิจกรรม AI

npx skills add https://github.com/datadog-labs/agent-skills --skill dd-audit

Datadog Audit Trail

Investigate user activity, configuration changes, access patterns, and compliance evidence using pup audit-logs.

Sub-Skills

Sub-skillUse when
security-investigation"Who changed X?", "What did this user do?", "Show me deletions in the last 24h"
key-compromise"Was this API key compromised?", "What did key XYZ do?", "Investigate suspicious key activity"
cost-spike-investigation"Why did my bill go up?", "What caused this usage spike?", "Investigate LLM cost increase"
compliance-report"Generate SOC 2 evidence", "PCI audit log", "User provisioning report for auditor"
ai-activity-audit"What did the AI assistant do?", "Audit MCP tool calls", "AI governance report"

Prerequisites

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

Commands

# List recent events
pup audit-logs list --from 1h --limit 100

# Search with a query
pup audit-logs search --query "@action:deleted" --from 24h

# JSON output for piping to jq
pup audit-logs search --query "@usr.email:alice@example.com" --from 7d -o json | jq '.data[].attributes'

Event Schema Quick Reference

FieldDescriptionExample values
@usr.emailActor emailalice@example.com
@evt.actor.typeHow action was takenUSER, API_KEY, SUPPORT_USER
@actionVerbcreated, modified, deleted, accessed, login
@evt.nameEvent categoryDashboard, Monitor, Authentication, Access Management
@asset.typeResource typedashboard, monitor, api_key, role, user
@asset.idResource identifierabc-123
@metadata.api_key.idAPI key used (if applicable)key_abc123
@metadata.app_key.idApp key used (if applicable)app_abc123
@network.client.ipClient IP address1.2.3.4
@network.client.geoip.country.nameCountryUnited States
@network.client.geoip.as.nameASN nameAmazon.com
@http.url_details.pathAPI endpoint path/api/v1/dashboard/xyz

Search Syntax

Same Lucene-style syntax as Log Explorer:

QueryMeaning
@evt.name:DashboardExact field match
@action:deletedAction filter
@usr.email:alice@example.comSpecific user
@evt.name:Monitor AND @action:modifiedCompound
-@action:deletedNegation
@usr.email:*Field exists
@network.client.ip:1.2.3.4IP filter

Retention

Default retention is 90 days. If querying beyond 90 days, archive to S3/GCS/Azure Blob must be configured. Always check whether the requested time window falls within retention before running a query.

Troubleshooting

ProblemCauseFix
403 ForbiddenMissing audit_logs_read scopeAdd scope to app key in Datadog UI
Empty resultsTime window outside retentionCheck archive config; default max is 90 days
TimeoutQuery too broadNarrow time window or add more filters
No IP dataInternal action or pre-enrichment eventNot all events have geo data

References

Skills เพิ่มเติมจาก datadog-labs

dd-audit-compliance-report
datadog-labs
สร้างหลักฐานการปฏิบัติตามข้อกำหนดที่พร้อมสำหรับผู้ตรวจสอบจาก Datadog Audit Trail สำหรับ SOC 2 และ PCI DSS จับคู่การควบคุมของกรอบงานกับรูปแบบการสืบค้นเฉพาะและสร้าง...
experiment-analyzer
datadog-labs
วิเคราะห์ผลการทดลอง LLM รองรับการทดลองเดี่ยวหรือการเปรียบเทียบ โหมดสำรวจหรือถาม-ตอบ ใช้เมื่อผู้ใช้พูดว่า "วิเคราะห์การทดลอง" "เปรียบเทียบ…
dd-logs
datadog-labs
การจัดการล็อก - ค้นหา, ไพพ์ไลน์, คลังข้อมูล, และการควบคุมต้นทุน
dd-monitors
datadog-labs
การจัดการมอนิเตอร์ - สร้าง, อัปเดต, ปิดเสียง และแนวทางปฏิบัติที่ดีที่สุดในการแจ้งเตือน
dd-audit-cost-spike-investigation
datadog-labs
ตรวจสอบการใช้งานผลิตภัณฑ์ Datadog หรือการเพิ่มขึ้นของต้นทุน โดยการเชื่อมโยงข้อมูล Usage Metering (เมื่อไหร่/อะไรที่เพิ่มขึ้น) กับการเปลี่ยนแปลงการกำหนดค่าใน Audit Trail (ใครเปลี่ยนแปลงอะไรใน…)
dd-audit-key-compromise
datadog-labs
ตรวจสอบคีย์ API ของ Datadog ที่อาจถูกบุกรุก — ไทม์ไลน์ของการดำเนินการ, การแยกตามภูมิศาสตร์/IP, เอนด์พอยต์ที่เรียกใช้, ธงความผิดปกติ, และขั้นตอนการแก้ไข
eval-trace-rca
datadog-labs
การวิเคราะห์สาเหตุที่แท้จริงของร่องรอย LLM ในระบบผลิต โดยใช้ผลการประเมินจากผู้ตัดสินเป็นสัญญาณ วินิจฉัยว่าเหตุใดแอปพลิเคชันของผู้ใช้จึงล้มเหลว ใช้เมื่อผู้ใช้พูดว่า "eval…
dd-account-setup
datadog-labs
ตรวจสอบให้แน่ใจว่าผู้ใช้มีบัญชี Datadog ที่รับรองความถูกต้องแล้ว พร้อมด้วย DD_API_KEY ที่ถูกต้องในภูมิภาคที่เหมาะสม ก่อนการตั้งค่าหรือการติดตั้งเครื่องมือ Datadog ใดๆ ตรวจจับการมีอยู่…