nsacyber / detect-cve-2017-15361-tpm Goto Github PK
View Code? Open in Web Editor NEWDetects Windows and Linux systems with enabled Trusted Platform Modules (TPM) vulnerable to CVE-2017-15361. #nsacyber
License: Other
Detects Windows and Linux systems with enabled Trusted Platform Modules (TPM) vulnerable to CVE-2017-15361. #nsacyber
License: Other
The script is currently trying to read /sys/class/tpm/tpm0/device/cap
. However, according to https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-tpm, the file's name is actually caps
.
/sys/class/tpm/tpm0/device/caps doesn't exist for TPM 2.0 in Linux-based systems. See tpm2-software/tpm2-tools#604 for more information.
We could try and detect if tpm2-tools is installed and then call tpm2_getcap -c="properties-fixed" if that returns the right data (manufacturer and firmware version). See https://github.com/tpm2-software/tpm2-tools/blob/master/man/tpm2_getcap.1.md for more information.
Looks like tpm2-tools 3.0+ uses tpm2_getcap. tpm2-tools 2.0 uses tpm2_dump_capability with the same arguments (ref https://manpages.debian.org/testing/tpm2-tools/tpm2_dump_capability.8.en.html). tpm2-tools 1.0 does not appear to have an equivalent command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.