Detection: Windows Unusual Process Load Mozilla NSS-Mozglue Module

Description

The following analytic identifies an unusual or uncommon process loading Mozilla NSS-Mozglue libraries such as mozglue.dll and nss3.dll. It leverages Sysmon Event logs, specifically monitoring EventCode 7, which tracks image loaded events. Attackers may load these DLLs in order to decrypt browser-stored credentials without raising typical AV signatures. Malware and stealers such as Vidar Stealer and Quasar RAT have been observed loading these DLLs.

 1`sysmon`
 2EventCode=7
 3ImageLoaded IN ("*\\mozglue.dll", "*\\nss3.dll")
 4
 5NOT process_path IN(
 6    "*:\\Program Files (x86)\\Code42\\CrashPlan\\Code42Service.exe",
 7    "*:\\Program Files (x86)\\Cyberfox\\cyberfox.exe",
 8    "*:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe",
 9    "*:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe",
10    "*:\\Program Files (x86)\\Mozilla Thunderbird\\thunderbird.exe",
11    "*:\\Program Files (x86)\\Pale Moon\\palemoon.exe",
12    "*:\\Program Files (x86)\\VMware\\VMware Horizon View Client\\vmware-view.exe",
13    "*:\\Program Files (x86)\\Waterfox\\waterfox.exe",
14    "*:\\Program Files\\Code42\\CrashPlan\\Code42Service.exe",
15    "*:\\Program Files\\Cyberfox\\cyberfox.exe",
16    "*:\\Program Files\\Google\\Google Earth Pro\\client\\googleearth.exe",
17    "*:\\Program Files\\Mozilla Firefox\\firefox.exe",
18    "*:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe",
19    "*:\\Program Files\\Pale Moon\\palemoon.exe",
20    "*:\\Program Files\\Waterfox\\waterfox.exe",
21    "*\\AppData\\Local\\slack\\slack.exe",
22    "*\\Tor Browser\\Browser\\firefox.exe"
23)
24
25
26| fillnull
27
28
29| stats count min(_time) as firstTime
30              max(_time) as lastTime
31
32  by Image ImageLoaded dest loaded_file loaded_file_path original_file_name
33     process_exec process_guid process_hash process_id process_name
34     process_path service_dll_signature_exists service_dll_signature_verified
35     signature signature_id user_id vendor_product
36
37
38| `security_content_ctime(firstTime)`
39
40| `security_content_ctime(lastTime)`
41
42| `windows_unusual_process_load_mozilla_nss_mozglue_module_filter`

Data Source

Name Platform Sourcetype Source
Sysmon EventID 7 Windows icon Windows 'XmlWinEventLog' 'XmlWinEventLog:Microsoft-Windows-Sysmon/Operational'

Macros Used

Name Value
security_content_ctime convert timeformat="%Y-%m-%dT%H:%M:%S" ctime($field$)
windows_unusual_process_load_mozilla_nss_mozglue_module_filter search *
windows_unusual_process_load_mozilla_nss_mozglue_module_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
T1218.003 CMSTP Stealth
Exploitation
DE.AE
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) No
Creates Intermediate Finding (Risk Event) Yes
Anomaly detections generate Intermediate Findings (Risk Events). They do not generate a Finding (Notable) directly.

Implementation

To successfully implement this search, you need to be ingesting logs with the process name and imageloaded executions from your endpoints. If you are using Sysmon, you must have at least version 6.0.4 of the Sysmon TA.

Known False Positives

Legitimate windows application that are not on the list loading this dll. Filter as needed.

Associated Analytic Story

Intermediate Findings

Message Entity Field Entity Type Risk Score
A non Mozilla process named [$process_name$] with [$process_id$] loaded the Mozilla NSS-Mozglue library [$Image$] 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:Microsoft-Windows-Sysmon/Operational XmlWinEventLog
Integration ✅ Passing Dataset XmlWinEventLog:Microsoft-Windows-Sysmon/Operational 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: 10