Skip to content

Commit d46907d

Browse files
w0rk3rtradebot-elastic
authored andcommitted
[Rule Tuning] Update PowerShell ES|QL Rules KEEP Condition (#5391)
* [Rule Tuning] Update PowerShell ES|QL Rules KEEP Condition * Update defense_evasion_posh_obfuscation_proportion_special_chars.toml * ++, powershell.file.* * ++ --------- Co-authored-by: Ruben Groenewoud <[email protected]> (cherry picked from commit b8aedcd)
1 parent 068e2bb commit d46907d

13 files changed

+32
-39
lines changed

rules/windows/defense_evasion_posh_obfuscation_backtick.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -104,8 +104,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
104104
| keep
105105
Esql.script_block_pattern_count,
106106
Esql.script_block_tmp,
107-
powershell.file.script_block_text,
108-
powershell.file.script_block_id,
107+
powershell.file.*,
109108
file.name,
110109
file.directory,
111110
file.path,

rules/windows/defense_evasion_posh_obfuscation_backtick_var.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -103,8 +103,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
103103
Esql.script_block_pattern_count,
104104
Esql.script_block_length,
105105
Esql.script_block_tmp,
106-
powershell.file.script_block_text,
107-
powershell.file.script_block_id,
106+
powershell.file.*,
108107
file.path,
109108
file.name,
110109
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_char_arrays.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -105,8 +105,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
105105
| keep
106106
Esql.script_block_pattern_count,
107107
Esql.script_block_tmp,
108-
powershell.file.script_block_text,
109-
powershell.file.script_block_id,
108+
powershell.file.*,
110109
file.path,
111110
powershell.sequence,
112111
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_concat_dynamic.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -101,8 +101,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
101101
| keep
102102
Esql.script_block_pattern_count,
103103
Esql.script_block_tmp,
104-
powershell.file.script_block_text,
105-
powershell.file.script_block_id,
104+
powershell.file.*,
106105
file.path,
107106
powershell.sequence,
108107
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_high_number_proportion.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -106,8 +106,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
106106
Esql.script_block_ratio,
107107
Esql.script_block_length,
108108
Esql.script_block_tmp,
109-
powershell.file.script_block_text,
110-
powershell.file.script_block_id,
109+
powershell.file.*,
111110
file.directory,
112111
file.path,
113112
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_iex_env_vars_reconstruction.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -106,8 +106,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
106106
Esql.script_block_pattern_count,
107107
Esql.script_block_length,
108108
Esql.script_block_tmp,
109-
powershell.file.script_block_text,
110-
powershell.file.script_block_id,
109+
powershell.file.*,
111110
file.path,
112111
powershell.sequence,
113112
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_iex_string_reconstruction.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -107,8 +107,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
107107
Esql.script_block_pattern_count,
108108
Esql.script_block_length,
109109
Esql.script_block_tmp,
110-
powershell.file.script_block_text,
111-
powershell.file.script_block_id,
110+
powershell.file.*,
112111
file.path,
113112
file.directory,
114113
powershell.sequence,

rules/windows/defense_evasion_posh_obfuscation_index_reversal.toml

Lines changed: 2 additions & 3 deletions
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,8 +108,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
108108
Esql.script_block_pattern_count,
109109
Esql.script_block_length,
110110
Esql.script_block_tmp,
111-
powershell.file.script_block_text,
112-
powershell.file.script_block_id,
111+
powershell.file.*,
113112
file.path,
114113
powershell.sequence,
115114
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_reverse_keyword.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -104,8 +104,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
104104
| keep
105105
Esql.script_block_pattern_count,
106106
Esql.script_block_tmp,
107-
powershell.file.script_block_text,
108-
powershell.file.script_block_id,
107+
powershell.file.*,
109108
file.path,
110109
powershell.sequence,
111110
powershell.total,

rules/windows/defense_evasion_posh_obfuscation_string_concat.toml

Lines changed: 2 additions & 3 deletions
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"]
@@ -106,8 +106,7 @@ from logs-windows.powershell_operational* metadata _id, _version, _index
106106
Esql.script_block_pattern_count,
107107
Esql.script_block_length,
108108
Esql.script_block_tmp,
109-
powershell.file.script_block_text,
110-
powershell.file.script_block_id,
109+
powershell.file.*,
111110
file.path,
112111
powershell.sequence,
113112
powershell.total,

0 commit comments

Comments
 (0)