Skip to content

[Rule Tuning] Tighten Network Rules - #7235

Open
eric-forte-elastic wants to merge 2 commits into
mainfrom
nov_noise_tuning
Open

eric-forte-elastic wants to merge 2 commits into
mainfrom
nov_noise_tuning

Conversation

@eric-forte-elastic

@eric-forte-elastic eric-forte-elastic commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Issue link(s):

Summary - What I changed

Small tuning PR to tighten some of the queries for network rules to filter out traceroute in the RDP rule, and to include filtering based on the serial number of the firewall device for the Fortinet rule.

How To Test

Test Data in Stack and RTAs still fire

image image image

Checklist

  • Added a label for the type of pr: bug, enhancement, schema, maintenance, Rule: New, Rule: Deprecation, Rule: Tuning, Hunt: New, or Hunt: Tuning so guidelines can be generated
  • Added the meta:rapid-merge label if planning to merge within 24 hours
  • Secret and sensitive material has been managed correctly (no credentials or tokens; exclusions use generic non-identifying vendor/install paths — not usernames, hostnames, org names, cluster/agent IDs, IP addresses, or internal workspace/repo trees; cloud/SaaS rules only hard-code vendor first-party or marketplace-listed app/client IDs — never tenant, subscription, account, or project IDs; sample JSON is redacted)
  • Automated testing was updated or added to match the most common scenarios
  • Documentation and comments were added for features that require explanation

Contributor checklist

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

@eric-forte-elastic
eric-forte-elastic marked this pull request as ready for review November 30, 2026 18:11
@eric-forte-elastic
eric-forte-elastic requested review from Aegrah, bryans3c, django-88 and w0rk3r and a balanced review from Copilot November 30, 2026 18:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The PR lacks alert-suppression validation confirming that the interface recognizes Esql.source_ip_values as a group-by field; the current test note only confirms that test data and RTAs still fire.

1 open issue
What changed in this PR

Tightens two network detection rules to reduce unrelated matches and repeated alerts while preserving suspicious activity detection.

Changes:

  • Groups FortiGate administrator logins by account and device serial number.
  • Excludes Palo Alto traceroute traffic and blocked pfSense events from the inbound RDP rule.
  • Adds one-hour alert suppression to both rules and documents its behavior.
File Description
rules/​network/​initial_access_fortigate_admin_login_multi_srcip.toml Adds device-aware grouping and suppression by account, device, and sorted source-IP set.
rules/​network/​command_and_control_rdp_remote_desktop_protocol_from_the_internet.toml Filters traceroute and blocked traffic; suppresses repeated source/destination/port combinations.

Review effort: Balanced

reference = "https://attack.mitre.org/tactics/TA0001/"

[rule.alert_suppression]
group_by = ["source.user.name", "observer.serial_number", "Esql.source_ip_values"]
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

Starting the rule tests ...

This branch has not been deployed

No deployments
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.

2 participants