2023-07-31 10:28:25 -03:00
|
|
|
[metadata]
|
2024-05-23 00:45:10 +05:30
|
|
|
bypass_bbr_timing = true
|
2023-07-31 10:28:25 -03:00
|
|
|
creation_date = "2023/07/14"
|
|
|
|
|
integration = ["endpoint"]
|
|
|
|
|
maturity = "production"
|
2026-02-20 14:11:35 -03:00
|
|
|
updated_date = "2026/02/19"
|
2023-07-31 10:28:25 -03:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
2023-10-11 10:15:29 +02:00
|
|
|
building_block_type = "default"
|
2023-07-31 10:28:25 -03:00
|
|
|
description = """
|
|
|
|
|
This rule identifies the execution of unsigned executables via service control manager (SCM). Adversaries may abuse SCM
|
|
|
|
|
to execute malware or escalate privileges.
|
|
|
|
|
"""
|
2023-10-11 10:15:29 +02:00
|
|
|
from = "now-9m"
|
2024-04-08 08:57:33 -03:00
|
|
|
index = ["logs-endpoint.events.process-*"]
|
2023-10-11 10:15:29 +02:00
|
|
|
language = "kuery"
|
2023-07-31 10:28:25 -03:00
|
|
|
license = "Elastic License v2"
|
|
|
|
|
name = "Execution of an Unsigned Service"
|
|
|
|
|
risk_score = 21
|
|
|
|
|
rule_id = "56fdfcf1-ca7c-4fd9-951d-e215ee26e404"
|
|
|
|
|
severity = "low"
|
2024-05-23 00:45:10 +05:30
|
|
|
tags = [
|
|
|
|
|
"Domain: Endpoint",
|
|
|
|
|
"OS: Windows",
|
|
|
|
|
"Use Case: Threat Detection",
|
|
|
|
|
"Tactic: Execution",
|
|
|
|
|
"Tactic: Defense Evasion",
|
|
|
|
|
"Rule Type: BBR",
|
|
|
|
|
"Data Source: Elastic Defend",
|
|
|
|
|
]
|
2023-07-31 10:28:25 -03:00
|
|
|
timestamp_override = "event.ingested"
|
2023-10-11 10:15:29 +02:00
|
|
|
type = "new_terms"
|
2023-07-31 10:28:25 -03:00
|
|
|
|
|
|
|
|
query = '''
|
2023-10-11 10:15:29 +02:00
|
|
|
host.os.type:windows and event.category:process and event.type:start and
|
|
|
|
|
process.parent.executable:"C:\\Windows\\System32\\services.exe" and
|
2024-02-14 14:21:07 -03:00
|
|
|
(process.code_signature.exists:false or process.code_signature.trusted:false) and
|
|
|
|
|
not process.code_signature.status : (errorCode_endpoint* or "errorChaining")
|
2023-07-31 10:28:25 -03:00
|
|
|
'''
|
|
|
|
|
|
2024-05-23 00:45:10 +05:30
|
|
|
|
2023-07-31 10:28:25 -03:00
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1569"
|
|
|
|
|
name = "System Services"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1569/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1569.002"
|
|
|
|
|
name = "Service Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1569/002/"
|
|
|
|
|
|
2024-05-23 00:45:10 +05:30
|
|
|
|
|
|
|
|
|
2023-07-31 10:28:25 -03:00
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0002"
|
|
|
|
|
name = "Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0002/"
|
2023-10-15 18:12:20 -03:00
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1036"
|
|
|
|
|
name = "Masquerading"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1036/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1036.001"
|
|
|
|
|
name = "Invalid Code Signature"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1036/001/"
|
|
|
|
|
|
2024-05-23 00:45:10 +05:30
|
|
|
|
|
|
|
|
|
2023-10-15 18:12:20 -03:00
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0005"
|
|
|
|
|
name = "Defense Evasion"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0005/"
|
|
|
|
|
|
2023-10-11 10:15:29 +02:00
|
|
|
[rule.new_terms]
|
|
|
|
|
field = "new_terms_fields"
|
|
|
|
|
value = ["host.id", "process.executable", "user.id"]
|
|
|
|
|
[[rule.new_terms.history_window_start]]
|
|
|
|
|
field = "history_window_start"
|
2026-02-20 14:11:35 -03:00
|
|
|
value = "now-5d"
|
2024-05-23 00:45:10 +05:30
|
|
|
|
|
|
|
|
|