Repository navigation
Add a whole-system Windows machine check to malware-scan - #33
Merged
Satendra-SR merged 1 commit intoSep 30, 2026
Merged
Conversation
People on Windows who don't use developer tools can't run the Python/bash local sweep. malware-scan/windows/ is a read-only PowerShell 5.1 check they run by pasting one line: it reads every file on every drive, checks running processes, network connections, persistence, every git branch tip and Defender history, and writes a plain-text report to send back. Indicators live in a separate data file so Defender's script scanner (AMSI) doesn't block the script. The file is JSON named .txt so this repo's own scan_malicious.py doesn't flag every clone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
pokhiii
force-pushed
the
feat/malware-scan-windows-machine-check
branch
from
September 30, 2026 08:15
2f22e30 to
4bc9487
Compare
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.
Why
The local sweep (
scan_all.sh) needs Python and bash, so it doesn't help when the machine to check runs Windows and belongs to someone who doesn't use developer tools. This adds a check they can run by pasting one line into PowerShell. It writes a plain-text report for whoever asked them to run it.What's added
malware-scan/windows/:ColoredCow-Laptop-Check.ps1ColoredCow-Laptop-Check.data.txtREADME.mdAlso a new section 4. Windows machine check in
malware-scan/README.md, and an updated Security row in the rootREADME.md.The check reads every file on every internal/USB drive, including
C:\Windows,AppData,node_modules,.gitand zip/vsix contents. It also covers:.envfiles sit on disk (locations only)It never changes anything, never runs project code and never sends data anywhere. A COVERAGE section names everything it couldn't read.
Testing
Design notes for review
Indicators live outside the script. Defender's script scanner (AMSI) blocks a script containing the malware's signature strings (
ScriptContainedMaliciousContent). The report refers to indicators by ID (S01…) so the report doesn't get quarantined either.The data file is JSON named
.txton purpose. With a.jsonname,scan_malicious.py --path malware-scanreports 8 HIGH findings, so every clone of this repo would show up as infected in the local sweep. It now reports 0. The new README contains no indicator strings.Distribution is a secret gist of the two files. This repo's own Download ZIP would bring the other scanners and READMEs, which quote the indicators on purpose and would show as false hits.
Known limits:
Get-AuthenticodeSignatureerrors.They can be addressed in a follow-up.
🤖 Generated with Claude Code