Non-Firefox Process Accessing Firefox Profile Directory
Detection of non-Firefox processes accessing the Firefox profile directory, potentially indicating malware attempting to steal user credentials and data.
This analytic identifies processes other than Firefox accessing the Firefox profile directory. The Firefox profile directory stores sensitive user information, including login credentials, browsing history, cookies, and other personal data. Unauthorized access to this directory can indicate malicious activity, such as malware (RATs, trojans, or stealers) attempting to harvest user data. This detection leverages Windows Security Event logs, specifically event ID 4663. Observed access can lead to data exfiltration, unauthorized account access, and system compromise, making it a critical indicator for security monitoring. This behavior has been associated with multiple threat actors leveraging stealers and remote access trojans.
Attack Chain
- Malware gains initial access to the system through an unknown vector.
- The malware executes and attempts to locate the Firefox profile directory, typically found under
\AppData\Roaming\Mozilla\Firefox\Profiles*. - The malware leverages Windows API calls to enumerate and access files within the Firefox profile directory. This is logged as Event ID 4663 with specific AccessMask values.
- The malware reads sensitive files such as
key4.db,logins.json, andcookies.sqliteto extract credentials and browsing data. - The malware may use SQLite commands to query the
cookies.sqlitedatabase for session cookies. - The extracted data is staged in a temporary directory for exfiltration.
- The malware establishes a command and control (C2) connection to exfiltrate the stolen data.
- The attacker gains unauthorized access to user accounts and sensitive information.
Impact
A successful attack can result in the compromise of user credentials, leading to unauthorized access to sensitive accounts and services. Data exfiltration from the Firefox profile directory can expose personal information, browsing history, and saved passwords. This type of compromise can impact individual users, leading to identity theft and financial loss. Organizations can also be affected if employee credentials are stolen, potentially leading to broader network compromise and data breaches. Multiple stealer families (RedLine, AgentTesla, Lokibot, SnakeKeylogger, and 0bj3ctivity) target Firefox profiles.
Recommendation
- Enable "Audit Object Access" in Group Policy and configure auditing for both success and failure events for file system objects to generate Windows Security Event 4663 (see "How To Implement" in content).
- Deploy the Sigma rule
Detect Non Firefox Process Access Firefox Profile Dirto your SIEM to detect unauthorized access to the Firefox profile directory (see rules). - Investigate any alerts generated by the Sigma rule by examining the
ProcessNameandObjectNameto determine the legitimacy of the access (see rules). - Review the analytic stories associated with this detection for additional context and related threats, including StealC Stealer, DarkGate Malware, and RedLine Stealer (see tags).
Detection coverage 2
Detect Non Firefox Process Access Firefox Profile Dir
highDetects non-Firefox processes accessing the Firefox profile directory, which contains sensitive user data.
Suspicious Process Accessing Firefox Profile Directory via Event 4663
mediumThis rule identifies processes accessing the Firefox profile directory (containing sensitive user data) that are not Firefox itself or system processes, indicating potential malicious activity.
Detection queries are available on the platform. Get full rules →