All of lore.kernel.org
 help / color / mirror / Atom feed
* [kernel-hardening] Disable and lock Silicon Debug feature on modern Intel CPUs
@ 2017-01-21 23:41 Solar Designer
  2017-01-22 15:10 ` Yves-Alexis Perez
  2017-01-22 16:30 ` Mathias Krause
  0 siblings, 2 replies; 5+ messages in thread
From: Solar Designer @ 2017-01-21 23:41 UTC (permalink / raw)
  To: kernel-hardening

Hi,

If anyone is looking for a tiny kernel hardening task, this may be one.

OpenBSD just got this a week ago:

https://freshbsd.org/commit/openbsd/f16aad7b540921691f7841ef8ccbb7e7ca22dfd1

"Disable and lock Silicon Debug feature on modern Intel CPUs

This implements one of the countermeasures against using Direct
Connect Interface (DCI) to debug CPUs via USB3 mentioned in the
"Tapping into the core" talk at the 33c3: identify and disable
the Silicon Debug feature found in Haswell and newer CPUs."

(and I stole the first line of the commit message for this message's
Subject - well, at least I do it with this attribution).

Silicon Debug should probably be disabled and locked by default, but
there should be a kernel parameter to avoid this.

The rationale to do this is to provide a tiny bit of protection against
some physical attacks on booted up and decrypted yet locked laptops,
while also allowing the system owner's intentional use of Silicon Debug.

As far as I can tell, so far Linux only got the CPUID feature bit:

http://lists.openwall.net/linux-kernel/2015/07/19/228

and presumably reporting due to arch/x86/kernel/cpu/mkcapflags.sh.

FreeBSD and NetBSD also seem to have just a check for the bit and
its reporting, also since 2015.

Alexander

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-23 10:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-21 23:41 [kernel-hardening] Disable and lock Silicon Debug feature on modern Intel CPUs Solar Designer
2017-01-22 15:10 ` Yves-Alexis Perez
2017-01-22 16:30 ` Mathias Krause
2017-01-22 20:31   ` Solar Designer
     [not found]     ` <20170122221847.GA97816@yamori.belopuhov.com>
2017-01-23 10:47       ` Mathias Krause

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.