Repository navigation
v2026.10.13.001: keep Windows Admin Center's tasks on Azure VMs - #9
Open
cdburgess75 wants to merge 1 commit into
Open
cdburgess75 wants to merge 1 commit into
cdburgess75 wants to merge 1 commit into
Conversation
The Process Engine deleted WindowsAdminCenterHeartbeatCheck and WindowsAdminCenterTroubleshootTask on its first run on an Azure Virtual Desktop session host: both run PowerShell -WindowStyle Hidden from the Azure extension folder, which the obfuscation check matches. Commands run from \Packages\Plugins\Microsoft.AdminCenter.AdminCenter\ are now in LegitTaskPaths; hidden or encoded PowerShell from anywhere else is still removed. New tests/Test-LegitTasks.ps1 fails on v2026.09.25.003 and passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On its first run on an Azure Virtual Desktop session host, the Process Engine deleted two Microsoft scheduled tasks,
WindowsAdminCenterHeartbeatCheckandWindowsAdminCenterTroubleshootTask, and reported them as High IOCs. Both belong to Windows Admin Center's Azure VM extension and run:Powershell.exe -WindowStyle Hidden -File "C:\Packages\Plugins\Microsoft.AdminCenter.AdminCenter\0.76.0.0\Sme.VmExtension\..."-WindowStyle Hiddenmatches the scheduled-task obfuscation pattern, and nothing inLegitTaskPathscovered them.What
LegitTaskPathsgains*\Packages\Plugins\Microsoft.AdminCenter.AdminCenter\*. It is limited to this one extension; other folders underC:\Packages\Plugins\are still checked.tests/Test-LegitTasks.ps1: takesLegitTaskPathsand the obfuscation pattern from the script and checks that the real WAC command lines (and a later extension version) are kept, while hidden or encoded PowerShell from anywhere else, including another extension folder, is still removed. It fails on currentmain(3 assertions) and passes here.Testing
tests/Test-*.ps1pass under pwsh 7.5 on macOS; the script parses; UTF-8 BOM and LF line endings preserved.After merge
Once the session host has run this version, repair the Windows Admin Center extension for that VM in the Azure portal to recreate the two tasks. Before then, a repair would be undone at the next run.
🤖 Generated with Claude Code