| ID | Technique | Tactic |
|---|---|---|
| T1552.001 | Credentials In Files | Credential Access |
Detection: Windows Unusual FileZilla XML Config Access
Description
The following analytic identifies processes accessing FileZilla XML config files such as recentservers.xml and sitemanager.xml. It leverages Windows Security Event logs, specifically monitoring EventCode 4663, which tracks object access events. This activity is significant because it can indicate unauthorized access or manipulation of sensitive configuration files used by FileZilla, a popular FTP client. If confirmed malicious, this could lead to data exfiltration, credential theft, or further compromise of the system.
Search
1`wineventlog_security`
2EventCode=4663
3file_path IN (
4 "*FileZilla\\recentservers.xml*",
5 "*FileZilla\\sitemanager.xml*"
6)
7NOT ProcessName IN (
8 "C:\\Program Files (x86)\\FileZilla FTP Client\\filezilla.exe",
9 "C:\\Program Files (x86)\\Microsoft OneDrive\\OneDrive.exe",
10 "C:\\Program Files\\FileZilla FTP Client\\filezilla.exe",
11 "C:\\Program Files\\Microsoft OneDrive\\OneDrive.exe"
12)
13
14
15| stats count min(_time) as firstTime
16 max(_time) as lastTime
17
18 by ObjectName file_path ObjectType ProcessName AccessMask
19 process_id EventCode Computer Caller_User_Name
20
21
22| rename Computer as dest,
23 Caller_User_Name as user
24 ProcessName as process_name
25
26
27| `security_content_ctime(firstTime)`
28
29| `security_content_ctime(lastTime)`
30
31| `windows_unusual_filezilla_xml_config_access_filter`
Data Source
| Name | Platform | Sourcetype | Source |
|---|---|---|---|
| Windows Event Log Security 4663 | 'XmlWinEventLog' |
'XmlWinEventLog:Security' |
Macros Used
| Name | Value |
|---|---|
| wineventlog_security | eventtype="wineventlog_security" OR Channel="security" OR source="XmlWinEventLog:Security" OR source="WinEventLog:Security" |
| windows_unusual_filezilla_xml_config_access_filter | search * |
windows_unusual_filezilla_xml_config_access_filter is an empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.
Annotations
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 |
Implementation
To successfully implement this search, you must ingest Windows Security Event logs and track event code 4663. For 4663, enable "Audit Object Access" in Group Policy. Then check the two boxes listed for both "Success" and "Failure."
Known False Positives
a third party application can access the FileZilla XML config files. Filter is needed.
Associated Analytic Story
Intermediate Findings
| Message | Entity Field | Entity Type | Risk Score |
|---|---|---|---|
| A non-FileZilla process [$process_name$] with [$process_id$] accessed FileZilla XML config files [$file_path$] on host [$dest$] | dest | system | 20 |
Threat Objects
| Field | Type |
|---|---|
| process_name | process_name |
References
Detection Testing
| Test Type | Status | Dataset | Source | Sourcetype |
|---|---|---|---|---|
| Validation | ✅ Passing | N/A | N/A | N/A |
| Unit | ✅ Passing | Dataset | XmlWinEventLog:Security |
XmlWinEventLog |
| Integration | ✅ Passing | Dataset | XmlWinEventLog:Security |
XmlWinEventLog |
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: 6