ZeroHour
Kaspersky Securelistpublished ()ingested @Securelist

Pbot: evolving adware

highMalwareimportance 42

Indicators of compromiseAll →

TypeIndicatorContext
md50cb5a3d428c5db610a4565c17e3dc05e8ca8226fa17e72df2ce8c43586 ad03c82b952cc352b5e6d4b20075d7e1 0cb5a3d428c5db610a4565c17e3dc05e 3a6ad75eb3b8fe07c6aca8ae724a9416 184e16789caf0822cd4d63f987
md5184e16789caf0822cd4d63f9879a6c81d428c5db610a4565c17e3dc05e 3a6ad75eb3b8fe07c6aca8ae724a9416 184e16789caf0822cd4d63f9879a6c81 Latest Webinars Reports Kaspersky researchers have discover
md51aaedcf1f1ea274c7ca5f517145cb9b5t AdWare.Python.PBot IoCs: 3cd47c91d8d8ce44e50a1785455c8f7c 1aaedcf1f1ea274c7ca5f517145cb9b5 bb2fbb72ef683e648d5b2ceca0d08a93 23e7cd8ca8226fa17e72df2ce8
md523e7cd8ca8226fa17e72df2ce8c43586f1f1ea274c7ca5f517145cb9b5 bb2fbb72ef683e648d5b2ceca0d08a93 23e7cd8ca8226fa17e72df2ce8c43586 ad03c82b952cc352b5e6d4b20075d7e1 0cb5a3d428c5db610a4565c17e
md53a6ad75eb3b8fe07c6aca8ae724a94162b952cc352b5e6d4b20075d7e1 0cb5a3d428c5db610a4565c17e3dc05e 3a6ad75eb3b8fe07c6aca8ae724a9416 184e16789caf0822cd4d63f9879a6c81 Latest Webinars Reports Ka
md53cd47c91d8d8ce44e50a1785455c8f7cAdWare.NSIS.PBot AdWare.HTML.PBot AdWare.Python.PBot IoCs: 3cd47c91d8d8ce44e50a1785455c8f7c 1aaedcf1f1ea274c7ca5f517145cb9b5 bb2fbb72ef683e648d5b2ceca0
md5ad03c82b952cc352b5e6d4b20075d7e172ef683e648d5b2ceca0d08a93 23e7cd8ca8226fa17e72df2ce8c43586 ad03c82b952cc352b5e6d4b20075d7e1 0cb5a3d428c5db610a4565c17e3dc05e 3a6ad75eb3b8fe07c6aca8ae72
md5bb2fbb72ef683e648d5b2ceca0d08a9391d8d8ce44e50a1785455c8f7c 1aaedcf1f1ea274c7ca5f517145cb9b5 bb2fbb72ef683e648d5b2ceca0d08a93 23e7cd8ca8226fa17e72df2ce8c43586 ad03c82b952cc352b5e6d4b200
Full article732 words · extracted from securelist.com · click to collapse

Malware descriptions

Malware descriptions

26 Jun 2018

minute read

The adware PBot (PythonBot) got its name because its core modules are written in Python. It was more than a year ago that we detected the first member of this family. Since then, we have encountered several modifications of the program, one of which went beyond adware by installing and running a hidden miner on victim computers:

Miner code installed through PBot

Two other versions of PBot we detected were restricted to the goal of placing unwanted advertising on web pages visited by the victim. In both versions, the adware initially attempts to inject a malicious DLL into the browser. The first version uses it to run JS scripts to display ads on web pages, the second — to install ad extensions in the browser. The latter is the more interesting of the two: developers are constantly releasing new versions of this modification, each of which complicates the script obfuscation. Another distinctive feature of this Pbot variation is the presence of a module that updates scripts and downloads fresh browser extensions.

Throughout April, we registered more than 50,000 attempts to install PBot on computers of users of Kaspersky Lab products. The following month this number increased, indicating that this adware is on the rise. PBot’s target audience is mainly in Russia, Ukraine, and Kazakhstan.

Geography of infection attempts

Distribution methods

PBot is generally distributed through partner sites whose pages implement scripts to redirect users to sponsored links.
Here is the standard PBot propagation scheme:

  1. The user visits the partner site.
  2. When any point on the page is clicked, a new browser window pops up that opens an intermediate link.
  3. The intermediate link redirects the user to the PBot download page, which is tasked with downloading and running the adware on the victim computer by hook or by crook. The following is a section of code from one such page:

    Code of a page propagating PBot

  4. An HTA file is downloaded. On startup this file downloads the PBot installer.

    PBot propagation chain

Operating logic

PBot consists of several Python scripts executed in sequence. In the latest versions of the program, they are obfuscated using Pyminifier.

Obfuscated script code

In the new versions of PBot, modules are executed according to the following scheme:

PBot installation

  1. The source file *.hta downloads an executable file, which is the NSIS installer of PBot, to %AppData%.
  2. The installer drops a folder with the Python 3 interpreter, Python scripts, and a browser extension into %AppData%.
  3. Using the subprocess library, the ml.py script adds two tasks to Windows Task Scheduler. The first is tasked with executing ml.py when the user signs into the system, while the second runs app.py daily at 5:00. In addition, the winreg library is used to write the app.py script to the autoloader.
  4. The launchall.py script runs app.py, which handles the update of PBot scripts and the download of new browser extensions.
  5. Next, launchall.py checks whether the following processes are active:
    • browser.exe
    • chrome.exe
    • opera.exe
  6. If the processes are found, the DLL-generating script brplugin.py is started. The resulting DLL is injected into the launched browser and installs the ad extension.

    Writing the DLL to the browser process memory and executing the library

The browser extension installed by PBot typically adds various banners to the page, and redirects the user to advertising sites.

PBot result: Pop-up window with an ad clip on www.kaspersky.com

Conclusion

In pursuit of profit, adware owners often resort to installing their products on the sly, and PBot developers are no exception. They release new versions (and update them on user computers), complicating their obfuscation to bypass protection systems.
Kaspersky Lab solutions detect PBot with the following verdicts:
AdWare.Win32.PBot
AdWare.NSIS.PBot
AdWare.HTML.PBot
AdWare.Python.PBot

IoCs:
3cd47c91d8d8ce44e50a1785455c8f7c
1aaedcf1f1ea274c7ca5f517145cb9b5
bb2fbb72ef683e648d5b2ceca0d08a93
23e7cd8ca8226fa17e72df2ce8c43586
ad03c82b952cc352b5e6d4b20075d7e1
0cb5a3d428c5db610a4565c17e3dc05e
3a6ad75eb3b8fe07c6aca8ae724a9416
184e16789caf0822cd4d63f9879a6c81

Latest Webinars
Reports

Kaspersky researchers have discovered new Mirage Kitten attacks using previously undocumented malware families: NodeRabbit in Node.js and PollCat in JavaScript.

Our experts discovered a new CoolClient backdoor variant with a kernel-mode rootkit driver that hides malicious processes, files, and network connections from security tools and threat analysts.

Kaspersky experts break down a new Armored Likho campaign that poses as a fundraising efforts and delivers a new Still Toolkit aimed at stealing Telegram data and eavesdropping on victims.

Kaspersky researchers reveal previously undocumented malware attributed to Mirage Kitten (UNC1549, Smoke Sandstorm, Nimbus Manticore): NightLedger backdoor, ArcBridge, and BridgeHead tunneling tools.

Text extracted automatically; images, tables and formatting may be missing. Original: https://securelist.com/pbot-evolving-adware/86242/