FortiSIEM Rules

Windows: Suspicious ADSI-Cache Usage By Unknown Tool

Rule ID

PH_Rule_SIGMA_324

Default Status

Enabled

Description

Detects the usage of ADSI (LDAP) operations by tools. This may also detect tools like LDAPFragger. This rule is adapted from https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_susp_adsi_cache_usage.yml

Severity

7

Category

Security

MITRE ATT&CK® Tactics

Command And Control

MITRE ATT&CK® Techniques


T1001.003

Data Obfuscation: Protocol Impersonation

Adversaries may impersonate legitimate protocols or web service traffic to disguise command and control activity and thwart analysis efforts. By impersonating legitimate protocols or web services, adversaries can make their command and control traffic blend in with legitimate network traffic.

https://attack.mitre.org/techniques/T1001/003

Impacts

Server

Data Source

Windows Sysmon via FortiSIEM Agent

Detection

Correlation

Remediation Guidance

No remediation guidance specified

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-11-FileCreate" AND (fileName REGEXP ".*\\Local\\Microsoft\\Windows\\SchCache\\.*" AND fileName REGEXP "\.sch$") AND ((procName NOT IN ("C:\\Program Files\\Cylance\\Desktop\\CylanceSvc.exe","C:\\Windows\\CCM\\CcmExec.exe","C:\\Windows\\System32\\wbem\\WmiPrvSE.exe","C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe","C:\\windows\\system32\\dllhost.exe","C:\\windows\\system32\\mmc.exe","C:\\windows\\system32\\svchost.exe")) AND (procName NOT REGEXP "^C:\\Program Files\\SentinelOne\\Sentinel Agent|^C:\\Windows\\ccmsetup\\autoupgrade\\ccmsetup") AND (procName NOT REGEXP "\\LANDesk\\LDCLient\\ldapwhoami\.exe$") AND (procName NOT IN ("C:\\Windows\\system32\\dsac.exe","C:\\Windows\\system32\\efsui.exe")) AND (procName NOT REGEXP ":\\Program Files\\Citrix\\Receiver StoreFront\\Services\\DefaultDomainServices\\Citrix\.DeliveryServices\.DomainServices\.ServiceHost\.exe$"))

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

fileName,hostName,procName

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

fileName = Filter.fileName,
hostName = Filter.hostName,
procName = Filter.procName