Repository navigation
ci: add PolinRider malware scan on every push and PR - #598
Merged
Merged
Conversation
Adds a GitHub Actions CI check on every push and pull request that scans for all known PolinRider malware indicators: VSCode auto-task triggers, suspicious font-file payloads, dist/setup.js droppers, hijacked package.json lifecycle scripts, rogue api.js injection, config-file payload appending after export default, and known marker strings (rmcej%otb%, Cot%3t=shtP, _$_1e42). Repo was manually verified clean before this workflow was added.
✅ Deploy Preview for sdcontracts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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
.github/workflows/malware-scan.yml— a GitHub Actions CI check that runs on every push and pull request to every branch.Background: The PolinRider malware campaign (tracked since early 2026) has been spreading through thousands of open-source GitHub repositories, targeting developer credentials (npm tokens, GitHub tokens, SSH keys). This repo was manually scanned and verified clean. This workflow makes the protection automatic going forward.
What is checked
rmcej%otb%,Cot%3t=shtP,_$_1e42in JS/TS/JSON/HTML.vscode/tasks.jsonwithrunOn: folderOpen.vscode/settings.jsonwithallowAutomaticTasks: onfa-solid-500.woff2,fa-solid-600.eot,*.lfk,*.llfdist/setup.jspresent anywhere in the treepreinstallinpackage.jsonreferencingdist/setup.jsapi.js+dev/startscript beginning withnode api.js &&export defaultin postcss/tailwind/eslint/next/jest/vite configs.woff/.woff2/.eot/.ttffiles that fail font magic-byte validationAny hit fails the job with a file-annotated
::errorpointing to the exact file.Test plan
_$_1e42into a test branch → CI fails and annotates the file