Repository navigation
[Rule tuning] Update the anomaly threshold of ML rules - #7268
Open
sodhikirti07 wants to merge 1 commit into
Open
sodhikirti07 wants to merge 1 commit into
sodhikirti07 wants to merge 1 commit into
Conversation
|
Starting the rule tests ... |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Missing per-job telemetry and inaccessible tuning issues leave the detection-recall impact of raising 28 production ML thresholds to 75 unvalidated, particularly the two raised from 25, requiring detection-owner review.
No open issues 🎉
What changed in this PR
This PR tunes 28 existing machine-learning detection rules to reduce alert noise by raising their anomaly thresholds to 75, pending further telemetry-based tuning.
Changes:
- Raises thresholds from 50 to 75 for 26 rules and from 25 to 75 for two Linux network-discovery rules.
- Updates all affected rules’
updated_dateto2026/11/27. - Leaves detection scope, ML job configuration, and investigation guidance unchanged.
| File | Description |
|---|---|
rules/ml/resource_development_ml_linux_anomalous_compiler_activity.toml |
Raises Linux compiler-activity threshold to 75. |
rules/ml/privilege_escalation_ml_windows_rare_user_runas_event.toml |
Raises Windows user-context-switch threshold to 75. |
rules/ml/persistence_ml_windows_anomalous_service.toml |
Raises unusual Windows service threshold to 75. |
rules/ml/persistence_ml_windows_anomalous_process_creation.toml |
Raises unusual parent-child process threshold to 75. |
rules/ml/persistence_ml_windows_anomalous_process_all_hosts.toml |
Raises fleet-wide rare Windows process threshold to 75. |
rules/ml/persistence_ml_windows_anomalous_path_activity.toml |
Raises atypical Windows process-path threshold to 75. |
rules/ml/persistence_ml_rare_process_by_host_windows.toml |
Raises per-host rare Windows process threshold to 75. |
rules/ml/persistence_ml_rare_process_by_host_linux.toml |
Raises per-host rare Linux process threshold to 75. |
rules/ml/persistence_ml_linux_anomalous_process_all_hosts.toml |
Raises fleet-wide rare Linux process threshold to 75. |
rules/ml/ml_windows_anomalous_network_activity.toml |
Raises unusual Windows network-activity threshold to 75. |
rules/ml/ml_packetbeat_rare_server_domain.toml |
Raises unusual destination-domain threshold to 75. |
rules/ml/ml_linux_anomalous_network_port_activity.toml |
Raises unusual destination-port threshold to 75. |
rules/ml/ml_linux_anomalous_network_activity.toml |
Raises unusual Linux network-activity threshold to 75. |
rules/ml/initial_access_ml_windows_rare_user_type10_remote_login.toml |
Raises unusual RDP username threshold to 75. |
rules/ml/initial_access_ml_windows_anomalous_user_name.toml |
Raises unusual Windows username threshold to 75. |
rules/ml/initial_access_ml_linux_anomalous_user_name.toml |
Raises unusual Linux username threshold to 75. |
rules/ml/execution_ml_windows_rare_script.toml |
Raises rare PowerShell script threshold to 75. |
rules/ml/execution_ml_windows_anomalous_script.toml |
Raises anomalous PowerShell script threshold to 75. |
rules/ml/discovery_ml_linux_system_process_discovery.toml |
Raises Linux process-discovery threshold to 75. |
rules/ml/discovery_ml_linux_system_network_connection_discovery.toml |
Raises network-connection discovery threshold from 25 to 75. |
rules/ml/discovery_ml_linux_system_network_configuration_discovery.toml |
Raises network-configuration discovery threshold from 25 to 75. |
rules/ml/credential_access_ml_windows_anomalous_metadata_process.toml |
Raises unusual Windows metadata-access threshold to 75. |
rules/ml/credential_access_ml_suspicious_login_activity.toml |
Raises excessive authentication-attempt threshold to 75. |
rules/ml/credential_access_ml_linux_anomalous_metadata_process.toml |
Raises unusual Linux metadata-access threshold to 75. |
rules/ml/command_and_control_ml_rare_dns_question.toml |
Raises rare DNS query threshold to 75. |
rules/ml/command_and_control_ml_packetbeat_rare_user_agent.toml |
Raises rare user-agent threshold to 75. |
rules/ml/command_and_control_ml_packetbeat_rare_urls.toml |
Raises rare URL threshold to 75. |
rules/ml/command_and_control_ml_dns_tunneling.toml |
Raises DNS-tunneling threshold to 75. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Summary - What I changed
There's a recurring pattern across the ML rule-tuning issues in ia-trade-team: rules with anomaly thresholds below 60 tend to generate more noise. As a first step, we'll increase the threshold to 75. Once we have enough raw ML telemetry, we can further fine-tune the thresholds based on the data.
How To Test
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist