Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Rule] Endpoint Security Promotion Rules for Specific Events #3533

Merged
merged 80 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
5dd7970
new endpoint security rules for specific alerts
terrancedejesus Mar 24, 2024
d47b135
updated risk scores
terrancedejesus Mar 24, 2024
bbd3d90
fixed rule names and UUIDs
terrancedejesus Mar 25, 2024
1f9ff5b
changed logic to use message field for detection vs prevention
terrancedejesus Mar 28, 2024
2539301
reverting changes
terrancedejesus Mar 28, 2024
b3c1393
reverting changes
terrancedejesus Mar 28, 2024
fb760f2
reverting to old commit
terrancedejesus Mar 28, 2024
36c1984
Merge branch 'new-rule-endpoint-security-promotions' of github.com:el…
terrancedejesus Mar 28, 2024
9030c6c
reverting to old commit
terrancedejesus Mar 28, 2024
552f2b2
reverting to old commit
terrancedejesus Mar 28, 2024
cb7ec5a
reverting to old commit
terrancedejesus Mar 28, 2024
ecae598
changed naming to Elastic Defend
terrancedejesus Mar 28, 2024
afd46f1
Merge branch 'main' into new-rule-endpoint-security-promotions
Mikaayenson Oct 31, 2024
c3f810a
updated rule dates and min-stacks
terrancedejesus Nov 26, 2024
ae08779
Merge branch 'main' into new-rule-endpoint-security-promotions
terrancedejesus Nov 26, 2024
6e581ff
linted; adjusted queries
terrancedejesus Nov 27, 2024
4b38614
updated ransomware, memory sig or shellcode risk
terrancedejesus Nov 27, 2024
bb0a2bc
Update rules/integrations/endpoint/elastic_endpoint_security.toml
terrancedejesus Nov 27, 2024
3e1b410
updated promotion rule
terrancedejesus Nov 27, 2024
fd95cde
fixed typos in naming
terrancedejesus Nov 27, 2024
8845a7b
updated setup guides
terrancedejesus Nov 27, 2024
23930b0
Merge branch 'main' into new-rule-endpoint-security-promotions
terrancedejesus Nov 27, 2024
7f5dd68
added intervals
terrancedejesus Nov 27, 2024
45931d8
added MITRE
Samirbous Dec 11, 2024
3a897ae
added investigation guide for Memory Threat
Samirbous Dec 11, 2024
1f92fa7
++
Samirbous Dec 11, 2024
72d6176
++
Samirbous Dec 11, 2024
0e0dddc
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
terrancedejesus Dec 12, 2024
a81c0d9
Update rules/integrations/endpoint/elastic_endpoint_security_memory_s…
terrancedejesus Dec 12, 2024
e8d1f11
Update rules/integrations/endpoint/elastic_endpoint_security_memory_s…
terrancedejesus Dec 12, 2024
716c603
Update rules/integrations/endpoint/elastic_endpoint_security_maliciou…
terrancedejesus Dec 12, 2024
c691843
Update rules/integrations/endpoint/elastic_endpoint_security_memory_s…
terrancedejesus Dec 12, 2024
acc55d2
Update rules/integrations/endpoint/elastic_endpoint_security_memory_s…
terrancedejesus Dec 12, 2024
5a085c8
Update rules/integrations/endpoint/elastic_endpoint_security_ransomwa…
terrancedejesus Dec 12, 2024
d841644
Update rules/integrations/endpoint/elastic_endpoint_security_ransomwa…
terrancedejesus Dec 12, 2024
a0876a5
++
Samirbous Dec 14, 2024
784f864
++
Samirbous Dec 14, 2024
bbe0c00
++
Samirbous Dec 14, 2024
943811a
++
Samirbous Dec 14, 2024
5b58649
Update rules/integrations/endpoint/elastic_endpoint_security.toml
Samirbous Dec 14, 2024
0ded2c0
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 14, 2024
3ae6c43
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 14, 2024
1f16839
Update rules/integrations/endpoint/elastic_endpoint_security_maliciou…
Samirbous Dec 14, 2024
a24862a
Update rules/integrations/endpoint/elastic_endpoint_security_memory_s…
Samirbous Dec 14, 2024
2d65d08
++
Samirbous Dec 18, 2024
a9be33f
++
Samirbous Dec 18, 2024
efd8cae
++
Samirbous Dec 18, 2024
b8bdc7d
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 18, 2024
32d6b5b
Update rules/integrations/endpoint/execution_elastic_malicious_file_d…
Samirbous Dec 18, 2024
9cd5612
Update rules/integrations/endpoint/impact_elastic_ransomware_detected…
Samirbous Dec 18, 2024
7dc21c0
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 18, 2024
e906e12
Update rules/integrations/endpoint/execution_elastic_malicious_file_p…
Samirbous Dec 18, 2024
55c4d15
Update rules/integrations/endpoint/impact_elastic_ransomware_prevente…
Samirbous Dec 18, 2024
09b6a6d
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
91a7814
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
614a4e5
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 18, 2024
61641e9
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 18, 2024
47d2680
Update rules/integrations/endpoint/elastic_endpoint_security_behavior…
Samirbous Dec 18, 2024
99d5294
Update rules/integrations/endpoint/execution_elastic_malicious_file_d…
Samirbous Dec 18, 2024
a424067
Update rules/integrations/endpoint/execution_elastic_malicious_file_d…
Samirbous Dec 18, 2024
7e6dbcf
Update rules/integrations/endpoint/execution_elastic_malicious_file_p…
Samirbous Dec 18, 2024
661ebb1
Update rules/integrations/endpoint/execution_elastic_malicious_file_p…
Samirbous Dec 18, 2024
a547658
Update rules/integrations/endpoint/execution_elastic_malicious_file_p…
Samirbous Dec 18, 2024
4114261
Update rules/integrations/endpoint/impact_elastic_ransomware_detected…
Samirbous Dec 18, 2024
36e5e48
Update rules/integrations/endpoint/impact_elastic_ransomware_detected…
Samirbous Dec 18, 2024
72443d4
Update rules/integrations/endpoint/impact_elastic_ransomware_detected…
Samirbous Dec 18, 2024
0382942
Update rules/integrations/endpoint/impact_elastic_ransomware_prevente…
Samirbous Dec 18, 2024
ddef417
Update rules/integrations/endpoint/impact_elastic_ransomware_prevente…
Samirbous Dec 18, 2024
c91de4e
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
09098c6
Update rules/integrations/endpoint/impact_elastic_ransomware_prevente…
Samirbous Dec 18, 2024
30c0d1a
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
fd86f63
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
a7be955
Update rules/integrations/endpoint/defense_evasion_elastic_memory_thr…
Samirbous Dec 18, 2024
4d45523
Update defense_evasion_elastic_memory_threat_prevented.toml
Samirbous Dec 18, 2024
d343994
toml-lint
Samirbous Dec 18, 2024
1e7f000
Update rules/integrations/endpoint/execution_elastic_malicious_file_d…
Samirbous Dec 18, 2024
90869e8
Merge branch 'main' into new-rule-endpoint-security-promotions
Mikaayenson Dec 18, 2024
e1b565d
++
Samirbous Dec 19, 2024
9f76999
Merge branch 'new-rule-endpoint-security-promotions' of https://githu…
Samirbous Dec 19, 2024
b78a44f
Merge branch 'main' into new-rule-endpoint-security-promotions
terrancedejesus Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
[metadata]
creation_date = "2024/03/24"
integration = ["endpoint"]
maturity = "production"
min_stack_comments = "Defend alerting adjustments patch to distinguish prevention and detection."
min_stack_version = "8.16.0"
promotion = true
updated_date = "2024/11/26"

