Detection rules › Panther

ZIA Password Expiration

Severity
medium
Log types
Zscaler.ZIA.AdminAuditLog
Reference
https://help.zscaler.com/zia/configuring-password-expiration
Source
github.com/panther-labs/panther-analysis

This rule detects when password expiration was set/removed.

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1201 Password Policy Discovery

Rule body yaml

AnalysisType: rule
RuleID: ZIA.Password.Expiration
Description: This rule detects when password expiration was set/removed.
DisplayName: ZIA Password Expiration
Runbook: Verify that this change was planned. If not, revert the change and ensure this doesn't happen again.
Reference: https://help.zscaler.com/zia/configuring-password-expiration
Enabled: true
Filename: zia_password_expiration.py
Severity: Medium
Reports:
  MITRE ATT&CK:
    - TA0007:T1201 # Password Policy Discovery
LogTypes:
  - Zscaler.ZIA.AdminAuditLog
DedupPeriodMinutes: 60
Threshold: 1
Tests:
  - Name: Administration Management > Administrator Management > Set Password Expriration 180 days
    ExpectedResult: true
    Log:
      {
        "event": {
          "action": "UPDATE",
          "adminid": "admin@16991311.zscalerbeta.net",
          "auditlogtype": "ZIA",
          "category": "LOGIN",
          "clientip": "123.123.123.123",
          "errorcode": "None",
          "interface": "UI",
          "postaction": {
            "passwordExpirationEnabled": true,
            "passwordExpiryDays": 180
          },
          "preaction": {
            "passwordExpirationEnabled": false,
            "passwordExpiryDays": 180
          },
          "recordid": "331",
          "resource": "None",
          "result": "SUCCESS",
          "subcategory": "PASSWORD_EXPIRY",
          "time": "2024-10-22 22:12:25.000000000"
        },
        "sourcetype": "zscalernss-audit"
      }
  - Name: Administration Management > Administrator Management > Remove Password Expriration
    ExpectedResult: true
    Log:
      {
        "event": {
          "action": "UPDATE",
          "adminid": "admin@16991311.zscalerbeta.net",
          "auditlogtype": "ZIA",
          "category": "LOGIN",
          "clientip": "123.123.123.123",
          "errorcode": "None",
          "interface": "UI",
          "postaction": {
            "passwordExpirationEnabled": false,
            "passwordExpiryDays": 180
          },
          "preaction": {
            "passwordExpirationEnabled": true,
            "passwordExpiryDays": 180
          },
          "recordid": "331",
          "resource": "None",
          "result": "SUCCESS",
          "subcategory": "PASSWORD_EXPIRY",
          "time": "2024-10-22 22:12:25.000000000"
        },
        "sourcetype": "zscalernss-audit"
      }

Detection logic

Condition

event.errorcode eq "None"
event.result eq "SUCCESS"
event.action eq "UPDATE"
event.category eq "LOGIN"
event.preaction.passwordExpirationEnabled cross_field_compare "event.postaction.passwordExpirationEnabled"

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
event.actioneq
  • UPDATE
event.categoryeq
  • LOGIN
event.errorcodeeq
  • None
event.preaction.passwordExpirationEnabledcross_field_compare
  • event.postaction.passwordExpirationEnabled transforms: op:ne
event.resulteq
  • SUCCESS

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
actionevent.action
admin_idevent.adminid
categoryevent.category
client_ipevent.clientip
preactionevent.preaction
postactionevent.postaction