MALICIOUS (1) package from Python Package Index.
- The campaign has clearly malicious intent, like infostealers.
pafex¶
Affected versions: (1) 2.3
- Version numbers are usually added automatically. In most cases, the packages listed here were created only to distribute malicious code.
In this campaign, the main package (resion) has an embeded pickle disguised as a config. A related dependency (pafex) contains code to load the pickle. During unpickling, malicious code embeded in the pickle file is automatically executed. It then establishes persistence via a PTH file and downloads the next stage payload. During analysis, the final remote payload was just a stub
Campaign data¶
Campaign information may not always be 100% accurate for every related package.
Campaign description
In this campaign, the main package (webreader) has an embeded pickle disguised as a config. A related dependency (pafer) contains code to load the pickle. During unpickling, malicious code embeded in the pickle file is automatically executed. It then establishes persistence via a PTH file and downloads the next stage payload. It finally acts like a RAT, allowing remote exfiltration and code execution.
See more details on the campaign page.
RAT
Malicious activity is typical for Remote Access Trojans (RATs).
abuses-pth
The package uses .pth files, sitecustomize or usercustomize modules to execute malicious code during Python startup, even without importing the package code manually.
files_exfiltration
Campaign targets files_exfiltration.
obfuscation
Code uses obfuscation techniques to hide its true purpose.
persistence
Campaign targets persistence.
remote_commands
The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.
remote_script
Downloads and executes a remote malicious script.
through_dependency
The malicious code is intentionally included in a dependency of the package
Look up in other services¶
- Check metadata in pypi-data project (1)
- Search for the package in deps.dev(2)
- Search for the package in socket.dev (3)
- Search for the package in secure.software (4)
- Search for the package in Snyk Advisor (5)
- May not be available. See more in pypi-json-data repository.
- Open Source Insights project, provided by Google.
- Service from Socket.dev, a cybersecurity company.
- Spectra Assure Community, a service from ReversingLabs, a cybersecurity company.
- Service from Snyk, a cybersecurity company.