[rule]
author = ["Elastic"]
description = """
Generates a detection alert each time an Elastic Defend alert for memory signatures are received. Enabling this rule
allows you to immediately begin investigating your Endpoint memory signature alerts. This rule identifies Elastic Defend
memory signature detections only, and does not include prevention alerts.
Samirbous marked this conversation as resolved.
Show resolved Hide resolved
"""
enabled = false
from = "now-10m"
index = ["logs-endpoint.alerts-*"]
interval = "5m"
language = "kuery"
license = "Elastic License v2"
max_signals = 10000
name = "Memory Threat - Detected - Elastic Defend"
note = """## Triage and analysis

### Investigating Memory Threat Alerts

Elastic Endpoint’s memory threat protection adds a layer of coverage for advanced attacks which avoid the traditional approach of writing payloads to disk. Instead, the malicious code runs only in-memory, an effective technique for evading legacy security products. There are currently two sub-categories of memory threat protection.

The first category is referred to as memory signatures and is available on all supported OS. It operates by periodically scanning process executable memory regions based on their activity to identify and terminate known bad malware.

The second category is referred to as shellcode thread and is unique to Windows endpoints today. A common technique of in-memory malware is to load the payload in a memory region not backed by a file on disk and create a thread to execute it.


### Possible investigation steps

- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts :
- For shellcode alerts, the key for bucketing alerts is stored in the `Memory_protection.unique_key_v1` field.
- For Memory signature alerts, bucket based on the signatures which match `rule.name`.
- Examine the following fields if there are any matches on known Yara signatures:
- `process.Ext.memory_region.malware_signature.all_names`
- `Target.process.Ext.memory_region.malware_signature.all_names`
- `process.Ext.memory_region.malware_signature.primary.signature.name`
- Review the memory region strings for any suspicious or unique keywords captured in `process.Ext.memory_region.strings` and `Target.process.Ext.memory_region.strings`.
- For signature matches review the `process.Ext.memory_region.malware_signature.primary.matches` and `process.Ext.memory_region.malware_signature.secondary.matches` to understand which keywords or byte sequences matched on the memory Yara signature.
- For shellcode alerts, check the field `Memory_protection.self_injection` value, if it's false it means it's a remote shellcode injection and you need to review the Target process details like `Target.process.executable` fields.
- Even if the acting process is signed, review any unsigned or suspicious loaded libraries (adversaries may use `DLL Side-Loading`) captured in:
- `process.thread.Ext.call_stack.module_path`
- `process.Ext.dll.path and process.Ext.dll.hash.sha256`
- `Target.process.Ext.dll.hash.sha256`
- `Target.process.Ext.dll.path`
- If you have access to VirusTotal of similar services, you can also perform vGrep searches to look for files with bytes matching on `process.thread.Ext.start_address_bytes` or `Target.process.thread.Ext.start_address_bytes`.
- Investigate any abnormal behavior by the subject process, such as network connections, registry or file modifications, and any spawned child processes.

### False positive analysis

- False positives may include Yara signature matches on generic keywords or some third party softwares performing code injection (often all involved files are signed and by the same vendor).

Samirbous marked this conversation as resolved.
Show resolved Hide resolved
### Response and Remediation

- Initiate the incident response process based on the outcome of the triage.
- If malicious activity is confirmed, perform a broader investigation to identify the scope of the compromise and determine the appropriate remediation steps.
- Implement Elastic Endpoint Security to detect and prevent further post exploitation activities in the environment.
- Contain the affected system by isolating it from the network to prevent further spread of the attack.
- If the triage identified malware, search the environment for additional compromised hosts.
- Implement temporary network rules, procedures, and segmentation to contain the malware.
- Stop suspicious processes.
- Immediately block the identified indicators of compromise (IoCs).
- Inspect the affected systems for additional malware backdoors like reverse shells, reverse proxies, or droppers that attackers could use to reinfect the system.
- Remove and block malicious artifacts identified during triage.
- Restore the affected system to its operational state by applying any necessary patches, updates, or configuration changes.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
"""
references = [
"https://github.com/elastic/protections-artifacts/tree/main/yara",
"https://docs.elastic.co/en/integrations/endpoint",
]
risk_score = 73
rule_id = "017de1e4-ea35-11ee-a417-f661ea17fbce"
rule_name_override = "message"
setup = """## Setup

### Elastic Defend Alerts
This rule is designed to capture specific alerts generated by Elastic Defend.

To capture all the Elastic Defend alerts, it is recommended to use all of the Elastic Defend feature-specific protection rules:

Behavior - Detected - Elastic Defend (UUID: 0f615fe4-eaa2-11ee-ae33-f661ea17fbce)
Behavior - Prevented - Elastic Defend (UUID: eb804972-ea34-11ee-a417-f661ea17fbce)
Malicious File - Detected - Elastic Defend (UUID: f2c3caa6-ea34-11ee-a417-f661ea17fbce)
Malicious File - Prevented - Elastic Defend (UUID: f87e6122-ea34-11ee-a417-f661ea17fbce)
Memory Threat - Detected - Elastic Defend (UUID: 017de1e4-ea35-11ee-a417-f661ea17fbce)
Memory Threat - Prevented - Elastic Defend (UUID: 06f3a26c-ea35-11ee-a417-f661ea17fbce)
Ransomware - Detected - Elastic Defend (UUID: 0c74cd7e-ea35-11ee-a417-f661ea17fbce)
Ransomware - Prevented - Elastic Defend (UUID: 10f3d520-ea35-11ee-a417-f661ea17fbce)

To avoid generating duplicate alerts, you should enable either all feature-specific protection rules or the Endpoint Security (Elastic Defend) rule (UUID: 9a1a2dae-0b5f-4c3d-8305-a268d404c306).

### Additional notes
This rule is configured to generate more **Max alerts per run** than the default 1000 alerts per run set for all rules. This is to ensure that it captures as many alerts as possible.

**IMPORTANT:** The rule's **Max alerts per run** setting can be superseded by the `xpack.alerting.rules.run.alerts.max` Kibana config setting, which determines the maximum alerts generated by _any_ rule in the Kibana alerting framework. For example, if `xpack.alerting.rules.run.alerts.max` is set to 1000, this rule will still generate no more than 1000 alerts even if its own **Max alerts per run** is set higher.

To make sure this rule can generate as many alerts as it's configured in its own **Max alerts per run** setting, increase the `xpack.alerting.rules.run.alerts.max` system setting accordingly.

**NOTE:** Changing `xpack.alerting.rules.run.alerts.max` is not possible in Serverless projects.
"""
severity = "high"
tags = ["Data Source: Elastic Defend", "Tactic: Defense Evasion"]
timestamp_override = "event.ingested"
type = "query"

