7c5f17e30c
* [New Rules] user/group creation * Update rules/linux/persistence_linux_group_creation.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * Update rules/linux/persistence_linux_user_account_creation.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * Update rules/linux/persistence_linux_user_added_to_privileged_group.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * added backdoor user account * added host.os.type == linux for unit testing fix * unit testing fixes * Update rules/linux/persistence_linux_backdoor_user_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/linux/persistence_linux_backdoor_user_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Added OSQuery to Investigation Guides * Update rules/linux/persistence_linux_backdoor_user_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/linux/persistence_linux_backdoor_user_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * removed investigation guides to add in future PR * Fixed some issues with the rules * fixed typo * Update rules/linux/persistence_linux_backdoor_user_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/linux/persistence_linux_user_account_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/linux/persistence_linux_user_added_to_privileged_group.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> * Update rules/linux/persistence_linux_group_creation.toml Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> --------- Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com>
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[metadata]
|
|
creation_date = "2023/02/13"
|
|
integration = ["system"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/06/22"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies attempts to create a new group. Attackers may create new groups to establish persistence on a system.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["logs-system.auth-*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Linux Group Creation"
|
|
risk_score = 21
|
|
rule_id = "a1c2589e-0c8c-4ca8-9eb6-f83c4bbdbe8f"
|
|
severity = "low"
|
|
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Persistence"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
query = '''
|
|
iam where host.os.type == "linux" and (event.type == "group" and event.type == "creation") and
|
|
process.name in ("groupadd", "addgroup") and group.name != null
|
|
'''
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
|
|
[[rule.threat.technique]]
|
|
id = "T1136"
|
|
name = "Create Account"
|
|
reference = "https://attack.mitre.org/techniques/T1136/"
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1136.001"
|
|
name = "Local Account"
|
|
reference = "https://attack.mitre.org/techniques/T1136/001/"
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0003"
|
|
name = "Persistence"
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|