Machine Learning Detected a Suspicious Windows Event with a High Malicious Probability Score

A supervised machine learning model (ProblemChild) has identified a suspicious Windows process event with high probability of it being malicious activity. Alternatively, the model's blocklist identified the event as being malicious.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2023/10/16"
 3integration = ["problemchild", "endpoint", "windows"]
 4maturity = "production"
 5min_stack_comments = "LotL package job ID and rule removal updates"
 6min_stack_version = "8.9.0"
 7updated_date = "2024/04/01"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12A supervised machine learning model (ProblemChild) has identified a suspicious Windows process event with high
13probability of it being malicious activity. Alternatively, the model's blocklist identified the event as being
14malicious.
15"""
16from = "now-10m"
17index = ["endgame-*", "logs-endpoint.events.process-*", "winlogbeat-*"]
18language = "eql"
19license = "Elastic License v2"
20name = "Machine Learning Detected a Suspicious Windows Event with a High Malicious Probability Score"
21setup = """## Setup
22
23The 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.  
24
25### LotL Attack Detection Setup
26The LotL Attack Detection integration detects living-off-the-land activity in Windows process events.
27
28#### Prerequisite Requirements:
29- Fleet is required for LotL Attack Detection.
30- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
31- 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).
32- To install Elastic Defend, refer to the [documentation](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
33- To set up and run Winlogbeat, follow [this](https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation-configuration.html) guide.
34
35#### The following steps should be executed to install assets associated with the LotL Attack Detection integration:
36- Go to the Kibana homepage. Under Management, click Integrations.
37- In the query bar, search for Living off the Land Attack Detection and select the integration to see more details about it.
38- Under Settings, click Install Living off the Land Attack Detection assets and follow the prompts to install the assets.
39
40#### Ingest Pipeline Setup
41**Before you can enable this rule**, you'll need to enrich Windows process events with predictions from the Supervised LotL Attack Detection model. This is done via the ingest pipeline named `<package_version>-problem_child_ingest_pipeline` installed with the LotL Attack Detection package.
42- If using an Elastic Beat such as Winlogbeat, add the LotL ingest pipeline to it by adding a simple configuration [setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html#pipelines-for-beats) to `winlogbeat.yml`.
43- If adding the LotL ingest pipeline to an existing pipeline, use a [pipeline processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/pipeline-processor.html). For example, you can check if your winlogbeat or Elastic Defend (the [default index pattern](https://docs.elastic.co/en/integrations/endpoint#logs) being `logs-endpoint*`) already has an ingest pipeline by navigating to `Data > Index Management`, finding the index (sometimes you need to toggle "Include hidden indices"), and checking the index's settings for a default or final [pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html#set-default-pipeline).
44
45#### Adding Custom Mappings
46- Go to the Kibana homepage. Under Management, click Stack Management.
47- Under Data click Index Management and navigate to the Component Templates tab.
48- Templates that can be edited to add custom components will be marked with a @custom suffix. Edit the @custom component template corresponding to the beat/integration you added the LotL ingest pipeline to, by pasting the following JSON blob in the "Load JSON" flyout:

{ "properties": { "problemchild": { "properties": { "prediction": { "type": "long" }, "prediction_probability": { "type": "float" } } }, "blocklist_label": { "type": "long" } } }

 1"""
 2references = [
 3    "https://www.elastic.co/guide/en/security/current/prebuilt-ml-jobs.html",
 4    "https://docs.elastic.co/en/integrations/problemchild",
 5    "https://www.elastic.co/security-labs/detecting-living-off-the-land-attacks-with-new-elastic-integration",
 6]
 7risk_score = 21
 8rule_id = "994e40aa-8c85-43de-825e-15f665375ee8"
 9severity = "low"
10tags = [
11    "OS: Windows",
12    "Data Source: Elastic Endgame",
13    "Use Case: Living off the Land Attack Detection",
14    "Rule Type: ML",
15    "Rule Type: Machine Learning",
16    "Tactic: Defense Evasion",
17]
18timestamp_override = "event.ingested"
19type = "eql"
20
21query = '''
22process where ((problemchild.prediction == 1 and problemchild.prediction_probability > 0.98) or
23blocklist_label == 1) and not process.args : ("*C:\\WINDOWS\\temp\\nessus_*.txt*", "*C:\\WINDOWS\\temp\\nessus_*.tmp*")
24'''
25
26
27[[rule.threat]]
28framework = "MITRE ATT&CK"
29[[rule.threat.technique]]
30id = "T1036"
31name = "Masquerading"
32reference = "https://attack.mitre.org/techniques/T1036/"
33[[rule.threat.technique.subtechnique]]
34id = "T1036.004"
35name = "Masquerade Task or Service"
36reference = "https://attack.mitre.org/techniques/T1036/004/"
37
38
39
40[rule.threat.tactic]
41id = "TA0005"
42name = "Defense Evasion"
43reference = "https://attack.mitre.org/tactics/TA0005/"

References

Related rules

to-top