Skip to content

Commit a344b2b

Browse files
committed
[Rule Tuning] Update PowerShell ES|QL Rules KEEP Condition
1 parent 6915e39 commit a344b2b

13 files changed

+70
-13
lines changed

rules/windows/defense_evasion_posh_obfuscation_backtick.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/15"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/08/14"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -106,6 +106,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
106106
Esql.script_block_tmp,
107107
powershell.file.script_block_text,
108108
powershell.file.script_block_id,
109+
powershell.file.script_block_entropy_bits,
110+
powershell.file.script_block_surprisal_stdev,
111+
powershell.file.script_block_length,
112+
powershell.file.script_block_unique_symbols,
109113
file.name,
110114
file.directory,
111115
file.path,

rules/windows/defense_evasion_posh_obfuscation_backtick_var.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/16"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/07/16"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -105,6 +105,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
105105
Esql.script_block_tmp,
106106
powershell.file.script_block_text,
107107
powershell.file.script_block_id,
108+
powershell.file.script_block_entropy_bits,
109+
powershell.file.script_block_surprisal_stdev,
110+
powershell.file.script_block_length,
111+
powershell.file.script_block_unique_symbols,
108112
file.path,
109113
file.name,
110114
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_char_arrays.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/14"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/07/16"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -107,6 +107,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
107107
Esql.script_block_tmp,
108108
powershell.file.script_block_text,
109109
powershell.file.script_block_id,
110+
powershell.file.script_block_entropy_bits,
111+
powershell.file.script_block_surprisal_stdev,
112+
powershell.file.script_block_length,
113+
powershell.file.script_block_unique_symbols,
110114
file.path,
111115
powershell.sequence,
112116
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_concat_dynamic.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/15"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/07/16"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -103,6 +103,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
103103
Esql.script_block_tmp,
104104
powershell.file.script_block_text,
105105
powershell.file.script_block_id,
106+
powershell.file.script_block_entropy_bits,
107+
powershell.file.script_block_surprisal_stdev,
108+
powershell.file.script_block_length,
109+
powershell.file.script_block_unique_symbols,
106110
file.path,
107111
powershell.sequence,
108112
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_high_number_proportion.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/16"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/08/14"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -108,6 +108,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
108108
Esql.script_block_tmp,
109109
powershell.file.script_block_text,
110110
powershell.file.script_block_id,
111+
powershell.file.script_block_entropy_bits,
112+
powershell.file.script_block_surprisal_stdev,
113+
powershell.file.script_block_length,
114+
powershell.file.script_block_unique_symbols,
111115
file.directory,
112116
file.path,
113117
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_iex_env_vars_reconstruction.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/16"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/08/14"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -108,6 +108,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
108108
Esql.script_block_tmp,
109109
powershell.file.script_block_text,
110110
powershell.file.script_block_id,
111+
powershell.file.script_block_entropy_bits,
112+
powershell.file.script_block_surprisal_stdev,
113+
powershell.file.script_block_length,
114+
powershell.file.script_block_unique_symbols,
111115
file.path,
112116
powershell.sequence,
113117
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_iex_string_reconstruction.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/16"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/08/14"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -109,6 +109,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
109109
Esql.script_block_tmp,
110110
powershell.file.script_block_text,
111111
powershell.file.script_block_id,
112+
powershell.file.script_block_entropy_bits,
113+
powershell.file.script_block_surprisal_stdev,
114+
powershell.file.script_block_length,
115+
powershell.file.script_block_unique_symbols,
112116
file.path,
113117
file.directory,
114118
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_index_reversal.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/14"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/07/16"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -110,6 +110,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
110110
Esql.script_block_tmp,
111111
powershell.file.script_block_text,
112112
powershell.file.script_block_id,
113+
powershell.file.script_block_entropy_bits,
114+
powershell.file.script_block_surprisal_stdev,
115+
powershell.file.script_block_length,
116+
powershell.file.script_block_unique_symbols,
113117
file.path,
114118
powershell.sequence,
115119
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_reverse_keyword.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/14"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/08/14"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -106,6 +106,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
106106
Esql.script_block_tmp,
107107
powershell.file.script_block_text,
108108
powershell.file.script_block_id,
109+
powershell.file.script_block_entropy_bits,
110+
powershell.file.script_block_surprisal_stdev,
111+
powershell.file.script_block_length,
112+
powershell.file.script_block_unique_symbols,
109113
file.path,
110114
powershell.sequence,
111115
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_string_concat.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/04/14"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/07/16"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -108,6 +108,10 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
108108
Esql.script_block_tmp,
109109
powershell.file.script_block_text,
110110
powershell.file.script_block_id,
111+
powershell.file.script_block_entropy_bits,
112+
powershell.file.script_block_surprisal_stdev,
113+
powershell.file.script_block_length,
114+
powershell.file.script_block_unique_symbols,
111115
file.path,
112116
powershell.sequence,
113117
powershell.total,

0 commit comments

Comments
 (0)