Skip to main content

Golang Mining Worm Targeting Linux Servers

A new unnamed Golang based worm has been observed targeting Linux servers. The worm installs a cryptocurrency miner and attempts to spread to other systems.

Report a cyber attack: call 0300 303 5222 or email [email protected]

Summary

A new unnamed Golang based worm has been observed targeting Linux servers. The worm installs a cryptocurrency miner and attempts to spread to other systems.


Threat details

The worm spreads by attempting to exploit four web application vulnerabilities or by brute forcing Secure Shell (SSH) and Redis database services on the target system using a hardcoded set of credentials. Once the worm is established on the system it downloads and executes three scripts.

The first script contains a set of installation instructions, the second and third scripts contain the code and configuration for the cryptocurrency miner. When the first script executes, it attempts to carry out a series of activities:

  • The script attempts to disable security features including SELinux.
  • A scheduled job is created that downloads and runs the installation script every fifteen minutes in order to maintain persistence.
  • All processes with a CPU usage greater than 30% are killed.
  • The script attempts to connect to all known SSH hosts in the directory and execute the payload.
  • The cryptocurrency miner is installed and run as a service.

For further information


Remediation steps

Type Step

To prevent and detect an infection, ensure that:

  • Users and administrators are encouraged to review the following vendor security advisories and apply the necessary updates.
  • All operating systems, anti-virus and other security products are kept up-to-date.
  • Regular anti-virus and security scans are performed on your organisation’s estate.
  • All day-to-day computer activities such as email and internet are performed using non-administrative accounts.
  • Strong password policies are in place.
  • Network, proxy and firewall logs should be monitored for suspicious activity.
  • User accounts accessed from affected devices should be reset on a clean computer.
  • Your organisation adopts a holistic all-round approach to Cyber Security as advocated by the 10 Steps to Cyber Security.


Last edited: 14 February 2020 2:44 pm