Suspicious Windows Process Cluster Spawned by a User

A machine learning job combination has detected a set of one or more suspicious Windows processes with unusually high scores for malicious probability. These process(es) have been classified as malicious in several ways. The process(es) were predicted to be malicious by the ProblemChild supervised ML model. If the anomaly contains a cluster of suspicious processes, each process has the same user name, and the aggregate score of the event cluster was calculated to be unusually high by an unsupervised ML model. Such a cluster often contains suspicious or malicious activity, possibly involving LOLbins, that may be resistant to detection using conventional search rules.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2023/10/16"
  3integration = ["problemchild", "endpoint", "windows"]
  4maturity = "production"
  5updated_date = "2025/01/15"
  6min_stack_version = "8.14.0"
  7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
  8
  9[rule]
 10anomaly_threshold = 75
 11author = ["Elastic"]
 12description = """
 13A machine learning job combination has detected a set of one or more suspicious Windows processes with unusually high
 14scores for malicious probability. These process(es) have been classified as malicious in several ways. The process(es)
 15were predicted to be malicious by the ProblemChild supervised ML model. If the anomaly contains a cluster of suspicious
 16processes, each process has the same user name, and the aggregate score of the event cluster was calculated to be
 17unusually high by an unsupervised ML model. Such a cluster often contains suspicious or malicious activity, possibly
 18involving LOLbins, that may be resistant to detection using conventional search rules.
 19"""
 20from = "now-45m"
 21interval = "15m"
 22license = "Elastic License v2"
 23machine_learning_job_id = "problem_child_high_sum_by_user"
 24name = "Suspicious Windows Process Cluster Spawned by a User"
 25references = [
 26    "https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html",
 27    "https://docs.elastic.co/en/integrations/problemchild",
 28    "https://www.elastic.co/security-labs/detecting-living-off-the-land-attacks-with-new-elastic-integration",
 29]
 30risk_score = 21
 31rule_id = "1224da6c-0326-4b4f-8454-68cdc5ae542b"
 32setup = """## Setup
 33
 34The rule requires the Living off the Land (LotL) Attack Detection integration assets to be installed, as well as Windows process events collected by integrations such as Elastic Defend or Winlogbeat.
 35
 36### LotL Attack Detection Setup
 37The LotL Attack Detection integration detects living-off-the-land activity in Windows process events.
 38
 39#### Prerequisite Requirements:
 40- Fleet is required for LotL Attack Detection.
 41- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
 42- Windows process events collected by the [Elastic Defend](https://docs.elastic.co/en/integrations/endpoint) integration or Winlogbeat(https://www.elastic.co/guide/en/beats/winlogbeat/current/_winlogbeat_overview.html).
 43- To install Elastic Defend, refer to the [documentation](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
 44- To set up and run Winlogbeat, follow [this](https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation-configuration.html) guide.
 45
 46#### The following steps should be executed to install assets associated with the LotL Attack Detection integration:
 47- Go to the Kibana homepage. Under Management, click Integrations.
 48- In the query bar, search for Living off the Land Attack Detection and select the integration to see more details about it.
 49- Follow the instructions under the **Installation** section.
 50- For this rule to work, complete the instructions through **Add preconfigured anomaly detection jobs**.
 51"""
 52severity = "low"
 53tags = [
 54    "Domain: Endpoint",
 55    "OS: Windows",
 56    "Use Case: Living off the Land Attack Detection",
 57    "Rule Type: ML",
 58    "Rule Type: Machine Learning",
 59    "Tactic: Defense Evasion",
 60    "Resources: Investigation Guide",
 61]
 62type = "machine_learning"
 63note = """## Triage and analysis
 64
 65> **Disclaimer**:
 66> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
 67
 68### Investigating Suspicious Windows Process Cluster Spawned by a User
 69
 70The detection leverages machine learning to identify clusters of Windows processes with high malicious probability, often linked to tactics like masquerading. Adversaries exploit legitimate tools (LOLBins) to evade detection. This rule uses both supervised and unsupervised ML models to flag unusual process clusters, focusing on user-associated anomalies to uncover potential threats.
 71
 72### Possible investigation steps
 73
 74- Review the list of processes flagged by the alert to identify any known legitimate applications or tools that might have been misclassified.
 75- Investigate the user account associated with the suspicious process cluster to determine if there is any history of unusual activity or if the account has been compromised.
 76- Examine the parent-child relationship of the processes to understand the execution chain and identify any potential masquerading attempts or use of LOLBins.
 77- Check for any recent changes or updates to the system that might explain the unusual process behavior, such as software installations or updates.
 78- Correlate the detected processes with any known indicators of compromise (IOCs) or threat intelligence feeds to assess if they are linked to known malicious activity.
 79- Analyze the network activity associated with the processes to identify any suspicious outbound connections or data exfiltration attempts.
 80
 81### False positive analysis
 82
 83- Legitimate administrative tools like PowerShell or Windows Management Instrumentation (WMI) may trigger false positives due to their frequent use in system management. Users can create exceptions for these tools when used by trusted administrators.
 84- Software updates or installations often involve processes that mimic suspicious behavior. Exclude these processes by identifying and whitelisting update-related activities from known software vendors.
 85- Automated scripts or scheduled tasks that perform routine maintenance can be misclassified as malicious. Review and whitelist these tasks if they are part of regular system operations.
 86- Development environments may spawn multiple processes that resemble malicious clusters. Developers should document and exclude these processes when they are part of legitimate development activities.
 87- Security software or monitoring tools might generate process clusters that appear suspicious. Ensure these tools are recognized and excluded from analysis to prevent false alerts.
 88
 89### Response and remediation
 90
 91- Isolate the affected system from the network to prevent further spread of potential malicious activity.
 92- Terminate the suspicious processes identified by the alert to halt any ongoing malicious actions.
 93- Conduct a thorough review of the affected user's account for any unauthorized access or changes, and reset credentials if necessary.
 94- Analyze the use of any identified LOLBins to determine if they were used maliciously and restrict their execution through application whitelisting or policy adjustments.
 95- Collect and preserve relevant logs and forensic data from the affected system for further analysis and to aid in understanding the scope of the incident.
 96- Escalate the incident to the security operations center (SOC) or incident response team for a deeper investigation and to determine if additional systems are compromised.
 97- Implement enhanced monitoring and detection rules to identify similar patterns of behavior in the future, focusing on the specific tactics and techniques used in this incident."""
 98[[rule.threat]]
 99framework = "MITRE ATT&CK"
