Detection: Cisco Secure Endpoint - Browser Debug and Cookie Copy

Description

This analytic detects a browser remote-debugging alert followed by an rclone copy command naming that browser's Network\Cookies database, by correlating Cisco Secure Endpoint Behavioral Protection alerts for the same endpoint and actor. The browser alert also observes a force-close command in the same parent process. The sequence may indicate session-cookie theft, but the alerts do not prove cookies were read or that a copy completed. Review the source profile, remote destination, process lineage, 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 ("20260810007777","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.parent_guid output=browser_parent_guid
14
15| spath path=bp_data.details.matched_activity.events{1}.process:start.cmd_line output=kill_command
16
17| spath path=bp_data.details.matched_activity.events{1}.process:start.parent_guid output=kill_parent_guid
18
19| spath path=bp_data.details.matched_activity.events{0}.process:start.args{} output=process_args
20
21| eval copy_index=mvfind(process_args,"(?i)^(copy
22|sync)$"),
23       copy_source=mvindex(process_args,copy_index+1),
24       remote_destination=mvindex(process_args,copy_index+2)
25
26
27| eval stage=case(sig_id="20260810007777","browser",
28           sig_id="20240715190623","copy")
29
30
31| where (stage="browser"
32         AND isnotnull(kill_command)
33         AND browser_parent_guid=kill_parent_guid)
34        OR (stage="copy"
35                AND match(copy_source,"(?i)\\\\Network\\\\Cookies$"))
36
37
38| eval event_time=tonumber(timestamp)+tonumber(timestamp_nanoseconds)/1000000000
39
40
41| where isnotnull(endpoint_guid)
42        AND isnotnull(user)
43        AND isnotnull(event_time)
44
45
46| eval browser_time_candidate=if(stage="browser",event_time,null()),
47       browser_command_candidate=if(stage="browser",process_command,null()),
48       kill_command_candidate=if(stage="browser",kill_command,null())
49
50
51| sort 0 endpoint_guid user event_time
52
53
54| streamstats max(browser_time_candidate) as browser_time
55              last(browser_command_candidate) as browser_command
56              last(kill_command_candidate) as last_kill_command
57  by endpoint_guid user
58
59
60| where stage="copy"
61        AND isnotnull(browser_time)
62        AND isnotnull(last_kill_command)
63        AND isnotnull(copy_source)
64        AND isnotnull(remote_destination)
65        AND browser_time<event_time
66        AND event_time-browser_time<=300
67
68
69| eval kill_command=last_kill_command,
70       copy_command=process_command,
71       copy_time=event_time,
72       firstTime=browser_time,
73       lastTime=copy_time
74
75
76| where isnotnull(browser_command)
77        AND isnotnull(kill_command)
78
79
80| table dest user endpoint_guid browser_command kill_command copy_source
81        remote_destination copy_command bp_response firstTime lastTime
82
83| `security_content_ctime(firstTime)`
84
85| `security_content_ctime(lastTime)`
86
87| `cisco_secure_endpoint___browser_debug_and_cookie_copy_filter`

Data Source

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

Macros Used

Name Value
security_content_ctime convert timeformat="%Y-%m-%dT%H:%M:%S" ctime($field$)
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___browser_debug_and_cookie_copy_filter search *
cisco_secure_endpoint___browser_debug_and_cookie_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
T1048 Exfiltration Over Alternative Protocol Exfiltration
T1539 Steal Web Session Cookie Credential Access
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 browser debugging followed by a legitimate transfer of browser profile data can match. Verify the debugging request, process lineage, source file contents, remote destination, and authorization. The BP alerts do not expose cookie bytes or prove the copied file contained a live session.

Associated Analytic Story

Finding

Title Entity Field Entity Type Risk Score
Browser remote debugging followed by a cookie database copy by $user$ on $dest$ dest system 50

Threat Objects

Field Type
copy_source file_path
copy_command command
browser_command command

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