AnalysisType: rule
Filename: teleport_saml_created.py
RuleID: Teleport.SAMLCreated
DisplayName: A SAML Connector was created or modified
Enabled: true
LogTypes:
- Gravitational.TeleportAudit
Tags:
- Teleport
Severity: High
Description: A SAML connector was created or modified
DedupPeriodMinutes: 60
Reports:
MITRE ATT&CK:
- TA0042:T1585
Reference: https://goteleport.com/docs/management/admin/
Runbook: >
When a SAML connector is modified, it can potentially change the trust model of the Teleport Cluster. Validate that these changes were expected and correct.
SummaryAttributes:
- event
- code
- user
- name
Tests:
- Name: SAML Auth Connector modified
ExpectedResult: true
Log:
{
"cluster_name": "teleport.example.com",
"code": "T8200I",
"ei": 0,
"event": "saml.created",
"name": "okta",
"time": "2023-09-19 18:00:00",
"uid": "88888888-4444-4444-4444-222222222222",
"user": "max.mustermann@zumbeispiel.example",
}
# ------ paired body: teleport_saml_created.py ------
def rule(event):
return event.get("event") == "saml.created"
def title(event):
return (
f"A SAML connector was created or updated by User [{event.get('user', '<UNKNOWN_USER>')}] "
f"on [{event.get('cluster_name', '<UNKNOWN_CLUSTER>')}]"
)