FortiSIEM Rules

Windows: LSASS Access From Program in Potentially Suspicious Folder

Rule ID

PH_Rule_SIGMA_1085

Default Status

Enabled

Description

Detects process access to LSASS memory with suspicious access flags and from a potentially suspicious folder. Updaters and installers are typical false positives. Apply custom filters depending on your environment. This rule is adapted from https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_access/proc_access_win_susp_proc_access_lsass_susp_source.yml

Severity

5

Category

Security

MITRE ATT&CK® Tactics

Credential Access

Credential Access consists of techniques for stealing credentials like account names and passwords. Techniques used to get credentials include keylogging or credential dumping. Using legitimate credentials can give adversaries access to systems, make them harder to detect, and provide the opportunity to create more accounts to help achieve their goals.

https://attack.mitre.org/tactics/TA0006

MITRE ATT&CK® Techniques


T1003.001

OS Credential Dumping: LSASS Memory

Adversaries may attempt to access credential material stored in the process memory of the Local Security Authority Subsystem Service (LSASS).

https://attack.mitre.org/techniques/T1003/001

Impacts

Server

Data Source

Windows Sysmon via FortiSIEM Agent

Detection

Correlation

Remediation Guidance

Determine if this was an authorized penetration testing activity on the host. Otherwise, there is no reason for this activity to be occurring. The host should be quarantined and investigated immediately. Collect the process hash and check for malware match. Investigate what other incidents are occurring on that host during that time frame.

Time Window

If the following pattern or patterns match an ingested event within the given time window in seconds, trigger an incident.

300 seconds

Trigger Conditions

If the following defined pattern/s occur within a 300 second time window.

Filter

SubPattern Definitions

SubPattern Name: Filter

This is the named definition of the event query, this is important if multiple subpatterns are defined to distinguish them.

SubPattern Query

This is the query logic that matches incoming events

eventType="Win-Sysmon-10-ProcessAccess" AND (targetProcName REGEXP "\\lsass\.exe$" AND accessKeyId REGEXP "0x14C2$|10$|18$|1A$|30$|38$|3A$|50$|58$|5A$|70$|78$|7A$|90$|98$|9A$|B0$|B8$|BA$|D0$|D8$|DA$|F0$|F8$|FA$|FF$" AND procName REGEXP ".*\\AppData\\.*|.*\\PerfLogs\\.*|.*\\Temp\\.*|.*\\Temporary.*|.*\\Users\\Public\\.*") AND ((procName NOT REGEXP "^C:\\Users\\" OR procName NOT REGEXP ".*\\AppData\\Local\\.*" OR procName NOT REGEXP "\\DropboxUpdate\.exe$|\\JetBrains\\Toolbox\\bin\\jetbrains-toolbox\.exe$|\\MBAMInstallerService\.exe$|\\Microsoft VS Code\\Code\.exe$|\\WebEx\\WebexHost\.exe$|\\WebexMTA\.exe$|\\software_reporter_tool\.exe$" OR accessKeyId!="0x410") AND (procName NOT REGEXP "^C:\\Windows\\Temp\\" OR procName NOT REGEXP "\.tmp\\DropboxUpdate\.exe$" OR accessKeyId NOT IN ("0x1410","0x410")) AND (procName NOT REGEXP "^C:\\Users\\" OR procName NOT REGEXP ".*\\AppData\\Local\\Temp\\.*" OR procName NOT REGEXP "\.tmp\\DropboxUpdate\.exe$" OR accessKeyId!="0x1410") AND (procName NOT REGEXP "^C:\\Program Files \(x86\)\\Dropbox\\|^C:\\Program Files\\Dropbox\\" OR procName NOT REGEXP "\\DropboxUpdate\.exe$" OR accessKeyId!="0x1410") AND (procName NOT REGEXP "^C:\\Windows\\Temp\\asgard2-agent-sc\\|^C:\\Windows\\Temp\\asgard2-agent\\" OR procName NOT REGEXP "\\aurora-agent-64\.exe$|\\aurora-agent\.exe$|\\thor64\.exe$|\\thor\.exe$" OR accessKeyId NOT IN ("0x1010","0x101010","0x1fffff")) AND (procName NOT REGEXP "^C:\\Users\\" OR procName NOT REGEXP ".*\\AppData\\Local\\Temp\\.*" OR procName NOT REGEXP ".*\\vs_bootstrapper_.*" OR accessKeyId!="0x1410") AND (procName NOT REGEXP "^C:\\Program Files \(x86\)\\Google\\Temp\\" OR procName NOT REGEXP "\.tmp\\GoogleUpdate\.exe$" OR accessKeyId NOT IN ("0x1410","0x410")) AND (procName NOT REGEXP "^C:\\Users\\" OR procName NOT REGEXP "\\AppData\\Local\\Keybase\\keybase\.exe$" OR accessKeyId!="0x1fffff") AND (procName NOT REGEXP ".*\\AppData\\Local\\Temp\\is-.*" OR procName NOT REGEXP "\.tmp\\avira_system_speedup\.tmp$" OR accessKeyId!="0x1410") AND (procName NOT REGEXP "^C:\\Users\\" OR procName NOT REGEXP ".*\\AppData\\Roaming\\ViberPC\\.*" OR procName NOT REGEXP "\\updater\.exe$" OR targetProcName NOT REGEXP "\\winlogon\.exe$" OR accessKeyId!="0x1fffff") AND (procName NOT REGEXP "^C:\\Program Files \(x86\)\\Common Files\\Adobe\\ARM\\|^C:\\Program Files\\Common Files\\Adobe\\ARM\\" OR procName NOT REGEXP "\\AdobeARMHelper\.exe$" OR accessKeyId!="0x1410"))

Group by Attributes

This defines how matching events are aggregated, only events with the same matching attribute values are grouped into one unique incident ID

accessKeyId,hostName,procName,targetProcName

Aggregate Constraint

This is most typically a numerical constraint that defines when the rule should trigger an incident

COUNT(*) >= 1

Incident Attribute Mapping

This section defines which fields in matching raw events should be mapped to the incident attributes in the resulting incident.

The available raw event attributes to map are limited to the group by attributes and the aggregate event constraint fields for each subpattern

accessKeyId = Filter.accessKeyId,
hostName = Filter.hostName,
procName = Filter.procName,
targetProcName = Filter.targetProcName