FortiSIEM Rules

Privileged Command Execution Failure

Rule ID

PH_Rule_Access_68

Default Status

Enabled

Description

Detects excessive privileged command execution (e.g. sudo exec) failure at a server

Severity

9

Category

Security

MITRE ATT&CK® Tactics

Privilege Escalation

Privilege Escalation consists of techniques that adversaries use to gain higher-level permissions on a system or network. Adversaries can often enter and explore a network with unprivileged access but require elevated permissions to follow through on their objectives. Common approaches are to take advantage of system weaknesses, misconfigurations, and vulnerabilities.

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

MITRE ATT&CK® Techniques


T1548.002

Abuse Elevation Control Mechanism: Bypass User Account Control

Adversaries may bypass UAC mechanisms to elevate process privileges on system. Windows User Account Control (UAC) allows a program to elevate its privileges (tracked as integrity levels ranging from low to high) to perform a task under administrator-level permissions, possibly by prompting the user for confirmation.

https://attack.mitre.org/techniques/T1548/002

Impacts

Server

Data Source

Linux via Syslog, FortiGate via Syslog, FortiProxy via Syslog

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.

600 seconds

Trigger Conditions

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

PrivExecFailure

SubPattern Definitions

SubPattern Name: PrivExecFailure

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 IN (Group@PH_SYS_EVENT_HostPrivExecFailure) AND reptDevIpAddr IN (Group@PH_SYS_DEVICE_Server)

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

reptDevName,reptDevIpAddr, user

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

 destName = PrivExecFailure.reptDevName,
 destIpAddr = PrivExecFailure.reptDevIpAddr,
 user = PrivExecFailure.user,
 incidentCount = PrivExecFailure.COUNT(*)