Unusual Windows Path Activity

Identifies processes started from atypical folders in the file system, which might indicate malware execution or persistence mechanisms. In corporate Windows environments, software installation is centrally managed and it is unusual for programs to be executed from user or temporary directories. Processes executed from these locations can denote that a user downloaded software directly from the Internet or a malicious script or macro executed malware.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2020/03/25"
  3integration = ["endpoint", "windows"]
  4maturity = "production"
  5updated_date = "2024/06/18"
  6
  7[rule]
  8anomaly_threshold = 50
  9author = ["Elastic"]
 10description = """
 11Identifies processes started from atypical folders in the file system, which might indicate malware execution or
 12persistence mechanisms. In corporate Windows environments, software installation is centrally managed and it is unusual
 13for programs to be executed from user or temporary directories. Processes executed from these locations can denote that
 14a user downloaded software directly from the Internet or a malicious script or macro executed malware.
 15"""
 16false_positives = [
 17    """
 18    A new and unusual program or artifact download in the course of software upgrades, debugging, or troubleshooting
 19    could trigger this alert. Users downloading and running programs from unusual locations, such as temporary
 20    directories, browser caches, or profile paths could trigger this alert.
 21    """,
 22]
 23from = "now-45m"
 24interval = "15m"
 25license = "Elastic License v2"
 26machine_learning_job_id = ["v3_windows_anomalous_path_activity"]
 27name = "Unusual Windows Path Activity"
 28setup = """## Setup
 29
 30This rule requires the installation of associated Machine Learning jobs, as well as data coming in from one of the following integrations:
 31- Elastic Defend
 32- Windows
 33
 34### Anomaly Detection Setup
 35
 36Once the rule is enabled, the associated Machine Learning job will start automatically. You can view the Machine Learning job linked under the "Definition" panel of the detection rule. If the job does not start due to an error, the issue must be resolved for the job to commence successfully. For more details on setting up anomaly detection jobs, refer to the [helper guide](https://www.elastic.co/guide/en/kibana/current/xpack-ml-anomalies.html).
 37
 38### Elastic Defend Integration Setup
 39Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
 40
 41#### Prerequisite Requirements:
 42- Fleet is required for Elastic Defend.
 43- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
 44
 45#### The following steps should be executed in order to add the Elastic Defend integration to your system:
 46- Go to the Kibana home page and click "Add integrations".
 47- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
 48- Click "Add Elastic Defend".
 49- Configure the integration name and optionally add a description.
 50- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
 51- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
 52- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
 53- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
 54For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
 55- Click "Save and Continue".
 56- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
 57For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
 58
 59### Windows Integration Setup
 60The Windows integration allows you to monitor the Windows OS, services, applications, and more.
 61
 62#### The following steps should be executed in order to add the Elastic Agent System integration "windows" to your system:
 63- Go to the Kibana home page and click “Add integrations”.
 64- In the query bar, search for “Windows” and select the integration to see more details about it.
 65- Click “Add Windows”.
 66- Configure the integration name and optionally add a description.
 67- Review optional and advanced settings accordingly.
 68- Add the newly installed “windows” to an existing or a new agent policy, and deploy the agent on your system from which windows log files are desirable.
 69- Click “Save and Continue”.
 70- For more details on the integration refer to the [helper guide](https://docs.elastic.co/integrations/windows).
 71"""
 72references = ["https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html"]
 73risk_score = 21
 74rule_id = "445a342e-03fb-42d0-8656-0367eb2dead5"
 75severity = "low"
 76tags = [
 77    "Domain: Endpoint",
 78    "OS: Windows",
 79    "Use Case: Threat Detection",
 80    "Rule Type: ML",
 81    "Rule Type: Machine Learning",
 82    "Tactic: Persistence",
 83    "Tactic: Execution",
 84]
 85type = "machine_learning"
 86[[rule.threat]]
 87framework = "MITRE ATT&CK"
 88[[rule.threat.technique]]
 89id = "T1543"
 90name = "Create or Modify System Process"
 91reference = "https://attack.mitre.org/techniques/T1543/"
 92[[rule.threat.technique.subtechnique]]
 93id = "T1543.003"
 94name = "Windows Service"
 95reference = "https://attack.mitre.org/techniques/T1543/003/"
 96
 97
 98
 99[rule.threat.tactic]
100id = "TA0003"
101name = "Persistence"
102reference = "https://attack.mitre.org/tactics/TA0003/"
103[[rule.threat]]
104framework = "MITRE ATT&CK"
105[[rule.threat.technique]]
106id = "T1204"
107name = "User Execution"
108reference = "https://attack.mitre.org/techniques/T1204/"
109[[rule.threat.technique.subtechnique]]
110id = "T1204.002"
111name = "Malicious File"
112reference = "https://attack.mitre.org/techniques/T1204/002/"
113
114
115
116[rule.threat.tactic]
117id = "TA0002"
118name = "Execution"
119reference = "https://attack.mitre.org/tactics/TA0002/"

References

Related rules

to-top