// HackTheBox  ·  writeup

KitsuneHook

HackTheBox Easy LAC reportUnit 42CybereasonWiz Threat DBMITRE ATT&CK
Threat Intelligence

Scenario

You’re a Threat Intelligence Analyst with a new assignment: all you know is that Winnti is behind this mess. Your organization has detected suspicious activity targeting manufacturing and energy companies, and the SOC needs answers fast.

Executive Summary

Winnti, the long-running Chinese state-linked cluster, ran a campaign against manufacturing, materials and energy organizations. Initial access came from injection flaws in an internet-facing ERP system, after which the operators dropped several web shells, including a purpose-built uploader and the well-known Behinder, for a durable foothold. A loader abused a legitimate Windows service for DLL side-loading, decrypted a staged payload from a DAT file and brought up the group’s RAT. The RAT then installed a kernel rootkit, with a separate Linux controller and an email-based backdoor rounding out the toolset. Everything in this case comes from public vendor reporting, so the exact names and values stay in the questions below.

Artifacts

This case ships no files. The answers come from public reporting:

Timestamp note: The only dates in play are two DLL compile times in 2021 (Q14). They are used for campaign attribution, not as a timeline.

Resource Development

Q1 — What is the primary APT designation number used to track this state-sponsored threat actor that has been active since at least 2012?

Winnti is the umbrella name. The Security Affairs coverage of the LAC report, and Unit 42’s profile of the cluster, both file the same actor under one numbered APT designation. The five-character mask matches that “APT” plus two-digit form.

Click flag to reveal APT41
Q2 — This group is tracked under multiple names by different security vendors. Provide the alternative name used by Symantec.

MITRE’s group page G0044 lists the associated names per vendor. Symantec’s alias is an eight-letter name starting with “Black”. Source: attack.mitre.org/groups/G0044/.

Click to reveal answer Blackfly
Q4 — Internal documents from a security contractor, revealing a Linux controller for the malware, were leaked. What is the common name for this leak?

Unit 42’s analysis of the leaked documents from a Chinese security contractor ties the Linux controller to this ecosystem. The leak is commonly named after the contractor, in the *-**** shape. Source: unit42.paloaltonetworks.com/i-soon-data-leaks/.

Click flag to reveal i-Soon
Q5 — Researchers discovered references to a Linux-based command and control infrastructure component with a geology-themed codename. What is the name of this control panel specifically engineered to manage the malware ecosystem?

The LAC report and the Unit 42 leak analysis name the Linux-side control panel. The geology theme is the clue: a “stone” compound, ten characters, which also echoes the campaign naming from Q3.

Click to reveal answer TreadStone
Q6 — What version designation was found in the samples that indicates the latest iteration of this malware?

LAC found the same “stone” naming in the samples, where a StoneV5 string maps to the family’s own version label. The mask (****** **.*) gives the shape: the family name, then a version with one decimal.

Click flag to reveal Winnti v5.0
Q14 — Two samples of DLL file prntvpt.dll from the campaign show compilation timestamps of May 12, 2021 and August 17, 2021. Identify the major APT campaign that was active during this exact timeframe in 2021.

This one was reasoned rather than read from a report. The question asks for a named Winnti campaign running through mid-2021 that hit manufacturing firms for intellectual property, which points to the Cybereason-documented operation. The two-word mask (********* **********) fit that name, and HTB accepted it.

Tip: Compile timestamps only bound when a sample was built. Match them against named campaigns active in the same window, then check the mask.

Click to reveal answer Operation CuckooBees

Initial Access

Q3 — What is the name of the campaign that specifically targeted organizations in the manufacturing, materials, and energy sectors?

LAC’s February 2025 report (lac.co.jp/lacwatch/report/20250213_004283.html) tracks a Winnti campaign against Japanese manufacturing, materials and energy companies. The campaign name is twelve characters and carries the same “stone” theme as the tooling.

Click flag to reveal RevivalStone
Q7 — What type of vulnerability was exploited in the system to gain initial access during the campaign from task 3?

From Q3 the campaign is known, so read its intrusion section. Security Affairs’ summary of the LAC findings says the operators got in through a flaw in an ERP system’s input handling. The mask is three letters, then nine.

Click to reveal answer SQL injection

Execution

Q11 — In the previously mentioned campaign, a loader component drops a Remote Access Trojan (RAT), which then installs a kernel-level rootkit. Identify both the LOADER and the rootkit.

The LAC and Hacker News write-ups describe a three-stage chain: a loader, the RAT it drops, then a rootkit installed by the RAT. The answer joins the loader name and the rootkit name with an underscore, ten characters then seven.

Gotcha: Using the generic word “Rootkit” for the second half fits the mask’s seven characters but is wrong. Vendors give the rootkit its own name, so take that from the report.

Click flag to reveal PRIVATELOG_WINNKIT
Q12 — Which Windows system service is commonly abused for DLL side-loading in this campaign using TSMSISrv.DLL?

