BTC
ETH
SOL
BNB
GOLD
XRP
DOGE
ADA
Back to home
Tech

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

PanicLock is a free, open-source macOS app that forces a password unlock after you close your MacBook lid, disabling Touch ID in the process.

PanicLock is a free, open-source macOS app that forces a password unlock after you close your MacBook lid, disabling Touch ID in the process. Developers created it in response to real-world coercion risks, like the case of Washington Post reporter Hannah Natanson. In October 2023, police raided her home amid a probe into leaked police records. They compelled her to unlock her MacBook with her fingerprint, granting access to her Signal desktop app. That exposed journalist sources and private conversations.

This incident underscores a harsh privacy reality: biometrics offer no Fifth Amendment protection in the US. Courts treat fingerprints and Face ID like physical traits—think blood samples or breathalyzers—not testimonial evidence like passphrases. Natanson’s case echoes precedents such as Commonwealth v. Baust (Virginia, 2014), where a judge ruled forcing a fingerprint unlock doesn’t violate self-incrimination rights. By 2023, federal and state courts upheld this in over 20 cases, from drug probes to child exploitation rings.

The Legal Gap Exposed

Passwords remain shielded because reciting one counts as testimony. The Supreme Court hasn’t ruled definitively on biometrics versus passcodes, but lower courts consistently side against privacy claims. In In re Search of [Redacted] (Eastern District of Virginia, 2016), a magistrate compelled a fingerprint but exempted the passcode. States like California and New York passed laws in 2019-2021 limiting forced biometrics for phones, but laptops fall into a gray area. No federal statute covers it, leaving journalists, activists, and execs vulnerable during border stops or raids.

Natanson’s story hit hard: FBI agents allegedly accessed her Signal chats, naming sources in a Baltimore police scandal. The Washington Post sued over the raid’s scope, but the unlock itself stood unchallenged. PanicLock’s creator points to the app’s landing page for deeper legal dives, citing cases like US v. Turner (Georgia, 2018), where Touch ID opened an iPhone with 10,000 incriminating photos.

How PanicLock Operates

The app runs in the background and hooks into macOS’s lid-detection APIs via IOKit. Close the lid, and it immediately revokes Touch ID authentication for the login screen. Reopen, and you must type your password—Touch ID stays disabled until a reboot or manual reset. Source code lives on GitHub under MIT license: a lean Swift app using EndpointSecurity framework for policy enforcement.

let lidState = IOKit.lidStatus()
if lidState == .closed {
    TouchIDPolicy.set(enabled: false)
}

It targets macOS Ventura and later, sidestepping SIP restrictions. Tests confirm it survives sleep/wake cycles. Drawbacks? It doesn’t block Face ID on desktops, and Apple could patch it in future updates—Sonoma already tightened EndpointSecurity. Run it unsigned via sudo spctl --master-disable for now, but that’s a security trade-off.

Skeptical take: Effective for targeted threats, but no silver bullet. Coerced users might still face pressure to reveal passwords. Pair it with full-disk encryption (FileVault) and auto-lock after 1 minute. For extras, tools like caffeinate prevent sleep, or T2 chip deniability via firmware passwords.

Why This Matters Now

Journalists face rising raids—Reporters Without Borders logged 52 digital device seizures targeting media in 2023, up 30% from 2022. Crypto users, dissidents, and finance pros hit borders too: CBP seized 65,000 devices in FY2023, scanning 47,000. Biometrics speed unlocks; passphrases don’t.

PanicLock shifts the game by design. Download, compile, deploy. It costs nothing, weighs 2MB, and beats commercial VPNs for this niche. But verify yourself—audit the code. In a world of warrantless searches (Riley v. California carved phone exceptions), it buys time and invokes stronger rights.

Bottom line: Use it if raids worry you. It won’t stop determined feds, but it forces their hand legally. Why matters? One fingerprint can burn careers and sources. Natanson’s ordeal proves it—don’t bet on biometrics alone.

April 18, 2026 · 3 min · 9 views · Source: Hacker News

Related