Skip to content

security: harden malware scan coverage and fix two scanner bugs - #3

Merged
Lanthanum89 merged 1 commit into
mainfrom
security/harden-malware-scan
Sep 2, 2026
Merged

security: harden malware scan coverage and fix two scanner bugs#3
Lanthanum89 merged 1 commit into
mainfrom
security/harden-malware-scan

Conversation

@Lanthanum89

Copy link
Copy Markdown
Owner

Broadens the scan beyond .js/.ts to .tsx/.jsx/.json/.html/.yml/.sh, makes the
obfuscator rule identifier-agnostic, adds behavioural long-line and
dangerous-primitive-in-config rules, and scans pull requests.

Also fixes two scanner bugs:

  • excludes were expanded before includes, so GNU grep re-admitted files the
    exclude list had filtered out (package-lock.json, *.min.js);
  • rules piped grep into cut and took the exit status from cut, so every rule
    reported a hit on every run.

Rolled out across all repos carrying this workflow.

Broadens the scan beyond .js/.ts to .tsx/.jsx/.json/.html/.yml/.sh,
makes the obfuscator rule identifier-agnostic, adds behavioural
long-line and dangerous-primitive-in-config rules, and scans pull
requests. Also fixes two scanner bugs: excludes were expanded before
includes (GNU grep then re-admits the excluded file), and rules piped
grep into cut, taking the exit status from cut so they tripped on
every run.
@Lanthanum89
Lanthanum89 merged commit 3edd8a5 into main Sep 2, 2026
3 checks passed
@Lanthanum89
Lanthanum89 deleted the security/harden-malware-scan branch September 2, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant