The Windows Bug That Turned a Fake Job Offer Into Full System Control
A use-after-free race condition in the Windows AFD.sys kernel driver allowed an attacker with a low-privilege foothold to corrupt kernel memory and escalate to SYSTEM. The Lazarus Group exploited it in the wild after a phishing lure to gain full control of targeted machines.
mohamamd sadegh sharifi Follow
Published on medium.com
Cybersecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This is a write-up of CVE-2026-68820, a Windows kernel vulnerability that was exploited in the wild before Microsoft shipped a fix. The author came across it while working on the final project for Harvard's CS50 Introduction to Cybersecurity, looking for a recent, real-world vulnerability with an actual attack behind it rather than a theoretical bug in a changelog. Microsoft's August 2026 Patch Tuesday fixed 421 vulnerabilities, and this one stood out because attackers were already using it before Microsoft knew it existed.
The vulnerable component is AFD.sys, the Ancillary Function Driver for WinSock. It is not an application or a configurable service: it is a kernel-mode driver that runs at the most trusted layer of Windows and underpins the Windows Sockets API, the plumbing that networked applications rely on to open a connection, send data or manage a socket. A flaw here is not a flaw in one app but in the foundation many apps stand on.

Setup
The report describes no lab setup, accounts, tools or versions. The exploitation it discusses happened in the wild, and the only precondition it names is the one that shapes the whole case: the attacker must already be running code on the machine with low privileges. This is a privilege escalation bug, not a remote entry point.
Finding it
The author's starting point was the Patch Tuesday list, where the entry stood out because it was already being exploited. Technically, CVE-2026-68820 is a use-after-free, classified as CWE-416. A piece of memory is freed while something in the driver still holds a reference to it and tries to use it anyway. Because that memory can be reallocated for something else in the meantime, an attacker who controls the timing can get their own data planted in a location the driver still trusts.
The specific trigger is a race condition: improper synchronisation when multiple threads interact with socket-related state at the same time. A low-privilege attacker runs a specially crafted application designed to win that race deliberately. Winning it allows kernel memory corruption, and successful exploitation escalates the attacker's access to SYSTEM, the highest privilege level in Windows, above a local administrator.
The CVSS score is 7.0, lower than the 9-point-something one might expect. The score reflects the requirement that the attacker already be running code on the machine. The bug turns "I'm in, barely" into "I own this machine".
Exploitation
Check Point Research attributed active exploitation to the Lazarus Group, a threat actor linked to North Korea, as part of a long-running campaign called Operation Dream Job. The campaign impersonates recruiters, often mimicking real, recognisable companies, and approaches employees, frequently at defence-sector organisations, with fake job opportunities. The goal is social engineering: get someone to open a file they should not.
Step 1: The phishing lure
Attackers posing as recruiters send a fake job offer to a target employee. The report does not describe the file, the delivery mechanism or the payload. The objective is to get the victim to open a file, which gives the attacker a low-privilege foothold on the machine.
Step 2: Escalation through CVE-2026-68820
From that limited foothold, Lazarus used the AFD.sys flaw to jump straight to SYSTEM. The report does not include the exploit code or the race-winning technique; it describes a specially crafted application designed to win the race deliberately.
Step 3: Hiding and persistence
With SYSTEM access, the attackers deployed two known tools:
- The FudModule rootkit, built to hide an attacker's presence at the kernel level so security software has a much harder time spotting it.
- A backdoor called ForestTiger, which maintains persistent access for whenever the attackers want back in.
The chain, as the author lays it out:
Phishing lure → foothold on the machine → CVE-2026-68820 escalates to SYSTEM → rootkit hides the intrusion → backdoor keeps the door open.
Each link depends on the one before it. The CVE is the hinge in the middle, where "we got someone to click a link" becomes "we control this machine completely".
Root cause
The defect is a use-after-free in AFD.sys, reached through improper synchronisation when multiple threads interact with socket-related state concurrently. The driver frees memory while still holding a reference to it, and the race lets an attacker arrange for controlled data to occupy that memory before the stale reference is used. The result is kernel memory corruption that the attacker can steer into privilege escalation to SYSTEM.
Existing defences did not stop it for a structural reason: the trust model of the whole operating system assumes the kernel is trustworthy. Once an attacker holds SYSTEM, many security controls running in user space, including antivirus, application permissions and some EDR protections, can potentially be blinded or disabled outright. The report does not detail which specific controls were bypassed in this campaign.
Impact
An attacker with a low-privilege foothold on a Windows machine can escalate to SYSTEM, the highest privilege level, above a local administrator. In this campaign the foothold came from a fake job offer aimed at employees, frequently in the defence sector, and the escalation was followed by the FudModule rootkit and the ForestTiger backdoor, giving the attackers hidden, persistent control of the machine.
The targeting of defence-sector employees with a tool of this sophistication points to intelligence gathering rather than opportunistic cybercrime, which changes how seriously an organisation should weigh its exposure.
Timeline and the patching gap
Lazarus was already exploiting the flaw in the wild by early July 2026. Check Point discovered it and reported it responsibly to Microsoft's Security Response Center on 28 July. Microsoft confirmed the issue three days later, assigned the CVE identifier on 5 August, and shipped the fix on 11 August as part of that month's Patch Tuesday. The same day, CISA added it to its Known Exploited Vulnerabilities catalogue, confirming it was not theoretical.
That gives roughly five to six weeks between the earliest known exploitation and the first available patch, counting only from when Check Point caught it. Nobody knows how long Lazarus had been using it before that. For those five or six weeks, keeping systems patched was not an option that existed yet.
Fix
Microsoft shipped the fix on 11 August 2026 as part of that month's Patch Tuesday. The author's broader point is that patching is necessary but not sufficient: for over a month, installing the update was not an available defence, so organisations that treated patch management as their entire security strategy were exposed with nothing to do but everything else, namely EDR, least privilege, application allow-listing and training people to be suspicious of unsolicited job offers.
Variants to test
These are directions suggested by the structure of this case rather than anything the report tested.
- Other kernel drivers reachable from low-privilege code. Look for drivers that free state still referenced by another thread, particularly where socket or handle state is shared. A positive result is a crafted low-privilege program that reliably corrupts kernel memory and reaches SYSTEM.
- Race conditions in socket state handling. Stress concurrent operations on the same socket or handle from multiple threads and watch for stale references. A positive result is a crash or memory corruption that disappears when the operations are serialised.
- User-space controls after SYSTEM. On a test machine, check which antivirus, application permission and EDR functions can be blinded or disabled once SYSTEM is held. A positive result is a control that stops reporting or enforcing after escalation.
- Rootkit and backdoor detection. Test whether kernel-level hiding by a tool like FudModule is caught by the EDR in place, and whether a backdoor such as ForestTiger survives reboots and cleanup. A positive result is either artefact going undetected.
- The human link. Run simulated recruiter approaches against employees and measure who opens the attachment. A positive result is any successful open, which is the first link in the chain and the cheapest one to break.
What happened, in plain words
In August 2026, Microsoft released its monthly batch of security fixes. That monthly release is called Patch Tuesday: on one day each month, Microsoft publishes updates that close security holes in Windows and its other software. That month the batch fixed 421 vulnerabilities. A vulnerability is a mistake in software that someone can abuse to make the software do something it was not meant to do.
One of those 421 stood out. Attackers were already using it before Microsoft knew it existed. That situation has a name: a zero-day, meaning attackers were exploiting it before Microsoft knew about it. The vulnerability is tracked as CVE-2026-68820. A CVE is a public catalogue number given to a security flaw so that everyone, everywhere, can refer to the same bug by the same name. Think of it like a case number at a police station: it does not tell you what happened, it just lets people talk about the same case.
The author found this case while doing the final project for Harvard's CS50 Introduction to Cybersecurity course, looking for a recent, real vulnerability that had an actual attack behind it rather than a theoretical bug sitting in a changelog. A changelog is the list of changes a software maker publishes with each release.
The most important lesson in the whole story is this: a single flaw rarely causes damage on its own. It is the chain of steps around it that does the damage. This article walks through that chain, one link at a time, in the same order as the original analysis.

