Detection rules › Panther
Wiz SAML Identity Provider Change
This rule detects creations, updates and deletions of SAML identity providers.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation | T1484.002 Domain or Tenant Policy Modification: Trust Modification |
Rule body yaml
AnalysisType: rule
RuleID: Wiz.SAML.Identity.Provider.Change
Description: This rule detects creations, updates and deletions of SAML identity providers.
DisplayName: Wiz SAML Identity Provider Change
Runbook: Verify that this change was planned. If not, revert the change and ensure this doesn't happen again.
Reference: https://support.wiz.io/hc/en-us/articles/5644029716380-Single-Sign-on-SSO-Overview
Enabled: true
Filename: wiz_saml_identity_provider_change.py
Severity: High
Reports:
MITRE ATT&CK:
- TA0004:T1484.002 # Domain or Tenant Policy Modification: Trust Modification
LogTypes:
- Wiz.Audit
DedupPeriodMinutes: 60
Threshold: 1
Tests:
- Name: DeleteSAMLIdentityProvider
ExpectedResult: true
Log:
{
"id": "0fc891d1-c2e3-4db2-b896-7af27964c71b",
"action": "DeleteSAMLIdentityProvider",
"requestId": "eec733c5-175c-4d0c-8b65-b9344f223a36",
"status": "SUCCESS",
"timestamp": "2024-07-12T08:59:33.946633Z",
"actionParameters": {
"input": {
"id": "<redacted>"
},
"selection": [
"_stub"
]
},
"userAgent": "Wiz-Terraform-Provider/1.13.3433",
"sourceIP": "12.34.56.78",
"serviceAccount": {
"id": "<redacted>",
"name": "test-graphql-api"
},
"user": null
}
- Name: CreateUser
ExpectedResult: false
Log:
{
"id": "220d23be-f07c-4d97-b4a6-87ad04eddb14",
"action": "CreateUser",
"requestId": "0d9521b2-c3f8-4a73-bf7c-20257788752e",
"status": "SUCCESS",
"timestamp": "2024-07-29T09:40:15.66643Z",
"actionParameters": {
"input": {
"assignedProjectIds": null,
"email": "testy@company.com",
"expiresAt": null,
"name": "Test User",
"role": "GLOBAL_ADMIN"
},
"selection": [
"__typename",
{
"user": [
"__typename",
"id"
]
}
]
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
"sourceIP": "8.8.8.8",
"serviceAccount": null,
"user": {
"id": "someuser@company.com",
"name": "someuser@company.com"
}
}
- Name: DeleteSAMLIdentityProvider - Fail
ExpectedResult: false
Log:
{
"id": "0fc891d1-c2e3-4db2-b896-7af27964c71b",
"action": "DeleteSAMLIdentityProvider",
"requestId": "eec733c5-175c-4d0c-8b65-b9344f223a36",
"status": "FAILED",
"timestamp": "2024-07-12T08:59:33.946633Z",
"actionParameters": { },
"userAgent": "Wiz-Terraform-Provider/1.13.3433",
"sourceIP": "12.34.56.78",
"serviceAccount": {
"id": "<redacted>",
"name": "test-graphql-api"
},
"user": null
}
Detection logic
Condition
status eq "SUCCESS"
action in ["UpdateSAMLIdentityProvider", "DeleteSAMLIdentityProvider", "CreateSAMLIdentityProvider", "ModifySAMLIdentityProviderGroupMappings"]
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.
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 | |
source_ip | sourceip |
event_id | id |
action_parameters | actionparameters |