TSMSISrv.DLL is a Remote Desktop Services component, which the LAC report and Security Affairs tie to a Remote Desktop session service. The service loads the DLL from its own directory, so a planted copy gets loaded by a signed Windows service.

Click to reveal answer SessionEnv

Persistence

Q8 — The adversaries deployed multiple web shells including "China Chopper" and "Behinder". What is the third web shell name mentioned?

The LAC and Security Affairs reporting lists three web shells after the SQL injection from Q7. The two named in the question are the commodity ones. The third is a three-word tool, which fits the mask ****** **** ******** and relates to the injection tool used for the first foothold.

Click flag to reveal sqlmap file uploader
Q9 — Behinder (also called Bingxia) uses a hardcoded encryption key consisting of the first 16 characters of the MD5 hash of what specific word?

This is background knowledge, not something read from the campaign reports. Behinder’s default key is the first 16 hex characters of the MD5 of its author’s handle, which fits the eight-character mask.

Click to reveal answer rebeyond

Defense Evasion

Q13 — What AES encryption mode is used in the malware DAT file decryption process?

The LAC report describes the DAT payload being decrypted in two layers: AES first, then ChaCha20. The AES mode is a feedback mode, spelled out as two words per the mask.

Click flag to reveal Output Feedback
Q15 — The Winnti_Rootkit YARA rule developed by LAC Co., Ltd. contains some detection strings. Two of these strings reference Windows kernel device objects using specific path formats. Identify the Windows device object path related to Sound function in hardware level that the rootkit interacts with.

Open LAC’s published Winnti_Rootkit YARA rule and read the strings section. Two strings are kernel device paths, and the sound-related one is a short device name from the \Device namespace. The submitted form uses doubled backslashes, as the mask shows.

Click flag to reveal \\Device\\Beep

Command and Control

Q10 — Which malware uses Microsoft Graph API to fetch commands from email messages for file management, and proxy operations?

Wiz’s threat database entry (threats.wiz.io/all-tools/cunningpigeon) and The Hacker News describe a backdoor in this toolset that reads attacker commands out of mailbox messages through the Graph API. It handles file management and proxying, and its name is thirteen characters.

Click to reveal answer CUNNINGPIGEON

Attack Summary

PhaseAction
Initial AccessSQL injection against an internet-facing ERP system
PersistenceWeb shells dropped, including a sqlmap-based uploader and Behinder
ExecutionLoader side-loads through a Remote Desktop session service and drops the RAT
Defense EvasionPayload DAT file decrypted with AES in OFB mode, then ChaCha20
Defense EvasionRAT installs a kernel rootkit
Command and ControlGraph API email backdoor used for commands, file management and proxying

IOCs

TypeValue
Threat actorAPT41 / Winnti / Blackfly
CampaignRevivalStone
LoaderPRIVATELOG
RootkitWINNKIT
Email backdoorCUNNINGPIGEON
DLLTSMSISrv.DLL, prntvpt.dll
ServiceSessionEnv
Kernel device\Device\Beep

MITRE ATT&CK

TechniqueIDDescription
Exploit Public-Facing ApplicationT1190SQL injection against an ERP system
Server Software Component: Web ShellT1505.003China Chopper, Behinder and a sqlmap-based uploader
Hijack Execution Flow: DLL Side-LoadingT1574.002TSMSISrv.DLL loaded by the SessionEnv service
Obfuscated Files or Information: Encrypted/Encoded FileT1027.013DAT payload encrypted with AES-OFB and ChaCha20
RootkitT1014Kernel-level rootkit installed by the RAT
Web ServiceT1102Commands fetched through Microsoft Graph API email

Defender Takeaways

Patch and test ERP front ends for injection. The campaign started with SQL injection in an internet-facing ERP system. Input validation, parameterised queries and a WAF rule set in front of business applications would have closed the door the whole chain depended on.

Hunt for web shells after any injection finding. The operators dropped several shells, including commodity ones with fixed behaviour. Scan web roots for new script files, and alert on web server processes spawning shells or writing outside expected directories.

Alert on a signed service loading a DLL from an unusual path. SessionEnv loading TSMSISrv.DLL from outside System32 is the sideload signal. Image-load telemetry for that service, plus file-creation alerts for that DLL name, catches the loader before the RAT lands.

Treat unexpected Graph API traffic as a C2 candidate. An email-driven backdoor blends into normal Microsoft 365 traffic. Baseline which hosts and applications call the Graph API, and flag servers that do not normally touch mailboxes.

Ship the vendor YARA and block known rootkit drivers. LAC’s Winnti_Rootkit rule keys on kernel device strings. Running it against memory and driver files, and enforcing driver block lists, gives a detection that survives the loader being swapped.

Conclusion

Winnti turned a single injectable ERP system into a layered foothold: web shells, a sideloaded loader, a RAT, a kernel rootkit and a mailbox-driven backdoor. The case matters because every named component is publicly documented, so the defensive value sits in knowing the family’s tradecraft and hunting for it before the rootkit is in place.