Skip to content

MALICIOUS (1) package from Python Package Index.

  1. The campaign has clearly malicious intent, like infostealers.

pafex

Affected versions: (1) 2.3

  1. 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

  1. May not be available. See more in pypi-json-data repository.
  2. Open Source Insights project, provided by Google.
  3. Service from Socket.dev, a cybersecurity company.
  4. Spectra Assure Community, a service from ReversingLabs, a cybersecurity company.
  5. Service from Snyk, a cybersecurity company.