惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Spread Privacy
Spread Privacy
S
Schneier on Security
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MongoDB | Blog
MongoDB | Blog
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
月光博客
月光博客
T
The Exploit Database - CXSecurity.com
Forbes - Security
Forbes - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
Recent Announcements
Recent Announcements
IT之家
IT之家
B
Blog
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Know Your Adversary
Know Your Adversary
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
O
OpenAI News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
V2EX - 技术
V2EX - 技术
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Help Net Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Last Week in AI
Last Week in AI
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
A
About on SuperTechFans
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
Vercel News
Vercel News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Recorded Future
Recorded Future
C
Cisco Blogs
Project Zero
Project Zero

Arch Linux Forums

Gnome desktop mouse cursor zoom issues / Newbie Corner Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments on Linux arch 7.0.10-arch1-1 connection drops / Networking, Server, and Protection GDM does not open login screen after update / Newbie Corner Cinnamon (X11) fails to load after update (Page 2) / Applications & Desktop Environments fontconfig-2:2.18.x - broken fonts? (Page 2) / Applications & Desktop Environments Bluetooth headphones connect but don't auto-switch (alsa 1.2.16) / Multimedia and Games Audio breaks after every suspend/change of VT (Page 2) / Newbie Corner EFI stub: Warning: unable to unprotect memory range (Page 3) / Kernel & Hardware Keyboard problem with the french disposition / Newbie Corner Working with two network interfaces / Networking, Server, and Protection [SOLVED] Power spikes on laptop / Laptop Issues Problems with Qt? (Page 2) / Applications & Desktop Environments plasmashell 6.6.5 crashing on loop / Applications & Desktop Environments I'm worried / Newbie Corner Help! RTL8723BS "coalesce failed with error -22" after upgrade / Laptop Issues System notifications not working on any browser / Applications & Desktop Environments installing kernels with kernel-install / Community Contributions [SOLVED] Intel AX210 issue on linux=7.0.10 / Kernel & Hardware No longer booting after Windows 11 update / Installation *SOLVED* Two PC's but different boot times - Kernel 7.0? / Kernel & Hardware gnome-shell continuous clutter_input_focus_set_cursor_location msg / Pacman & Package Upgrade Issues google-chrome, vscode and spotify are ignore my fontconfig / Applications & Desktop Environments KDE6 Akonadi default database backend / Creating & Modifying Packages Support / Routing quirks for new Creative Sound Blaster AE-X (USB ID 0 / Kernel & Hardware Kernel Panic and system freezes with 4x16 DDR5 / Kernel & Hardware dm-crypt and SSDs / Newbie Corner Problems with Worms WMD / Newbie Corner Freeze after login whenever upgrading nvidia/kernel / Laptop Issues Blender crashes on startup when using Vulkan backend / Applications & Desktop Environments Top 5 MDM Solutions for Linux Devices in 2026 Elden Ring crash in sound initialisation / Multimedia and Games AUR connection issues (EOF/TLS errors) (Page 5) / AUR Issues, Discussion & PKGBUILD Requests GNOME freeze after login / Applications & Desktop Environments Bash is weird now / Newbie Corner Gif as KDE avatar / Applications & Desktop Environments Export in musescore / Applications & Desktop Environments Nvidia And Amd Drivers / Applications & Desktop Environments [SOLVED] How to get pavucontrol in dark mode? / Newbie Corner Startx does not work / Applications & Desktop Environments Coturn server installtaion / Applications & Desktop Environments Could not resolve Matrix-synapse dependency error / Applications & Desktop Environments Possible solution for mesa-amber build failure with glibc-2.43 / Multimedia and Games [SOLVED] Plymouth forces English (US) layout on boot / Newbie Corner [Solved]What should I use as license if the upstream repo has none? / AUR Issues, Discussion & PKGBUILD Requests The Official Hello Everyone Thread (Page 334) / Newbie Corner [SOLVED] EPSON ET-2710 printer only printing blank pages / Newbie Corner [SOLVED]Session crashes after login, booted back to sddm / Laptop Issues [SOLVED] Asus monitor suspend results in on/off cycling / Newbie Corner Ultrahuman Discount Code [SAVEULTRA] 10% Off For Existing Customers / Creating & Modifying Packages Ultrahuman Discount Code [SAVEULTRA] 10% Off – Verified Coupon for Exi / Arch Discussion New Ultrahuman Discount Code [SAVEULTRA] 2026 – Get 20% Extra OffToday / Programming & Scripting Ultrahuman Discount Code 2026 - "SAVEULTRA" - Get 20% Extra Off / Newbie Corner Sway keybinding stops working after sleep / Applications & Desktop Environments QEMU SPICE how to achieve bidirectional clipboard with Sway? / Applications & Desktop Environments Apollo Neuro Promo Code [APOLLOZEN] $99 Off Legit Or Just Marketing Apollo Neuro Discount Code $99 Off [APOLLOZEN] Secret Savings Trick HTTP session disconnect on WI-FI disconnect / Networking, Server, and Protection [SOLVED] Cannot chain-load into Windows with GRUB. / Newbie Corner [SOLVED] Font hinting appears to be disabled on Qt6 applications? / Applications & Desktop Environments Black screen after waking up from sleep/hybernate/suspend. / Newbie Corner Diskless booting failing, ipconfig no devices to configure / Kernel & Hardware Strange Font Issue Across System / Newbie Corner [SOLVED] Laptop doesn't wake from sleep on NVIDIA 595.71.05 drivers / Newbie Corner Touchpad randomly stops moving (clicks still work) on Hyprland / Laptop Issues Random hangs on Ryzen Mobile after 6.18.13 ? / Kernel & Hardware [SOLVED] Can't get IP address for USB Ethernet device (KORG Wavestate) / Networking, Server, and Protection Laptop display does not turn on after being off for around 50 min / Multimedia and Games Text Corruption in GPU Screen Recorder GUI / Applications & Desktop Environments Mouse not correctly recognized during boot (Page 2) / Kernel & Hardware PKGBUILD review / AUR Issues, Discussion & PKGBUILD Requests Touchpad not working / Newbie Corner
[SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection
cryptearth · 2026-06-05 · via Arch Linux Forums

#1 2026-06-04 21:32:32

avi9526
Member
Registered: 2015-05-15
Posts: 125

[SOLVED] LUKS drive auto unlocked by TPM when expected not to

I had my auto unlocking being broken for a long time. Tried to fix it without success. TPM2 unlock just didn't work. After playing with BIOS settings (clearing secure boot keys and etc) it suddenly started working. Problem is - i'd expect it to fail.

cryptsetup luksDump header.img
…
Tokens:
  0: systemd-tpm2
        tpm2-hash-pcrs:   0+7
…

and while playing with BIOS secure boot settings I was monitoring PCR 7 with

each boot this value changed (because I've changed secure boot setting in BIOS), yet each time disk was auto unlocked. I've read wiki and articles and know that TPM and LUKS is problematic, but this look utterly unsafe. What is going on?

Last edited by avi9526 (2026-06-05 16:48:33)

#2 2026-06-04 22:28:11

cryptearth
Member
Registered: 2024-02-03
Posts: 2,181

Re: [SOLVED] LUKS drive auto unlocked by TPM when expected not to

TPM != secure boot

secureboot: regular x509 chain just to verify signature of the chain up to the kernel to the systems root key
TPM: a device to meassure and compare a systems state
they both usually work independent of eachother

enable secureboot without proper chain just causes the boot to fail - while the tpm isn't affected by this as it more or less just checks: "hey, is this still the hardware as last time - and is it unmodified?"
I don't know if "is secureboot enabled?" can even be meassured for tpm auto-unlock - but it likely isn't in any default

#3 2026-06-05 16:42:06

avi9526
Member
Registered: 2015-05-15
Posts: 125

Re: [SOLVED] LUKS drive auto unlocked by TPM when expected not to

I have identified the problem. It appears that I have created it myself. You can notice that I use a detached luks header, but since /boot is not properly available at the time of unlocking the copy of the header must be built into initramfs image. So any change to actual header require "mkinitcpio" afterwards.

sbctl status
…
    Setup Mode:     ✓ Disabled
    Secure Boot:    ✓ Enabled
…

systemd-cryptenroll --wipe-slot=tpm2 Header.img
systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 Header.img
mkinitcpio -p linux…
reboot
…
PROFIT

Now LUKS auto unlock works when secure boot enabled and not does not work when secure boot altered (disabled, keys changed, etc)

Header being built into initramfs means I cannot use PCR9 that hashes initrd image, because I need to store hash of initrd inside initrd, which is practically impossible. Shame.

Last edited by avi9526 (2026-06-05 16:48:24)

#4 Today 19:30:04

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,490

Re: [SOLVED] LUKS drive auto unlocked by TPM when expected not to

You don't explain why you use a separate header, but have a look if the new pinning feature let's you use defaults.

#5 Today 19:42:41

avi9526
Member
Registered: 2015-05-15
Posts: 125

Re: [SOLVED] LUKS drive auto unlocked by TPM when expected not to

Strike0 wrote:

You don't explain why you use a separate header, but have a look if the new pinning feature let's you use defaults.

I will take a look, thnx

Separate header is somehow pleasant to me:
1) it is easy to backup and fallback, there is 3 backups of header lying in my /boot
2) it is unix-way - as it is file
3) it corresponds to idea that data must be separated from non-data
4) such encryption could be removed/enrolled in the raw way due to the fact that encrypted data is aligned to un-encrypted data [https://unix.stackexchange.com/a/130998/67899]
5) it could be argued that encrypted partition without header is no more than just random data, actual situation depends on how close the government soldering iron to your backdoor

Last edited by avi9526 (Today 20:03:37)