Detection: Cisco Secure Endpoint - NTDS Shadow Export Followed By Rclone Copy

Description

This analytic detects an NTDS shadow export alert followed by an rclone copy command that names the exact exported file, by correlating Cisco Secure Endpoint Behavioral Protection alerts on the same endpoint and actor. The artifact match links credential-database collection to an attempted remote copy. The command does not prove transfer completion; inspect the remote destination, network telemetry, and prevention actions.

 1`cisco_secure_endpoint`
 2event_type="Threat Detection"
 3
 4
 5| `cisco_secure_endpoint_extract_bp_fields`
 6
 7
 8| where sig_id IN ("20251021123145","20240715190623")
 9
10
11| spath path=bp_data.details.matched_activity.events{0}.process:start.cmd_line output=process_command
12
13| spath path=bp_data.details.matched_activity.events{0}.process:start.args{} output=process_args
14
15| eval rclone_index=mvfind(process_args,"(?i)^(copy
16|sync)$"),
17       rclone_source=mvindex(process_args,rclone_index+1),
18       rclone_target=mvindex(process_args,rclone_index+2)
19
20| spath path=bp_data.details.matched_activity.events{0}.process:start.user.domain output=actor_domain
21
22| spath path=bp_data.details.matched_activity.events{1}.file:create.path output=export_dir
23
24| spath path=bp_data.details.matched_activity.events{1}.file:create.name output=export_name
25
26
27| eval stage=if(sig_id="20251021123145","export","transfer"),
28       actor=lower(user),
29       actor_domain=lower(actor_domain),
30       event_time=tonumber(timestamp)+tonumber(timestamp_nanoseconds)/1000000000,
31       export_file_candidate=if(stage="export",export_dir.urldecode("%5C").export_name,null()),
32       export_time_candidate=if(stage="export",event_time,null()),
33       vss_command_candidate=if(stage="export",process_command,null()),
34       transfer_source=if(stage="transfer",lower(rclone_source),null()),
35       transfer_destination=if(stage="transfer",rclone_target,null())
36
37
38| where isnotnull(endpoint_guid)
39        AND isnotnull(actor)
40        AND isnotnull(actor_domain)
41        AND isnotnull(event_time)
42
43
44| sort 0 endpoint_guid actor_domain actor event_time
45
46
47| streamstats last(export_time_candidate) as export_time
48        last(export_file_candidate) as export_file
49        last(vss_command_candidate) as vss_command
50  by endpoint_guid actor_domain actor
51
52
53| where stage="transfer"
54        AND isnotnull(export_time)
55        AND isnotnull(export_file)
56        AND transfer_source=lower(export_file)
57        AND event_time>=export_time
58        AND event_time-export_time<=600
59
60
61| eval user=actor_domain.urldecode("%5C").actor,
62       firstTime=export_time,
63       lastTime=event_time
64
65
66| table dest user endpoint_guid export_file vss_command
67        process_command transfer_destination firstTime lastTime
68
69| rename process_command as transfer_command
70
71| `security_content_ctime(firstTime)`
72
73| `security_content_ctime(lastTime)`
74
75| `cisco_secure_endpoint___ntds_shadow_export_followed_by_rclone_copy_filter`

Data Source

Name Platform Sourcetype Source
Cisco Secure Endpoint Behavioral Protection Threat Detection Other 'cisco:se' 'not_applicable'

Macros Used

Name Value
cisco_secure_endpoint sourcetype="cisco:se"
search bp_engine=apde
spath path=bp_data.details.sig_id output=sig_id
spath path=computer.connector_guid output=endpoint_guid
spath path=computer.hostname output=dest
spath path=bp_data.details.matched_activity.events{0}.process:start.user.name output=user
spath path=bp_data.details.matched_activity.events{0}.registry:set.user.name output=registry_user
spath path=bp_data.details.matched_activity.events{0}.file:create.user.name output=file_user
eval user=coalesce(user,registry_user,file_user)
spath path=bp_data.audit output=bp_audit
spath path=bp_data.details.actions{}.action output=bp_action
spath path=bp_data.details.actions{}.status output=bp_action_status
eval bp_response=case(bp_audit="true","audit mode",isnotnull(bp_action_status),mvjoin(bp_action,", "),true(),"no action reported")`
cisco_secure_endpoint___ntds_shadow_export_followed_by_rclone_copy_filter search *
cisco_secure_endpoint___ntds_shadow_export_followed_by_rclone_copy_filter is an empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.

Annotations

- MITRE ATT&CK
+ Kill Chain Phases
+ NIST
+ CIS
- Threat Actors
ID Technique Tactic
T1003.003 NTDS Credential Access
T1048 Exfiltration Over Alternative Protocol Exfiltration
Exploitation
Actions on Objectives
DE.CM
CIS 10

Default Configuration

This detection is configured by default in Splunk Enterprise Security to run with the following settings:

Setting Value
Disabled true
Cron Schedule 0 * * * *
Earliest Time -70m@m
Latest Time -10m@m
Schedule Window auto
Creates Finding (Notable) Yes
Rule Title %name%
Rule Description %description%
Notable Event Fields user, dest
Creates Intermediate Finding (Risk Event) No
TTP detections generate a Finding (Notable) and may generate Intermediate Findings (Risk Events) for associated entities.

Implementation

This search requires Cisco Secure Endpoint Behavioral Protection Threat Detection alerts, which include event_type="Threat Detection". This search uses an input macro named cisco_secure_endpoint. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Cisco Secure Endpoint Behavioral Protection Threat Detection alerts. Replace the macro definition with configurations for your Splunk environment. The cisco_secure_endpoint_extract_bp_fields macro extracts the common signature, endpoint, actor, and prevention-response fields used by this search. The search also uses a post-filter macro designed to filter out known false positives. The logs are to be ingested using the Cisco Security Cloud App for Splunk (https://splunkbase.splunk.com/app/7404). In Protect mode, a Behavioral Protection response can kill or quarantine an earlier stage, so this search requires each later alert to have actually appeared. Review bp_data.audit and bp_data.details.actions in the source events before concluding that a task registered, a process completed, or a transfer succeeded. The included audit-mode fixtures verify alert correlation, not survival of an enforced prevention action.

Known False Positives

Approved domain controller media creation or backup can export NTDS and copy the file to an administrative repository. Confirm the transfer destination, operator, change record, and storage controls.

Associated Analytic Story

Finding

Title Entity Field Entity Type Risk Score
NTDS export followed by an rclone copy of the exported file by $user$ on $dest$ dest system 50

Threat Objects

Field Type
transfer_command command
transfer_destination file_path
export_file file_path

References

Detection Testing

Test Type Status Dataset Source Sourcetype
Validation ✅ Passing N/A N/A N/A
Unit ✅ Passing Dataset not_applicable cisco:se
Integration ✅ Passing Dataset not_applicable cisco:se

Replay any dataset to Splunk Enterprise by using our replay.py tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range


Source: GitHub |

Version: 1