SOPHOS Stranglehold

Iftikhar Khan · October 2026 · incident forensics

A half-removed endpoint agent put my machine into network containment, and the first repair made it refuse to boot. This is the mechanism, the evidence, and what I couldn't prove.

The Sophos stranglehold, illustrated

ed. A note on scope. STOP - If your laptop is managed by an employer, don't repeat what I did: partial removal is exactly what created this failure, and the right fix is a conversation with your admin. Every repair below was done offline from a Linux live USB. Names, addresses and host identifiers are redacted.

Every browser on a Windows endpoint was dead. Not slow, not rate-limited: dead, in the ERR_TIMED_OUT then ERR_CONNECTION_RESET way that makes you accuse the router, the DNS server, and briefly the neighbour's microwave.

WSL was fine. curl was fine. ping was fine. SMTP was fine. 914 of 916 probes passed, and the browsers still would not load a page.

It was Sophos. A containment feature, doing what it was built to do, on a machine where I had removed part of the agent. It decided the endpoint was unsafe and put it in a stranglehold, then locked me out, because the component that could have released the grip was the component I had removed.

That is the short version. The long one is worth reading because one incident produced two independent paradoxes, one portable finding about how Windows classifies traffic, and a fix that came down to which files were present.

The stranglehold in one picture: the wall, the raised drawbridge, the owner outside, and the WSL tunnel nobody guarded.
The stranglehold in one picture: the wall, the raised drawbridge, the owner outside, and the WSL tunnel nobody guarded.

Symptoms: the machine that failed only the test you cared about

The symptom list read like a riddle, so the first job was to make it less contradictory.

ObservationEvidence
Browsers failERR_TIMED_OUT, then ERR_CONNECTION_RESET
Not the profile, cache, extensions or proxyincognito fails identically
Not the networkcurl to an internal host returns 200 OK, byte-identical to the WSL response
Not TCP itselftelnet to the same host returns HTTP/1.1 400 Bad Request (TCP and http.sys respond)
ICMP fineping succeeds to four hosts on three networks
Connect probes fine200 × 2 TCP connects to two public hosts, 0 failures
Two real dropsabout 0.2% of 916 requests, both silent, 0 bytes

The last three rows rule out the two hypotheses everyone reaches for first. It wasn't DNS-only: failures occurred on IP-literal and cached-IP paths. It wasn't a per-destination filter: the failures hit unrelated destinations, and each was a silent timeout with zero bytes.

One caveat I owe you now rather than later. This table mixes things that worked (curl, telnet, connect probes) with things that failed (browsers). The WFP capture below shows broad termination, not total termination, and I treat that difference seriously in the evidence section.

So something was selectively terminating connections. The interesting question was who. The second most interesting was why the same machine behaved differently inside WSL.

The premise "there is no Sophos on this machine" turned out to be false. Five services, one kernel driver, one process tree. Every investigation has one premise it has to throw away, and this was mine.

The tell: a handshake that never finished

A 12-minute live socket monitor caught it. SophosNtpService.exe held a TCP connection attempt to the vendor's Azure-hosted management endpoint on port 8347, in SynSent, for the entire window. It never became ESTABLISHED.

A SYN that never becomes an ACK is a socket shouting into an empty room, and this one was the agent's own management channel, the path to Sophos Central. The endpoint could not fetch policy, and it could not be released.

The stranglehold: one switch, one process, one driver

LayerComponentValue
The switchregistry DWORDHKLM\SOFTWARE\Sophos\Sophos Network Threat Protection\Application → Isolated = 1
The decision makeruser modeSophosNetFilter.exe, child of SophosNtpService.exe (service SntpService)
The enforcementkernel driverC:\Windows\System32\drivers\sntp.sys (Start=1, SYSTEM_START, WHQL-signed)
The mechanismWFP filtersids 77270–77283, provider {5680ca01-…}

There is no per-filter registry key. The filters are created dynamically and carry at most FWPM_FILTER_FLAG_INDEXED, never FWPM_FILTER_FLAG_PERSISTENT, so they are never serialised into the Base Filtering Engine's persistent store. The entire state of "this endpoint is in containment" lives in one REG_DWORD named Isolated, read by one driver, at one moment, by a process nobody has heard of.

