This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Interactive sign-ins only | |
SigninLogs | |
| where AuthenticationProcessingDetails has "Legacy TLS" | |
and AuthenticationProcessingDetails has "True" | |
| extend JsonAuthProcDetails = parse_json(AuthenticationProcessingDetails) | |
| mv-apply JsonAuthProcDetails on ( | |
where JsonAuthProcDetails.key startswith "Legacy TLS" | |
| project HasLegacyTls=JsonAuthProcDetails.value | |
) | |
| where HasLegacyTls == true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Powershell HMAC SHA 256 | |
$message = 'Message' | |
$secret = 'secret' | |
$hmacsha = New-Object System.Security.Cryptography.HMACSHA256 | |
$hmacsha.key = [Text.Encoding]::ASCII.GetBytes($secret) | |
$signature = $hmacsha.ComputeHash([Text.Encoding]::ASCII.GetBytes($message)) | |
$signature = [Convert]::ToBase64String($signature) |