The image above is the header of the original article, showing its title, the author's name and the reading time.
The component nobody thinks about
The bug lives in a file called AFD.sys. The letters stand for Ancillary Function Driver for WinSock. If you have never heard of it, that is rather the point: it is not an app you open from the Start menu, and it is not a service you configure in settings.
It is a kernel-mode driver. To understand that, you need two ideas.
- The kernel is the core of the operating system. It is the part that talks directly to the hardware, decides which program gets to use the processor, and enforces who is allowed to do what. Everything else in Windows sits on top of it.
- A driver is a small piece of software that lets the kernel talk to a specific piece of hardware or provide a specific low-level service.
So a kernel-mode driver runs at the deepest, most trusted layer of Windows. It is the backbone of the Windows Sockets API. An API (Application Programming Interface) is a fixed set of instructions one piece of software uses to ask another piece of software to do something, like a menu of services at a counter. The Windows Sockets API is the menu that basically every networked application on a Windows machine uses to open a connection, send data, or manage a socket. A socket is the software equivalent of a phone line: one end of a conversation between your computer and another computer.
That is what makes a bug here different from a bug in, say, a browser extension. A flaw in a browser extension is a flaw in one add-on. A flaw in AFD.sys is a flaw in the foundation that a huge number of apps are quietly standing on. If the floor of a building is cracked, it does not matter which flat you live in.
What actually went wrong
Technically, CVE-2026-68820 is a use-after-free vulnerability. The formal classification is CWE-416. CWE is a catalogue of weakness types, the way a library catalogue groups books by subject; CWE-416 is the shelf labelled use-after-free.
A use-after-free is easiest to picture with an everyday comparison. Imagine a hotel. A guest checks out, so the room is freed and can be given to someone else. But the reception desk still has the old guest's key on its board and still believes that guest is in that room. If a new guest is checked into the same room, the desk may hand the old guest's mail, or the old guest's instructions, to whoever is now inside. The memory in a computer works the same way: a piece of memory gets freed, but something in the driver still holds a reference to it and tries to use it anyway. Because that memory can be reallocated for something else in the meantime, an attacker who can control the timing can get their own data planted in a spot the driver still trusts.
The specific trigger here is a race condition. A race condition is what happens when two or more parts of a program act at the same time and the result depends on who gets there first, like two people reaching for the same door handle. In this case the problem is improper synchronisation when multiple threads interact with socket-related state at the same time. A thread is one sequence of instructions running inside a program; a program can have several running at once. Synchronisation is the set of rules that keeps those threads from stepping on each other. Here those rules were missing or wrong.
An attacker with a low-privilege foothold can run a specially crafted application designed to win that race deliberately. Low privilege means the attacker is only a normal user on the machine, not an administrator. A foothold means they already have some small way in. If they win the race, they get the ability to corrupt kernel memory, and successful exploitation escalates their access straight to SYSTEM. SYSTEM is the highest privilege level Windows has, above a local administrator. If a normal user is a guest in the building, SYSTEM is the building manager with keys to every room.
Interestingly, the CVSS score for this one is only 7.0, not the 9-point-something you would expect for something this serious. CVSS is a standard scoring system for the severity of a vulnerability, roughly from 0 to 10. The score is lower because it reflects a precondition: the attacker needs to already be running code on the machine. This is not a bug that lets someone break in from the internet with zero access. It is a privilege escalation bug. It turns "I'm in, barely" into "I own this machine".
That distinction is exactly why it mattered so much in practice. A lock on the front door is useless if the burglar is already in the hallway.
From a fake recruiter email to a rootkit
Check Point Research attributed active exploitation of this vulnerability to the Lazarus Group. Attribution means pointing at who did it, based on evidence. Lazarus is a threat actor linked to North Korea. A threat actor is the security industry's neutral word for an individual or group carrying out attacks. The campaign is called Operation Dream Job. A campaign is a sustained series of attacks run towards a goal, rather than a one-off.
If you are unfamiliar with it, the campaign is exactly what it sounds like: attackers impersonate recruiters, often mimicking real, recognisable companies, and reach out to employees, frequently at defence-sector organisations, with fake job opportunities. The goal is simple social engineering. Social engineering is the practice of manipulating a person rather than a computer: you trick someone into doing something they would not do if they knew the truth. Here the aim is to get someone to open a file they should not.
Once a victim does, the attacker has their low-privilege foothold. That is where CVE-2026-68820 comes in. Lazarus used the flaw to jump from that limited access straight to SYSTEM. From there, they deployed two known tools:
- The FudModule rootkit. A rootkit is software built to hide an attacker's presence, often by burrowing into the same deep layer as the operating system itself. FudModule is built to hide at the kernel level, so security software has a much harder time spotting it.
- A backdoor called ForestTiger. A backdoor is a hidden way back into a machine that the attacker can use later, without needing to break in again. ForestTiger maintains persistent access for whenever the attackers want back in. Persistent means the access is kept for whenever the attackers want back in.
Laid out step by step, the chain looks like this:
Phishing lure → foothold on the machine → CVE-2026-68820 escalates to SYSTEM → rootkit hides the intrusion → backdoor keeps the door open.
A phishing lure is the bait: the message or file designed to get someone to click or open. Each link depends on the one before it. And the CVE we are talking about is the hinge in the middle, the point where "we got someone to click a link" becomes "we control this machine completely".
A five-week gap that mattered
The timeline is where this stops being an abstract technical story and starts being a genuinely uncomfortable one for defenders. A defender is anyone whose job is to keep systems safe.
- Lazarus was already exploiting the flaw in the wild by early July 2026. "In the wild" means real attacks against real targets, not a demonstration in a laboratory.
- Check Point discovered it and reported it responsibly to Microsoft's Security Response Center on 28 July. Responsible disclosure is the practice of telling the software maker privately first, giving them time to fix the problem before the details become public.
- Microsoft confirmed the issue three days later.
- Microsoft assigned the CVE identifier on 5 August.
- Microsoft shipped the actual fix on 11 August as part of that month's Patch Tuesday.
- The same day, CISA added it to its Known Exploited Vulnerabilities catalogue. CISA is a US government cybersecurity agency, and its catalogue is a public list of flaws that are known to have been used in real attacks. Being added to it officially confirmed this was not theoretical.
Do the maths and you get somewhere around five to six weeks between the earliest known exploitation and the first available patch, and that is just counting from when Check Point caught it. Nobody knows exactly how long Lazarus had been quietly using it before that.
For five or six weeks, "keep your systems patched" simply was not an option that existed yet. Patching means installing the vendor's fix. You cannot install a fix that has not been written.
Why I think this one is worth remembering
A few things stuck with me after digging into this.
Kernel bugs collapse the usual assumptions. Once an attacker has SYSTEM, a lot of the security controls running in user space can potentially be blinded or disabled outright. User space is everything that runs outside the kernel: ordinary programs, including antivirus and security tools. Antivirus is software that looks for known malicious files. App permissions are the rules about what each program may do. EDR, Endpoint Detection and Response, is monitoring software that watches a machine for suspicious behaviour and tries to stop it. The trust model of the whole operating system assumes the kernel is trustworthy, so a bug there undermines almost everything built on top of it. If the referee of a match can be bribed, the rules of the game stop meaning much.
This was not a single point of failure, it was a chain. No individual piece here was unstoppable on its own. The phishing email could have been caught by awareness training. The exploit could have been caught by better memory-safety tooling. Memory safety is the property that a program never reads or writes memory it should not; tooling for it tries to catch exactly this class of mistake. Either link breaking would have stopped the whole thing. That is the practical argument for defence in depth: several independent layers of protection, so that one failure does not mean total failure. It is not a buzzword, it is what actually would have prevented this.
It was not opportunistic. Targeting defence-sector employees specifically, with a tool this sophisticated, points to intelligence gathering, not smash-and-grab cybercrime. That changes how seriously an organisation should weigh its exposure.
And the big one: patching is necessary but not sufficient. For over a month, "install the update" was not an available defence. Organisations that treated patch management as their entire security strategy were exposed the whole time, with nothing they could do about it except everything else: EDR, least privilege, application allow-listing, and training people to be suspicious of unsolicited job offers. Least privilege means giving each person and each program only the access it truly needs. Application allow-listing means only approved programs are permitted to run at all.
The takeaway
If there is one sentence I would pull out of this whole case, it is that CVE-2026-68820 did not succeed because Windows has a kernel driver with a subtle memory bug. Plenty of software has subtle memory bugs. It succeeded because that bug was one convincing email away from being triggered, and because most of the layers that could have stopped it along the way were not in place for the organisations that got hit.
Patch your systems, obviously. But build your defences assuming that, one day, the patch will not exist yet, because for five weeks this summer, it did not.
Glossary
- API (Application Programming Interface): a fixed set of instructions one piece of software uses to ask another to do something, like a menu of services at a counter.
- Application allow-listing: a policy where only explicitly approved programs are allowed to run.
- Antivirus: software that looks for known malicious files on a machine.
- Attribution: the act of identifying who carried out an attack, based on evidence.
- Backdoor: a hidden way back into a machine that an attacker can use later without breaking in again.
- Campaign: a sustained series of attacks run towards a goal, rather than a single incident.
- Changelog: the list of changes a software maker publishes with each release.
- CISA: a US government cybersecurity agency that maintains a public catalogue of vulnerabilities known to be exploited.
- CVE: a public catalogue number given to a security flaw so everyone can refer to the same bug by the same name.
- CVSS: a standard scoring system for the severity of a vulnerability, roughly from 0 to 10.
- CWE: a catalogue of weakness types, grouping flaws by category; CWE-416 is use-after-free.
- Defence in depth: several independent layers of protection, so that one failure does not mean total failure.
- Driver: a piece of software that lets the kernel talk to hardware or provide a low-level service.
- EDR (Endpoint Detection and Response): monitoring software that watches a machine for suspicious behaviour and tries to stop it.
- Exploit: code or a technique that abuses a vulnerability to make software behave in a way its maker did not intend.
- Foothold: a small initial way into a machine, usually with limited rights.
- In the wild: happening in real attacks against real targets, as opposed to a laboratory demonstration.
- Kernel: the core of the operating system, which talks to hardware and enforces who may do what.
- Kernel-mode driver: a driver that runs at the deepest, most trusted layer of the operating system.
- Known Exploited Vulnerabilities catalogue: CISA's public list of flaws known to have been used in real attacks.
- Lazarus Group: a threat actor linked to North Korea, named in this case as the group behind the attacks.
- Least privilege: giving each person and each program only the access it truly needs.
- Low privilege: having only the rights of a normal user, not an administrator.
- Memory safety: the property that a program never reads or writes memory it should not.
- Operation Dream Job: the long-running campaign in which attackers impersonate recruiters with fake job offers.
- Patch: an update from a software maker that fixes a flaw.
- Patch management: the practice of tracking and installing updates in an organised way.
- Patch Tuesday: Microsoft's monthly release day for security updates.
- Patching: installing the vendor's fix for a flaw.
- Persistent: surviving reboots and ordinary clean-up.
- Phishing lure: the bait, a message or file designed to get someone to click or open it.
- Privilege escalation: turning limited access into greater access, here from a normal user to SYSTEM.
- Race condition: a situation where two or more parts of a program act at the same time and the result depends on who gets there first.
- Responsible disclosure: telling the software maker privately first, giving them time to fix the problem before details become public.
- Rootkit: software built to hide an attacker's presence, often by burrowing into the same deep layer as the operating system.
- Social engineering: manipulating a person rather than a computer, to get them to do something they would not do if they knew the truth.
- Socket: the software equivalent of a phone line, one end of a conversation between two computers.
- SYSTEM: the highest privilege level in Windows, above a local administrator.
- Synchronisation: the rules that keep multiple threads from stepping on each other.
- Thread: one sequence of instructions running inside a program; a program can have several running at once.
- Threat actor: a neutral term for an individual or group carrying out attacks.
- Use-after-free: a flaw where memory is freed but something still holds a reference to it and uses it anyway.
- User space: everything that runs outside the kernel, including ordinary programs and security tools.
- Vulnerability: a mistake in software that someone can abuse to make it do something it was not meant to do.
- Windows Sockets API: the interface networked applications on Windows use to open connections, send data and manage sockets.
- Zero-day: a flaw being exploited before the software maker knew about it, giving defenders zero days of warning.