This file contains hidden or 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
let 1stPartyMicrosoftAppIds = externaldata (AppId: string, AppDisplayName: string, AppOwnerOrganizationId: string, Source: string)[ | |
"https://raw.githubusercontent.com/merill/microsoft-info/main/_info/MicrosoftApps.csv" | |
] with(format="csv", ignoreFirstRecord=true); | |
_GetWatchlist('WorkloadIdentityInfo') | |
| where AppOwnerTenantId in ("f8cdef31-a31e-4b4a-93e4-5f571e91255a", "72f988bf-86f1-41af-91ab-2d7cd011db47") | |
| summarize by tostring(AppId), tostring(AppDisplayName), tostring(AppOwnerTenantId) | |
| join kind=leftanti (1stPartyMicrosoftAppIds) on AppId | |
| extend Source ="GitHub" | |
| project AppId, AppDisplayName, AppOwnerOrganizationId=AppOwnerTenantId, Source |
This file contains hidden or 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
### USAGE: | |
### | |
### GetTracelogProviderSecurity.ps1 (to get all provider info) | |
### | |
### GetTracelogProviderSecurity.ps1 -ProviderName f2e68291-2367-5d51-3488-46f7a0e3f2cf | |
### (to get the info for 1 provider guid) | |
## | |
# | |
# Provider: f2e68291-2367-5d51-3488-46f7a0e3f2cf | |
# Control Flags: 45076 |
This file contains hidden or 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
services: | |
tailscale-pihole: | |
image: tailscale/tailscale | |
container_name: tailscale | |
hostname: tailscale-pihole | |
restart: unless-stopped | |
environment: | |
- TS_STATE_DIR=/var/lib/tailscale | |
- TS_AUTHKEY=tskey-auth- | |
cap_add: |
This file contains hidden or 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
# looking for a all in one solution? | |
# https://github.com/f-bader/EntraIDPasskeyHelper | |
Connect-MGGraph -UseDeviceAuthentication -Scopes "AuditLog.Read.All", "UserAuthenticationMethod.Read.All" | |
$NextUri = "https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?`$filter=methodsRegistered/any(x:x eq 'passKeyDeviceBound')" | |
do { | |
$Result = Invoke-MgGraphRequest -Uri $NextUri | |
$NextUri = $Result['@odata.nextLink'] | |
$ReturnValue += $Result['value'] |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Generates a GUID from a given string value using MD5 hashing. | |
.PARAMETER Value | |
The string value to generate a GUID from. | |
.EXAMPLE | |
Get-Guid -Value "example string" | |
Returns a GUID generated from the string "example string". |
This file contains hidden or 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
// List all devices that have curl installed or use curl. | |
let ProcessBasedDevices = DeviceProcessEvents | |
| where Timestamp > ago(30d) | |
| where ProcessCommandLine has "curl" and FileName != "SenseNdr.exe" | |
| extend Method = "Process" | |
| summarize by DeviceId, DeviceName, Method; | |
let TVMBasedDevices = DeviceTvmSoftwareInventory | |
| where SoftwareName has "curl" | |
| extend Method = "Software Inventory" | |
| project DeviceId, DeviceName, Method, SoftwareName, SoftwareVersion, SoftwareVendor; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or 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
CveId | |
CVE-2018-13379 | |
CVE-2021-34473 | |
CVE-2021-31207 | |
CVE-2021-34523 | |
CVE-2021-40539 | |
CVE-2021-26084 | |
CVE-2021-44228 | |
CVE-2022-22954 | |
CVE-2022-22960 |
This file contains hidden or 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
git branch | Select-String -NotMatch -Pattern "main" | % {$branch = $_ -replace '\s'; git branch -D $branch } |
This file contains hidden or 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
OfficeActivity | |
| where TimeGenerated > ago(90d) | |
| where UserId has_any ("msftprotection","identityVerification","accountsVerification","azuresecuritycenter","teamsprotection") and UserId has "onmicrosoft" | |
| summarize by UserId |
This file contains hidden or 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
<# | |
CVE-2021-42287 - Authentication updates | |
CVE-2021-42278 - Active Directory Security Accounts Manager hardening changes | |
This updates introduced additional Event Ids to monitor. | |
Use this script to check every domain controller for those eventIds | |
#> | |
$EventIds = @{ | |
35 = "PAC without attributes" | |
36 = "Ticket without a PAC" | |
37 = "Ticket without Requestor" |
NewerOlder