Repository navigation
fix(software): skip executables of listed programs, Windows components and uninstallers in the Program Files scan CU-17tkuw67w42 - #270
Conversation
🦩 Flamingo Code Review❌ Tests and checks failed on this commit: tests (go test). What each printed is in the Tests and mutation section. 3 findings: 🔴 0 action required · 🟠 0 recommended · 🔵 3 informational Advisory: findings do not block the merge. 3 defects outside any rule
🔵 Informational (3)
✅ What this change does well
Inline comments: 3 new 🧪 Tests and mutationTests per lane
Tests failed in .: what it printed lastChecks
Go lane: the plan ran go vet on osquery_utils and go test ./orbit/...; the only failure is TestGetFleetdConfig in orbit/pkg/profiles, a darwin test that reads this Mac's real configuration profiles, in a package the change does not touch (environment, not the change). The plan did not run the changed package's tests; run separately: go test -cover ./server/service/osquery_utils passes, coverage of the new code: processProgramFilesScan 96.5%, programFolderName 100%, skipProgramFilesScanExe 90.9%, programFilesScanDirs 80%. No mutation tool for Go is configured. What the surviving mutations leave unverified
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-19 00:03 UTC · reviewed from Aliaska Varieva's machine |
2522fc0 to
e9cccfb
Compare
…s and uninstallers in the Program Files scan CU-17tkuw67w42
… in the Program Files scan CU-17tkuw67w42
"Autodesk 3ds Max 2026" was cut to "autodesk" at the first digit-led word,
which hid every executable under C:\Program Files\Autodesk. Also strip versions
joined by a hyphen ("7-Zip-26.06").
…ames in the Program Files scan CU-17tkuw67w42 "Acme (CAD) Suite" was reduced to "acmesuite" and hid executables under an unrelated "Acme Suite" folder.
Only the Windows folders inside Common Files are skipped; other vendors' components there are still reported. Same as upstream fleetdm#59098.
efc920e to
a014e27
Compare
🦩 Flamingo Code Review2 findings: 🔴 0 action required · 🟠 0 recommended · 🔵 2 informational Advisory: findings do not block the merge. Rules cited:
🔵 Informational (2)
✅ What this change does well
Inline comments: 1 new · 1 already on this pull request from an earlier review (not posted again; the existing thread is linked below) Already commented on by an earlier review
🤖 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:45 UTC · reviewed from Aliaska Varieva's machine |
Ticket: https://app.clickup.com/t/17tkuw67w42
Change-Set: fix-program-files-scan-duplicates
Problem
Windows hosts list dozens of bare executables (
7z.exe,node.exe,iexplore.exe,MpCmdRun.exe,Uninstall.exe…) as software with sourceprograms. They come from upstream'swindows_program_files_scan(fleetdm#42992), which adds every.exeunderC:\Program Filesthat isn't under aprogramsentry'sinstall_location. Many uninstall entries have no install location, and Windows' own folders have no entry at all. On prod about 4,750 of 4,900 Windows hosts carry these rows, about 76 per host.Fix
In
processProgramFilesScan:Program Filesand the exe has the name of aprogramsentry, compared in lowercase letters and digits without a trailing version or edition ("7-Zip" ↔ "7-Zip 26.06 (x64 edition)", "nodejs" ↔ "Node.js"). Exact match only, soAdobe\DNG Converteris still reported next to "Adobe Acrobat".Internet Explorer,Windows Defender,Windows Media Player,Windows Mail,Windows NT, and the Windows folders insideCommon Files…) are skipped, exceptMsMpEng.exe, which stays the source of "Windows Defender".unins*.exe) are skipped.Same change as the upstream PR. Fork edits are marked
OPENFRAME(program-files-scan-duplicates)and can be dropped once upstream is synced. Rows already stored drop out at each host's next software refresh.The Defender platform version fix (CU-17tkuw67fq5) changes the same function; whichever merges second needs a small rebase.
Testing
TestWindowsProgramFilesScan: three new cases (folder-name match for 7-Zip, Node.js and Git withoutinstall_location; DNG Converter still reported next to Adobe Acrobat; Windows component folders and uninstallers skipped withMsMpEng.exekept). Two fail without the change.go test ./server/service/osquery_utils/passes.Reference
Change set
flamingo-stack/fix-program-files-scan-duplicates: 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.