跳到正文
Skillpedia
部署与云(DevOps)35k · #8118

implementing-security-monitoring-with-datadog

它能做什么

这个工具可以帮助你设置 Datadog,用来监控云基础设施的安全性。它能检测威胁、确保你遵守安全规则,并帮助你应对安全事件。

适用场景

  • ✓当你想实时了解云环境(AWS、Azure、GCP)中的威胁时。
  • ✓当你想创建规则,对可疑活动或入侵尝试发出警告时。
  • ✓当你想确保云基础设施符合安全标准(如 PCI-DSS、SOC 2)时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-security-monitoring-with-datadog/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-security-monitoring-with-datadog/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我为我的 AWS 账户设置 Datadog 安全监控。”

每周 5 个新技能,1 分钟读完。

工作原理

你需要在服务器上安装一个程序(Datadog agent),并进行配置,让它发送安全信息。然后,你可以定义哪些类型的可疑活动应该触发告警。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Implementing Security Monitoring with Datadog

When to Use

  • Deploying Cloud SIEM to detect real-time threats across cloud infrastructure (AWS, Azure, GCP)
  • Creating custom detection rules for attacker techniques, credential abuse, or anomalous behavior
  • Enabling Workload Protection (CSM Threats) to monitor file, process, and network activity on hosts and containers
  • Meeting compliance requirements (PCI-DSS, SOC 2, HIPAA) that mandate centralized log monitoring and alerting
  • Building security dashboards to provide SOC visibility into threat signals, investigation context, and response metrics

Do not use for endpoint-only monitoring without cloud infrastructure; use a dedicated EDR solution for purely on-premises endpoint detection.

Prerequisites

  • Datadog account with Security Monitoring (Cloud SIEM) and/or Cloud Security Management enabled
  • Datadog API Key and Application Key from Organization Settings > API Keys
  • Datadog Agent v7+ installed on hosts/containers that generate security-relevant logs
  • Log sources configured for ingestion: AWS CloudTrail, VPC Flow Logs, GuardDuty, Azure Activity Logs, GCP Audit Logs, or on-host logs (auth.log, syslog, Windows Security Events)
  • Python 3.9+ with datadog-api-client library for programmatic rule management
  • Network access from monitored hosts to Datadog intake endpoints (port 443)

Workflow

Step 1: Deploy and Configure the Datadog Agent for Security

Install the Datadog Agent and enable security-related features in datadog.yaml:

# /etc/datadog-agent/datadog.yaml

api_key: <YOUR_DATADOG_API_KEY>
site: datadoghq.com   # or datadoghq.eu, us3.datadoghq.com, etc.

# Enable log collection for Cloud SIEM
logs_enabled: true

# Enable security features
runtime_security_config:
  enabled: true          # Workload Protection (CSM Threats)
  activity_dump:
    enabled: true        # Record process activity for investigation

compliance_config:
  enabled: true          # CIS benchmark checks (CSM Misconfigurations)
  host_benchmarks:
    enabled: true

Configure log sources for security-relevant files on Linux:

# /etc/datadog-agent/conf.d/auth.d/conf.yaml
logs:
  - type: file
    path: /var/log/auth.log
    source: auth
    service: linux-auth
    tags:
      - env:production
      - security:authentication

  - type: file
    path: /var/log/syslog
    source: syslog
    service: linux-syslog

For Windows Security Event Logs:

# /etc/datadog-agent/conf.d/win32_event_log.d/conf.yaml
logs:
  - type: windows_event
    channel_path: Security
    source: windows.events
    service: windows-security
    filters:
      - id: [4624, 4625, 4648, 4672, 4688, 4720, 4726, 4740, 4767]

Enable the system-probe for Workload Protection (CSM Threats):

# /etc/datadog-agent/system-probe.yaml
runtime_security_config:
  enabled: true
  fim_enabled: true        # File Integrity Monitoring
  network_enabled: true    # Network activity monitoring

Restart the Agent after configuration changes:

sudo systemctl restart datadog-agent
sudo datadog-agent status | grep -A5 "Security Agent"

Step 2: Configure Cloud Log Sources for SIEM

Set up AWS CloudTrail, VPC Flow Logs, and GuardDuty ingestion for Cloud SIEM:

Datadog App > Security > Cloud SIEM > Configuration > Content Packs

AWS Content Pack:
  1. Enable the AWS integration in Datadog (Integrations > Amazon Web Services)
  2. Configure CloudTrail log forwarding via the Datadog Forwarder Lambda
  3. Enable VPC Flow Logs forwarding to Datadog
  4. Enable GuardDuty findings forwarding

Required IAM permissions for the Datadog role:
  - cloudtrail:LookupEvents
  - logs:FilterLogEvents
  - guardduty:ListDetectors, guardduty:GetFindings
  - s3:GetObject (for CloudTrail S3 bucket)

Azure Content Pack:
  1. Configure Azure Activity Logs via Event Hub to Datadog
  2. Forward Azure AD Sign-in Logs and Audit Logs
  3. Enable Microsoft Defender for Cloud alerts forwarding

GCP Content Pack:
  1. Configure GCP Audit Logs export via Pub/Sub to Datadog
  2. Forward Cloud Audit Logs (Admin Activity, Data Access)

Verify log ingestion is working:

Datadog App > Logs > Search
  Filter: source:(cloudtrail OR aws.guardduty OR azure.activitylogs)
  Verify: Logs appearing with correct source tags and parsed attributes

Step 3: Enable and Customize Detection Rules

…

常见问题

我需要有 Datadog 账户吗?

需要。你需要一个启用了安全监控功能的 Datadog 账户。

什么是“检测规则”?

它就像你设置的警报器。当出现可疑情况时(比如多次登录失败),规则就会触发告警。

我可以只用它来监控家里的电脑吗?

不可以。这个工具专注于监控云基础设施(AWS、Azure、GCP)的安全。如果你只想监控本地部署的电脑,需要使用其他解决方案。

详情

作者的原始描述

Implements security monitoring using Datadog Cloud SIEM, Cloud Security Management (CSM), and Workload Protection to detect threats, enforce compliance, and respond to security events across cloud and hybrid infrastructure. Covers Agent deployment, log source ingestion, detection rule creation, security dashboards, and automated notification workflows. Activates for requests involving Datadog secu

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8118
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能