Cyber Security: Tuning for Your Infrastructure
Contents
Overview
Some rules contain values designed for a typical infrastructure.
- thresholds — minimum number of events, hosts, accounts, or ports in the analysis window
- exclusions in rule conditions — legitimate processes, accounts, and hosts specific to each organization
- exclusion lookups — authorized scanners, service accounts, and trusted addresses
Check these values against your infrastructure data before enabling a rule, and review them whenever the infrastructure changes.
Investigation Procedure
Too Many False Positives
- Check the lookups used by the rule. They must be populated and use the required format (case, short host name, exact address); see Lookups
- Determine why the rule triggers. If the cause is a legitimate high-volume process (service polling, a scanner, or a monitoring system), add it to an exclusion lookup or to the exclusions in the rule condition. Recommendations for individual rules are provided in the "Rule Enablement and Tuning Order" document
- If the alerts are caused by the general activity level, raise the threshold as described in Threshold Rules
Important
Keep exclusions as narrow as possible, using pairs such as "process and directory", "account and host", or "subject and namespace". Excluding an entire process name or namespace can also hide an attack using the same process or account.
Rule Does Not Trigger
- Verify that source data arrives and contains the fields used by the rule; see Connecting and Configuring Data Collection
- Verify that the required events are enabled on the source; see Configuring Infrastructure Sources
- Run the rule query in Search without the threshold condition and compare actual values with the threshold; see Testing a Rule in Search
- If the threshold is not reached during a real attack or a test scenario, lower it
Testing a Rule in Search
- Open the rule under
Main Menu-Job Scheduler-Jobs Listand clickOpen in Search - Copy the rule query to
Main Menu-Search - Remove the threshold
wherestage after the aggregation (aggs) - Set a period longer than the rule window, for example 7 days, to see typical values
- Assess how the aggregated value varies over time
- Set the threshold above the normal maximum with a margin. If attack and normal activity values overlap, add an exclusion instead of raising the threshold
Changing a Rule
- change thresholds and exclusions in the rule query under
Main Menu-Job Scheduler-Jobs List - after changing the rule, test the query in Search using the rule's analysis window
Threshold Rules
Raise the threshold if normal activity regularly exceeds it. Lower it if a test scenario does not reach it.
| Rule Type | When to Raise the Threshold | When to Lower the Threshold |
|---|---|---|
| password brute-force and spraying | services with many repeated login attempts (outdated service passwords, mobile email clients) | account lockout policy takes effect before the threshold is reached |
| port and host scanning | inventory, monitoring, and backup systems (prefer address-based exclusions) | a small network where an attacker needs only a few hosts |
| logging in to many hosts | administrators, configuration management systems, and jump servers (prefer account-based exclusions) | a small infrastructure where an attacker needs only a few hosts |
| bulk requests to a web server | availability monitoring, search crawlers, and load testing (prefer address-based exclusions in the scanner lookup) | low-traffic sites |
| DNS | servers with many distinct DNS names (proxies, mail servers) | depending on infrastructure characteristics |
Documents Included with the Module
The "Rule Enablement and Tuning Order" document included with the module provides default thresholds for each rule, rule-specific exclusion recommendations with examples, and a list of rules that depend on lookups.