2023-07-19 21:27:23 +05:30
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2023/07/11"
|
2024-03-07 12:35:33 +01:00
|
|
|
integration = ["endpoint", "auditd_manager"]
|
2023-07-19 21:27:23 +05:30
|
|
|
maturity = "production"
|
2026-01-07 16:52:40 +01:00
|
|
|
updated_date = "2024/12/23"
|
2023-07-19 21:27:23 +05:30
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
building_block_type = "default"
|
|
|
|
|
description = """
|
2026-01-07 16:52:40 +01:00
|
|
|
Identifies the use of built-in tools to read the contents of "/etc/hosts" on a local machine. Attackers may use this data
|
2023-07-19 21:27:23 +05:30
|
|
|
to discover remote machines in an environment that may be used for Lateral Movement from the current system.
|
|
|
|
|
"""
|
|
|
|
|
from = "now-119m"
|
2024-05-22 13:51:46 -05:00
|
|
|
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
|
2024-05-23 00:45:10 +05:30
|
|
|
interval = "60m"
|
2023-07-19 21:27:23 +05:30
|
|
|
language = "eql"
|
|
|
|
|
license = "Elastic License v2"
|
|
|
|
|
name = "System Hosts File Access"
|
|
|
|
|
risk_score = 21
|
|
|
|
|
rule_id = "f75f65cf-ed04-48df-a7ff-b02a8bfe636e"
|
|
|
|
|
severity = "low"
|
2024-03-07 12:35:33 +01:00
|
|
|
tags = [
|
2024-05-23 00:45:10 +05:30
|
|
|
"Domain: Endpoint",
|
|
|
|
|
"OS: Linux",
|
|
|
|
|
"OS: macOS",
|
|
|
|
|
"Use Case: Threat Detection",
|
|
|
|
|
"Tactic: Discovery",
|
|
|
|
|
"Rule Type: BBR",
|
|
|
|
|
"Data Source: Elastic Defend",
|
|
|
|
|
"Data Source: Elastic Endgame",
|
|
|
|
|
"Data Source: Auditd Manager",
|
|
|
|
|
]
|
2023-07-19 21:27:23 +05:30
|
|
|
timestamp_override = "event.ingested"
|
|
|
|
|
type = "eql"
|
|
|
|
|
query = '''
|
2024-03-07 12:35:33 +01:00
|
|
|
process where event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started") and
|
2026-01-07 16:52:40 +01:00
|
|
|
process.name in ("vi", "nano", "cat", "more", "less", "vim", "vim.basic", "emacs") and process.args == "/etc/hosts" and
|
|
|
|
|
not ?process.working_directory in ("/opt/SolarWinds/Agent/bin/Plugins/SCM", "/opt/cohesityagent/software/crux/bin")
|
2023-07-19 21:27:23 +05:30
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
2026-01-07 16:52:40 +01:00
|
|
|
|
2023-07-19 21:27:23 +05:30
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1018"
|
|
|
|
|
name = "Remote System Discovery"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1018/"
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0007"
|
|
|
|
|
name = "Discovery"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0007/"
|