Sigma rule: Potential Okta Password in AlternateID Field
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-03c6a3904bfd, updated 2026-04-27T00:00:00.000Z.
Rule
- Title
- Potential Okta Password in AlternateID Field
- Status
- test
- Level
- high
- Author
- kelnage
- Date
- 2023-04-03
- Modified
- 2026-04-27
- File
- rules/identity/okta/okta_password_in_alternateid_field.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects when a user has potentially entered their password into the
username field, which will cause the password to be retained in log files.
Log source
- product
- okta
- service
- okta
Detection
selection:
legacyEventType: 'core.user_auth.login_failed'
filter_main:
# Okta service account names start with 0oa
# Email addresses are the default format for Okta usernames, so attempt
# to exclude alternateIds that look like valid emails
# If your Okta configuration uses different character restrictions, you
# will need to update this regular expression to reflect that or disable the rule for your environment
# Possible false negatives are failed login attempts with a password that looks like a valid email address
actor.alternateId|re: '(^0oa.*|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,10})'
condition: selection and not filter_mainFalse positives (as the rule lists them)
- Unlikely
Tags
- attack.credential-access
- attack.t1552
MITRE ATT&CK ids this rule names
References
- https://developer.okta.com/docs/reference/api/system-log/
- https://www.mitiga.io/blog/how-okta-passwords-can-be-compromised-uncovering-a-risk-to-user-data
- https://help.okta.com/en-us/Content/Topics/users-groups-profiles/usgp-create-character-restriction.htm
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/identity/okta/okta_password_in_alternateid_field.yml
Sources and licences
SigmaHQ
"Potential Okta Password in AlternateID Field" by kelnage (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/identity/okta/okta_password_in_alternateid_field.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Okta Password in AlternateID Field",
entity page, dataset version ref-03c6a3904bfd, updated 2026-04-27T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/91b76b84-8589-47aa-9605-c837583b82a9 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 91b76b84-8589-47aa-9605-c837583b82a9, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.