Skip to content

Fix disabled account hunting queries - #14826

Open
juanjosalco wants to merge 3 commits into
Azure:masterfrom
juanjosalco:users/juansala/fix-disabled-account-queries
Open

Fix disabled account hunting queries#14826
juanjosalco wants to merge 3 commits into
Azure:masterfrom
juanjosalco:users/juansala/fix-disabled-account-queries

Conversation

@juanjosalco

@juanjosalco juanjosalco commented Aug 4, 2026

Copy link
Copy Markdown

Remove locale-dependent disabled-account filters and support both Microsoft Sentinel and unified Defender IdentityInfo schemas.

Change(s):

  • Removed exact ResultDescription filters from three disabled-account hunting queries while retaining ResultType == 50057.
  • Added column_ifexists() normalization for:
    • TimeGenerated / Timestamp
    • AccountUPN / AccountUpn
    • UserType / Type
  • Applied the schema compatibility update to four affected solution hunting queries.
  • Updated the affected hunting-query versions.
  • Updated the solution package and release notes to version 3.0.4.

Reason for Change(s):

  • ResultDescription is locale-dependent, while result code 50057 consistently identifies disabled-account sign-in failures.
  • The IdentityInfo schema differs between Microsoft Sentinel and unified Defender environments. Normalizing the column names allows the queries to work with either schema and resolves KQL validation failures.

Version Updated:

  • Yes — affected hunting-query versions were incremented.
  • Solution package version updated to 3.0.4.
  • No Analytic Rule templates were modified.

Testing Completed:

  • Yes.
  • Full local solution validation completed successfully.
  • All 44 scoped KQL validation tests passed.
  • Overall result: 14 validators passed, 0 failed, and 4 were skipped or not applicable.

Checked that the validations are passing and have addressed any issues that are present:

  • Yes.

Remove locale-dependent ResultDescription filters while retaining ResultType 50057 matching.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@juanjosalco
juanjosalco requested review from a team as code owners August 4, 2026 18:10
@v-atulyadav v-atulyadav self-assigned this Aug 5, 2026
@v-atulyadav v-atulyadav added Solution Solution specialty review needed Hunting Hunting specialty review needed labels Aug 5, 2026
@v-atulyadav

Copy link
Copy Markdown
Collaborator

Hi @juanjosalco,
Please repackage the solution. Thanks

Juan Salazar and others added 2 commits August 4, 2026 23:54
Generate solution package 3.0.4 with the updated disabled-account hunting queries and release notes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hunting Hunting specialty review needed Solution Solution specialty review needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants