Suspicious Productivity Pyinstaller Compiled Applications



Hello World. I have looked at a few interesting samples earlier this month that appear to fall into the same realm as many of the EvilAI PDF converters which have been reported last year.  The difference in this one is that instead of being inno packed, or an electron app, or a .NET application like some of the variations observed so far, this one is a python compiled application.

The initial application observed was "PDFly", which, after some pivoting on other information led to the discovery Ziply, as well as PDFClick, and Rapidoc. These findings were shared on my X post as well.

The challenge with these is that I am unable to use pyinstxtractor/pyinstxtractor-ng, there seems to be some level of customized pyinstaller magic here that I just don't know enough about. What I do know is that when running these applications they do drop an AppData\Local\Temp\_MEIXXXX directory, common with PyInstaller, and there is an embedded resource zip file with another EXE of the same name.

Additionally, when running Process Hacker, I can see in-memory strings that show another Python file, for PDFly this is app.py, loading from that AppData\Local\Temp\_MEI folder, however that file does not seem to actually drop onto disk, or it drops quickly and loads into memory and is gone before I see it. 

The good news is that it seems like some of the "custom" magic lies in some of this packing being done as zlib chunks. That can be extracted: Screenshot from Malcat:










The unpacked PDFly.exe is very similar, a bunch of zlib structures with one of them unpacking as what appears to be the app.py. 



I do have a AI-assisted Python script that grabs all the zlib structures and attempts to unpack and disassemble them, this automates the process I just showed with Malcat. (Judge me if you must, but AI wrote that Python script in much shorter time than I ever could have, and time is precious to me.)

I have a YARA rules also for detecting these types of python compiled applications.

PDFly Info
Ziply Info
Rapidoc Info


Comments

Popular posts from this blog

TamperedChef: Suspicious Recipe App is really Malware

EvilAI: Fake Online Speedtest Application

Suspicious Converter: Obfuscated Strings, Silent Tasks, and a Covert Update Channel