Repository navigation
fix(software): report the running Windows Defender platform version CU-17tkuw67fq5 - #268
Conversation
🦩 Flamingo Code ReviewNot reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened. When it is ready:
Or comment Updated 2026-11-16 20:21 UTC · workflow run |
…U-17tkuw67fq5 Defender platform updates install the running MsMpEng.exe under C:\ProgramData\Microsoft\Windows Defender\Platform\<version>\, while C:\Program Files\Windows Defender\MsMpEng.exe keeps the in-box version. Scan the platform folder too and keep only the newest MsMpEng.exe, so Windows Defender no longer matches CVEs the running platform has fixed (e.g. CVE-2023-36422). Upstream: fleetdm#58895, fleetdm#58896
c7cdd69 to
ba360c1
Compare
🦩 Flamingo Code Review❌ Tests and checks failed on this commit: tests (go test). What each printed is in the Tests and mutation section. 4 findings: 🔴 0 action required · 🟠 0 recommended · 🔵 4 informational Advisory: findings do not block the merge. Rules cited:
🔵 Informational (4)
✅ What this change does well
Inline comments: 4 new 1 possible problem checked and ruled out
🧪 Tests and mutationTests per lane
Tests failed in .: what it printed lastChecks
The test services of flamingo-stack/fleetmdm (server/mdm/nanodep/storage/mysql/docker-compose-test.yml) did not come up: the integration tests may fail for that reason. The planned Go lane ran go test ./orbit/..., which this change does not touch; its one failure is TestGetFleetdConfig in orbit/pkg/profiles (darwin-only, reads this Mac's configuration profiles) and is unrelated to the diff. The changed package was run separately: go test -cover ./server/service/osquery_utils/ passes (73.1% coverage), including the three new TestWindowsProgramFilesScan cases. No mutation tool is configured for Go, so mutation testing was not run. 1 gap (not tested here):
🤖 Prompt for AI agents: fix every findingNext: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both. Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-11-30 18:16 UTC · reviewed from Aliaska Varieva's machine |
Ticket: https://app.clickup.com/t/17tkuw67fq5
Change-Set: fix-windows-defender-platform-version
Problem
Windows devices with an up-to-date Defender platform show CVE-2023-36422 (fixed in 4.18.23100.2009). The Program Files scan (upstream fleetdm#42992) takes the "Windows Defender" version from
C:\Program Files\Windows Defender\MsMpEng.exe. That's the in-box copy, and platform updates don't touch it. The running copy is underC:\ProgramData\Microsoft\Windows Defender\Platform\<version>\. The CVE data is correct, but the version we compare against it is the old one.Fix
windows_program_files_scanalso scansC:\ProgramData\Microsoft\Windows Defender\Platform\%\MsMpEng.exe.processProgramFilesScankeeps only the newestMsMpEng.exe, compared withSmartVerCmp. Old platform folders are dropped, and the in-box copy stays when no platform folder exists.This is the same change as upstream fleetdm#58896, cherry-picked. The generated
understanding-host-vitals.mdisn't in the fork, so its regeneration is left out. Drop this once upstream is synced.Testing
TestWindowsProgramFilesScan: new cases for the newest platform copy winning over the in-box copy and an older platform folder, the in-box copy alone, and thefile_versionfallback. Both platform-folder cases fail without the change.go test ./server/service/osquery_utils/passes.Reference
Change set
flamingo-stack/fix-windows-defender-platform-version: this pull request is the only one in it so far. Another pull request joins by naming this one in aDepends-Online, or by carrying the sameChange-Setline.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.