The guest list

Fourteen filters: ten permits and four terminators. The permits describe what containment is supposed to be.

Permitted (the entire allow-list):

Terminated: everything else, TCP and UDP, at ALE_AUTH_CONNECT_V4/V6 and ALE_AUTH_RECV_ACCEPT_V4/V6. That is four FWP_ACTION_CALLOUT_TERMINATING filters, ids 77280–77283.

The design intent falls out of the list. The isolated machine keeps DHCP so it can hold an address, one DNS path so it can resolve the management domain, and one whitelisted host so it can reach its policy server. It loses everything else. That is a correct design, and it is why the failure is so total: a wall with five holes is still a wall, and I wasn't on the list.

The allow-list: DHCP, one DNS identity, loopback and one management mask, with everything else TCP and UDP terminated.
The allow-list: DHCP, one DNS identity, loopback and one management mask, with everything else TCP and UDP terminated.

953 connections, thirty seconds

A WFP event export contains 953 PUBLIC_CLASSIFY_DROP records spanning 29.6 seconds.

FilterDrops
77280 (outbound TCP & UDP, v4)796
77282 (inbound TCP & UDP, v4)60
77283 (inbound TCP & UDP, v6)55
77281 (outbound TCP & UDP, v6)42
ProcessDrops
svchost.exe333
opera.exe182
dashost.exe129
onedrive.exe104
msedgewebview2.exe68
vivaldi.exe58

By remote port: 443 × 655, 3702 × 84 (WS-Discovery), 53 × 76 (DNS), 5353 × 56 (mDNS), 80 × 14, 1900 × 9 (SSDP).

Where the 953 drops landed: filter 77280 took 796, svchost.exe the largest single process at 333.
Where the 953 drops landed: filter 77280 took 796, svchost.exe the largest single process at 333.

Two conclusions follow, and the first needs care.

  1. The static filters are not browser-targeted, but the outcome was not uniform either. No filter condition names any browser, curl, powershell or cmd.exe, so any selectivity had to happen at runtime inside the callout. And there was selectivity: curl, telnet and 400 connect probes got through, while a browser held Established sockets to the same internal host for 90+ seconds and still failed. "Broad" is the honest word, not "blanket." Browsers were simply the most visible casualty, because they fail loudly while svchost.exe quietly gives up. Windows Update, OneDrive sync, device discovery and DNS resolution were all being black-holed.
  2. DNS itself was being dropped: 76 drops on port 53. That independently explains why public resolvers timed out from Windows but worked from WSL.

Why the drawbridge stayed up

This is my reconstruction, inferred from local evidence. I could not reach Sophos's documentation (every search returned HTTP 403), so treat the chain as a hypothesis that fits all the facts I have, not as vendor-confirmed behaviour.

I removed the agent's update-and-management component, and three of its
driver images were renamed during the removal
  -> the agent cannot reach its cloud console
  -> endpoint health turns RED
  -> health RED, and no management plane to consult
  -> the still-intact containment half concludes the endpoint is unprotected
  -> latches  Isolated = 1
  -> installs filters 77280-77283
  -> all TCP+UDP terminated except the allow-list
  -> and there is no management channel left to receive a release command

The headline insight, in whiteboard form:

A security product's sensors and its actuator fail in opposite directions.

Removing the sensors (health, defence, management) left the actuator (containment) powered, and it correctly concluded the endpoint was unprotected and locked it down. What made it unrecoverable is that the removal also deleted the only channel that could have told it to stop.

This is a fail-closed design working as intended, and the property isn't Sophos-specific. It appears in any system where "decide to contain" and "decide to release" live on different components. Break the decision-maker's input and you get a conservative answer. Break the output channel too, and the conservative answer is permanent.

The moat nobody was watching

Why was WSL completely fine while Windows was dead? The answer is architectural and has nothing to do with Sophos's intent.

