Detection: Cisco Secure Firewall - Connection to File Sharing Domain

Description

The following analytic detects outbound connections to commonly abused file sharing and pastebin-style hosting domains. It leverages Cisco Secure Firewall Threat Defense logs and focuses on allowed connections (action=Allow) where the url field matches a list of known data hosting or temporary storage services. While many of these platforms serve legitimate purposes, they are frequently leveraged by adversaries for malware delivery, data exfiltration, command and control (C2) beacons, or staging of encoded payloads. This analytic is valuable for identifying potential abuse of legitimate infrastructure as part of an attacker's kill chain.

 1`cisco_secure_firewall`
 2action IN ("Trust", "Allow", "allowed")
 3EventType=ConnectionEvent
 4[
 5    
 6| inputlookup file_sharing_domains_lookup
 7    
 8| table domain
 9    
10| rename domain as url
11]
12
13
14| lookup local=t file_sharing_domains_lookup domain as url OUTPUT description
15
16
17| where match(url, "(?i)\b".description."\b")
18
19
20| stats count min(_time) as firstTime
21              max(_time) as lastTime
22              values(src_port) as src_port
23              values(dest) as dest
24              values(dest_port) as dest_port
25              values(rule) as rule
26              values(url) as url
27              values(EVE_Process) as EVE_Process
28
29  by src transport action
30
31
32| `security_content_ctime(firstTime)`
33
34| `security_content_ctime(lastTime)`
35
36| `cisco_secure_firewall___connection_to_file_sharing_domain_filter`

Data Source

Name Platform Sourcetype Source
Cisco Secure Firewall Threat Defense Connection Event Network icon Network 'cisco:sfw:estreamer' 'not_applicable'

Macros Used

Name Value
security_content_ctime convert timeformat="%Y-%m-%dT%H:%M:%S" ctime($field$)
cisco_secure_firewall___connection_to_file_sharing_domain_filter search *
cisco_secure_firewall___connection_to_file_sharing_domain_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
T1071.001 Web Protocols Command and Control
T1090.002 External Proxy Command and Control
T1105 Ingress Tool Transfer Command and Control
T1567.002 Exfiltration to Cloud Storage Exfiltration
T1588.002 Tool Resource Development
Actions on Objectives
Weaponization
Command and Control
DE.AE
CIS 13

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) No
Creates Intermediate Finding (Risk Event) Yes
Anomaly detections generate Intermediate Findings (Risk Events). They do not generate a Finding (Notable) directly.

Implementation

This search requires Cisco Secure Firewall Threat Defense Logs, which includes the ConnectionEvent EventType. This search uses an input macro named cisco_secure_firewall. We strongly recommend that you specify your environment-specific configurations (index, source, sourcetype, etc.) for Cisco Secure Firewall Threat Defense logs. Replace the macro definition with configurations for your Splunk environment. The search also uses a post-filter macro designed to filter out known false positives. The logs are to be ingested using the Splunk Add-on for Cisco Security Cloud (https://splunkbase.splunk.com/app/7404). The access policy must also enable logging.

Known False Positives

Legitimate users and applications may use these domains for benign purposes such as file transfers, collaborative development, or storing public content. Developer tools, browser extensions, or open-source software may connect to githubusercontent.com or cdn.discordapp.com as part of normal operation. It is recommended to review the associated process (EVE_Process), user behavior, and frequency of access before classifying the activity as suspicious.

Associated Analytic Story

Intermediate Findings

Message Entity Field Entity Type Risk Score
The host [$src$] initiated a connection to a file sharing or pastebin domain [$url$]. src system 20

Threat Objects

Field Type
url url

References

Detection Testing

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

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: 11