FortiSIEM Rules

UPS Battery Status Critical

Rule ID

PH_Rule_Environ_2

Default Status

Enabled

Description

Detects that key UPS battery status are reflecting critical state

Severity

9

Category

Availability

MITRE ATT&CK® Tactics

UPS

MITRE ATT&CK® Techniques

No Technique Specified

Impacts

Environmental

Data Source

Any UPS Device via SNMP

Detection

Correlation

Remediation Guidance

Identify the root cause and solve the issue

Time Window

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

120 seconds

Trigger Conditions

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

LowBattery2

SubPattern Definitions

SubPattern Name: LowBattery2

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 = "PH_DEV_MON_UPS_METRIC" AND (upsBatteryStatus = 3 OR upsBatteryStatus = 4 OR upsRemainBatteryChargePct < 50 OR upsTimeOnBattery >= 120 OR upsBasicOutputStatus != 2 OR upsReplaceBatteryIndicator = 2)

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

hostIpAddr, hostName

Aggregate Constraint

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

COUNT (*) >= 1 AND ( AVG(upsBatteryStatus) > 2 OR AVG(upsRemainBatteryChargePct) < 50 OR  AVG(upsTimeOnBattery) >= 120 OR AVG(upsBasicOutputStatus) > 2 OR AVG(upsReplaceBatteryIndicator) > 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

 hostIpAddr = LowBattery2.hostIpAddr,
 hostName = LowBattery2.hostName,
 upsTimeOnBattery = LowBattery2.AVG(upsTimeOnBattery),
 upsBatteryStatus = LowBattery2.AVG(upsBatteryStatus),
 upsRemainBatteryChargePct = LowBattery2.AVG(upsRemainBatteryChargePct),
 upsReplaceBatteryIndicator = LowBattery2.AVG(upsReplaceBatteryIndicator),
 upsBasicOutputStatus = LowBattery2.AVG(upsBasicOutputStatus)