Python-Based Botnet Targets Linux Systems with Exposed SSH Ports

Discussion in 'Linux' started by daljeet, Jan 7, 2018.

  1. daljeet

    daljeet Senior Member Known Member

    Python scripts are harder to detect
    The attack is unique when compared to other Monero-mining botnets that have arisen in recent months, relying on Python scripts, rather than on malware binaries.

    "Unlike a binary malware alternative, a scripting language-based malware is more evasive by nature as it can be easily obfuscated," F5 experts say. "It is also executed by a legitimate binary, which could be one of the PERL/Python/Bash/Go/PowerShell interpreters shipped with almost every Linux/Windows distribution."

    Despite this, once researchers identified samples of the malware, its construction wasn't that complex.

    How the PyCryptoMiner malware works
    Experts say that after infecting victims, crooks download an initial and very simple base64-encoded "spearhead" Python script that gathers info on the victims' system and reports to a remote C&C server.

    The server replies with a second Python script in the form of a Python dictionary file that installs a version of the open-source Minerd Monero mining client.

    Experts say they identified two Monero wallets used by this botnet, which they named PyCryptoMiner. One contained 94 Monero and the second contained 64 Monero, for an approximate total of $60,000.
    Further, researchers said that the C&C domain names used by PyCryptoMiner were registered by an individual who was tied to over 36,000 domain names and 234 other email addresses, all used for domains involved in scams, gambling, and adult services.

    One more thing that researchers found interesting was the fact that PyCryptoMiner used a hard-coded Pastebin link to retrieve the location of a backup C&C server when the main domain was down.

    Experts say this Pastebin URL was viewed more than 175,000 times. This is not the botnet's real size, as bots could have viewed this page numerous times. A more clear indicator of the botnet's real size was the daily increase of around 1,000 views.

    This is a very small Monero-mining botnet but was still enough for the authors to make over $60,000, showing how popular and profitable such botnets can be at the moment. Earlier this week, when F5 researchers published their findings, the botnet was down and out of service.

    In recent months, Monero-mining malware has become quite popular. Excluding cryptojacking events —which also mine Monero— some of the Monero-mining malware families and botnets we've seen in 2017 include Digmine, an unnamed botnet targeting WordPress sites, Hexmen, Loapi, Zealot, WaterMiner, an unnamed botnet targeting IIS 6.0 servers, CodeFork, and Bondnet.

    Full source:
    Ultimo, silversurfer and RGiskardR like this.
  2. Google Adsense

Share This Page