VulnWatch by ve1ve2
unknown

MAL-2026-20257: Malicious code in certify-web (PyPI)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
certify-web

https://osv.dev/vulnerability/MAL-2026-20257 ↗

osvpypino-fix-yet

Malicious code in certify-web (PyPI) --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3632ae3bbd980743b5a64d69c328ad10e35ed1998c202f3e4a437d687f31f7a3) On `pip install certify-web`, setup.py's install command invokes ensure_ninja_agent(), which downloads a NinjaOne remote-management.deb from eu.ninjarmm.com hardcoded to the author's tenant (organization UUID e9f1a699-f8b3-4386-9d2d-68cb8f3e3801, 'Oficinaprincipal') and installs it via `dpkg -i` on Linux amd64/arm64. A shipped.pth file (`import certify_web_postinstall; certify_web_postinstall.run()`) re-runs the same ensure-agent path on every Python interpreter start. The installed NinjaOne agent is launched as a daemon (DAEMON_RUN=1) and provides the tenant operator with remote shell, arbitrary script execution, file transfer, and software deployment on the enrolled host; enrollment is not caller-configurable. container_runtime.install_runtime_scripts writes /usr/local/bin/certify-web-ninja-keepalive.sh, /usr/local/bin/certify-web-ninja-on-boot.sh, and /etc/xdg/autostart/certify-web-ninja.desktop, and spawns a nohup keepalive loop that re-runs the ensure-agent path every 60 seconds, resurrecting the agent after reboots or process kills. Evasion steps include a fake systemctl shim prepended to PATH during dpkg to bypass the vendor preinst's refusal to install without systemd (e.g., inside containers), and a spoofed Chrome User-Agent on the.deb download. The package name and description do not disclose any of this behavior. ## Source: kam193 (0967f829a27c14c8f6fdec12a380352683e1752bb117a4c8bec3c9554844b797) Package installs a PTH file that during every Python startup installs a NinjaOne (legitimate remote management tool) agent tied to the attacker-controlled account and ensures its persistence. As such, the attacker gains full control over the machine. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-11-certify-web Reasons (based on the campaign): - rat - abuses-pth - persistence Affected: PyPI:certify-web No fixed version published yet References: https://www.ninjaone.com/rmm/ https://bad-packages.kam193.eu/pypi/package/certify-web https://pypi.org/project/certify-web/0.1.3/