Skip to content

ci(security): add automated malware scanning - #32

Merged
Hallab7 merged 2 commits into
developfrom
security/automated-malware-scanning
Nov 16, 2026
Merged

Hallab7 merged 2 commits into
developfrom
security/automated-malware-scanning

Conversation

@Hallab7

@Hallab7 Hallab7 commented Nov 16, 2026

Copy link
Copy Markdown
Member

Summary

Adds dependency-free, recursive malware scanning for the documentation repository and gates CI and deployment before dependency installation, content checks, build, or publishing work.

Protections

  • Detects PolinRider markers, VS Code folder-open automation, automatic task settings, prohibited setup/API/font payloads, preinstall and package-script payloads, executable/binary signatures, hidden Unicode controls, suspicious framework configuration code, encoded or very long config lines, and code appended after configuration exports.
  • Reports exact paths, lines where available, and reasons; exits nonzero on findings.
  • Skips generated dependency/build output while still inspecting nested dist/setup.js paths.
  • Adds a pull_request_target workflow with read-only contents permission, a pinned credential-free checkout of the submitted PR SHA, and trusted inline scanning that neither installs dependencies nor executes submitted repository code.
  • Gates existing CI and documentation deployment on an early malware scan.
  • Adds npm security:malware-scan, npm security:malware-test, an executable pre-commit hook, contribution guidance, and explicit CODEOWNERS coverage for sensitive files.

Validation

  • Clean committed-tree scan passed: 109 files scanned; no known indicators found.
  • All 14 malicious fixture categories were rejected; the clean nested workspace fixture was accepted.
  • The trusted inline workflow scanner passed on the clean tree and rejected nested dist/setup.js, a PolinRider marker, a preinstall hook, and a VS Code folder-open task.
  • Node syntax, workflow YAML, workflow dependency gates, hook syntax, git diff --check, secret-pattern audit, and final scope audit passed.
  • Markdown lint, local links, content quality, consistency checks, and the Docusaurus production build pass.
  • Working tree is clean; no temporary fixtures, build output, or documentation content files are included.

Existing baseline failures

The generated-reference check remains red independently of this change because seven generated files do not match checksums in generated/manifest.json. This PR does not modify generated references or documentation content.

These checks target known indicators and suspicious patterns; static analysis does not prove that a repository is completely free of malware.

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lumenbazaar-docs Ready Ready Preview Nov 16, 2026 3:47pm UTC

@Hallab7
Hallab7 merged commit 28dbc22 into develop Nov 16, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1bf62d60 Deployed Nov 16, 2026 by vercel[bot]
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