Skip to content

Commit 758f991

Browse files
Aegrahgithub-actions[bot]
authored andcommitted
[Rule Tuning] Linux User Added to Privileged Group (#4206)
(cherry picked from commit b0bba39)
1 parent 4cc7643 commit 758f991

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

rules/linux/persistence_linux_user_added_to_privileged_group.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2023/02/13"
33
integration = ["endpoint", "auditd_manager"]
44
maturity = "production"
5-
updated_date = "2024/09/23"
5+
updated_date = "2024/10/24"
66

77
[transform]
88
[[transform.osquery]]
@@ -120,35 +120,31 @@ tags = [
120120
]
121121
timestamp_override = "event.ingested"
122122
type = "eql"
123-
124123
query = '''
125124
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started")
126125
and process.args in (
127126
"root", "admin", "wheel", "staff", "sudo","disk", "video", "shadow", "lxc", "lxd"
128127
) and
129128
(
130129
process.name in ("usermod", "adduser") or
131-
process.name == "gpasswd" and
132-
process.args in ("-a", "--add", "-M", "--members")
130+
(process.name == "gpasswd" and process.args in ("-a", "--add", "-M", "--members"))
133131
)
134132
'''
135133

136-
137134
[[rule.threat]]
138135
framework = "MITRE ATT&CK"
136+
139137
[[rule.threat.technique]]
140138
id = "T1136"
141139
name = "Create Account"
142140
reference = "https://attack.mitre.org/techniques/T1136/"
141+
143142
[[rule.threat.technique.subtechnique]]
144143
id = "T1136.001"
145144
name = "Local Account"
146145
reference = "https://attack.mitre.org/techniques/T1136/001/"
147146

148-
149-
150147
[rule.threat.tactic]
151148
id = "TA0003"
152149
name = "Persistence"
153150
reference = "https://attack.mitre.org/tactics/TA0003/"
154-

0 commit comments

Comments
 (0)