Asnarök is a credential-stealing malware toolkit comprising Linux ELF binaries and shell scripts, identified in April 2020 attacks against physical and virtual Sophos XG Firewall appliances. Attackers deployed it by exploiting CVE-2020-12271, a previously unknown SQL injection vulnerability that enabled remote code execution on firewalls exposing their HTTPS administration interface or User Portal to the internet.
Its staged infection chain downloads additional components and establishes persistence by modifying an operating-system script and arranging execution through a firewall service. Evasion behaviors include altering database records to conceal activity, deleting an executable from disk after launch, and masquerading as a legitimate firewall process. A data-theft module collects local administrator and user account information, encrypted passwords and password hashes, VPN access permissions, firewall licensing details, and system and network configuration data. It archives the collected information, encrypts it using Triple-DES, and attempts to upload it to attacker-controlled infrastructure before deleting temporary collection files. Companion backdoors provide continued control of compromised appliances.
After Sophos disclosed the attacks and released a hotfix, the operators modified the attack chain to attempt deployment of the distinct Ragnarok ransomware family against vulnerable Windows systems behind compromised firewalls, using EternalBlue and DoublePulsar. Sophos reported that its hotfix removed the firewall malware and backdoors and prevented the revised ransomware deployment attempts on patched appliances. Attribution to a specific threat actor is not established.
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
3 distinct techniques documented for this family, organized by ATT&CK tactic.
The Asnarok trojan infection was initiated after the attacker discovered and exploited a zero-day (SQL injection remote code execution) in Sophos XG firewalls. | Vulnerability exploit: attackers will search for exploitable and unpatched publicly faced components in order to access systems. As an example, the attacker behind the NOTROBIN backdoor exploited CVE-2019-19781, a vulnerability in Citrix NetScaler, to spread the malware.
This initial injected command triggered an affected device to download a Linux shell script named Install.sh from a remote server... used the chmod program to designate the file as executable, and executed it.
Starting April 2020, threat actors behind the Asnarök trojan malware had exploited the zero-day to try and steal firewall usernames and hashed passwords from vulnerable XG Firewall instances.
30 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.