P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

Threat Intel

An Akira affiliate rebooted a host into Safe Mode to blind EDR. Defender named the ransomware and could not remove it for 28 minutes

The antivirus was never evaded. It scanned, matched and identified Ransom:Win32/Akira.B!ibt exactly, then failed to act because real-time protection cannot run in Safe Mode. The attacker decided when it was allowed to work.

By Parminder Kumar Sharma · · 8 min read

A recessed circular power button ringed in crimson light on the dark brushed-metal front panel of a rack-mounted server, macro close-up, with a cyan edge light down the left side of the chassis.

Four hours and twenty-seven minutes, start to finish

Huntress published this incident on 12 August 2026, written up by James Northey with analysis from Dray Agha. The intrusion itself ran on 4 August, and the whole thing took less time than a working morning.

Huntress's six-stage timeline of the intrusion: a denied VPN spray at 03:45 UTC, an SSL VPN login without multi-factor authentication at 03:52, domain controller RDP and discovery from 05:43 to 06:24, collection and S3 exfiltration from 06:06 to 06:20, a Safe Mode boot with the agent and real-time protection offline from 06:29 to 06:31, and attempted ransomware deployment from 06:34 to 08:14.
Huntress's own timeline, reproduced under fair dealing for criticism and review. Read the last two stages together and the finding is already visible: the blind window opens at 06:29, and the impact stage runs on until 08:14.

What makes it worth a briefing is not the speed, which is ordinary for Akira now. It is the twenty-nine minutes in the middle where the security stack knew exactly what it was looking at and could not do anything about it.

The Safe Mode play

At 06:29:21 UTC the operator ran msconfig.exe and forced a reboot. The host came back up in Safe Mode with Networking, which the Windows logs record plainly:

Kernel-Boot     EID 27:  LoadOptions = NOEXECUTE=OPTOUT SAFEBOOT:NETWORK
Kernel-General  EID 12:  BootMode = 2

Safe Mode loads core Windows drivers and services and nothing else. Third-party security products are excluded from that minimal set by design, so the Huntress agent did not start. Windows Defender logged its own failure seconds into the boot:

Windows Defender  EID 3002
Error Code: 0x8007043c
"This service cannot be started in Safe Mode"

One reboot, and both the EDR agent and real-time protection were gone, with network connectivity intact. This is T1688, Impair Defences: Safe Mode Boot. Snatch and AvosLocker have used it for years. Huntress reports this as the first time they have observed Akira doing it.

The detail worth pausing on is what the operator did before rebooting. Safe Mode would have killed their own remote access tool too, so they added it to the list of services allowed to start:

Allow-listing your own C2 into Safe Mode

reg.exe add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\AnyDesk /ve /d Service
  1. 01SafeBoot\Network: The minimal-service list for Safe Mode with Networking. Anything with a key here starts when almost nothing else does.
  2. 02AnyDesk: Their remote access tool, kept alive across the reboot while the defender’s agent was not.
  3. 03Service: Registers it as a service rather than a driver, which is all Safe Mode needs to start it.
Run before the reboot. The operator understood exactly which registry key decides what survives Safe Mode, which is the same key a defender can watch.

They kept their tooling and dropped yours. That asymmetry is the technique, and it is entirely a matter of which registry keys exist before the reboot.

Detection without remediation

This is the part that should change something in your estate.

The twenty-nine minutes that matter

  1. 06:29:21

    msconfig and reboot

    Kernel-Boot EID 27 records SAFEBOOT:NETWORK. The Huntress agent does not start and Defender logs 0x8007043c, cannot start in Safe Mode.

  2. 06:34:29

    akira.exe executes

    Roughly 27 seconds after an inbound AnyDesk file transfer completes.

  3. 06:36:33

    Out of virtual memory

    System EID 26. The process tree starves in Safe Mode’s constrained memory environment and the encryption never runs.

  4. 07:43:50

    Defender identifies it correctly

    A scheduled scan flags Ransom:Win32/Akira.B!ibt. Cleanup fails repeatedly with RoutineClean 0x80004005, because real-time protection is not running.

  5. 08:10:38

    The attacker reboots to normal mode

    Real-time protection is restored, by the attacker rather than by anyone defending the host.

  6. 08:12:28

    Quarantine finally succeeds

    Twenty-eight minutes and thirty-eight seconds after the malware was correctly named.

All times UTC on 4 August 2026, from the Huntress write-up. Note who ends the blind window. It is not the defender.

Huntress put it in one sentence, and it is the sentence to take to a board: "we had detection without the ability to remediate."

The antivirus was not evaded. It scanned the file, matched it, and named the family and variant precisely. Every part of the detection worked. What did not work was the part nobody buys separately, which is the ability to act on a detection, and that was gone because the host was in a boot mode where the acting component is not permitted to run.

So the payload was removed only after the attacker undid their own trick. For that whole window, the attacker decided when the antivirus was allowed to do its job.

The self-own, and why it is not a defence

The ransomware did not encrypt anything. Safe Mode boots with a stripped-down environment and constrained virtual memory, and the Akira process tree starved in it. Thirteen seconds after the child-process burst, the host began throwing System EID 26, first Virtual Memory Minimum Too Low and then Out of Virtual Memory, followed by PowerShell hard errors about a stack guard page that could not be created.

It is tempting to file that as a win. Huntress does not, and neither should anyone else. Their own caveat is precise: a host with more physical memory or a larger page file might give the encryptor enough room, and the developers can retool it to demand less. The failure was a property of that host on that morning, not of the technique.

A control you did not configure, cannot observe and cannot repeat is not a control. It is a coincidence that happened to break the right way.

The full technique list