Windows Filtering Platform evaluates at layers, and all fourteen filters sit at the ALE layers, ALE_AUTH_CONNECT and ALE_AUTH_RECV_ACCEPT. Those layers see locally originated and locally terminated connections only: a connection attributed to a local process and a local endpoint.

WSL2, in the default NAT mode I tested, is a Hyper-V virtual machine with its own kernel. Its packets cross vEthernet (WSL) and are NAT'd by the host. From the host's point of view they are forwarded, not originated, so they are evaluated at FWPM_LAYER_IPFORWARD_*. Sophos installed no IPFORWARD filters.

Windows processes cross ALE and are classified, while WSL2 NAT'd packets cross IPFORWARD, where no Sophos filter exists.
Windows processes cross ALE and are classified, while WSL2 NAT'd packets cross IPFORWARD, where no Sophos filter exists.
PathWFP layer it crossesFilter there?Result
Windows app (browser, curl, telnet)ALE_AUTH_CONNECT_V4/V6yesclassified; outcome decided by the callout at runtime (some terminated, some permitted)
WSL2 VM (Firefox, curl, apt)IPFORWARD_V4/V6 (NAT)nonever classified, passes
Loopback (WSL ↔ Windows)loopbackpermittedpasses

The DNS split comes out the same way. dig -x 8.8.8.8 over UDP from Windows is a locally originated UDP/53 that doesn't match the one permitted application identity, so it is dropped. The identical query from WSL is forwarded and passes. Over TCP from Windows it also succeeded, which, like the curl results, fits runtime selectivity rather than a blanket rule.

The same reverse-DNS query: UDP from Windows times out, TCP from Windows succeeds, and UDP from WSL succeeds.
The same reverse-DNS query: UDP from Windows times out, TCP from Windows succeeds, and UDP from WSL succeeds.

A containment filter implemented only at the ALE layers cannot see Hyper-V/WSL2 NAT'd flows. Isolation that blocks the browser but not the shell in the VM beside it is not a misconfiguration. It is a gap in where the filters were placed, and the VM becomes a network path the product never sees.

That generalises past this incident and this product. If your containment assumes "the machine is talking, therefore a local process is talking," a NAT'd VM falsifies the assumption without appearing in your filter table. WSL's mirrored networking mode and Hyper-V firewall rules change the picture, so check which mode you run before drawing conclusions.

The remedy, and the second wall

From the live USB I removed the enforcement driver and rebooted, and the block was gone. With no driver there are no callouts, and with no callouts nothing can install those filters. Browsing worked.

Then every normal boot landed on the recovery screen.

Not a crash, not a bugcheck: a deliberate refusal to start, escapable only through Startup Settings → Disable early-launch anti-malware protection. That is a per-boot flag that never persists, so it had to be re-selected every time. Worse, it skips the early-launch phase for every ELAM driver, including the operating system's own. You trade one vendor's protection for a system-wide weakening of early driver verification, on every boot, to get into your own machine.

The WinRE Startup Settings menu: disabling early-launch anti-malware protection is a per-boot, system-wide workaround, not a fix.
The WinRE Startup Settings menu: disabling early-launch anti-malware protection is a per-boot, system-wide workaround, not a fix.

The cause was one service registration, HKLM\SYSTEM\CurrentControlSet\Services\Sophos ELAM:

ValueData
GroupEarly-Launch
Start0 (SERVICE_BOOT_START)
ErrorControl3 (SERVICE_ERROR_CRITICAL)
ImagePathsystem32\DRIVERS\SophosEL.sys ← the file that had been renamed

ErrorControl = 3 on a boot-start driver in the Early-Launch group is a hard coupling: if that driver does not load, the boot fails. Windows treats it as a system-startup failure, not a recoverable service failure.

So the first fix had built a second wall. The first wall kept the network out. The second kept me out of the machine.

Missing and invalid are the same failure

This took longest to accept, and it is the most portable idea here. I wanted to drop a placeholder file at ImagePath and move on. It would not have worked, because the requirement is not "a file exists." It is "this registered early-launch driver initialises."

