Azure-Sentinel icon indicating copy to clipboard operation
Azure-Sentinel copied to clipboard

Okta_FailedLoginsFromUnknownOrInvalidUser: Tested but no results

Open jross1012 opened this issue 6 years ago • 13 comments

Describe the bug Customer attempted to test the analytic rule but received no results via incidents or query results. Customer triggered 51 failed logins from an account that does not exist, but this did not trigger the analytic rule. Running the query shows "No Results"

Looking at the Okta workbook, running a query to display top 10 users with a failed login in Okta_CL reveals the non-existant account with 51 failed logins.

Shouldn't this test account have been caught by the analytic template? Additionally doing a search of all the "outcome_reasons_s" does not include any "UNKNOWN_USER" value, rather it includes: FailedLogin, AccountLockout, etc.

To Reproduce Steps to reproduce the behavior:

  1. Go to sign in page and try to login with a nonexistant account
  2. Attempt to sign in 50+ times
  3. View query results from: FailedLoginsFromUnknownOrInvalidUser
  4. No Results

Expected behavior Signing in with nonexistant test username should have triggered the alert

MicrosoftTeams-image (1) (1) MicrosoftTeams-image (2) (1)

jross1012 avatar Jul 30 '20 17:07 jross1012

Customer attempted to test the 'Potential Password Spray Attack' Analytic Rule as well with no success. Customer locked out 4 accounts with 5 password attempts within the same minute and received no analytic rule results. Customer attempted to find results by running the analytic query in the workspace but this yielded no results. Snag_1acee7a0

Snag_1ace3bb0

jross1012 avatar Jul 31 '20 16:07 jross1012

hey, @jross1012, I authored these rules, here to help.

Can you run the search: Okta_CL | where actor_alternateId_s in ("[email protected]","[email protected]") | summarize count() by eventType_s, outcome_reason_s

ghost avatar Jul 31 '20 19:07 ghost

User1 and User 2 replaced with the actual users that tested Snag_1ad13c6d

jross1012 avatar Aug 04 '20 16:08 jross1012

@jross1012 are those users valid user accounts?

ghost avatar Aug 04 '20 18:08 ghost

@chicduong Yes the two accounts are the same accounts referenced in the previous screen clippings

jross1012 avatar Aug 04 '20 20:08 jross1012

@chicduong should the password spraying analytic rule be detecting outcome_reason_s = INVALID_CREDENTIALS as noted in the screenshot?

jross1012 avatar Aug 04 '20 20:08 jross1012

@jross1012 ah ok there may be a few different threads here that are causing some confusion.

  • Potential Password Spray Attack - it seems like this Analytics is incorrectly titled, this rule should be Account Lockouts. Could they run the test to trigger an account lockout based on their lockout settings?

  • FailedLoginsFromUnknownOrInvalidUser - Can we run the query I mentioned above for these test users to see what the outcome_reason_s is?

ghost avatar Aug 04 '20 21:08 ghost

@chicduong queries have been run, please see results below: ValidUser TestingOktaRule

jross1012 avatar Aug 05 '20 16:08 jross1012

@jross1012 are these test attempts made by logging onto the Okta console?

ghost avatar Aug 06 '20 19:08 ghost

yes

jross1012 avatar Aug 07 '20 19:08 jross1012

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

github-actions[bot] avatar Dec 29 '20 02:12 github-actions[bot]

Fix is available for this

sarah-yo avatar Jun 24 '21 23:06 sarah-yo

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

github-actions[bot] avatar Jun 24 '21 23:06 github-actions[bot]