query = '''
event.kind : alert and event.code : (memory_signature or shellcode_thread) and (event.type : allowed or (event.type: denied and event.outcome: failure))
'''


[[rule.exceptions_list]]
id = "endpoint_list"
list_id = "endpoint_list"
namespace_type = "agnostic"
type = "endpoint"

[[rule.risk_score_mapping]]
field = "event.risk_score"
operator = "equals"
value = ""

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "low"
value = "21"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "medium"
value = "47"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "high"
value = "73"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "critical"
value = "99"

[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1055"
name = "Process Injection"
reference = "https://attack.mitre.org/techniques/T1055/"

[[rule.threat.technique]]
id = "T1620"
name = "Reflective Code Loading"
reference = "https://attack.mitre.org/techniques/T1620/"


[rule.threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"

Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
[metadata]
creation_date = "2024/03/24"
integration = ["endpoint"]
maturity = "production"
min_stack_comments = "Defend alerting adjustments patch to distinguish prevention and detection."
min_stack_version = "8.16.0"
promotion = true
updated_date = "2024/11/26"

[rule]
author = ["Elastic"]
description = """
Generates a detection alert each time an Elastic Defend alert for memory signatures are received. Enabling this rule
allows you to immediately begin investigating your Endpoint memory signature alerts. This rule identifies Elastic Defend
memory signature preventions only, and does not include detection only alerts.
"""
enabled = false
from = "now-10m"
index = ["logs-endpoint.alerts-*"]
interval = "5m"
language = "kuery"
license = "Elastic License v2"
max_signals = 10000
name = "Memory Threat - Prevented- Elastic Defend"
note = """## Triage and analysis

### Investigating Memory Threat Alerts

Elastic Endpoint’s memory threat protection adds a layer of coverage for advanced attacks which avoid the traditional approach of writing payloads to disk. Instead, the malicious code runs only in-memory, an effective technique for evading legacy security products. There are currently two sub-categories of memory threat protection.

The first category is referred to as memory signatures and is available on all supported OS. It operates by periodically scanning process executable memory regions based on their activity to identify and terminate known bad malware.

The second category is referred to as shellcode thread and is unique to Windows endpoints today. A common technique of in-memory malware is to load the payload in a memory region not backed by a file on disk and create a thread to execute it.

### Possible investigation steps

- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts :
- For shellcode alerts, the key for bucketing alerts is stored in the `Memory_protection.unique_key_v1` field.
- For Memory signature alerts, bucket based on the signatures which match `rule.name`.
- Examine the following fields if there are any matches on known Yara signatures:
- `process.Ext.memory_region.malware_signature.all_names`
- `Target.process.Ext.memory_region.malware_signature.all_names`
- `process.Ext.memory_region.malware_signature.primary.signature.name`
- Review the memory region strings for any suspicious or unique keywords captured in `process.Ext.memory_region.strings` and `Target.process.Ext.memory_region.strings`.
- For signature matches review the `process.Ext.memory_region.malware_signature.primary.matches` and `process.Ext.memory_region.malware_signature.secondary.matches` to understand which keywords or byte sequences matched on the memory Yara signature.
- For shellcode alerts, check the field `Memory_protection.self_injection` value, if it's false it means it's a remote shellcode injection and you need to review the Target process details like `Target.process.executable` fields.
- Even if the acting process is signed, review any unsigned or suspicious loaded libraries (adversaries may use `DLL Side-Loading`) captured in:
- `process.thread.Ext.call_stack.module_path`
- `process.Ext.dll.path and process.Ext.dll.hash.sha256`
- `Target.process.Ext.dll.hash.sha256`
- `Target.process.Ext.dll.path`
- If you have access to VirusTotal of similar services, you can also perform vGrep searches to look for files with bytes matching on `process.thread.Ext.start_address_bytes` or `Target.process.thread.Ext.start_address_bytes`.
- Investigate any abnormal behavior by the subject process, such as network connections, registry or file modifications, and any spawned child processes.

### False positive analysis

- False positives may include Yara signature matches on generic keywords or some third party software performing code injection (often all involved files are signed and by the same vendor).

### Response and Remediation

- Initiate the incident response process based on the outcome of the triage.
- If malicious activity is confirmed, perform a broader investigation to identify the scope of the compromise and determine the appropriate remediation steps.
- Implement Elastic Endpoint Security to detect and prevent further post exploitation activities in the environment.
- Contain the affected system by isolating it from the network to prevent further spread of the attack.
- If the triage identified malware, search the environment for additional compromised hosts.
- Implement temporary network rules, procedures, and segmentation to contain the malware.
- Stop suspicious processes.
- Immediately block the identified indicators of compromise (IoCs).
- Inspect the affected systems for additional malware backdoors like reverse shells, reverse proxies, or droppers that attackers could use to reinfect the system.
- Remove and block malicious artifacts identified during triage.
- Restore the affected system to its operational state by applying any necessary patches, updates, or configuration changes.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
"""
references = [
"https://github.com/elastic/protections-artifacts/tree/main/yara",
"https://docs.elastic.co/en/integrations/endpoint",
]
risk_score = 73
rule_id = "06f3a26c-ea35-11ee-a417-f661ea17fbce"
rule_name_override = "message"
setup = """## Setup

### Elastic Defend Alerts
This rule is designed to capture specific alerts generated by Elastic Defend.

To capture all the Elastic Defend alerts, it is recommended to use all of the Elastic Defend feature-specific protection rules:

Behavior - Detected - Elastic Defend (UUID: 0f615fe4-eaa2-11ee-ae33-f661ea17fbce)
Behavior - Prevented - Elastic Defend (UUID: eb804972-ea34-11ee-a417-f661ea17fbce)
Malicious File - Detected - Elastic Defend (UUID: f2c3caa6-ea34-11ee-a417-f661ea17fbce)
Malicious File - Prevented - Elastic Defend (UUID: f87e6122-ea34-11ee-a417-f661ea17fbce)
Memory Threat - Detected - Elastic Defend (UUID: 017de1e4-ea35-11ee-a417-f661ea17fbce)
Memory Threat - Prevented - Elastic Defend (UUID: 06f3a26c-ea35-11ee-a417-f661ea17fbce)
Ransomware - Detected - Elastic Defend (UUID: 0c74cd7e-ea35-11ee-a417-f661ea17fbce)
Ransomware - Prevented - Elastic Defend (UUID: 10f3d520-ea35-11ee-a417-f661ea17fbce)

To avoid generating duplicate alerts, you should enable either all feature-specific protection rules or the Endpoint Security (Elastic Defend) rule (UUID: 9a1a2dae-0b5f-4c3d-8305-a268d404c306).

### Additional notes
This rule is configured to generate more **Max alerts per run** than the default 1000 alerts per run set for all rules. This is to ensure that it captures as many alerts as possible.

**IMPORTANT:** The rule's **Max alerts per run** setting can be superseded by the `xpack.alerting.rules.run.alerts.max` Kibana config setting, which determines the maximum alerts generated by _any_ rule in the Kibana alerting framework. For example, if `xpack.alerting.rules.run.alerts.max` is set to 1000, this rule will still generate no more than 1000 alerts even if its own **Max alerts per run** is set higher.

To make sure this rule can generate as many alerts as it's configured in its own **Max alerts per run** setting, increase the `xpack.alerting.rules.run.alerts.max` system setting accordingly.

**NOTE:** Changing `xpack.alerting.rules.run.alerts.max` is not possible in Serverless projects.
"""
severity = "high"
tags = ["Data Source: Elastic Defend", "Tactic: Defense Evasion"]
timestamp_override = "event.ingested"
type = "query"

query = '''
event.kind : alert and event.code : (memory_signature or shellcode_thread) and event.type : denied and event.outcome : success
'''


[[rule.exceptions_list]]
id = "endpoint_list"
list_id = "endpoint_list"
namespace_type = "agnostic"
type = "endpoint"

[[rule.risk_score_mapping]]
field = "event.risk_score"
operator = "equals"
value = ""

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "low"
value = "21"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "medium"
value = "47"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "high"
value = "73"

[[rule.severity_mapping]]
field = "event.severity"
operator = "equals"
severity = "critical"
value = "99"

[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1055"
name = "Process Injection"
reference = "https://attack.mitre.org/techniques/T1055/"

[[rule.threat.technique]]
id = "T1620"
name = "Reflective Code Loading"
reference = "https://attack.mitre.org/techniques/T1620/"


[rule.threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"

Loading
Loading