COATHANGER is a custom remote access trojan designed to infect Fortinet FortiGate network security appliances running FortiOS. It is associated with Chinese state-sponsored cyberespionage and was publicly disclosed by Dutch intelligence and cybersecurity agencies in February 2024 following a 2023 intrusion into a segmented Dutch Ministry of Defence research network. Attackers deployed it after exploiting CVE-2022-42475 in FortiOS SSL VPN functionality. The broader campaign targeted governments, international organizations, and defense-industry companies, with persistent implants deployed on selected compromised systems.
COATHANGER provides persistent remote access and command execution. It can survive device reboots and firmware upgrades by injecting a backup of itself into the process responsible for rebooting the appliance and restoring its installation during the reboot sequence. Consequently, applying security updates after compromise does not necessarily remove the implant. It communicates with command-and-control infrastructure using SSL and exchanges configuration information through ICMP.
Its evasion mechanisms include a hidden installation directory, a packed first-stage payload, library injection into running processes, and function hooking. It intercepts system calls to conceal its presence and removes files after use to reduce forensic visibility. These persistence and concealment mechanisms make infections difficult to identify and eradicate.
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In February 2024, the service revealed that Chinese hackers had broken into a compartmentalized Dutch Ministry of Defence network by exploiting a FortiGate vulnerability, deploying malware the agencies named COATHANGER.
In February 2024, the service revealed that Chinese hackers had broken into a compartmentalized Dutch Ministry of Defence network by exploiting a FortiGate vulnerability, deploying malware the agencies named COATHANGER.
"...attackers exploited CVE-2022-42475 against a Fortigate device to gain initial access and deploy malware known as \"COATHANGER.\""
This sample contained an interesting string that led one of our CERT partners to name this cluster COATHANGER “She took his coat and hung it up.”
32 distinct techniques documented for this family, organized by ATT&CK tactic.
In February 2024, the service revealed that Chinese hackers had broken into a compartmentalized Dutch Ministry of Defence network by exploiting a FortiGate vulnerability, deploying malware the agencies named COATHANGER.
De campagne richtte zich op FortiGate-systemen en het NCSC beschrijft een bredere trend van misbruik van publiek benaderbare edge devices, zoals firewalls, VPN-servers, routers en e-mailservers.
[COATHANGER](https://attack.mitre.org/software/S1105) is installed following exploitation of a vulnerable FortiGate device. (Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) provides a BusyBox reverse shell for command and control.(Citation: NCSC-NL COATHANGER Feb 2024)
Fortinet disclosed in February that the Chinese Volt Typhoon hacking group exploited two FortiOS SSL VPN flaws (CVE-2022-42475 and CVE-2023-27997) to backdoor a Dutch Ministry of Defence military network using custom Coathanger remote access trojan (RAT) malware.
[COATHANGER](https://attack.mitre.org/software/S1105) will remove and write malicious shared objects associated with legitimate system functions such as `read(2)`.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) copies the malicious file <code>/data2/.bd.key/preload.so</code> to <code>/lib/preload.so</code>, then launches a child process that executes the malicious file <code>/data2/.bd.key/authd</code> as <code>/bin/authd</code> with the arguments <code>/lib/preload.so reboot newreboot 1</code>.(Citation: NCSC-NL COATHANGER Feb 2024) This injects the malicious preload.so file into the process with PID 1, and replaces its reboot function with the malicious newreboot function for persistence.
De campagne richtte zich op FortiGate-systemen en het NCSC beschrijft een bredere trend van misbruik van publiek benaderbare edge devices, zoals firewalls, VPN-servers, routers en e-mailservers.
Fortinet disclosed in February that the Chinese Volt Typhoon hacking group exploited two FortiOS SSL VPN flaws (CVE-2022-42475 and CVE-2023-27997) to backdoor a Dutch Ministry of Defence military network using custom Coathanger remote access trojan (RAT) malware.
De statelijke actor installeerde bij relevante doelwitten op een later moment malware. Zo kreeg de actor permanente toegang tot de systemen. Ook als een slachtoffer beveiligingsupdates van FortiGate installeert, blijft de toegang behouden.
[COATHANGER](https://attack.mitre.org/software/S1105) will create a daemon for timed check-ins with command and control infrastructure.(Citation: NCSC-NL COATHANGER Feb 2024)
"persistent, recovering after every reboot by injecting a backup of itself in the process responsible for rebooting the system."
[COATHANGER](https://attack.mitre.org/software/S1105) includes a binary labeled `authd` that can inject a library into a running process and then hook an existing function within that process with a new function from that library.(Citation: NCSC-NL COATHANGER Feb 2024)
Silence has injected a DLL library containing a Trojan into the fwmain32.exe process. WarzoneRAT has the ability to inject malicious DLLs into a specific process for privilege escalation. COATHANGER includes a binary labeled authd that can inject a library into a running process and then hook an existing function within that process with a new function from that library.
[COATHANGER](https://attack.mitre.org/software/S1105) will create a daemon for timed check-ins with command and control infrastructure.(Citation: NCSC-NL COATHANGER Feb 2024)
"persistent, recovering after every reboot by injecting a backup of itself in the process responsible for rebooting the system."
[COATHANGER](https://attack.mitre.org/software/S1105) hooks or replaces multiple legitimate processes and other functions on victim devices.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) can store obfuscated configuration information in the last 56 bytes of the file `/date/.bd.key/preload.so`.(Citation: NCSC-NL COATHANGER Feb 2024)
The first stage of [COATHANGER](https://attack.mitre.org/software/S1105) is delivered as a packed file.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) includes a binary labeled `authd` that can inject a library into a running process and then hook an existing function within that process with a new function from that library.(Citation: NCSC-NL COATHANGER Feb 2024)
Silence has injected a DLL library containing a Trojan into the fwmain32.exe process. WarzoneRAT has the ability to inject malicious DLLs into a specific process for privilege escalation. COATHANGER includes a binary labeled authd that can inject a library into a running process and then hook an existing function within that process with a new function from that library.
Examples throughout the content include deleting tools, logs, malware-related files, staged archives, screenshots, temporary files, and exfiltrated data 'to cover their tracks,' 'reduce their footprint,' 'remove traces of activity,' or as part of 'post-intrusion cleanup.'
[COATHANGER](https://attack.mitre.org/software/S1105) removes files from victim environments following use in multiple instances.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) decodes configuration items from a bundled file for command and control activity.(Citation: NCSC-NL COATHANGER Feb 2024)
De statelijke actor installeerde bij relevante doelwitten op een later moment malware. Zo kreeg de actor permanente toegang tot de systemen. Ook als een slachtoffer beveiligingsupdates van FortiGate installeert, blijft de toegang behouden.
[COATHANGER](https://attack.mitre.org/software/S1105) creates and installs itself to a hidden installation directory.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) will remove and write malicious shared objects associated with legitimate system functions such as `read(2)`.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) copies the malicious file <code>/data2/.bd.key/preload.so</code> to <code>/lib/preload.so</code>, then launches a child process that executes the malicious file <code>/data2/.bd.key/authd</code> as <code>/bin/authd</code> with the arguments <code>/lib/preload.so reboot newreboot 1</code>.(Citation: NCSC-NL COATHANGER Feb 2024) This injects the malicious preload.so file into the process with PID 1, and replaces its reboot function with the malicious newreboot function for persistence.
[COATHANGER](https://attack.mitre.org/software/S1105) will set the GID of `httpsd` to 90 when infected.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) will query running process information to determine subsequent program execution flow.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) will survey the contents of system files during installation.(Citation: NCSC-NL COATHANGER Feb 2024)
"...a new critical remote code execution vulnerability in FortiOS SSL VPN..."
De Nederlandse inlichtingendiensten en het NCSC achten het waarschijnlijk dat de statelijke actor bij honderden slachtoffers wereldwijd zijn toegang uit kon breiden en aanvullende acties uit heeft kunnen voeren zoals het stelen van gegevens.
[COATHANGER](https://attack.mitre.org/software/S1105) uses an HTTP GET request to initialize a follow-on TLS tunnel for command and control.(Citation: NCSC-NL COATHANGER Feb 2024)
[COATHANGER](https://attack.mitre.org/software/S1105) uses ICMP for transmitting configuration information to and from its command and control server.(Citation: NCSC-NL COATHANGER Feb 2024)
"a previously unknown malware strain named Coathanger, a remote access trojan (RAT) designed to infect Fortigate network security appliances"
Examples include: "COATHANGER uses an HTTP GET request to initialize a follow-on TLS tunnel for command and control" and "Drovorub can use the WebSocket protocol and has initiated communication with C2 servers with an HTTP Upgrade request."
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[COATHANGER](https://attack.mitre.org/software/S1105) connects to command and control infrastructure using SSL.(Citation: NCSC-NL COATHANGER Feb 2024)
"Moreover, the infection survives firmware upgrades" and "Even fully patched FortiGate devices may therefore be infected, if they were compromised before the latest patch was applied."
6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.