100[[rule.threat.technique]]
101id = "T1036"
102name = "Masquerading"
103reference = "https://attack.mitre.org/techniques/T1036/"
104
105
106[rule.threat.tactic]
107id = "TA0005"
108name = "Defense Evasion"
109reference = "https://attack.mitre.org/tactics/TA0005/"
...
toml

Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

The detection leverages machine learning to identify clusters of Windows processes with high malicious probability, often linked to tactics like masquerading. Adversaries exploit legitimate tools (LOLBins) to evade detection. This rule uses both supervised and unsupervised ML models to flag unusual process clusters, focusing on user-associated anomalies to uncover potential threats.

  • Review the list of processes flagged by the alert to identify any known legitimate applications or tools that might have been misclassified.
  • Investigate the user account associated with the suspicious process cluster to determine if there is any history of unusual activity or if the account has been compromised.
  • Examine the parent-child relationship of the processes to understand the execution chain and identify any potential masquerading attempts or use of LOLBins.
  • Check for any recent changes or updates to the system that might explain the unusual process behavior, such as software installations or updates.
  • Correlate the detected processes with any known indicators of compromise (IOCs) or threat intelligence feeds to assess if they are linked to known malicious activity.
  • Analyze the network activity associated with the processes to identify any suspicious outbound connections or data exfiltration attempts.
  • Legitimate administrative tools like PowerShell or Windows Management Instrumentation (WMI) may trigger false positives due to their frequent use in system management. Users can create exceptions for these tools when used by trusted administrators.
  • Software updates or installations often involve processes that mimic suspicious behavior. Exclude these processes by identifying and whitelisting update-related activities from known software vendors.
  • Automated scripts or scheduled tasks that perform routine maintenance can be misclassified as malicious. Review and whitelist these tasks if they are part of regular system operations.
  • Development environments may spawn multiple processes that resemble malicious clusters. Developers should document and exclude these processes when they are part of legitimate development activities.
  • Security software or monitoring tools might generate process clusters that appear suspicious. Ensure these tools are recognized and excluded from analysis to prevent false alerts.
  • Isolate the affected system from the network to prevent further spread of potential malicious activity.
  • Terminate the suspicious processes identified by the alert to halt any ongoing malicious actions.
  • Conduct a thorough review of the affected user's account for any unauthorized access or changes, and reset credentials if necessary.
  • Analyze the use of any identified LOLBins to determine if they were used maliciously and restrict their execution through application whitelisting or policy adjustments.
  • Collect and preserve relevant logs and forensic data from the affected system for further analysis and to aid in understanding the scope of the incident.
  • Escalate the incident to the security operations center (SOC) or incident response team for a deeper investigation and to determine if additional systems are compromised.
  • Implement enhanced monitoring and detection rules to identify similar patterns of behavior in the future, focusing on the specific tactics and techniques used in this incident.

References

Related rules

to-top