Skip to content

Commit d93597e

Browse files
adjusted query logic
1 parent afa26de commit d93597e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/cross-platform/execution_aws_ec2_lolbin_via_ssm.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ FROM logs-aws.cloudtrail*, logs-endpoint.* METADATA _id, _version, _index
109109
AND host.os.type == "linux"
110110
AND (
111111
// SSM shell (_script.sh) runner
112-
process.command_line LIKE "%/document/orchestration/%/awsrunShellScript/%/_script.sh"
112+
process.command_line LIKE "*/document/orchestration/%/awsrunShellScript/*/_script.sh"
113113
// LOLBins / GTFOBins
114114
OR process.executable IN (
115115
"/usr/bin/base64",
@@ -159,7 +159,7 @@ FROM logs-aws.cloudtrail*, logs-endpoint.* METADATA _id, _version, _index
159159
// Identify the SSM shell processes (the _script.sh runners)
160160
| EVAL Esql.is_ssm_shell_process =
161161
Esql.is_endpoint_event
162-
AND process.command_line LIKE "%/document/orchestration/%/awsrunShellScript/%/_script.sh"
162+
AND process.command_line LIKE "*/document/orchestration/*/awsrunShellScript/*/_script.sh"
163163
164164
// LOLBins / GTFOBins on Linux
165165
| EVAL Esql.is_lolbin_process =

0 commit comments

Comments
 (0)