Repository navigation
security(ci): scan tracked files for known repository-malware markers - #596
Open
umpireboulianne-design wants to merge 1 commit into
Open
umpireboulianne-design wants to merge 1 commit into
umpireboulianne-design wants to merge 1 commit into
Conversation
…Sub-Rosa-Issue#480) Add static text-only malware marker scanner and unit tests covering rmcej%otb%, Cot%3t=shtP, MicrosoftSystem64, .pcl-data, and .pcl-state, wire into CI, and document marker update workflow in docs/CI.md. Fixes Sub-Rosa-Issue#480
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.
Summary
Adds a static, text-only scanner (
scripts/check-malware-markers.mjs) and unit test suite (scripts/check-malware-markers.test.mjs) that scans tracked source and configuration files for known repository-malware markers without evaluating matched content.Fixes #480
Closes #480
Changes
scripts/check-malware-markers.mjs:rmcej%otb%,Cot%3t=shtP,MicrosoftSystem64,.pcl-data, and.pcl-state..git, dependencies (node_modules,.pnpm-store), build/artifact outputs (dist,build,target,artifacts,coverage,.turbo,tmp-bindings), and the scanner/test files themselves.MATCH marker=<name> path=<path>), never the full line.scripts/check-malware-markers.test.mjs: Add positive and negative tests covering all 5 required markers, line-redaction formatting, and excluded directory/test-fixture filtering.package.json: Addmalware:checkandmalware:testscripts and wire them into the CI check suite.docs/CI.md: Document the malware marker scanner and instructions for updatingMALWARE_MARKERS.