THINCRUST
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- LinuxNetwork device
THINCRUST is a Python-based backdoor associated with UNC3886 and observed on Fortinet FortiAnalyzer and FortiManager appliances. It is designed for stealthy persistence on edge devices and disguises command-and-control traffic as legitimate appliance API activity. The malware was implanted by appending malicious Python code into legitimate web framework components that expose the appliance API, allowing operators to interact with the backdoor through a newly added endpoint while blending with normal management traffic. Reported functionality includes abuse of Django components and use of a CSRF-exempt handler to facilitate command access through the compromised device’s native web application stack. THINCRUST is part of a broader pattern of China-nexus intrusion activity targeting security appliances through vulnerability exploitation and then deploying platform-specific implants to maintain covert access on systems that often have limited endpoint visibility and forensic coverage.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Mandiant has observed a trend in which China-nexus attackers have gained access to edge devices via exploitation of vulnerabilities, particularly zero-days... If an attacker possesses an exploit for a zero-day vulnerability on these devices, they are often able to gain access to a target environment and remain undetected for an extended period of time.
Execution
2 techniques
Execution
UNC3886... appended the Python-based backdoor code into legitimate web framework files...
[THINCRUST](https://attack.mitre.org/software/S1223) can use Python scripts for command execution.(Citation: Mandiant Fortinet Zero Day)
Stealth
2 techniques
Stealth
THINCRUST, which disguised its command and control (C2) communications as legitimate API calls to the devices.
[THINCRUST](https://attack.mitre.org/software/S1223) can deobfuscate RSA encrypted C2 commands received through the DEVICEID cookie.(Citation: Mandiant Fortinet Zero Day)
Defense Impairment
1 technique
Defense Impairment
[THINCRUST](https://attack.mitre.org/software/S1223) can use the Django python module "django.views.decorators.csrf” along with the decorator “csrf_exempt” within victim firewalls to disable cross-site request forgery protections.(Citation: Mandiant Fortinet Zero Day)
Command and Control
2 techniques
Command and Control
[THINCRUST](https://attack.mitre.org/software/S1223) can use HTTP POST requests in C2 communications.(Citation: Mandiant Fortinet Zero Day)
[THINCRUST](https://attack.mitre.org/software/S1223) can process RSA encryted C2 commands.(Citation: Mandiant Fortinet Zero Day)
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.