detection-engineering · windows · lock-screen · accessibility-abuse

FastUnlock: Detecting the Windows Lock Screen Bypass

A public proof of concept called FastUnlock lets someone with physical access to a locked Windows machine run code on it, using nothing but built-in accessibility features. No CVE has been assigned as of this writing. We built a lab, reproduced it, and wrote two detections.

The chain

No credentials are needed beyond physical or console access. The machine doesn't even need to have been locked by someone using it. We tried this cold: power the box on, land on the normal sign-in screen, and go straight to "I forgot my PIN" with no prior sign-in that session. It still worked. The real requirement is an account with a Windows Hello PIN that's linked to a Microsoft account, since that's what puts "I forgot my PIN" on the lock screen in the first place; our lab account signed in with an outlook.com account. A powered-off laptop is just as exposed as one someone stepped away from.

  1. On the lock screen or sign-in screen, choose "I forgot my PIN." Windows starts a full logon session for a local account named WsiAccount. This happens on every legitimate PIN reset, so by itself it means nothing.
  2. Press Ctrl+Win+Enter to toggle Narrator on. Narrator opens its own Home screen, fully visible, with tiles for QuickStart, the Narrator guide, What's new, Settings, and Feedback.
  3. Select the Settings tile. This opens the Settings app directly to Accessibility > Narrator, an ordinary page. The Narrator Home window stays open behind it and can confuse Narrator's focus, so minimize it and use Caps Lock + arrow again to cycle through open windows until you land back on Settings.
  4. From there, arrow over in the left-hand navigation to Bluetooth & devices, then into AutoPlay.
  5. Toggle "Use AutoPlay for all media and devices" on. In our lab the removable-drive handler was already set to "Open folder to view files (File Explorer)." Check that dropdown too if it isn't already set that way for you.
  6. Insert a USB stick. Narrator announces that Explorer opened the drive. Cycle through with Caps Lock + arrow until you hear the first file, arrow down to the one you want, and press Enter to run it.

We tried getting to Settings through the "What's new" tile first, which leads to the "Math reading settings" option the original writeup points to, and that option also opens Settings. We gave up on it because it wasn't consistent: that dialog only shows up the first couple of times Narrator starts in a session (there's a counter for it in the registry), so half the time it just wasn't there. The Settings-tile path above worked every time we tried it.

The AutoPlay choice does stick, though. Once it's set, it stays set in WsiAccount's profile the next time around.

We ran the full chain twice on Windows 11 26H2: once on build 26300.9457, and again after a Windows Update installed that same day, on build 26300.9974. Both worked.

What you get when it works

We ran a short recon script off the USB stick to see what WsiAccount can actually reach:

test\wsiaccount
(not a member of local Administrators)

example.com HTTP 200   (full internet access, DNS resolves normally)

Default gateway replies to ping
Other hosts visible via ARP

PowerShell 5.1, LanguageMode: FullLanguage

A standard, non-admin account, but one with full internet access, visibility into the local network, and a PowerShell with no restrictions on it. None of this gets you to SYSTEM by itself; that would take a second bug. But it's enough for a quiet foothold on a network from a machine that was supposed to be locked.

We also ran a reverse shell off the USB drive back to a listener on another box, using a stock copy of ncat. It connected and answered whoami as test\wsiaccount. LimaCharlie caught the whole thing: ncat.exe running under the WsiAccount session, launched by Explorer, with its outbound connection to our listener.

The listener catching the connection and whoami resolving to test\wsiaccount

It didn't survive. We tried this twice. On the first attempt, ncat.exe connected, spawned a cmd.exe, and sat idle, we hadn't typed anything into it yet. 51 seconds later the entire process tree died in the same instant: the batch file's cmd.exe, its conhost.exe, ncat.exe, and the shell it had spawned, four processes, one timestamp. On the second attempt we got two commands through (cd /D C:\ and whoami) before the same thing happened to that tree about a minute and fifty seconds after it connected. Windows Security confirmed it afterward: a "Suspicious Behavior" detection, severity Severe, status Removed, flagging the exact process and PID from our first attempt (E:\ncat.exe, PID 10348) with the description "this program is dangerous and executes commands from an attacker." That's Microsoft Defender's behavior monitoring, not a signature match on ncat by name or hash. Nothing earlier in the chain got flagged: not the Narrator dialog, not Settings opening, not the batch file, not the recon commands. Defender caught the one thing in our chain that looked like a textbook reverse shell, and only that.

