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

Bad entity mapping in "Multiple Password Reset by User"

Open javiersoriano opened this issue 5 years ago • 10 comments

Describe the bug Analytic Rule "multiple password reset by user" may have issues with Host entity when a match is found in SigninLogs.

To Reproduce Steps to reproduce the behavior: Make this rule trigger for SigninLogs and you will find this in the entities: image

image

This is because of the wrong entity mapping is done in line 68 of the template here.

and then this field (Comptuter) is converted to string and mapped to Host entity.

javiersoriano avatar Feb 15 '21 08:02 javiersoriano

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 Feb 15 '21 08:02 github-actions[bot]

tagging @shainw and @petebryan

javiersoriano avatar Feb 15 '21 08:02 javiersoriano

Yea, this has been a problem for quite some time now. This problem occurs in our environment, because of requests going through to multiple DC's.

I don't believe that Sentinel's mapping algorithm is capable of mapping sets as individual results as of yet. (Not a fact)

You could rename Total to GrandTotal and do

    | extend ResetPivot = "TotalUserReset")
)
| mv-expand Computer 
| extend timestamp = StartTimeUtc, AccountCustomEntity = Account, HostCustomEntity = tostring(Computer)

at the second to last line - this will fix the mapping for Computer, but the total won't be accurate to one Computer and it will cause duplicate events for every Computer

Unfortunately this same problem will occur for an Account if the TotalUserReset pivot is exceeded.

Lodewyk-Git avatar Feb 16 '21 13:02 Lodewyk-Git

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 Mar 03 '21 05:03 github-actions[bot]

Thanks @ashwin-patil !

javiersoriano avatar Mar 04 '21 13:03 javiersoriano

Are there any plans for fixing this alert rule? I don't think a rule this broken should be published as a template rule :-(

NVolcz avatar May 31 '21 13:05 NVolcz

@ashwin-patil do we have any update on this ?

Ronmarsiano avatar Jun 15 '21 08:06 Ronmarsiano

Sorry for the delay on this fix. We have added fix for entity parsing for now in PR #1834 . we are also working on improving the logic of this detection to be less noisy , will raise separate PR for that change.

ashwin-patil avatar Jun 21 '21 21:06 ashwin-patil

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 25 '21 00:06 github-actions[bot]

Sorry for the delay on this fix. We have added fix for entity parsing for now in PR #1834 . we are also working on improving the logic of this detection to be less noisy , will raise separate PR for that change.

@ashwin-patil How far is this fix deployed in the Azure Sentinel already since Jun 21, 2021?

I am still observing the same issue "Multiple password reset by User not mapping correctly" in my Azure Sentinel.

The host entry is neither IP nor FQDN, but ["[email protected]", ""], which is still not correct.

Thank you for your feedback

tzhwuen1-el avatar Jan 20 '22 08:01 tzhwuen1-el