Repository navigation
Keep scan_packages.py clear of Bitdefender's Python stealer signature again - #19245
Merged
Merged
Conversation
… again The comment trim in #12969 brought back Generic.PY.STEALER.B on 8 Bitdefender-engine scanners (ALYac, Arcabit, BitDefender, Emsisoft, GData, MicroWorld-eScan, VIPRE) plus CTX. Bisecting the 110 comment edits on VirusTotal showed the trigger is the shortened comments near the top of the file. Restoring those comments clears every engine; code is unchanged (identical AST).
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Keep scan_packages.py clear of Bitdefender's Python stealer signature again
scripts/scan_packages.pyon main is flagged again on VirusTotal asGeneric.PY.STEALER.B, the same detection #12169 fixed in September. Bitdefender, and every engine that ships its signatures, quarantines the file on a contributor's machine.What changed
Comments only. The comment trim in #12969 shortened several comment blocks near the top of the file; that is what brought the detection back. This restores those comments (the 28 edits above the anti-analysis patterns) and keeps the rest of the trim. The parsed code is identical to main (same
ast.dump), so behaviour does not change.One line is added above
_joinednoting that trimming the comments there re-triggered it, so the next cleanup rescans the file.Evidence (VirusTotal, fresh uploads, 2026-11-24)
scripts/scan_packages.pyGeneric.PY.STEALER.B; CTXscript.spyware.generic29cb47f1b33b57815d75a1a76476c53b068ce452068c8569d10ea2f949b968af)Bisecting the 110 comment edits between #12884 and main: applying only edits 55 to 110 stays clean, while several small subsets of edits 0 to 21 each bring the detection back on their own. The detection reacts to how much comment text separates the pattern tables near the top of the file, not to any single word.
Tests
tests/security/test_scan_packages.py,tests/security/test_lint_av_shapes.py,tests/test_scripts_write_lf.py: 181 passed.scripts/lint_av_shapes.py: 0 new errors. Pre-commit ruff clean.Not covered
studio/install_*.pyhelpers andscan_npm_packages.pyon main are all 0 detections today.