Writing the detections

We built both rules on LimaCharlie's native process telemetry, and it caught the Settings app opening, the process our first rule depends on, every time we ran the chain. Our lab's Sysmon never recorded that same event in either run. If you're building rule one from Sysmon instead, test it against your own environment before relying on it.

We replayed both rules against every event export we captured in the lab: the benign sessions, the Settings breakout, the batch file payload, the reverse shell. Both rules caught every attack run, including the reverse shell. Here are both as Sigma against the generic process_creation log source (Sysmon event ID 1, or an EDR feed that records the parent process's user).

Rule one: WsiAccount opens Settings

Fires when SystemSettings.exe runs as WsiAccount. A normal PIN reset starts Explorer and a long list of background processes under that account, but there's no reason for any of them to open Settings. Across the two full benign sessions we captured, it never happened.

title: Lock Screen Bypass - WsiAccount Opens Settings
id: 784eeaff-5c37-45ca-a5d2-4234cb51b736
status: experimental
description: |
    Detects the Settings app launching under the WsiAccount session created by
    Windows's "I forgot my PIN" lock-screen flow, part of the FastUnlock
    accessibility-abuse bypass chain.
references:
    - https://github.com/MSNightmare/FastUnlock
author: Scott Johnson, BHIS ActiveSOC
date: 2026-11-20
tags:
    - attack.initial-access
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith: '\SystemSettings.exe'
    User|endswith: '\WsiAccount'
  condition: selection
fields:
    - Image
    - User
    - ParentImage
falsepositives:
    - None expected. Opening Settings is not part of a normal PIN reset.
level: high

Rule two: code execution as WsiAccount

Fires on code execution inside the WsiAccount session: a shell or script host, an image running from outside the Windows, Program Files, and Windows Defender folders, or anything Explorer launches as a child. One quirk in the telemetry we had to account for: seven of the ten child processes spawned by our test payload carried no user name of their own, only their parent did. So the rule checks both the process's own user and its parent's. We left one thing out on purpose: explorer.exe running as WsiAccount by itself isn't an indicator. It happens on every legitimate PIN reset.

title: Lock Screen Bypass - Code Execution as WsiAccount
id: e4228540-18ce-445b-80bb-c16fc93bde7b
status: experimental
description: |
    Detects code execution (shells, script hosts, or anything launched by
    Explorer) inside the WsiAccount session created by Windows's "I forgot my
    PIN" lock-screen flow, after the Settings/AutoPlay breakout in the
    FastUnlock accessibility-abuse chain.
references:
    - https://github.com/MSNightmare/FastUnlock
author: Scott Johnson, BHIS ActiveSOC
date: 2026-11-20
tags:
    - attack.execution
    - attack.t1204.002
logsource:
  category: process_creation
  product: windows
detection:
  selection_user:
    User|endswith: '\WsiAccount'
  selection_parent_user:
    ParentUser|endswith: '\WsiAccount'
  selection_lolbin:
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
      - '\regsvr32.exe'
  selection_explorer_child:
    ParentImage|endswith: '\explorer.exe'
  filter_system_roots:
    Image|startswith:
      - 'C:\Windows\'
      - 'C:\Program Files\'
      - 'C:\Program Files (x86)\'
      - 'C:\ProgramData\Microsoft\Windows Defender\'
  condition: (selection_user or selection_parent_user) and (selection_lolbin or selection_explorer_child or not filter_system_roots)
fields:
    - Image
    - User
    - ParentImage
    - ParentUser
falsepositives:
    - None expected under a normal PIN reset. explorer.exe running as
      WsiAccount by itself is excluded and is not, on its own, suspicious.
level: high

Mitigating it

Physical security is still the real control here. Every step in this chain needs hands on the keyboard, or equivalent access through a KVM, out-of-band management interface, or hypervisor console.

In terms of actual mitigations, there are plenty of things that might work, but the only one confirmed to work is setting a BitLocker pre-boot PIN, which helps against the cold-boot path specifically as reported by ThreatLocker. They report that it mitigates the bypass when the device was just powered on, since the PIN has to be supplied before the drive unlocks and Windows starts. It does nothing for a machine that has already booted past the pre-boot PIN, whether or not anyone has signed in since.