Skip to content

Commit 6220644

Browse files
Update latest docs
1 parent a070786 commit 6220644

File tree

274 files changed

+25054
-798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+25054
-798
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
[[prebuilt-rule-8-18-13-active-directory-discovery-using-adexplorer]]
2+
=== Active Directory Discovery using AdExplorer
3+
4+
This rule detects the use of ADExplorer utility. Active Directory Explorer (AD Explorer) is an advanced Active Directory (AD) viewer and editor. AD Explorer also includes the ability to save snapshots of an AD database for off-line viewing and comparisons. Adversaries may abuse this utility to perform domain reconnaissance.
5+
6+
*Rule type*: eql
7+
8+
*Rule indices*:
9+
10+
* endgame-*
11+
* logs-crowdstrike.fdr*
12+
* logs-endpoint.events.process-*
13+
* logs-m365_defender.event-*
14+
* logs-sentinel_one_cloud_funnel.*
15+
* logs-system.security*
16+
* logs-windows.forwarded*
17+
* logs-windows.sysmon_operational-*
18+
* winlogbeat-*
19+
20+
*Severity*: low
21+
22+
*Risk score*: 21
23+
24+
*Runs every*: 5m
25+
26+
*Searches indices from*: now-9m ({ref}/common-options.html#date-math[Date Math format], see also <<rule-schedule, `Additional look-back time`>>)
27+
28+
*Maximum alerts per execution*: 100
29+
30+
*References*:
31+
32+
* https://learn.microsoft.com/en-us/sysinternals/downloads/adexplorer
33+
34+
*Tags*:
35+
36+
* Domain: Endpoint
37+
* OS: Windows
38+
* Use Case: Threat Detection
39+
* Tactic: Discovery
40+
* Resources: Investigation Guide
41+
* Data Source: Elastic Endgame
42+
* Data Source: Elastic Defend
43+
* Data Source: Windows Security Event Logs
44+
* Data Source: Microsoft Defender for Endpoint
45+
* Data Source: Sysmon
46+
* Data Source: SentinelOne
47+
* Data Source: Crowdstrike
48+
49+
*Version*: 1
50+
51+
*Rule authors*:
52+
53+
* Elastic
54+
55+
*Rule license*: Elastic License v2
56+
57+
58+
==== Investigation guide
59+
60+
61+
62+
*Triage and analysis*
63+
64+
65+
66+
*Investigating Active Directory Discovery using AdExplorer*
67+
68+
69+
Active Directory Explorer (AD Explorer) is an advanced Active Directory (AD) viewer and editor. AD Explorer also includes the ability to save snapshots of an AD database for off-line viewing and comparisons.
70+
71+
72+
*Possible investigation steps*
73+
74+
75+
- Identify the user account that performed the action and whether it should perform this kind of action.
76+
- Verify any file creation, this may indicate the creation of an AD snapshot.
77+
- Identify when the AdExplorer binary was dropped and by what process reviewing file creation events.
78+
- Contact the account owner and confirm whether they are aware of this activity.
79+
- Investigate other alerts associated with the user/host during the past 48 hours.
80+
81+
82+
*False positive analysis*
83+
84+
85+
- This rule has a high chance to produce false positives as it is a legitimate tool used by system administrators.
86+
- If this rule is noisy in your environment due to expected activity, consider adding exceptions — preferably with a combination of user and process path conditions.
87+
88+
89+
*Response and remediation*
90+
91+
92+
- Initiate the incident response process based on the outcome of the triage.
93+
- Isolate the involved host to prevent further post-compromise behavior.
94+
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
95+
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
96+
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
97+
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
98+
99+
100+
==== Rule query
101+
102+
103+
[source, js]
104+
----------------------------------
105+
process where host.os.type == "windows" and event.type == "start" and
106+
(process.name : "ADExplorer*.exe" or ?process.pe.original_file_name == "AdExp")
107+
108+
----------------------------------
109+
110+
*Framework*: MITRE ATT&CK^TM^
111+
112+
* Tactic:
113+
** Name: Discovery
114+
** ID: TA0007
115+
** Reference URL: https://attack.mitre.org/tactics/TA0007/
116+
* Technique:
117+
** Name: System Network Configuration Discovery
118+
** ID: T1016
119+
** Reference URL: https://attack.mitre.org/techniques/T1016/
120+
* Technique:
121+
** Name: Remote System Discovery
122+
** ID: T1018
123+
** Reference URL: https://attack.mitre.org/techniques/T1018/
124+
* Technique:
125+
** Name: Permission Groups Discovery
126+
** ID: T1069
127+
** Reference URL: https://attack.mitre.org/techniques/T1069/
128+
* Sub-technique:
129+
** Name: Domain Groups
130+
** ID: T1069.002
131+
** Reference URL: https://attack.mitre.org/techniques/T1069/002/
132+
* Technique:
133+
** Name: Account Discovery
134+
** ID: T1087
135+
** Reference URL: https://attack.mitre.org/techniques/T1087/
136+
* Sub-technique:
137+
** Name: Domain Account
138+
** ID: T1087.002
139+
** Reference URL: https://attack.mitre.org/techniques/T1087/002/
140+
* Technique:
141+
** Name: Domain Trust Discovery
142+
** ID: T1482
143+
** Reference URL: https://attack.mitre.org/techniques/T1482/
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
[[prebuilt-rule-8-18-13-adobe-hijack-persistence]]
2+
=== Adobe Hijack Persistence
3+
4+
Detects writing executable files that will be automatically launched by Adobe on launch.
5+
6+
*Rule type*: eql
7+
8+
*Rule indices*:
9+
10+
* winlogbeat-*
11+
* logs-endpoint.events.file-*
12+
* logs-windows.sysmon_operational-*
13+
* endgame-*
14+
* logs-sentinel_one_cloud_funnel.*
15+
* logs-m365_defender.event-*
16+
* logs-crowdstrike.fdr*
17+
18+
*Severity*: low
19+
20+
*Risk score*: 21
21+
22+
*Runs every*: 5m
23+
24+
*Searches indices from*: now-9m ({ref}/common-options.html#date-math[Date Math format], see also <<rule-schedule, `Additional look-back time`>>)
25+
26+
*Maximum alerts per execution*: 100
27+
28+
*References*:
29+
30+
* https://twitter.com/pabraeken/status/997997818362155008
31+
32+
*Tags*:
33+
34+
* Domain: Endpoint
35+
* OS: Windows
36+
* Use Case: Threat Detection
37+
* Tactic: Persistence
38+
* Resources: Investigation Guide
39+
* Data Source: Elastic Endgame
40+
* Data Source: Elastic Defend
41+
* Data Source: Sysmon
42+
* Data Source: SentinelOne
43+
* Data Source: Microsoft Defender for Endpoint
44+
* Data Source: Crowdstrike
45+
46+
*Version*: 418
47+
48+
*Rule authors*:
49+
50+
* Elastic
51+
52+
*Rule license*: Elastic License v2
53+
54+
55+
==== Investigation guide
56+
57+
58+
59+
*Triage and analysis*
60+
61+
62+
63+
*Investigating Adobe Hijack Persistence*
64+
65+
66+
Attackers can replace the `RdrCEF.exe` executable with their own to maintain their access, which will be launched whenever Adobe Acrobat Reader is executed.
67+
68+
> **Note**:
69+
> This investigation guide uses the https://www.elastic.co/guide/en/security/current/invest-guide-run-osquery.html[Osquery Markdown Plugin] introduced in Elastic Stack version 8.5.0. Older Elastic Stack versions will display unrendered Markdown in this guide.
70+
71+
72+
*Possible investigation steps*
73+
74+
75+
- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
76+
- Identify the user account that performed the action and whether it should perform this kind of action.
77+
- Investigate other alerts associated with the user/host during the past 48 hours.
78+
- Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts.
79+
- Examine the host for derived artifacts that indicate suspicious activities:
80+
- Analyze the file using a private sandboxed analysis system.
81+
- Observe and collect information about the following activities in both the sandbox and the alert subject host:
82+
- Attempts to contact external domains and addresses.
83+
- Use the Elastic Defend network events to determine domains and addresses contacted by the subject process by filtering by the process' `process.entity_id`.
84+
- Examine the DNS cache for suspicious or anomalous entries.
85+
- !{osquery{"label":"Osquery - Retrieve DNS Cache","query":"SELECT * FROM dns_cache"}}
86+
- Use the Elastic Defend registry events to examine registry keys accessed, modified, or created by the related processes in the process tree.
87+
- Examine the host services for suspicious or anomalous entries.
88+
- !{osquery{"label":"Osquery - Retrieve All Services","query":"SELECT description, display_name, name, path, pid, service_type, start_type, status, user_account FROM services"}}
89+
- !{osquery{"label":"Osquery - Retrieve Services Running on User Accounts","query":"SELECT description, display_name, name, path, pid, service_type, start_type, status, user_account FROM services WHERE\nNOT (user_account LIKE '%LocalSystem' OR user_account LIKE '%LocalService' OR user_account LIKE '%NetworkService' OR\nuser_account == null)\n"}}
90+
- !{osquery{"label":"Osquery - Retrieve Service Unsigned Executables with Virustotal Link","query":"SELECT concat('https://www.virustotal.com/gui/file/', sha1) AS VtLink, name, description, start_type, status, pid,\nservices.path FROM services JOIN authenticode ON services.path = authenticode.path OR services.module_path =\nauthenticode.path JOIN hash ON services.path = hash.path WHERE authenticode.result != 'trusted'\n"}}
91+
- Retrieve the files' SHA-256 hash values using the PowerShell `Get-FileHash` cmdlet and search for the existence and reputation of the hashes in resources like VirusTotal, Hybrid-Analysis, CISCO Talos, Any.run, etc.
92+
- Investigate potentially compromised accounts. Analysts can do this by searching for login events (for example, 4624) to the target host after the registry modification.
93+
94+
95+
*False positive analysis*
96+
97+
98+
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
99+
100+
101+
*Response and remediation*
102+
103+
104+
- Initiate the incident response process based on the outcome of the triage.
105+
- Isolate the involved host to prevent further post-compromise behavior.
106+
- If the triage identified malware, search the environment for additional compromised hosts.
107+
- Implement temporary network rules, procedures, and segmentation to contain the malware.
108+
- Stop suspicious processes.
109+
- Immediately block the identified indicators of compromise (IoCs).
110+
- Inspect the affected systems for additional malware backdoors like reverse shells, reverse proxies, or droppers that attackers could use to reinfect the system.
111+
- Remove and block malicious artifacts identified during triage.
112+
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
113+
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
114+
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
115+
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
116+
117+
118+
==== Rule query
119+
120+
121+
[source, js]
122+
----------------------------------
123+
file where host.os.type == "windows" and event.type == "creation" and
124+
file.path : (
125+
"?:\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\AcroCEF\\RdrCEF.exe",
126+
"?:\\Program Files\\Adobe\\Acrobat Reader DC\\Reader\\AcroCEF\\RdrCEF.exe",
127+
128+
/* Crowdstrike specific condition as it uses NT Object paths */
129+
"\\Device\\HarddiskVolume*\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\AcroCEF\\RdrCEF.exe",
130+
"\\Device\\HarddiskVolume*\\Program Files\\Adobe\\Acrobat Reader DC\\Reader\\AcroCEF\\RdrCEF.exe"
131+
) and
132+
not process.name : ("msiexec.exe", "AdobeARM.exe")
133+
134+
----------------------------------
135+
136+
*Framework*: MITRE ATT&CK^TM^
137+
138+
* Tactic:
139+
** Name: Persistence
140+
** ID: TA0003
141+
** Reference URL: https://attack.mitre.org/tactics/TA0003/
142+
* Technique:
143+
** Name: Compromise Host Software Binary
144+
** ID: T1554
145+
** Reference URL: https://attack.mitre.org/techniques/T1554/
146+
* Technique:
147+
** Name: Hijack Execution Flow
148+
** ID: T1574
149+
** Reference URL: https://attack.mitre.org/techniques/T1574/
150+
* Sub-technique:
151+
** Name: Services File Permissions Weakness
152+
** ID: T1574.010
153+
** Reference URL: https://attack.mitre.org/techniques/T1574/010/

0 commit comments

Comments
 (0)