File at ImagePathLoader outcomeResult
absentno image to mapload failure → recovery screen
dummy / zero-byte / textnot a valid PEload failure → recovery screen
unsigned kernel imagesignature check failsload failure → recovery screen
signed image whose DriverEntry failsinitialisation failsload failure → recovery screen
the real, signed driverloadsboot proceeds

Every row but the last ends in the same place. An ELAM driver must carry a Microsoft-trusted Early Launch Anti-Malware certificate (EKU OID 1.3.6.1.4.1.311.61.4.1), and that check is the point of the component, so it cannot be stubbed. The signature requirement isn't incidental to the security model; it is the security model.

Five candidates at ImagePath: four land in the recovery screen, and only the real signed driver boots.
Five candidates at ImagePath: four land in the recovery screen, and only the real signed driver boots.

To a loader, "missing" and "invalid" are indistinguishable. They differ only in your head, because you know which one you meant, and the boot path is the only audience that mattered.

The ladder I never walked

sc is only a front-end for the registry: sc config and sc delete are writes to HKLM\SYSTEM\CurrentControlSet\Services\*. Four values decide whether a missing image is fatal, which gives a clean ladder:

RungChangeEffect
1Start = 4disabled, so no load attempt at all
2delete Groupit stops being an ELAM driver, and winload no longer requires it
3ErrorControl = 0a failed load is ignored and boot continues
4delete the keynothing left to require, which is what a real uninstall leaves

The order is deliberate: only rung 2 changes what class of driver this is, and the rest change what happens when it fails. One change, one reboot, stop at the first normal boot.

I never needed a single rung. A pristine copy of the real driver was sitting untouched in C:\Windows\ELAMBKUP\, a backup directory the OS maintains, holding an identical 29,632-byte copy of SophosEL.sys (MD5 173371d51e54c0569836aca1cd45c4ff, byte-for-byte the same as the .BAK). It needed no network, no vendor, and no cache that had already been deleted. Restoring that file satisfied the requirement directly, and the machine booted normally on the next attempt.

That also made moot a question I had expected to cost a reboot: whether the loader keys on Start or on Group. Supplying a valid image satisfies it either way. The experiment stays on the list for a machine whose ELAM image is genuinely unrecoverable.

What I did not close

The difference between a diagnosis and a guess is what you are willing to leave unproven.

Takeaways

  1. To a loader, "missing" and "invalid" are the same failure. A registered driver must initialise, and presence is not the test. Where the component is signature-enforced (ELAM, boot-start AV, WDAC), no unsigned placeholder can satisfy it.
  2. Fail-closed containment needs a release path that doesn't depend on what you removed. Removing the sensors made the actuator latch. Removing the actuator's file made the boot loader refuse to start. Same deletion, two mechanisms, because two parts of the OS read the same registry entry.
  3. An ALE-only firewall cannot see NAT'd VM traffic. If containment is implemented at the layers that see locally originated connections, a Hyper-V guest's forwarded traffic is invisible to it by construction.
  4. The decisive attributes were data, not code. Isolated = 1 latched the lockdown, and ErrorControl = 3 made a missing file fatal to boot. Repairing the machine took an offline registry-and-file edit and a backup directory Windows maintains for you.
  5. Don't half-remove a security agent. Partial removal is how a protective feature becomes a hostile one. If you manage the endpoint, uninstall through the vendor's own tooling or console, and if it's someone else's, ask them.

The whole arc was three renamed driver images, a latched containment flag, 953 drops in thirty seconds, a removed enforcement driver, a refused boot, and a restored file. No admin console was involved, and the grip was released by putting one file back where it belonged.

Disclosure

I have not reported the self-latching isolation and the missing IPFORWARD coverage to Sophos. If unpatched to date, the above write-up holds and remains effective against this containment stranglehold.


Incident record, 2026-10-14 → 10-15. The mechanism, filter identifiers, registry paths and hashes are the product's own and are left intact.

Need to recover a device you own or are authorised to administer? I can provide a purpose-built recovery tool: a read-only diagnostic first, UAC-consented, logged, with rollback. Reach out via the contact page.

← All posts Discuss on LinkedIn →