MAL-2026-10912 Malicious code in shark-e2e-bnsneo (PyPI)
- Published
- Updated
- Exploit status
- No public exploit known
Description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (7d634ef25cc07c2f00565518ab2cd2484a0dbf70a5d32d81376f3f7592bd1804)
On import, init.py decodes a base64-encoded string and passes it to exec() inside a _sync_module_docs() helper invoked at module top level. The decoded payload is a Windows-only ctypes call that displays a MessageBox (ctypes.windll.user32.MessageBoxW) and performs no network I/O, no filesystem reads of installer secrets, no credential access, and no persistence. The package metadata describes it as an end-to-end test artifact. The concern is the dispatch pattern itself — opaque base64-then-exec at import time is the obfuscated-code-execution shape and is unsafe regardless of today's payload, because the encoded blob is not human-reviewable and could change between releases. No attacker benefit is reachable in this version: the decoded code does not exfiltrate, drop, relay, or persist.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi shark-e2e-bnsneo(PyPI) | = 0.2.9; = 0.2.10; = 0.3.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi shark-e2e-bnsneo(PyPI) | = 0.2.9 | No fix listed |
| pypi shark-e2e-bnsneo(PyPI) | = 0.2.10 | No fix listed |
| pypi shark-e2e-bnsneo(PyPI) | = 0.3.1 | No fix listed |