Midnight Blizzard Uses Claude AI to Rebuild Malware, Evade Detection
Key Takeaways The state-backed hacking group Midnight Blizzard leveraged Anthropic’s Claude AI to reconstruct malware, including “ChocoShell” and “CornFlake,” to evade...
Key Takeaways
- The state-backed hacking group Midnight Blizzard leveraged Anthropic’s Claude AI to reconstruct malware, including “ChocoShell” and “CornFlake,” to evade detection.
- The campaign targeted over 20 government, diplomatic, think tank, and defense organizations in Ukraine and Europe.
- AI was used for various attack stages, from code modification and phishing system development to malware updates and data exfiltration.
- Researchers traced the campaign by identifying shared behavioral patterns and infrastructure links, even when file hashes changed.
- Defenders should focus on behavioral analysis, network connections, and infrastructure blocking rather than relying solely on file hashes for detection.
Midnight Blizzard Utilizes Claude AI to Rebuild Malware and Bypass Security Measures
A sophisticated cyber espionage campaign attributed to the Russian state-sponsored hacking group Midnight Blizzard has been observed using Anthropic’s Claude AI to regenerate its malware. This tactic allowed the group to circumvent existing security detections, sustaining their operations against critical Ukrainian and European entities.
Table Of Content
- Key Takeaways
- Midnight Blizzard Utilizes Claude AI to Rebuild Malware and Bypass Security Measures
- AI-Assisted Malware Regeneration Cycle
- Inside the ChocoShell and CornFlake Toolset
- What You Should Do
- Indicators of Compromise (IoCs):-
- File Hashes
- IP Addresses, Domains and Email Addresses
- URLs and Endpoint Paths
- Host and Behavioral Hunting Indicators
Despite modifications to file code and hashes, which are typically used for detection, new research indicates that the underlying behavioral patterns and server connections of the malware remained consistent. This persistence in operational characteristics enabled investigators to map the broader campaign, even after the initial malware samples were identified.
Anthropic, the developer of Claude AI, has designated this activity as GTG-20006. The company notes that the targeting and methodologies employed align with publicly reported information concerning Midnight Blizzard. The ongoing operation has reportedly targeted over 20 organizations across government, diplomatic missions, think tanks, and defense sectors.
The use of Claude AI by the attackers extended beyond merely rewriting malware code. It encompassed automating various phases of the attack lifecycle, including developing phishing systems, deploying malware updates, and facilitating the collection of stolen data.
Researchers from ReversingLabs identified and categorized the malware, subsequently expanding two initial file hashes into a comprehensive campaign map. Their October 15 research report connected the observed samples to a staging server, five additional PowerShell builds, two shortcut lures, and a network of phishing domains and command-and-control servers. However, ReversingLabs’ analysis of the files does not independently confirm the actor’s identity.
AI-Assisted Malware Regeneration Cycle
Anthropic confirmed that the threat actor leveraged Claude AI to locate, modify, and redeploy implants that had been detected by security tools. ReversingLabs’ investigation uncovered five additional stager builds deployed over a 25-day period, specifically between July 9 and August 3. This rapid succession of new builds suggests an active and continuous malware regeneration cycle. While the pattern aligns with an ongoing rebuild process, ReversingLabs’ internal records cannot definitively confirm whether these subsequent versions were generated by AI.
The initial samples that triggered the investigation were “ChocoShell,” a PowerShell stager, and “CornFlake,” a Windows backdoor written in Go. Microsoft previously identified both of these in its “CaptiveCrunch” report, linking the operation to Storm-2945, which Microsoft assesses as an operational subgroup of Midnight Blizzard. ReversingLabs first observed CornFlake on July 6 and ChocoShell on July 10.

