Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[datadog_security_monitoring_rule] Update provider for detection method impossible travel #1402

Merged
merged 3 commits into from
Apr 7, 2022

Conversation

muffix
Copy link
Member

@muffix muffix commented Apr 1, 2022

Updates the provider for security monitoring rules to accept rules with
the new detection method impossible_travel.

See also:

@muffix muffix force-pushed the bjorn.marschollek/add-impossible-travel-rule branch 2 times, most recently from c721f8a to 1c5f46d Compare April 1, 2022 11:44
Updates the provider for security monitoring rules to accept rules with
the new detection method `impossible_travel`.

See also:
- DataDog/documentation#13204
- DataDog/datadog-api-client-go#1357
@muffix muffix force-pushed the bjorn.marschollek/add-impossible-travel-rule branch from 1c5f46d to 37827a9 Compare April 1, 2022 12:26
@muffix muffix changed the title Update provider for detection method impossivle travel [datadog_security_monitoring_rule] Update provider for detection method impossivle travel Apr 1, 2022
@muffix muffix marked this pull request as ready for review April 1, 2022 12:38
@muffix muffix requested review from a team as code owners April 1, 2022 12:38
@muffix muffix requested a review from EliaECoyote April 1, 2022 12:38
@muffix muffix changed the title [datadog_security_monitoring_rule] Update provider for detection method impossivle travel [datadog_security_monitoring_rule] Update provider for detection method impossible travel Apr 1, 2022
alai97
alai97 previously approved these changes Apr 1, 2022
Copy link
Contributor

@alai97 alai97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one copy nit!


Optional:

- **baseline_user_locations** (Boolean) If true, signals are suppressed for the first 24 hours. In that time, Datadog learns the user's regular access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. Default is `false`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **baseline_user_locations** (Boolean) If true, signals are suppressed for the first 24 hours. In that time, Datadog learns the user's regular access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access. Default is `false`.
- **baseline_user_locations** (Boolean) If true, signals are suppressed for the first 24 hours. Datadog uses this time to learn about the user's regular access locations. This is helpful to reduce noise and infer VPN usage or credentialed API access. Default is `false`.

pietrodll
pietrodll previously approved these changes Apr 5, 2022
alai97
alai97 previously approved these changes Apr 5, 2022
Comment on lines 372 to 389
metric = "@usr.handle"
group_by_fields = ["@usr.handle"]
}

case {
name = ""
status = "high"
notifications = ["@user"]
}

options {
detection_method = "impossible_travel"
keep_alive = 600
max_signal_duration = 900
impossible_travel_options {
baseline_user_locations = true
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muffix can you please reformat it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks

Comment on lines 445 to 461
metric = "@usr.handle"
group_by_fields = ["@usr.handle"]
}

case {
name = "new case name (updated)"
status = "high"
notifications = ["@user"]
}

options {
detection_method = "impossible_travel"
keep_alive = 600
max_signal_duration = 900
impossible_travel_options {
baseline_user_locations = true
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muffix can you please reformat it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks

@muffix muffix dismissed stale reviews from alai97 and pietrodll via fc575f6 April 7, 2022 09:00
@muffix muffix requested a review from jirikuncar April 7, 2022 09:00
@muffix muffix enabled auto-merge (squash) April 7, 2022 09:31
@muffix muffix merged commit c7ca255 into master Apr 7, 2022
@muffix muffix deleted the bjorn.marschollek/add-impossible-travel-rule branch April 7, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants