Update system integrity checks for team reports and BitLocker#487
Merged
Update system integrity checks for team reports and BitLocker#487
Conversation
🚀 Dev Builds AvailableDevelopment builds for this PR are available in the workflow artifacts. Available builds:
Download the |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds team report tracking to system integrity checks and reimplements Windows BitLocker detection using native APIs instead of PowerShell commands.
Changes:
- Adds
LastTeamReportSuccesstimestamp tracking in config and updates it after each successful team report - Implements
TeamReportSentCheckthat validates reports were sent within the last 25 hours (allowing for one missed hourly check) - Replaces PowerShell-based BitLocker status queries with native Windows COM APIs for better performance and no longer requires elevated permissions
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/config.go | Adds LastTeamReportSuccess field to track last successful report timestamp |
| team/report.go | Updates timestamp after successful report and saves config |
| team/report_test.go | Adds test setup for temp config path and verifies timestamp is set after reports |
| checks/shared/team_report_sent.go | New check that validates team reports are being sent regularly with relative time formatting |
| claims/checks_windows.go | Integrates TeamReportSentCheck into Windows System Integrity claim |
| claims/checks_linux.go | Integrates TeamReportSentCheck into Linux System Integrity claim |
| claims/checks_darwin.go | Integrates TeamReportSentCheck into macOS System Integrity claim |
| checks/windows/disk_encryption.go | Refactored to use native BitLocker APIs instead of PowerShell, no longer requires root |
| checks/windows/disk_encryption_test.go | Updated tests to use function mocking instead of command mocking |
| checks/windows/bitlocker_property_windows.go | New Windows-specific native BitLocker API implementation using COM |
| checks/windows/bitlocker_property_nonwindows.go | Cross-platform stubs for non-Windows systems |
2329a3f to
c471ad8
Compare
Merging this branch changes the coverage (2 decrease, 1 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
c471ad8 to
586405a
Compare
zupo
approved these changes
Feb 4, 2026
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.
TeamReportSentCheckwith config tracking and hook it into each platform’s System Integrity claim