Rule(s) deprecation as part of Linux Detection Rule Review (#2163)

(cherry picked from commit e9267e544c)
This commit is contained in:
shashank-elastic
2022-07-26 18:48:25 +05:30
committed by github-actions[bot]
parent 883607488a
commit 8d4606d0dc
6 changed files with 22 additions and 13 deletions
@@ -1,52 +0,0 @@
[metadata]
creation_date = "2020/04/24"
maturity = "production"
updated_date = "2021/03/03"
[rule]
author = ["Elastic"]
description = """
Adversaries may attempt to disable the iptables or firewall service in an attempt to affect how a host is allowed to
receive or send network traffic.
"""
from = "now-9m"
index = ["auditbeat-*", "logs-endpoint.events.*"]
language = "kuery"
license = "Elastic License v2"
name = "Attempt to Disable IPTables or Firewall"
risk_score = 47
rule_id = "125417b8-d3df-479f-8418-12d7e034fee3"
severity = "medium"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Defense Evasion"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.category:process and event.type:(start or process_started) and
process.name:ufw and process.args:(allow or disable or reset) or
(((process.name:service and process.args:stop) or
(process.name:chkconfig and process.args:off) or
(process.name:systemctl and process.args:(disable or stop or kill))) and
process.args:(firewalld or ip6tables or iptables))
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1562"
name = "Impair Defenses"
reference = "https://attack.mitre.org/techniques/T1562/"
[[rule.threat.technique.subtechnique]]
id = "T1562.001"
name = "Disable or Modify Tools"
reference = "https://attack.mitre.org/techniques/T1562/001/"
[rule.threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
@@ -1,44 +0,0 @@
[metadata]
creation_date = "2020/02/18"
maturity = "production"
updated_date = "2022/07/18"
[rule]
author = ["Elastic"]
description = "Identifies processes running in a temporary folder. This is sometimes done by adversaries to hide malware."
false_positives = [
"""
Build systems, like Jenkins, may start processes in the `/tmp` directory. These can be exempted by name or by
username.
""",
]
from = "now-9m"
index = ["auditbeat-*", "logs-endpoint.events.*"]
language = "kuery"
license = "Elastic License v2"
name = "Unusual Process Execution - Temp"
risk_score = 47
rule_id = "df959768-b0c9-4d45-988c-5606a2be8e5a"
severity = "medium"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Execution"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.category:process and event.type:(start or process_started) and process.working_directory:/tmp and
not process.parent.name:(update-motd-updates-available or
apt or apt-* or
cnf-update-db or
appstreamcli or
unattended-upgrade or
packagekitd) and
not process.args:(/usr/lib/update-notifier/update-motd-updates-available or
/var/lib/command-not-found/)
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[rule.threat.tactic]
id = "TA0002"
name = "Execution"
reference = "https://attack.mitre.org/tactics/TA0002/"
@@ -1,52 +0,0 @@
[metadata]
creation_date = "2020/07/08"
maturity = "production"
updated_date = "2021/03/03"
[rule]
author = ["Elastic"]
description = "Identifies that the maximum number of failed login attempts has been reached for a user."
index = ["auditbeat-*"]
language = "kuery"
license = "Elastic License v2"
name = "Auditd Max Failed Login Attempts"
references = [
"https://github.com/linux-pam/linux-pam/blob/0adbaeb273da1d45213134aa271e95987103281c/modules/pam_faillock/pam_faillock.c#L574",
]
risk_score = 47
rule_id = "fb9937ce-7e21-46bf-831d-1ad96eac674d"
severity = "medium"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Initial Access"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.module:auditd and event.action:"failed-log-in-too-many-times-to"
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
@@ -1,52 +0,0 @@
[metadata]
creation_date = "2020/07/08"
maturity = "production"
updated_date = "2021/03/03"
[rule]
author = ["Elastic"]
description = "Identifies that a login attempt has happened from a forbidden location."
index = ["auditbeat-*"]
language = "kuery"
license = "Elastic License v2"
name = "Auditd Login from Forbidden Location"
references = [
"https://github.com/linux-pam/linux-pam/blob/aac5a8fdc4aa3f7e56335a6343774cc1b63b408d/modules/pam_access/pam_access.c#L412",
]
risk_score = 73
rule_id = "cab4f01c-793f-4a54-a03e-e5d85b96d7af"
severity = "high"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Initial Access"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.module:auditd and event.action:"attempted-log-in-from-unusual-place-to"
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
@@ -1,52 +0,0 @@
[metadata]
creation_date = "2020/07/08"
maturity = "production"
updated_date = "2021/03/03"
[rule]
author = ["Elastic"]
description = "Identifies that the maximum number login sessions has been reached for a user."
index = ["auditbeat-*"]
language = "kuery"
license = "Elastic License v2"
name = "Auditd Max Login Sessions"
references = [
"https://github.com/linux-pam/linux-pam/blob/70c32cc6fca51338f92afa58eb75b1107a5c2430/modules/pam_limits/pam_limits.c#L1007",
]
risk_score = 47
rule_id = "20dc4620-3b68-4269-8124-ca5091e00ea8"
severity = "medium"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Initial Access"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.module:auditd and event.action:"opened-too-many-sessions-to"
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
@@ -1,52 +0,0 @@
[metadata]
creation_date = "2020/07/08"
maturity = "production"
updated_date = "2021/03/03"
[rule]
author = ["Elastic"]
description = "Identifies that a login attempt occurred at a forbidden time."
index = ["auditbeat-*"]
language = "kuery"
license = "Elastic License v2"
name = "Auditd Login Attempt at Forbidden Time"
references = [
"https://github.com/linux-pam/linux-pam/blob/aac5a8fdc4aa3f7e56335a6343774cc1b63b408d/modules/pam_time/pam_time.c#L666",
]
risk_score = 47
rule_id = "90e28af7-1d96-4582-bf11-9a1eff21d0e5"
severity = "medium"
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Initial Access"]
timestamp_override = "event.ingested"
type = "query"
query = '''
event.module:auditd and event.action:"attempted-log-in-during-unusual-hour-to"
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1078"
name = "Valid Accounts"
reference = "https://attack.mitre.org/techniques/T1078/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"