이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.
Please contact Datadog Support to enable Active Protection.
CSM Threats Active Protection is in beta.

This topic explains how to use the CSM Threats Active Protection feature to block crypto mining threats automatically.

By default, all OOTB Agent threat detection rules are enabled and actively monitoring for crypto threats.

Active Protection enables you to proactively block and terminate crypto mining threats identified by the Datadog Agent threat detection rules.

Active Protection streamlines threat detection and targeted response, resulting in risk reduction, allowing DevSecOps and security teams to tackle evolving crypto mining threats effectively:

  • Security decides which threats warrant an automated action.
  • DevOps decides which applications and resources are resilient enough to withstand targeted protection.

The end result is crypto mining threat detection followed by immediate surgical mitigation against high confidence, true positive attacks.

RBAC for Active Protection

Here are some important [role and permissions][11] to use for custom rules and Active Protection RBAC:

  • The security_monitoring_cws_agent_rules_actions permission can be used to turn on and configure the Active Protection feature.
    • To use the security_monitoring_cws_agent_rules_actions permission, a user with the Datadog Admin role must create a role containing the security_monitoring_cws_agent_rules_actions permission and then add only those users that manage Active Protection to this role.
  • The Datadog Standard role enables users to create/update a custom rule by default, as long as the operation does not change the protection settings on the rule.

Protection options

You have three options for Agent rules:

  • Monitoring: This is the default setting for enabled rules, regardless of whether Active Protection is enabled. The Agent monitors for the enabled rule and displays detections in Signals.
  • Blocking:
    • Blocking is available when Active Protection is enabled. Blocking is available on select OOTB rules that have high confidence, true positives.
    • The Agent monitors for the enabled rule, terminates the corresponding actions instantly, and displays detections in Signals.
  • Disabled: The Agent does not monitor for the rule events and does not send detections to the Datadog backend.
Blocking is applied to all threats detected after blocking is enabled. Blocking is not retroactive.

Active Protection availability

Active Protection is enabled at the organization level.

Active Protection blocking functionality is available in a subset of the OOTB Agent rules only. Agent rule monitoring runs regardless of whether Active Protection is enabled.

To check if Active Protection is already enabled in your organization, go to Agent Configuration. If Active Protection is enabled, a Protection column is displayed in the Agent rule list.

The protection column indicates that Active Protection is enabled in the org

If Active Protection is available for a crypto mining rule, then Monitoring or Blocking is listed in the Protection column.

If there is no Monitoring or Blocking in the Protection column, then Active Protection is not available for that crypto mining rule yet.

When Active Protection is enabled, and applies to a crypto mining rule that generated a signal, you can see it by doing the following:

  1. In Signals, open a signal.
  2. In the signal, view Next Steps.
    • If Active Protection is enabled, in Proactively block threats, the Active Protection Enabled is displayed.
    • If Active Protection is not enabled, Active Protection Enabled is not displayed.

If Active Protection is enabled and available for an Agent crypto mining rule, you can see it by looking at the rule:

  1. In Agent Configuration, select a crypto mining rule.
  2. In the crypto mining rule, if Active Protection is enabled and available, there is a Protection section.

Enable Active Protection

When you enable Active Protection, you are enabling the Active Protection capability for your entire Datadog org. Active Protection is not limited to individual users.

By default, all OOTB Agent crypto mining rules are in a monitoring state. Enabling Active Protection does not immediately change the default state. Enabling Active Protection allows you to change the state of a crypto mining rule from monitoring to blocking.

Consequently, you do not need to worry that enabling Active Protection immediately changes the state of threat detection.

To enable Active Protection:

  1. Go to CSM Agent Configuration rules.

  2. Select Enable Active Protection.

    Enable Active Protection button

After Active Protection is enabled, the Agent Configuration rules list contains a Protection column.

The Protection column indicates if a rule is in the Monitoring or Blocking state. When you first enable Active Protection, rules are only in a monitoring state. You must configure the blocking option manually.

Disabling Active Protection

After Active Protection is enabled, you can disable it on each Agent Configuration rule.

Block threats detected by an Agent rule

After Active Protection is enabled, you can configure the Blocking option on an Agent crypto mining rule and the Agent will terminate the corresponding crypto mining actions instantly.

To enable blocking on an Agent rule:

  1. In Agent Configuration, open a crypto mining rule that has Monitoring in the Protection column. If there is no Monitoring or Blocking in the Protection column, then Active Protection is not available for that rule yet.

  2. In the Agent rule, in Protection, select Blocking.

    An Agent rule Protection section displaying the Blocking option
  3. In Where, select Everywhere or Custom. For details on these options, see Scoping the Agent rule below.

  4. Select Save Changes.

  5. In Agent Configuration, select Deploy Agent Policy.

Scoping the Agent rule

When you create or edit an Agent crypto mining rule after Active Protection is enabled, you can select Blocking in the rule Protection setting.

When you select Blocking, you can scope where Datadog should apply the rule using the Everywhere and Custom options.

Everywhere

The rule applies to all services, hosts, and images.

Custom

In Custom, you can specify services or tags to automatically generate an expression for where to apply blocking protection.

Any service or image that is not matched by the expression is not blocked, but it is still monitored.

You can use services and tags to generate an expression. Datadog matches the rule using the services or tags you provide.

  • Services: Enter one or more service names. You can use wildcards. For example, entering a* generates the expression process.envp in ["DD_SERVICE=a*"].
  • Tags: Enter one or more tags for container images. If you enter multiple tags, all tags must match for the Protection to apply. There are two options:
    • image_tag: The image tag only. For example, stable-perl.
    • short_image: The image name without a tag. For example, nginx.
    • For example, a Github Container registry image such as ghcr.io/MY_NAMESPACE/MY_IMAGE:2.5 can be referenced using:
      • image_tag: 2.5.
      • short_image: MY_IMAGE.

Blocked attack example

After Active Protection is enabled and set to Blocking for an Agent rule, blocked threats appear in Signals.

A signal for a blocked threat contains the messages SECURITY RESPONSE and The malicious process <THREAT NAME> has automatically been killed.:

Signal messages