It is important to note the timeline of these observations. ReversingLabs classified both files as malicious on August 1, which was one day after Microsoft publicly released its report. This classification was based on existing threat reputation. Therefore, ReversingLabs’ records indicate earlier possession of the samples, but not an independent malicious verdict preceding Microsoft’s disclosure.
Inside the ChocoShell and CornFlake Toolset
ChocoShell operates by concealing its window, altering PowerShell’s execution policy, and executing Base64-encoded commands. It leverages publicly available PowerSploit and Empire framework code to harvest browser history, query Windows shadow copies via WMI, and run background tasks. Its communication, conducted over HTTPS, reports operational progress through a tracking-pixel endpoint. Microsoft’s analysis also detailed the malware’s capability for browser credential theft and data uploads.
Investigators discovered two 60-byte Windows Internet Shortcut files that pointed to the staging server. One of these shortcuts led to a brief download path, while the other directed to a PowerShell payload disguised as a JavaScript bundle. Neither shortcut contained executable code, and none of the 37 antivirus engines tested flagged them as malicious. Their inherent danger stemmed solely from the malicious destinations they opened. Microsoft’s reporting suggests that compromised hotel and venue network portals were earlier in the attack chain, redirecting travelers to phishing pages and ClickFix prompts. ReversingLabs did not observe this upstream activity, so its shortcut findings should not be taken as independent confirmation of every step described by Microsoft.
CornFlake establishes persistent access through a registry startup entry and an additional mechanism involving Windows task scheduling. It injects itself into a suspended process and extracts browser profiles and cached Microsoft Teams data. Sandbox analysis also indicated signs of keylogging functionality. Crucially, ReversingLabs did not observe the initial delivery method for CornFlake to victims, nor could they establish a direct delivery link from ChocoShell.
The most significant commonality among the rebuilt stagers was their shared behavior. All five observed stagers exhibited an identical 35-item capability profile, despite having different file hashes. While some code changes were sufficient to break fuzzy-hash matching, which assesses file similarity, the same beacon labels persisted across versions. A YARA rule constructed using these consistent labels and PowerShell actions successfully identified seven malicious scripts, including the original sample.
Two additional stagers and both shortcut files demonstrated strong infrastructural ties to the campaign. Other scripts, while sharing the same toolset, lacked an observed network connection, suggesting the possibility of another operator using similar code. This distinction is critical for accurately attributing campaign activities versus merely identifying potential hunting leads.
As of checks conducted on October 5, the staging server continued to deliver malicious files. ReversingLabs advises organizations to review historical records, block confirmed malicious infrastructure, and scrutinize Microsoft Entra device-code sign-ins. The group’s prior focus on Teams chat credential theft highlights their broader objective of gaining account access. Organizations should restrict unused device-code authentication and test detection rules against benign files before deploying them.
The overarching lesson for defenders is to prioritize understanding malware’s behavior and its network connections, rather than relying solely on file hashes or low detection counts from external reputation services during active investigations.
What You Should Do
- Implement robust behavioral detection rules that focus on malware actions and network communications, not just file hashes.
- Block all confirmed malicious IP addresses, domains, and URLs identified in the Indicators of Compromise.
- Review historical logs for any signs of communication with the listed infrastructure or execution of the identified malware.
- Audit and restrict Microsoft Entra device-code authentication, ensuring only necessary accounts have this capability.
- Regularly test detection rules against both malicious and clean files to minimize false positives and ensure effectiveness before deployment.
- Educate users on phishing techniques, especially those involving device-code authentication and lookalike domains.
Indicators of Compromise (IoCs):-
File Hashes
| File or role | SHA-256 | SHA-1 |
|---|---|---|
| ChocoShell — original PowerShell sample | be99857449d2856dd5a84e21c8a3d5e0e01456adb44062ddec5a6b4970d8d42c |
937e75e0e1c82eecab69e9b8ad481bd7e0845308 |
| CornFlake — Go backdoor | 918fa52ae45ed60ba7cc8bdc99c3cbe9ab92e0375ec31fc05d0d4513be11c593 |
510af9bb00ff5d4a6856b1291af55db9f6e13551 |
| Additional stager 1 — infrastructure-linked | ca3be5885afb3eb3bb19341e2653212200c568f3f900e0b2f04de9ba209aed25 |
154d8cfd9e304b6644216456759b7fd12daf85c1 |
| Additional stager 2 — shared toolset | 20e20b074967ed6f6e04d609ccec5ff749265ef25f894c90c2ddc92fa47ac38 |
7acb7082d37854877a08999374460c9d7e5cd663 |
| Additional stager 3 — infrastructure-linked | 1e3ee845fde739fcd3ca9ce62c7f142a7c501d11db4c4fb294d4939f12d0f916 |
1b97e0df9600335b0cd8db2eb4577d3dbf6e76db |
| Additional stager 4 — shared toolset | 403b624e35777cbc07dbe66398b21bba70396a20b859c880732338ce1dd1f41f |
99f2eac2f00451a9a55521905add54205e336b9d |
| Additional stager 5 — shared toolset | 6f7090895c1c3dee30de6b3f098ca3a788dc198646e5293a8b1210430b0add97 |
04b64591837c5c2696c2a443b1bb3dab00a0f01 |
| Seventh YARA match — comparison pending | 28f622028e690c943f7fa9aca426c07cab52b5aaba757ef8a3328609c0b3bec3 |
6e5c658261f72fda92d475ac96f0213159af785d |
| Delivery shortcut 1 — infrastructure-linked | 5bc3c615da8dd7ef45e421d26a97644679ba0a0647b24efc96ebed8348f403d2 |
9c5c539138df6cfcd854c5516bb527520025928 |
| Delivery shortcut 2 — infrastructure-linked | 92cf0b883d220ba37f5ab378920fefdfdddc4fa76ee6c046696a7e5853a95c33 |
e82a7c86677c5752dceb6b48754698571fb0aa8 |
The source also provides the following MD5 and import-hash values. The import hash matches many unrelated clean and malicious Go files, so it is not a reliable standalone detection indicator.
| Hash type | Value | Associated file or limitation |
|---|---|---|
| MD5 | c6f4df18cb880500f3921a179c3a3766 |
ChocoShell |
| MD5 | fba867df17721879df9d8dcca68d6900 |
CornFlake |
| Import hash | 4e2bd2c481372f7ab13b83b63b424e97 |
CornFlake; common Go toolchain fingerprint |
IP Addresses, Domains and Email Addresses
| Type | Indicator | Reported role or context |
|---|---|---|
| IPv4 | 213[.]145[.]86[.]112 |
Stager hosting, beacon endpoint and ChocoShell C2 |
| IPv4 | 104[.]145[.]210[.]184 |
Embassy Kit device-code phishing server |
| IPv4 | 31[.]57[.]243[.]154 |
Phishing host associated with the Outlook lookalike |
| IPv4 | 104[.]194[.]151[.]133 |
Primary command-and-control server |
| IPv4 | 104[.]194[.]159[.]55 |
Server holding stolen browser-data archives |
| IPv4 | 38[.]146[.]28[.]75 |
Phishing-console notifier and Microsoft-listed AitM infrastructure |
| IPv4 | 107[.]189[.]26[.]194 |
Microsoft-listed second ChocoShell C2 and DNS resolver |
| IPv4 | 104[.]194[.]159[.]150 |
Microsoft-listed CaptiveCrunch AitM infrastructure |
| IPv4 | 38[.]146[.]28[.]132 |
CaptiveCrunch DNS resolver |
| IPv4 | 192[.]142[.]52[.]31 |
Moderate-confidence backdoor hunting lead; validate before blocking |
| IPv4 | 172[.]67[.]136[.]242 |
Cloudflare serving address observed for the Microsoft 365 lookalike |
| IPv4 | 188[.]114[.]97[.]3 |
Cloudflare serving address observed for the WhatsApp lure |
| IPv4 | 45[.]59[.]122[.]181 |
Serving address observed for the Ukrainian chamber lookalike |
| IPv4 | 107[.]189[.]24[.]79 |
Serving address observed for the Chatham House lookalike |
| Domain | ms365-live[.]com |
Microsoft 365 device-code phishing lookalike |
| Domain | owa-ms365[.]com |
Outlook Web Access lookalike |
| Domain | ms365-device[.]com |
Microsoft 365 lookalike |
| Domain | m365-owa[.]com |
Microsoft 365 lookalike |
| Domain | wa-meeting[.]com |
WhatsApp Web pairing-code phishing lure |
| Domain | chathamhouse[.]eu |
Chatham House lookalike; suspicious classification in the reported scan |
| Domain | chamber-ua[.]org |
Ukrainian chamber-of-commerce lookalike |
| Domain | cdncounter[.]net |
Reported actor infrastructure |
anna.manager[@]russianearabroad[.]net |
Phishing persona address | |
events[@]embassy-protocol[.]int |
Phishing persona address |
URLs and Endpoint Paths
| Base address | Exact path and query | Purpose |
|---|---|---|
hxxps://213[.]145[.]86[.]112 |
/t/pixel[.]gif?r=&m=stage2_entry8 |
Stage-two beacon |
hxxps://213[.]145[.]86[.]112 |
/t/pixel[.]gif?m=stage2_ctx_admin_la_true&r=r= |
Beacon carrying a context flag |
hxxps://213[.]145[.]86[.]112 |
/s |
Stager download |
hxxps://213[.]145[.]86[.]112 |
/s?r=0f511e19 |
Stager download with session token |
hxxps://213[.]145[.]86[.]112 |
/s?r=7ed4bb1d |
First shortcut’s destination |
hxxps://213[.]145[.]86[.]112 |
/cdn/chunks/vendor-9f3a1c[.]min[.]js?ref=0f511e19&stub=1 |
PowerShell stager disguised as JavaScript |
hxxps://213[.]145[.]86[.]112 |
/cdn/chunks/vendor-9f3a1c[.]min[.]js?ref=95766022&stub=1 |
Second shortcut’s destination |
hxxps://213[.]145[.]86[.]112 |
/cdn/chunks/polyfill-7e2b[.]min[.]js |
Library fetched by the stager; file classified as clean |
hxxps://213[.]145[.]86[.]112 |
/t/event |
Microsoft-reported data-upload endpoint; not directly observed by RL |
| Same staging server | /WZ |
Additional sandbox-referenced path; limited context |
Host and Behavioral Hunting Indicators
| Indicator | Context |
|---|---|
%LOCALAPPDATA%Microsoftsvchost32svchost32.exe |
RL-observed backdoor installation path |
svchost32.exe |
Backdoor filename; also appears in unrelated malware |
svchost32 |
Microsoft-reported Windows service name |
Cloud Sync Service |
Microsoft-reported service display name |
.svchost32mid and .svchost32ul |
Marker strings used in the source’s Go-backdoor YARA rule |
stage2_entry and stage2_ctx_ |
Operator-chosen beacon labels used to connect stagers |
collecting and key_abe_ |
Additional beacon labels seen in sandbox activity |
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.



No Comment! Be the first one.