Detection rules › Panther
ZIA Password Expiration
This rule detects when password expiration was set/removed.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery | T1201 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.
| Field | Kind | Values |
|---|---|---|
event.action | eq |
|
event.category | eq |
|
event.errorcode | eq |
|
event.preaction.passwordExpirationEnabled | cross_field_compare |
|
event.result | eq |
|
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.
| Field | Source |
|---|---|
action | event.action |
admin_id | event.adminid |
category | event.category |
client_ip | event.clientip |
preaction | event.preaction |
postaction | event.postaction |