Executive Summary
Analysis of a malicious batch script reveals pyCodeV3, a sophisticated multi-stage Python-based loader. The attack begins with a Portuguese-language decoy invoice ('NF-eletronica.txt') that triggers a hidden PowerShell command. This command bootstraps a legitimate, portable Python 3.13 interpreter onto the victim's machine to evade detection by running within a trusted environment.
Technical analysis shows the loader utilizes Domain Generation Algorithms (DGA) to beacon to dynamic DNS infrastructure (*.ddnsfree.com) and identifies victims by fingerprinting CPU and Windows version information. Most critically, the loader uses Python's 'pickle' module to deserialize network-delivered data and 'exec()' to run arbitrary code supplied by the C2, acting as a flexible gateway for additional malware like RATs or info-stealers.
