Skip to main content
Challenges SBOM and SCA: malicious typosquatting package
Misc Medium CycloneDX SBOM, package-lock.json integrity hashes, and SCA advisory analysis Solves: 4

SBOM and SCA: malicious typosquatting package

Author: CyberSamSU
Points
55

Before release, a software supply-chain audit was conducted. The CycloneDX SBOM exported using Syft, the project's package-lock.json file, the SCA security advisories database, and cached copies of packages with hasInstallScript: true were collected into the supply_audit.zip archive:

  • sbom.cdx.json — CycloneDX 1.5 SBOM (SHA-512 hash of each component in hex format);
  • package-lock.json — npm lockfile (resolved URL, integrity: sha512-<base64>, hasInstallScript, dev);
  • advisories.json — SCA vulnerability and typosquatting advisories;
  • cached_packages/<nom>-<versiya>/ — 5 packages with an install script (1 genuinely malicious, 4 decoy).

Task: identify the single production (not dev: true) malicious typosquatting package that simultaneously meets all three of the following supply-chain criteria:

  1. the resolved address in package-lock.json is not from the official https://registry.npmjs.org/;
  2. the integrity hash in package-lock.json (when converting the base64 after sha512- to hex) does not match the SHA-512 hash in sbom.cdx.json (integrity compromised);
  3. there is an active supply-chain-typosquat advisory in advisories.json for the exact installed version.

Identify the postinstall script from the package.json file of the found package, statically analyze the script without running it (base64 + XOR), and recover the hidden flag. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
supply_audit.zip Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −11 pts Log in
Hint 3 −16 pts Log in
To submit a flag, log in.

First solvers

1. Odam 25.11.2026
2. Mirjaxon Qaxxarov 25.11.2026
3. Ulugʻbek 26.11.2026
4. Asmaa Mottery 27.11.2026