Kage Security Lab: Device Security
A Maester Pack that checks the real security state of your devices on every platform. It reads Intune and Defender for Endpoint through Microsoft Graph and changes nothing in your tenant.
Maester's built-in device checks read the policies you configure. This pack reads what each device reports: whether it is compliant, still checking in, encrypted, not jailbroken, and whether its Defender sensor, antivirus settings and tamper protection actually apply.
Install and run
Install-Module Maester -Scope CurrentUser # Maester 3.0 or later
Install-MtPack pir8g33k/maester-pack-kagesecuritylab
Connect-Maester
Invoke-Maester
Requirements
| What | Needed by |
|---|---|
Graph permission DeviceManagementManagedDevices.Read.All and Microsoft Intune |
MP.KSL.1005 to 1008 |
Graph permission ThreatHunting.Read.All and Defender for Endpoint Plan 2 or Defender XDR |
MP.KSL.1001 to 1004 |
Tests are skipped when the licence or permission is missing.
Tests
| ID | Title | Platforms | Severity |
|---|---|---|---|
| MP.KSL.1001 | Onboarded devices have an active Defender for Endpoint EDR sensor. | All Defender platforms | High |
| MP.KSL.1002 | Devices that Defender for Endpoint can onboard are onboarded. | All Defender platforms | Medium |
| MP.KSL.1003 | Devices have no antivirus configuration issues in Defender Vulnerability Management. | Windows, macOS, Linux | High |
| MP.KSL.1004 | Tamper protection is turned on for every device. | Windows, macOS, Linux | High |
| MP.KSL.1005 | Intune managed devices are compliant. | All Intune platforms | High |
| MP.KSL.1006 | Intune managed devices have checked in recently. | All Intune platforms | Medium |
| MP.KSL.1007 | Intune managed devices are encrypted. | All Intune platforms | High |
| MP.KSL.1008 | No Intune managed device is jailbroken or rooted. | iOS/iPadOS, Android | High |
MP.KSL.1006 takes a MaximumDaysSinceSync parameter (30 by default).
Develop
Test-MtPack . # the same checks packs.maester.cloud runs
Connect-Maester
Invoke-MtTest -Path ./tests/Test.MP.KSL.1005.ps1
Licence
MIT. Published by James Eduard (pir8g33k). Not made or endorsed by Microsoft.