What the operator actually did, mapped

TacticTechniqueHow it appeared
Initial AccessT1133 External Remote ServicesA SonicWall SSL VPN reachable from the internet with no multi-factor authentication in front of it
Credential AccessT1110.003 Password SprayingA burst of failed logins against multiple usernames from several external addresses, from 03:45 UTC
Initial AccessT1078 Valid AccountsA successful VPN login at 03:52:42 UTC from 72.23.77.35, seven minutes after the spray began
Lateral MovementT1021.001 Remote Desktop ProtocolRDP to the domain controller from an attacker-controlled workgroup host, WIN-DNCVG09TAT8
DiscoveryT1087.002 Account Discovery, Domain AccountGet-ADUser -Filter * -Properties * written to C:\ProgramData\AdUsers.txt
DiscoveryT1018 Remote System DiscoveryGet-ADComputer -Filter * -Property * written to C:\ProgramData\AdComp.txt
CollectionT1560.001 Archive via UtilityWinRAR downloaded and installed mid-intrusion, then a -ep1 -scul -r0 -iext -imon1 across the mapped shares
ExfiltrationT1567.002 Exfiltration to Cloud Storages5cmd cp --sp to an attacker-controlled S3 bucket
Command and ControlT1219 Remote Access SoftwareAnyDesk installed as a service, peer client ID 1778787240, used for both hands-on control and payload delivery
Defence EvasionT1688 Impair Defences, Safe Mode Bootmsconfig.exe at 06:29:21 UTC and a forced reboot into SAFEBOOT:NETWORK
Defence EvasionT1688, registry variantAnyDesk added under Control\SafeBoot\Network so the attacker’s own service survived the reboot
ImpactT1486 Data Encrypted for Impactakira.exe at 06:34:29 UTC, which failed out of virtual memory before encrypting
Compiled from the Huntress write-up of 12 August 2026. Every row has an artefact behind it in their telemetry rather than an inference.

Two things stand out reading it as a list rather than a story. There is no exploit anywhere in it. Every step is a legitimate feature used as intended: a VPN login, RDP, two PowerShell cmdlets shipped with Windows, WinRAR, a boot mode Microsoft provides for troubleshooting, and a commercial remote support tool. The only unsigned, obviously malicious artefact in the whole chain is akira.exe, and that is the one thing that failed.

The second is the enumeration. $formatenumerationlimit = -1 removes PowerShell's four-item truncation on multi-valued attributes, so MemberOf comes back complete. That is not a copy-paste artefact. Somebody wanted every group membership of every user, and knew the default would have hidden most of them.

Nothing was encrypted and the victim is still being extorted

The credentials and the file shares left before the encryptor ever ran. Collection and exfiltration finished around 06:20 UTC; the ransomware attempt started at 06:34.

So the outcome here is a victim who did not lose availability and lost everything else. Double extortion means the leak threat stands on its own, and a full Get-ADUser dump with PasswordLastSet, LastLogonDate, email addresses, phone numbers and mailbox locations for every account in the domain is exactly the sort of thing that makes a leak site posting effective.

"We stopped the ransomware" and "we stopped the incident" are different sentences, and only one of them is true here.

What to check this week

Take this with you

Six things, and the first two would have ended this intrusion at 03:52

  • Require multi-factor authentication on every VPN account without exception. This intrusion began with a credential spray against an SSL VPN that had none, and it succeeded seven minutes after it started.
  • Alert on a burst of failed VPN logins across multiple usernames from one source, then correlate with a successful login from the same address or network within a short window. Both halves were in the SonicWall log hours before anything was encrypted.
  • Alert on Safe Mode boots as a security event, not an IT event. Kernel-Boot EID 27 carrying a SAFEBOOT load option, Kernel-General EID 12 with BootMode=2, and msconfig.exe or bcdedit.exe changing boot configuration on a server are all cheap to detect and have no legitimate explanation on a domain controller at half past six in the morning.
  • Watch HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot for additions. The attacker had to write there to keep their own tooling alive, so the same key that enables the technique also exposes it.
  • Alert on your own security services stopping, System EID 7036. An agent going quiet is an event; on this site’s reading it is the most under-monitored event in most estates, because absence does not generate an alert by itself.
  • Check what fraction of your hosts actually run the agent. Huntress note that in this environment it was installed on a fraction of the machines the attacker had enumerated, and unmonitored hosts are where the preparation happens.

The fourth item is the one nobody has. Boot configuration changes are treated as desktop support noise almost everywhere, which is precisely why they are worth an alert on a server.

The position

This is the fifth story in a week with the same shape, and by now the shape is the point.

The Patch Tuesday zero-day was rated Important. Grok Bot's review step exists and is optional. The Lazarus exploit was patched while the recruiter approach that delivered it was not. Passkeys stop phishing and were heard to stop theft. And here, an antivirus detected ransomware by name and could not remove it, because detection and response are two products sold as one word.

Every one of those controls did exactly what its specification says. The gap is between the specification and what people believe they bought, and no patch closes that.

The practical version for this incident is short. Ask your provider what happens to their agent when a host boots into Safe Mode. Not whether they detect Safe Mode boots, which many do. Whether the agent runs. If the answer is no, then a single msconfig.exe and a reboot is a supported, documented Windows feature that turns your endpoint protection off, and your entire response to that is whatever your logging notices in the gap.

Sources

  1. PrimaryAkira Hits Safe Mode: Ransomware Rebooting Around EDRHuntressaccessed 2026-08-14
  2. PrimaryImpair Defenses: Safe Mode Boot, T1688MITRE ATT&CKaccessed 2026-08-14

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

One email per briefing. Unsubscribe any time.