final Talk files for GPN23
authorratten <ratten@buecherratten.in-berlin.de>
Sat, 7 Jun 2025 13:52:15 +0000 (15:52 +0200)
committerratten <ratten@buecherratten.in-berlin.de>
Sat, 7 Jun 2025 13:52:15 +0000 (15:52 +0200)
15 files changed:
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
beamerthemeBuecherrattenTheme.sty
creds.script [new file with mode: 0644]
creds.time [new file with mode: 0644]
images/TCG-PCRs.png [new file with mode: 0644]
images/bootprocess.dot [new file with mode: 0644]
images/bootprocess.png [new file with mode: 0644]
images/bootprocess_tpm.dot [new file with mode: 0644]
images/bootprocess_tpm.png [new file with mode: 0644]
images/tpm2-software-stack.dot [new file with mode: 0644]
images/tpm2-software-stack.png [new file with mode: 0644]
tpm_and_luks-handout.pdf [new file with mode: 0644]
tpm_and_luks-presentation.pdf [new file with mode: 0644]
tpm_and_luks.tex [new file with mode: 0644]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..976303d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,232 @@
+GNU GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+Preamble
+
+The GNU General Public License is a free, copyleft license for software and other kinds of works.
+
+The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
+
+To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
+
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
+
+Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
+
+For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
+
+Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
+
+Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
+
+The precise terms and conditions for copying, distribution and modification follow.
+
+TERMS AND CONDITIONS
+
+0. Definitions.
+
+“This License” refers to version 3 of the GNU General Public License.
+
+“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
+
+“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
+
+To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
+
+A “covered work” means either the unmodified Program or a work based on the Program.
+
+To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
+
+To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
+
+An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
+
+1. Source Code.
+The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
+
+A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
+
+The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
+
+The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
+
+The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
+
+The Corresponding Source for a work in source code form is that same work.
+
+2. Basic Permissions.
+All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
+
+You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
+
+Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
+
+3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
+
+When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
+
+4. Conveying Verbatim Copies.
+You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
+
+You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
+
+5. Conveying Modified Source Versions.
+You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
+
+     a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
+
+     b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
+
+     c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
+
+     d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
+
+A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
+
+6. Conveying Non-Source Forms.
+You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
+
+     a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
+
+     b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
+
+     c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
+
+     d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
+
+     e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
+
+A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
+
+A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
+
+“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
+
+If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
+
+The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
+
+Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
+
+7. Additional Terms.
+“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
+
+When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
+
+Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
+
+     a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
+
+     b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
+
+     c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
+
+     d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
+
+     e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
+
+     f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
+
+All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
+
+If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
+
+Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
+
+8. Termination.
+You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
+
+However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
+
+Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
+
+Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
+
+9. Acceptance Not Required for Having Copies.
+You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
+
+10. Automatic Licensing of Downstream Recipients.
+Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
+
+An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
+
+You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
+
+11. Patents.
+A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
+
+A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
+
+Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
+
+In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
+
+If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
+
+If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
+
+A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
+
+Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
+
+12. No Surrender of Others' Freedom.
+If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
+
+13. Use with the GNU Affero General Public License.
+Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
+
+14. Revised Versions of this License.
+The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
+
+If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
+
+Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
+
+15. Disclaimer of Warranty.
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. Limitation of Liability.
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+17. Interpretation of Sections 15 and 16.
+If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
+
+     Vortrag: Zusammenspiel von LUKS und TPM 2.0 unter Linux
+     Copyright (C) 2025  Bücherratten
+
+     This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+     This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+
+     You should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
+
+     Vortrag: Zusammenspiel von LUKS und TPM 2.0 unter Linux Copyright (C) 2025  Bücherratten
+     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+     This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
+
+You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
+
+The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..f1d36c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,70 @@
+# hey: one two
+#      # Outputs "hey", since this is the target name
+#      echo $@
+
+#      # Outputs all prerequisites newer than the target
+#      echo $?
+
+#      # Outputs all prerequisites
+#      echo $^
+
+#      # Outputs the first prerequisite
+#      echo $<
+#
+#   # Outputs basename from target
+#   echo $*
+# 
+SHELL = /bin/bash
+
+file = $(wildcard *.tex)
+
+beamer = $(shell grep -l "beamer" $(file))
+normal = $(shell grep -L "beamer" $(file))
+
+.PHONY: clean show cleanall test presentation all handout article postArticle show_beamer
+.IGNORE: $(basename $(file))-article.pdf
+
+show_beamer: $(beamer)
+       @echo $?
+
+show: show_beamer $(file)
+       @echo $? "will be used"
+
+test: $(file)
+       @echo $@ "will not create a $(basename $?).pdf-file"
+       pdflatex -draftmode -shell-escape -jobname=draft$* $?
+
+presentation: $(basename $(beamer))-presentation.pdf
+
+%-presentation.pdf: %.tex
+       @echo "creating presentation from $? with name $@"
+       latexmk -jobname=%A-presentation -pdf -pdflatex='pdflatex -shell-escape %O %S' $?
+
+handout: $(basename $(beamer))-handout.pdf
+
+%-handout.pdf: %.tex
+       @echo "creating handout from $?"i
+       latexmk -jobname=%A-handout -pdf -pdflatex='pdflatex %O -interaction=nonstopmode -synctex=1 -shell-escape "\PassOptionsToClass{handout}{beamer}\input{%S}"' $?
+
+article: $(basename $(beamer))-article.pdf
+
+%-article.pdf: %.tex
+       @echo "creating article from $?"
+       @echo "change beamer documentclass to article"
+       sed -i 's/\\documentclass\[\([^]]*\)\]{beamer}/\\documentclass[\1]{scrartcl}/' $? #documentclass kann nicht mit mklatex gesezt werden
+       sed -i '3a \\\usepackage\[activeospeccharacters\]{beamerarticle}' $? # usepackage kann nicht mit mklatex gesetzt werden
+       latexmk -jobname=%A-article -pdf -pdflatex='pdflatex -shell-escape %O %S' $?
+       sed -i 's/\\documentclass\[\([^]]*\)\]{scrartcl}/\\documentclass[\1]{beamer}/' $?
+       sed -i '/\\\usepackage\[activeospeccharacters\]{beamerarticle}/d' $?
+
+all: test presentation handout article $(basename $(normal)).pdf
+       
+%.pdf: %.tex
+       latexmk -pdf -pdflatex='pdflatex -shell-escape %O %S' $?
+       
+clean:
+       rm -f *.aux *.log *.nav *.toc *.snm *.out *.vrb *.fdb_latexmk *.fls *.pyg *.synctex.gz
+       rm -rf _minted-*
+cleanall: clean
+       rm -f *.pdf
+       
index 1aa3f335a2837643c8586ef7850d56930411b249..84971e06cbcd19c7c914b7eeb455fde9b1a6c1a2 100644 (file)
 \definecolor{pbblue}{rgb}{0.74, 0.83, 0.9} % filling color for the progress bar
 \definecolor{pbgray}{rgb}{0.69, 0.93, 0.93}  % background color for the progress bar
 
+\definecolor{gruen}{rgb}{0.0, 0.5, 0.0}
+\definecolor{inlineheighlight}{rgb}{0.6, 0.73, 0.89}
+\definecolor{gold}{rgb}{0.89, 0.82, 0.04}
+\definecolor{blau}{rgb}{0.6, 0.81, 0.93}
+
 \beamer@compresstrue
 
 \newcommand\shadetext[2][]{%
 \usemintedstyle[console]{staroffice}
 \usemintedstyle[bash]{pastie}   
 
+\setminted{
+ breakanywhere,
+ escapeinside=||,
+ breaklines,
+ highlightcolor=inlineheighlight,
+}
+
 \setminted[bash]{
   breaklines=true,
   tabsize=2,
diff --git a/creds.script b/creds.script
new file mode 100644 (file)
index 0000000..2b7f012
--- /dev/null
@@ -0,0 +1,33 @@
+Script started on 2025-06-07 15:08:16+02:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="119" LINES="64"]
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemctl --version\r
+\e[?2004l\r\e[0;1;39msystemd 257\e[0m (257.6-1.fc42)\r
+\e[0;1;32m+\e[0;32mPAM\e[0m \e[0;1;32m+\e[0;32mAUDIT\e[0m \e[0;1;32m+\e[0;32mSELINUX\e[0m \e[0;1;31m-\e[0;31mAPPARMOR\e[0m \e[0;1;32m+\e[0;32mIMA\e[0m \e[0;1;32m+\e[0;32mIPE\e[0m \e[0;1;32m+\e[0;32mSMACK\e[0m \e[0;1;32m+\e[0;32mSECCOMP\e[0m \e[0;1;31m-\e[0;31mGCRYPT\e[0m \e[0;1;32m+\e[0;32mGNUTLS\e[0m \e[0;1;32m+\e[0;32mOPENSSL\e[0m \e[0;1;32m+\e[0;32mACL\e[0m \e[0;1;32m+\e[0;32mBLKID\e[0m \e[0;1;32m+\e[0;32mCURL\e[0m \e[0;1;32m+\e[0;32mELFUTILS\e[0m \e[0;1;32m+\e[0;32mFIDO2\e[0m \e[0;1;32m+\e[0;32mIDN2\e[0m \e[0;1;31m-\e[0;31mIDN\e[0m \e[0;1;31m-\e[0;31mIPTC\e[0m \e[0;1;32m+\e[0;32mKMOD\e[0m \e[0;1;32m+\e[0;32mLIBCRYPTSETUP\e[0m \e[0;1;32m+\e[0;32mLIBCRYPTSETUP_PLUGINS\e[0m \e[0;1;32m+\e[0;32mLIBFDISK\e[0m \e[0;1;32m+\e[0;32mPCRE2\e[0m \e[0;1;32m+\e[0;32mPWQUALITY\e[0m \e[0;1;32m+\e[0;32mP11KIT\e[0m \e[0;1;32m+\e[0;32mQRENCODE\e[0m \e[0;1;32m+\e[0;32mTPM2\e[0m \e[0;1;32m+\e[0;32mBZIP2\e[0m \e[0;1;32m+\e[0;32mLZ4\e[0m \e[0;1;32m+\e[0;32mXZ\e[0m \e[0;1;32m+\e[0;32mZLIB\e[0m \e[0;1;32m+\e[0;32mZSTD\e[0m \e[0;1;32m+\e[0;32mBPF_FRAMEWORK\e[0m \e[0;1;32m+\e[0;32mBTF\e[0m \e[0;1;32m+\e[0;32mXKBCOMMON\e[0m \e[0;1;32m+\e[0;32mUTMP\e[0m \e[0;1;32m+\e[0;32mSYSVINIT\e[0m \e[0;1;32m+\e[0;32mLIBARCHIVE\e[0m\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemct\b\e[K\b\e[Kd-cr\aeds list\r
+\e[?2004l\r\e[0;1;31mNo credentials passed. (i.e. $CREDENTIALS_DIRECTORY not set.)\e[0m\r\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m ls /var/lib/systemd/\r
+\e[?2004l\r\e[0m\e[01;34mcatalog\e[0m  \e[01;34mcoredump\e[0m  \e[01;34mephemeral-trees\e[0m  \e[01;34mhome\e[0m  \e[01;34mlinger\e[0m  \e[01;34mnetwork\e[0m  \e[01;34mpstore\e[0m  random-seed  \e[01;34mtimers\e[0m\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemd-cred setup\r
+\e[?2004l\rbash: systemd-cred: Befehl nicht gefunden...\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemd-cred setup\b\b\b\b\b\bs setup\b\b\b\b\b\b\r
+\e[?2004l\r4096 byte credentials host key set up.\r\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemd-creds setup\b\b\b\b\b\b\b\e[1P setup\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[Cls /var/lib/systemd/\r
+\e[?2004l\r\e[0m\e[01;34mcatalog\e[0m  \e[01;34mcoredump\e[0m  credential.secret  \e[01;34mephemeral-trees\e[0m  \e[01;34mhome\e[0m  \e[01;34mlinger\e[0m  \e[01;34mnetwork\e[0m  \e[01;34mpstore\e[0m  random-seed  \e[01;34mtimers\e[0m\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m ls /var/lib/systemd/\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[1Psystemd-creds setup\b\b\b\b\b\b\b\e[1P setup\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[Cls /var/lib/systemd/\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[2Psystemd-creds list\r
+\e[?2004l\r\e[0;1;31mNo credentials passed. (i.e. $CREDENTIALS_DIRECTORY not set.)\e[0m\r\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m mkdir /var/creds\r
+\e[?2004l\r\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m echo ""\bS"\bu"\bp"\be"\br"\b "\bt"\bo"\bl"\bl"\be"\b "\bG"\bP"\bN"\b-"\b "\bD"\ba"\bn"\bk"\be"\b\e[C\b\b\b\b\b\b\b\b\e[1@ \e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C > /Var\b\e[K\b\e[K\b\e[Kvar/creds/GPN23\r
+\e[?2004l\r\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m export CREDENTIALS_DIRECTORY \b\e[K+\b\e[K=/var/cr\ar\a\b\e[Keds/\r
+\e[?2004l\r\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m export CREDENTIALS_DIRECTORY=/var/creds/\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[Ccho "Super tolle GPN - Danke" > /var/creds/GPN23\r\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[Cmkdir /var/creds\e[K\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bsystemd-creds list\r
+\e[?2004l\r\e[?1h\e=\r\e[4mNAME \e[0m\e[4m \e[0m\e[4mSECURE  \e[0m\e[4m \e[0m\e[4mSIZE\e[0m\e[4m \e[0m\e[4mPATH            \e[0m\e[m\r
+GPN23 \e[0;1;31minsecure\e[0m  24B /var/creds/GPN23\e[m\r
+\r\e[K\e[?1l\e>\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m echo -n GPN23-SUPER | systemd-creds encrypt --name=GPN-Cred - /var/creds/GPN-Cred\r
+\e[?2004l\r\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemd-creds decrypt --name=GPN-Cred /var/cr\aeds/GPN-Cred \r
+\e[?2004l\rGPN23-SUPER\r
+\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m systemd-creds list\r
+\e[?2004l\r\e[?1h\e=\r\e[4mNAME    \e[0m\e[4m \e[0m\e[4mSECURE  \e[0m\e[4m \e[0m\e[4mSIZE\e[0m\e[4m \e[0m\e[4mPATH               \e[0m\e[m\r
+GPN23    \e[0;1;31minsecure\e[0m  24B /var/creds/GPN23\e[m\r
+GPN-Cred \e[0;1;31minsecure\e[0m 547B /var/creds/GPN-Cred\e[m\r
+\r\e[K\e[?1l\e>\e]0;root@fedora:~\a\e[?2004h\e[35mroot@fedora\e[0m:\e[35m~\e[0m#\e[0m exit\r
+\e[?2004l\rexit\r
+
+Script done on 2025-06-07 15:13:03+02:00 [COMMAND_EXIT_CODE="0"]
diff --git a/creds.time b/creds.time
new file mode 100644 (file)
index 0000000..e822113
--- /dev/null
@@ -0,0 +1,424 @@
+0.129580 63
+1.922947 1
+0.177478 1
+0.115281 1
+0.194101 1
+0.078167 1
+0.177499 1
+1.719467 1
+0.258777 1
+0.161792 1
+0.162478 1
+0.464008 1
+0.180477 1
+1.074561 1
+0.101670 1
+0.079000 1
+0.222601 1
+0.139849 1
+0.120127 1
+0.221714 1
+0.241747 11
+0.008144 1139
+0.000385 18
+0.000188 45
+2.937862 1
+0.237704 1
+0.117720 1
+0.159287 1
+0.099032 1
+0.179853 1
+0.321527 1
+0.282322 1
+0.810846 4
+0.196866 4
+0.836931 1
+1.965769 1
+0.276283 1
+0.229965 1
+0.345233 1
+0.373144 1
+0.188095 3
+1.981936 1
+0.166020 1
+0.104088 1
+0.189617 1
+0.147196 11
+0.007759 77
+0.000529 26
+0.000098 37
+2.869549 1
+0.137483 1
+2.958279 1
+0.903032 1
+0.509429 1
+0.115491 1
+0.211656 1
+1.249453 1
+1.037949 1
+0.217244 1
+0.217472 1
+0.741499 1
+1.192735 1
+0.196841 1
+0.097476 1
+0.177007 1
+0.215207 1
+0.541906 3
+1.088464 11
+0.003566 188
+0.000522 26
+0.000126 37
+2.547880 1
+0.138988 1
+0.097404 1
+0.195879 1
+0.078214 1
+0.196479 1
+0.976990 1
+0.624877 1
+0.274607 1
+0.277363 1
+0.154699 1
+0.215141 1
+1.239487 1
+0.566639 1
+0.254787 1
+0.234212 1
+0.424664 1
+0.388101 1
+2.468004 11
+0.010680 46
+2.295076 63
+1.045176 18
+0.741430 1
+0.602610 1
+0.040071 1
+0.040643 1
+0.039565 1
+0.038850 1
+0.964742 13
+0.959340 11
+0.201129 41
+0.001268 63
+1.868155 19
+0.424218 17
+0.402377 66
+0.823878 11
+0.003341 207
+0.000042 18
+0.000215 8
+0.000101 37
+6.927265 20
+0.359877 69
+0.380742 17
+0.742724 66
+0.421445 68
+0.978401 11
+0.007815 77
+0.000905 26
+0.000198 37
+4.435354 1
+0.184259 1
+0.308031 1
+0.185089 1
+0.082478 1
+0.591894 1
+1.984264 1
+0.471475 1
+0.122708 1
+0.220834 1
+1.121526 1
+1.551311 1
+0.225810 1
+0.184241 1
+0.220829 1
+0.225342 1
+1.106887 11
+0.003885 63
+3.736514 1
+0.225461 1
+0.143655 1
+0.166704 1
+1.200715 1
+2.014917 1
+0.202432 1
+0.584646 1
+3.540752 3
+0.178344 3
+0.233748 3
+0.198188 3
+0.078453 3
+0.216297 3
+0.825893 3
+0.728053 3
+0.214149 3
+0.157227 3
+0.078863 3
+0.195220 3
+0.938615 3
+0.434507 3
+0.275046 3
+1.123106 3
+0.159804 3
+0.472238 3
+0.216416 3
+0.195295 3
+0.179158 3
+0.038705 3
+0.729977 3
+0.670193 1
+0.233914 1
+0.174248 1
+0.174199 1
+0.175157 1
+0.194878 1
+0.198877 1
+0.174697 1
+0.157641 5
+0.178676 24
+1.506790 1
+1.284604 1
+0.654623 1
+1.537286 1
+0.459471 1
+0.230708 1
+0.252053 1
+0.419953 4
+0.209501 4
+0.169038 4
+0.628676 1
+0.081719 1
+0.188869 1
+0.201697 1
+1.291883 1
+0.190182 1
+0.253397 1
+0.259495 3
+1.892847 1
+0.485790 1
+0.296084 1
+0.775970 1
+0.187645 1
+0.902803 37
+0.000141 37
+3.421251 1
+1.032332 1
+0.869521 1
+0.231815 1
+0.275410 1
+0.212217 1
+0.610011 1
+2.560166 1
+0.396172 1
+0.288837 1
+0.694191 1
+0.608577 1
+0.773554 1
+0.295266 1
+0.227550 1
+0.248722 1
+1.346989 1
+0.603614 1
+3.196186 1
+1.159114 1
+0.209921 1
+0.701889 1
+0.246565 1
+0.441196 1
+0.727616 1
+0.269531 1
+0.249682 1
+0.994833 1
+0.942616 1
+1.091750 4
+0.534158 1
+0.805068 4
+0.762901 1
+1.517761 1
+0.403480 1
+0.115768 1
+0.231482 1
+0.877228 1
+0.540451 1
+0.231515 1
+0.221448 1
+0.652594 1
+0.236507 1
+0.472257 4
+0.618783 1
+0.185772 3
+2.660762 2
+0.000377 9
+0.000032 18
+0.000580 45
+3.398961 40
+0.328718 97
+0.463999 65
+0.966045 34
+1.043707 11
+0.010936 170
+0.001660 26
+0.000259 37
+12.183673 1
+0.209527 1
+0.167631 1
+0.147508 1
+1.279822 1
+1.070649 1
+0.419913 1
+0.857435 1
+2.326937 1
+0.833907 1
+0.821865 1
+1.115679 1
+0.249962 1
+2.122309 1
+1.026507 1
+0.156500 1
+0.261879 1
+0.180515 1
+0.119173 1
+2.417506 1
+6.925144 1
+0.442250 1
+2.341653 1
+0.664457 1
+0.233371 1
+0.180326 1
+0.177696 1
+0.240750 1
+1.072436 1
+0.943306 1
+0.489614 1
+0.212994 1
+0.196171 1
+0.234081 1
+0.250062 1
+1.230883 1
+0.392673 1
+0.193940 1
+0.839907 1
+0.235363 1
+0.472846 1
+0.308184 1
+0.274094 1
+1.955627 1
+1.016659 1
+0.179181 1
+0.293912 1
+0.158336 1
+0.136610 1
+0.174199 1
+2.337459 1
+2.127860 1
+0.276964 1
+0.296082 1
+2.061404 1
+0.523098 1
+0.436814 1
+0.119504 1
+0.280207 1
+1.381597 1
+0.929680 1
+0.263485 1
+1.264694 1
+0.852949 1
+0.124416 1
+0.205659 1
+0.426946 1
+1.017497 1
+0.222277 1
+0.205567 1
+0.249280 1
+0.913695 1
+0.875648 1
+1.383137 1
+0.775745 1
+0.852405 1
+1.280130 1
+0.589904 1
+0.345155 1
+0.181862 1
+0.265734 1
+4.517827 11
+0.172059 18
+0.000133 45
+2.242850 1
+0.147253 1
+0.083708 1
+0.169593 1
+0.081568 1
+0.208465 1
+0.204452 1
+2.356801 1
+0.248502 1
+0.208438 1
+0.208102 1
+0.233824 3
+1.542760 1
+0.166491 1
+0.373196 1
+0.251008 1
+0.284259 4
+1.759046 1
+0.209727 1
+0.437371 1
+0.399567 1
+0.189307 1
+0.123939 1
+2.583856 1
+0.963839 1
+0.374437 1
+1.413478 1
+0.633897 1
+0.562802 1
+0.576331 1
+0.201842 1
+0.258708 1
+0.521987 1
+0.873061 1
+0.419668 1
+0.160186 1
+0.218687 1
+1.101006 1
+2.223295 1
+0.205382 1
+0.502414 1
+0.693570 1
+0.294853 3
+2.341056 1
+0.206965 1
+0.265783 1
+5.569632 1
+0.300824 5
+1.407230 11
+0.426642 13
+0.001308 63
+3.663613 1
+0.160321 1
+0.100558 1
+0.182673 1
+0.121774 1
+0.198557 1
+0.179326 1
+1.759409 1
+0.416126 1
+0.299348 1
+0.160405 1
+0.202643 1
+0.286732 2
+0.875965 1
+0.202082 1
+0.040224 1
+0.199518 1
+0.872474 11
+0.011113 228
+0.000546 11
+0.001561 18
+0.000163 45
+2.145013 1
+0.220046 1
+0.199920 1
+0.081897 1
+0.260673 17
diff --git a/images/TCG-PCRs.png b/images/TCG-PCRs.png
new file mode 100644 (file)
index 0000000..6ff8a72
Binary files /dev/null and b/images/TCG-PCRs.png differ
diff --git a/images/bootprocess.dot b/images/bootprocess.dot
new file mode 100644 (file)
index 0000000..af1332e
--- /dev/null
@@ -0,0 +1,97 @@
+digraph booting {
+       
+       label="The Linux booting Process \n Boot Chain in EDK II"
+       labelloc="t";
+       fontsize=16;
+       layout=dot;     
+       // nodesep = 1;
+       newrank= true;
+       compound=true;
+       penwidth=3;
+       rankdir= LR;
+       showboxes=1
+       node [
+               shape = box,
+               ordering=out,
+               style = "setlinewidth(5)"
+       ]
+       edge [
+               arrowsize = 1,
+               style = "filled",
+               penwidth=5,
+       ]
+       
+       subgraph cluster_UEFI{
+                label="UEFI / EDK II";
+                node [style = "setlinewidth(5)"]
+                color=darkgreen;
+                style = "setlinewidth(5)";
+                subgraph cluster_SEC{
+                       labelloc="b";
+                       color=orange;
+                       style = "setlinewidth(5)";
+                       // graph [ranke=same];
+                       node [color=orange];
+                       edge [arrowsize=2, color= orange];
+                       label="SEC (Security) Phase";
+                       Power [label="Applying power \n to the system from \n an unpowered state"];
+                       TMS [label="Creating a \n Temporary Memory Store"];
+                       RTS [label="Serving As the \n  Root of Trust \n in the System"];
+                       HO [label="Handover to PEI"];
+                       {Power -> TMS -> RTS -> HO};
+                       }
+               PEI [label= "PEI \n (Pre-EFI Initialization) \n  Phase"];
+               DXE [label= "DXE \n (Driver Execution Environment) \n Phase",color=green];
+               BDS [label= "BDS \n (Boot Device Selection) \n Phase"]
+               TSL [label= "TSL \n (Transient System Load) \n Phase"]
+               RT [label= "RT \n (Runtime) \n Phase"];
+               }
+       subgraph cluster_grub{
+               node [style = "setlinewidth(5)", color=aqua];
+               labelloc="b"
+               labeljust="l"
+               color=aqua;
+               style = "setlinewidth(5)";
+               edge [arrowsize=2, color= aqua];
+               label="Grub2 \n Bootloader";
+               LLK [label="loading Linux kernel \n in vmlinu(x|z)"]
+               KLV [label="Linux Kernel Parameter", color=aqua ]
+               LIRFS [label="loading Initramfs \n to tmpfs"]
+               KLV -> LLK -> LIRFS;
+               }
+
+       subgraph cluster_Linux{
+                labelloc="b"
+                node [style = "setlinewidth(5)", color=blue];
+                edge [arrowsize=2, color= blue];
+                color=blue;
+                style = "setlinewidth(5)";
+                label ="Linux";
+                Kernel [label="Linux Kernel \n early boot"];
+                systemd [label="starts systemd PID1"]
+                dt [label="default.target starts services"]
+                dch [label = "decrypt hdd" ]
+                Kernel -> systemd -> dt ->dch; 
+                }
+       HO -> PEI -> DXE ->BDS ->TSL ->RT -> KLV
+       LIRFS -> Kernel
+
+       // {rank = same; Power tpms}
+       // {rank = same; pcrbs TMS}
+       // {rank = same; mCRTM RTS}
+       // {rank = same; MFV HO MSBP}
+       // {rank = same; Pacpi PEI}
+       // {rank = same; RT MOSL} //MOSK 
+       // {rank = same; DXE ITGCP}
+       //{rank = same; KLV HO}
+       {rank = same; Power KLV Kernel}
+       {rank = same; PEI TMS}
+       {rank = same; TSL RT}
+       // // {rank = same; MOSK HarddriveLUKS_key}
+       // {rank = same; dch -> HarddriveLUKS_key [dir=both]; }
+       // DXE -> MSBP [color=green];
+       // RT -> MOSK [dir=both];
+       // RTS -> tpms [color=orange];
+       // MFV -> RTS [color=orange];
+       // MOSL -> DXE [color=green];
+}
diff --git a/images/bootprocess.png b/images/bootprocess.png
new file mode 100644 (file)
index 0000000..b007a89
Binary files /dev/null and b/images/bootprocess.png differ
diff --git a/images/bootprocess_tpm.dot b/images/bootprocess_tpm.dot
new file mode 100644 (file)
index 0000000..9cd2e74
--- /dev/null
@@ -0,0 +1,140 @@
+digraph booting {
+       
+       label="The Linux booting Process \n Trusted Boot Chain in EDK II"
+       labelloc="t";
+       fontsize=16;
+       layout=dot;     
+       // nodesep = 1;
+       newrank= true;
+       compound=true;
+       penwidth=3;
+       rankdir= LR;
+       showboxes=1
+       node [
+               shape = box,
+               // style = "setlinewidth(5)"
+       ]
+       edge [
+               arrowsize = 1,
+               style = "filled",
+               penwidth=5,
+       ]
+       subgraph cluster_TPM {
+                label="TPM";
+                color= red;
+                penwidth = 7
+                //style = "setlinewidth(10)"
+                node [style = "setlinewidth(5)"]
+                
+                HarddriveLUKS_key;
+                
+                subgraph cluster_TPM_SEC {
+                       color=orange;
+                       edge [color= orange];
+                       node [style = "setlinewidth(5)", color=orange]
+                       penwidth=3;
+                       
+                       label="TPM in SEC";
+                       tpms [label="TPM startup"];
+                       pcrbs [label ="Sync PCR Banks"];
+                       mCRTM [label ="Measure CRTM"]; //CRTM = Core Root of Trust Maesurement
+                       MFV [label= "Measure FV"]; // FV = Firmware Volume
+                       tpms -> pcrbs -> mCRTM -> MFV;
+                       }
+               subgraph cluster_TPM_DXE {
+                       color=green;
+                       penwidth=3;
+                       style = "setlinewidth(5)";
+                       edge [arrowsize=2, color= green];
+                       node [style = "setlinewidth(5)", color=green]
+                       
+                       label="TPM in DXE"
+                       MSBP [label="Measure SecureBoot Policy"];
+                       Pacpi [label="Publish ACPI"];
+                       ITGCP [label="Install TCG2 Protocol"];
+                       MOROM [label="Measure Option ROM"];
+                       MBV [label="Measure Boot Variable"];
+                       MOSL [label="Measure OSLoader"];
+                       MSBP -> Pacpi -> ITGCP -> MOROM -> MBV -> MOSL;
+                       }
+               Subgraph cluster_OSLoader{
+                       color=mediumpurple;
+                       style = "setlinewidth(5)";
+                       penwidth=3;
+                       edge [arrowsize=2, color= mediumpurple];
+                       node [style = "setlinewidth(5)", color=mediumpurple]
+                       label="TPM in OS Loader"
+                       MOSK [label="Measure OS Kernel"]
+                       }
+               }
+
+       subgraph cluster_UEFI{
+                label="UEFI / EDK II";
+                node [style = "setlinewidth(5)"]
+                color=darkgreen;
+                style = "setlinewidth(5)";
+                subgraph cluster_SEC{
+                       labelloc="b";
+                       color=orange;
+                       style = "setlinewidth(5)";
+                       // graph [ranke=same];
+                       node [color=orange];
+                       edge [arrowsize=2, color= orange];
+                       label="SEC (Security) Phase";
+                       Power [label="Applying power \n to the system from \n an unpowered state"];
+                       TMS [label="Creating a \n Temporary Memory Store"];
+                       RTS [label="Serving As the \n  Root of Trust \n in the System"];
+                       HO [label="Handover to PEI"];
+                       {Power -> TMS -> RTS -> HO};
+                       }
+               PEI [label= "PEI \n (Pre-EFI Initialization) \n  Phase"];
+               DXE [label= "DXE \n (Driver Execution Environment) \n Phase",color=green];
+               BDS [label= "BDS \n (Boot Device Selection) \n Phase"]
+               TSL [label= "TSL \n (Transient System Load) \n Phase"]
+               RT [label= "RT \n (Runtime) \n Phase"];
+               }
+       subgraph cluster_grub{
+               node [style = "setlinewidth(5)", color=aqua];
+               labelloc="b"
+               color=aqua;
+               style = "setlinewidth(5)";
+               edge [arrowsize=2, color= aqua];
+               label="Grub2 \n Bootloader";
+               LLK [label="loading Linux kernel \n in vmlinu(x|z)"]
+               KLV [label="Linux Kernel Parameter", color=aqua ]
+               LIRFS [label="loading Initramfs \n to tmpfs"]
+               KLV -> LLK -> LIRFS;
+               }
+
+       subgraph cluster_Linux{
+                labelloc="b"
+                node [style = "setlinewidth(5)", color=blue];
+                edge [arrowsize=2, color= blue];
+                color=blue;
+                style = "setlinewidth(5)";
+                label ="Linux";
+                Kernel [label="Linux Kernel \n early boot"];
+                systemd [label="starts systemd PID1"]
+                dt [label="default.target starts services"]
+                dch [label = "decrypt hdd" ]
+                Kernel -> systemd -> dt ->dch; 
+                }
+       HO -> PEI -> DXE ->BDS ->TSL ->RT -> KLV
+       LIRFS -> Kernel
+
+       {rank = same; Power tpms}
+       {rank = same; pcrbs TMS}
+       {rank = same; mCRTM RTS}
+       {rank = same; MFV HO MSBP}
+       {rank = same; Pacpi PEI}
+       {rank = same; RT MOSL} //MOSK 
+       {rank = same; DXE ITGCP}
+       {rank = same; KLV HO}
+       // {rank = same; MOSK HarddriveLUKS_key}
+       {rank = same; dch -> HarddriveLUKS_key [dir=both]; }
+       DXE -> MSBP [color=green];
+       RT -> MOSK [dir=both];
+       RTS -> tpms [color=orange];
+       MFV -> RTS [color=orange];
+       MOSL -> DXE [color=green];
+}
diff --git a/images/bootprocess_tpm.png b/images/bootprocess_tpm.png
new file mode 100644 (file)
index 0000000..32a1141
Binary files /dev/null and b/images/bootprocess_tpm.png differ
diff --git a/images/tpm2-software-stack.dot b/images/tpm2-software-stack.dot
new file mode 100644 (file)
index 0000000..a582cac
--- /dev/null
@@ -0,0 +1,39 @@
+
+digraph TPMtss {
+       graph [center=true rankdir=BT]
+       node [shape=box style = filled ]; 
+       label = "TPM2 Software Stack"
+       labelloc="t"
+       edge [arrowhead=open]
+
+    TPM [label="TPM2.0 Hardware" fillcolor = white]
+       Linux [label="Linux" fillcolor = green]
+    KernelDevice [label= "Kernel Driver: /dev/tpm0" fillcolor = green]
+    Uefi [label="UEFI" color = green]
+    rm [label="Kernel Resource Manager: /dev/tpmrm0" fillcolor = deeppink]
+    TCTIDevice [label="Device TCTI: tpm2-tss: tcti-device" fillcolor = cyan]
+    UserRM [label="Userspace Resource Manager: tpm2-abrmd" fillcolor = deeppink]
+    TSS [label="TSS:tpm2-tss" fillcolor = deepskyblue]
+    UefiTC [label="UEFI TCTI: tpm2-tcti-uefi" fillcolor = cyan]
+    UsRM [label="Userspace Resouce Manager TCTI: tpm2-abrmd: tcti-tabrmd" fillcolor = cyan]
+    OSSL [label="OpenSSL Engine: tpm2-tss-engine" fillcolor = orange]
+    DtH [label="Device to Human attestation: tpm2-totp" fillcolor = gold]
+    Tools [label="Command Line Tools: tpm2-tools" fillcolor = gold]
+    Swig [label="SWIG Interfaces: tpm2-swig" fillcolor = orange]
+    Python [label="TSS Python Bindings: tpm2-pytss"]
+    PKCS [label="PKCS#11 Interface: tpm2-pkcs11"]
+    
+    TPM -> {Linux Uefi};
+    Linux -> {KernelDevice rm};
+    {KernelDevice rm} -> TCTIDevice;
+       TCTIDevice -> UserRM;
+       UserRM -> UsRM;
+       Uefi -> UefiTC;
+    {UefiTC TCTIDevice UsRM} -> TSS;
+    TSS -> {OSSL DtH Tools Swig PKCS};
+    Python -> PKCS;
+    Swig -> Python;
+
+       {rank = same; UserRM; PKCS;}
+       {rank = same; TSS; Python;}
+    }
diff --git a/images/tpm2-software-stack.png b/images/tpm2-software-stack.png
new file mode 100644 (file)
index 0000000..341dd2a
Binary files /dev/null and b/images/tpm2-software-stack.png differ
diff --git a/tpm_and_luks-handout.pdf b/tpm_and_luks-handout.pdf
new file mode 100644 (file)
index 0000000..de2e4a8
Binary files /dev/null and b/tpm_and_luks-handout.pdf differ
diff --git a/tpm_and_luks-presentation.pdf b/tpm_and_luks-presentation.pdf
new file mode 100644 (file)
index 0000000..203f6d2
Binary files /dev/null and b/tpm_and_luks-presentation.pdf differ
diff --git a/tpm_and_luks.tex b/tpm_and_luks.tex
new file mode 100644 (file)
index 0000000..8537f6f
--- /dev/null
@@ -0,0 +1,748 @@
+\documentclass[aspectratio=169]{beamer}
+\usepackage{beamerthemeBuecherrattenTheme}
+\usepackage[table]{xcolor}
+
+\usemintedstyle[output]{bw}
+
+\title[TPM \& LUKS]{Zusammenspiel von LUKS und TPM 2.0 unter Linux}
+% \subtitle{}
+\author{Bücherratten}
+\institute[GPN23]{23. Gulaschprogrammiernacht}
+
+\begin{document}
+
+\begin{frame}[plain]
+    \titlepage
+\end{frame}
+
+\begin{frame}
+  \frametitle{Disclaimer}
+  \begin{itemize}
+  \item{unvollständiger und interaktiver Vortrag}
+  \item{Ziel: Idee davon wie der TPM in Zusammenhang mit Festplattenverschlüsselung uter Linux genutzt werden kann und welche Fallstricke es zu beachten gibt.}
+  \item{nur TPM 2.0}
+  \item{beschränkt sich auf TPM im Zusammenhang mit LUKS}
+  \item{beschreibt den praktischen Einsatz des TPM}
+  \item{alle Beispiel Commands brauchen root-Rechte}
+  \item{Annahme über Zuhörende Menschen:}
+  \begin{itemize}
+    \item{fortgeschrittene Linux User}
+    \item{schon ein paar mal mit der CLI die Festplatte verschlüsselt}
+    \item{Basis-Wissen IT-Security vorhanden}
+  \end{itemize}
+  \end{itemize}
+  \note{Begriff TPM meint TPM 2.0}
+  \end{frame}
+
+\begin{frame}[plain]
+\frametitle<presentation>{Inhaltsverzeichnis}
+\tableofcontents[hideothersubsections] 
+\end{frame}
+
+\subsection{whoami}
+\begin{frame}
+  \frametitle{whoami}
+  \begin{itemize}
+  \item{Bücherratten /Susanne }
+  \item{41 Jahre}
+  \item{Pronomen: ihr dürft euch das aussuchen}
+  \item{Berufsbezeichnung: Fachinformatikerin für Systemintegration}
+  \item{Berufliches Themenfeld: Linux Client Management}
+  \item{Linuxerin seit Kernel 2.6.24 (2009)}
+  \item{Zugehörigkeiten zu: Haecksen, BeLUG, FSFE, Die Linke}
+  \end{itemize}
+   URL zu Folien und Handout:
+  \vspace{0.2cm}
+  \begin{columns}
+    \only<beamer>{\begin{column}{0.2\textwidth}
+      \qrcode[hyperlink,height=1.5cm]{http://git.tuxteam.de/gitweb/?p=susannes-git/TPM-LUKS.git;a=shortlog;h=refs/heads/main}
+    \end{column}}
+    \begin{column}{0.8\textwidth}
+      \url{http://git.tuxteam.de/gitweb/?p=susannes-git/TPM-LUKS;a=shortlog;h=refs/heads/main}
+    \end{column}
+    \end{columns}
+\end{frame}
+
+\section{Was ist ein TPM?}
+
+\begin{frame}
+  \frametitle{Was ist der mysteriöse TPM?}
+  \note[item]{TPM-Chip hat fast jeder im Gerät}
+  \begin{itemize}
+    \item{TPM = Trusted Platform Module, spezifiziert von der Trusted Computing Group (TGC)}
+    \item{kann kryptographische Keys sicher verwalten}
+    \item{Measured Boot, Certificate Signing Requests, Random Number Generator, Sealing Data, TSL connections with TPM-keys \dots}
+    \pause
+    \item{kompliziert aufgebaut:}
+      \begin{description}
+        \item[plattform] System Hersteller Bereich des TPMs
+        \item[endorsement] TPM Hersteller Bereich und Privacy OWNER (Organisations-Kontrolle), Default Policies
+        \item[\color<2>{amber-yellow}{storage}] Hier können User ihre Keys und Objekte ablegen
+        \item[no hierachy / null] Überlebt keinen Boot, berechnet Zufall, nur für temporäre Keys
+      \end{description} 
+  \end{itemize}
+  \note<1>[item]{Trusted Computing Group ISO/IEC 11889 }
+  \note<1>[item]{Entwickler fluchen}
+  \note<1>[item]{nvram Größe bis 112kB}
+  \note<1>[item]{kein Extrahieren von Keys aus dem TPM (theoretisch)}
+  \note<2>[item]{4 APIs $=>$ hohe Komplexität}
+  \note<2>[item]{sealing = versiegeln}
+\end{frame}
+
+\begin{frame}
+\frametitle{TPM-TSS}
+\includegraphics[height=0.8\paperheight]{tpm2-software-stack.png}
+\note[item]{keine Notwendigkeit zu verstehen und lesen, ist nur Beispiel für Komplexität. Simulation ist bereits entfernt}
+\note[item]{TPM-TSS = OSS implementation of the TCG TPM2 Software Stack}
+\end{frame}
+
+\section{Der TPM im Linux Boot-Prozess}
+\begin{frame}
+  \frametitle{Linux Boot-Prozess}
+\includegraphics[width=0.9\paperwidth]{bootprocess.png}
+\note{Der normale Boot-Prozess mit UEFI bis zur Festplatten-Entschlüsselung}
+\note<beamer>{\\SEC $->$ PEI $->$ DXE $->$ BDS $->$ TSL $->$ RT $->$ Grub $->$ Linux }
+\end{frame}
+
+\begin{frame}
+  \frametitle{TPM im Linux Boot-Prozess}
+\includegraphics[width=0.9\paperwidth]{bootprocess_tpm.png}
+\note{mit dem TPM im Boot-Prozess sieht das Bild gleich komplexer aus. Hier wird der TPM initialisiert und ein paar Werte ermittelt \dots inwieweit die auch geprüft werden und welche Einstellungen dafür im UEFI notwendig sind ist ein eigenes Rabbithole}
+\end{frame}
+
+\begin{frame}
+\frametitle{Vorteile des TPM unter Linux}
+\begin{itemize}
+\item{Festplatte kann mit dem TPM automatisch entschlüsselt werden}
+\item{TPM kann Passphrase für LUKS ersetzen}
+\item{Entschlüsselung kann gesperrt werden}
+\item{Kernel, initrd und der Bootprozess können auf Änderungen überwacht werden}
+\item{der TPM kann nun auch unter Linux genutzt werden, weitere Features sind in aktiver Entwicklung}
+\end{itemize}
+\end{frame}
+
+\section{da-lockout}
+
+\begin{frame}[fragile]
+\frametitle{da-lockout}
+\note[item]{ zu viele Anfragen an TPM = Dictionary Attack}
+\note[item]{Verhinderung DA $->$ \texttt{da-lockout} sperrt Zugriff auf TPM}
+\begin{center}
+\begin{minipage}{0.5\textwidth}
+\begin{minted}[fontsize=\small,escapeinside=||,highlightlines={8}]{console}
+tpm2 getcap properties-variables
+
+TPM2_PT_PERMANENT:
+  ownerAuthSet:              0
+  endorsementAuthSet:        0
+  lockoutAuthSet:            0
+  reserved1:                 0
+  disableClear:              0
+  inLockout:                 1
+  tpmGeneratedEPS:           1
+|\dots|
+TPM2_PT_LOCKOUT_COUNTER: 0x0
+TPM2_PT_MAX_AUTH_FAIL: 0x3
+TPM2_PT_LOCKOUT_INTERVAL: 0x3E8
+TPM2_PT_LOCKOUT_RECOVERY: 0x3E8
+|\dots|
+\end{minted}
+\end{minipage}
+\end{center}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{\texttt{da-lockout} aufheben}
+\vspace{-0.4cm}
+\begin{listing}
+\begin{minted}{console}
+tpm2_dictionarylockout --clear-lockout
+\end{minted}
+\caption{da-lockout zurück setzen}
+\end{listing}
+\begin{listing}
+\begin{minted}{bash}
+tpm2_dictionarylockout --setup-parameters --max-tries=5
+\end{minted}
+\caption{DA Versuchsanzahl erhöhen}
+\end{listing}
+\begin{listing}
+\begin{minted}{bash}
+echo 5 > /sys/class/tpm/tpm0/ppi/request
+\end{minted}
+\caption{gesamten TPM beim nächsten Systemstart zurücksetzen}
+\end{listing}
+\end{frame}
+
+\section{LUKS \& TPM}
+\subsection{systemd-cryptenroll}
+\begin{frame}[fragile]
+\frametitle{Entschlüsselung an den TPM binden}
+\begin{listing}
+\begin{minted}[escapeinside=||]{console}
+systemd-cryptenroll --tpm2-device=auto --unlock-tpm2-device=auto /dev/vda3  
+|🔐| New TPM2 token enrolled as key slot 2.
+\end{minted}
+\caption{TPM in Keyslot des LUKS headers eintragen}
+\end{listing}
+\begin{listing}
+\begin{minted}{console}
+systemd-cryptenroll /dev/vda3
+SLOT TYPE    
+   0 password
+   1 tpm2
+\end{minted}
+\caption{check LUKS Keyslots}
+\end{listing}
+\end{frame}
+
+\section{PCR}
+
+\begin{frame}[fragile]
+\frametitle{TPM und PCR}
+\begin{minipage}[t]{0.48\linewidth}
+\vspace{-0.5cm}
+\begin{minted}[breaklines,fontsize=\small,breakanywhere,escapeinside=||]{console}
+cryptsetup luksDump /dev/vda3
+|\dots|
+Keyslots:
+ 0: luks2
+  Key:        512 bits
+  Priority:   normal
+  Cipher:     aes-xts-plain64
+  Cipher key: 512 bits
+  PBKDF:      argon2id
+  |\dots|
+ 1: luks2
+  Key:        512 bits
+  |   \dots|
+\end{minted}
+\end{minipage}
+\hfill
+\begin{minipage}[t]{0.49\linewidth}
+\vspace{-0.5cm}
+\begin{minted}[breaklines,fontsize=\small,breakanywhere,escapeinside=||,highlightlines={16},firstnumber=last]{console}
+Tokens:
+ 0: systemd-tpm2
+  tpm2-hash-pcrs:   7
+  tpm2-pcr-bank:    sha256
+  tpm2-pubkey: (null)
+  tpm2-pubkey-pcrs: 
+  tpm2-primary-alg: ecc
+  tpm2-blob:        00 9e 00 |\dots|
+  tpm2-policy-hash:
+              92 93 3c ab 6a |\dots|
+  tpm2-pin:         false
+  tpm2-pcrlock:     false
+  tpm2-salt:        false
+  tpm2-srk:         true
+  Keyslot:    3
+\end{minted}
+\end{minipage}
+\note[item]{\textbf{Vorsicht} hier ist nicht sichtbar die Entschlüsselung an den PCR 7 gebunden.}
+\end{frame}
+
+\begin{frame}
+  \frametitle{Was sind PCRs?}
+  \begin{itemize}
+  \item{PCR = Platform Configuration Register}
+  \item{Prüfsummen in SHA1 oder SHA256}
+  \item{Prüfsummen bezogen auf secure-boot-policy, kernel-initrd, kernel-boot, kernel-config, \dots }
+  \item{kann Integrität sicherstellen}
+  \end{itemize}
+\note[item]{Prüfsummen im PCR des TPMs müssen aktualisiert werden}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{PCR -- Übersicht}
+\begin{minted}[breaklines,fontsize=\scriptsize,breakanywhere,escapeinside=||,highlightlines={10}]{console}
+systemd-analyze pcrs
+NR NAME                SHA256                                                          
+ 0 platform-code       ca6ab406b4170eec76a2287f09339e34a210fd6a38cf4ea42355432b3a78dd31
+ 1 platform-config     490dc25d09a9e20fdd671d98af99d0138f7d9d6c11f1879b3887024faeec7f1d
+ 2 external-code       0c086a8ba21bf3cbeee845770a92c2131a00e79a981b035cb65407e97f5a870c
+ 3 external-config     3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969
+ 4 boot-loader-code    19e72b4ec91a9cd14752fb76dd2b83e0f2c66234f7e58ff6ece246b37f530c09
+ 5 boot-loader-config  aae0bc424acadf90dc4718a9a25ca831574e47a2785cf84b51fb4c3f5b45a7b6
+ 6 host-platform       3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969
+ 7 secure-boot-policy  b926225ac488e9c50ef2fa815aa7104b385a06907093bfb1dc62eeb7abecddf1
+ 8 -                   9f4407cf39aaf941e109c933dca9e79c574f0d664a92379c466e4e11bcc70b9b
+ 9 kernel-initrd       4af80b2bde6a44b4059d6d1f70e9d7c7f26a1921395cf4be435c7eab655f9f35
+10 ima                 168d6c16852e87cc8fdcb037cf911f704f1db2a6b687a62c4d2031d1012a5532
+11 kernel-boot         0000000000000000000000000000000000000000000000000000000000000000
+12 kernel-config       0000000000000000000000000000000000000000000000000000000000000000
+13 sysexts             0000000000000000000000000000000000000000000000000000000000000000
+14 shim-policy         17cdefd9548f4383b67a37a901673bf3c8ded6f619d36c8007562de1d93c81cc
+15 system-identity     0000000000000000000000000000000000000000000000000000000000000000
+16 debug               0000000000000000000000000000000000000000000000000000000000000000
+|\dots|
+23 application-support 0000000000000000000000000000000000000000000000000000000000000000
+\end{minted}
+\note[item]{die Prüfsumme durch ein Update der Firmware verändern?} 
+\note[item]{kommt nie vor: Update der Secure-Boot Zertifikate? shim-signed}
+\note[item]{\dots dann stimmt die Prüfsumme nicht mehr.}
+\end{frame}
+
+\begin{frame}
+  \frametitle{PCRs im UEFI Mapping}
+  \centering
+    \includegraphics[height=0.8\paperheight]{TCG-PCRs.png}
+\end{frame}
+
+\begin{frame}
+  \frametitle{PCR Slots und ihre Bedeutung I} 
+  \scriptsize{%
+\begin{tabular}{c||c|p{1.5cm}|p{5.5cm}|p{3cm}}
+    PCR & manpage-name & Used by & Measured Objects & changed by \\ 
+\hline\hline \rowcolor{gold}
+    0 & platform-code & UEFI-boot & SRTM, BIOS, Host Platform Extensions, Embedded Option ROMs and PI Drivers & firmware updates\\ 
+\hline \rowcolor{gold}
+    1 & platform-config & UEFI-boot & Core system firmware data/host platform configuration; typically contains serial and model numbers & basic hardware/ CPU/ RAM replacements \\ 
+\hline \rowcolor{gold}
+    2 & external-code & UEFI-boot & UEFI driver, application Code & pluggable hardware \\
+\hline \rowcolor{gold}
+    3 & external-config & UEFI-boot & UEFI driver, application Configuration, Data & pluggable hardware \\
+\hline \rowcolor{gold}
+    4 & boot-loader-code & UEFI-boot/ Bootloader  & UEFI Boot Manager Code (usually the MBR) and Boot Attempts & bootloader updates \\
+\hline \rowcolor{gold}
+    5 & boot-loader-config & UEFI-boot/ Bootloader & Boot Manager Code Configuration, Data (for use by the Boot Manager Code), GPT/Partition Table & GPT/Partition Table updates\\
+\hline \rowcolor{gold}
+    6 & & & Host Platform Manufacturer Specific & \\
+\hline \rowcolor{gold}
+    7 & secure-boot-policy & UEFI-boot & SecureBoot state & Secure-Boot, -Certificates updates \\
+\hline \rowcolor{blau}
+    8 & grub & UEFI-boot/ Bootloader & Commands and kernel command line & Kernel commandline \\
+\hline \rowcolor{blau}
+    9 & kernel-initrd & grub/Kernel & All files in initrd (including kernel image) & changes or updates initrd-file \\
+\hline
+\end{tabular}}
+\note[item]{die ersten 7 PCRs betreffen UEFI}
+\note[item]{8 \& 9 betreffen Grub}
+\note[item]{ist für später zum Nachschlagen}
+\end{frame}
+
+\begin{frame}
+  \frametitle{PCR Slots und ihre Bedeutung II} 
+  \scriptsize{%
+\begin{tabular}{c||p{1.5cm}|p{1.8cm}|p{6cm}|p{3cm}}
+    PCR & manpage-name & Used by & Measured Objects & changed by \\ 
+\hline\hline 
+    10 & ima & IMA & Integrity Measurement Architecture of the Linux Kernel \& runtime state of IMA Project & IMA runtime state \\
+\hline
+    11 & kernel-boot & systemd-stub/ systemd-pcrphase & All components of unified kernel images (UKIs), Boot phase strings & UKI image changes and boot-process \\
+\hline
+    12 & kernel-config & systemd-stub & Kernel command line, system credentials, system configuration images & Kernelcommands, system-credentials, system configuration \\
+\hline
+    13 & sysexts & systemd-stub & All system extension images for the initrd & initrd system extension updates \\
+\hline
+    14 & shim-policy & shim & “MOK” certificates and hashes & Secure-Boot-Certificates updates \\
+\hline
+    15 & system-identity &\tiny{systemd-cryptsetup\-@.service/ systemd-pcrmachine.\-service/ systemd-pcrfs@.service} & Root file system volume encryption key/ Machine ID/ File system mount point, UUID, label, partition UUID label of root file system and /var/ & LUKS key changes/ machine-id/ file system and mountpoint updates\\
+\hline
+    16 & debug & & & \\
+\hline
+    23 & application-support & & & \\
+\end{tabular}}
+\note[item]{$>$ 9 betreffen Linux}
+\note[item]{keinen PCR empfehlen}
+\note[item]{manpage nicht ausreichend, um Anwendung und Änderung zu verstehen}
+\end{frame}
+
+\begin{frame}[fragile, allowframebreaks]
+\frametitle{Lösungen für verwendete PCRs}
+\vspace{-0.5cm}
+\begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 --wipe-slot=2 --unlock-tpm2-device=auto /dev/vda3
+    \end{minted}
+    \caption{PCR 7 updaten}
+\end{listing}
+\vspace{-0.5cm}
+\begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs='' --wipe-slot=2 --unlock-tpm2-device=auto /dev/vda3
+  \end{minted}
+  \caption{keine PCRs verwenden}
+  \end{listing}
+\vspace{-0.5cm}
+  \begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=17,18 --wipe-slot=2 --unlock-tpm2-device=auto /dev/vda3
+  \end{minted}
+  \caption{andere PCRs verwenden}
+  \end{listing}
+\vspace{-0.5cm}
+\note[item]{es können auch selbst PCR-Werte festgelegt werden}
+  \begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --tpm2-device=auto --tpm2-with-pin=yes --wipe-slot=2 --unlock-tpm2-device=auto /dev/vda3
+  \end{minted}
+  \caption{keine PCRs verwenden und stattdessen eine TPM-Pin:}
+\end{listing}
+\vspace{-0.5cm}
+\begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --recovery-key --unlock-tpm2-device=auto /dev/vda3 
+  \end{minted}
+\caption{zusätzlichen Recovery-Key:}
+\end{listing}
+\vspace{-0.5cm}
+\begin{listing}
+  \begin{minted}{bash}
+systemd-cryptenroll --password --unlock-tpm2-device=auto /dev/vda3
+  \end{minted}
+\caption{zusätzlich Passwörter zum Entschlüsseln verwenden:}
+\end{listing}
+\end{frame}
+
+\section{TPM und Systemd-creds}
+
+\begin{frame}[fragile]
+\frametitle{Auszug aus Manpage zu systemd-cryptenroll}
+\begin{minted}[escapeinside=||,breaklines,highlightlines={5,9},fontsize=\small,breakanywhere]{output}
+|\dots|
+CREDENTIALS
+       systemd-cryptenroll supports the service credentials logic as implemented by ImportCredential=/LoadCredential=/SetCredential= (see systemd.exec(5) for details). The following credentials are used when passed in:
+
+       cryptenroll.passphrase, cryptenroll.new-passphrase
+           |\colorbox{inlineheighlight}{May contain}| the passphrase to unlock the volume with/to newly enroll.
+           Added in version 256.
+
+       cryptenroll.tpm2-pin, cryptenroll.new-tpm2-pin
+           |\colorbox{inlineheighlight}{May contain}| the TPM2 PIN to unlock the volume with/to newly enroll.
+           Added in version 256.
+|\dots|
+\end{minted}
+\note{Wunsch Idee des Kollegen, wir können prüfen ob User ihre TPM-Pin geändert haben}
+\end{frame}
+
+\setbeamercovered{invisible}
+\begin{frame}
+\frametitle{Welcher Befehlstyp verbirgt sich hinter \mintinline{bash}{cryptenroll.tpm2-pin}?}
+\framesubtitle{Rätselraten}
+\begin{description}
+\item[A] \textcolor<2>{red}{Eine Variable} \onslide<2->{\textcolor{red}{X}}
+\item[B] \textcolor<2>{gruen}{Ein Credential} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[C] \textcolor<2>{red}{Ein bash-Befehl} \onslide<2->{\textcolor{red}{X}}
+\item[D] \textcolor<2>{red}{systemd-Directive} \onslide<2->{\textcolor{red}{X}}
+\item[E] \textcolor<2>{red}{Eine Umgebungsvariable} \onslide<2->{\textcolor{red}{X}}
+\item[F] \textcolor<2>{red}{Eine Variable von systemd-creds} \onslide<2->{\textcolor{red}{X}}
+\item[G] \textcolor<2>{gruen}{Ersatz für die Variable TPM2-PIN} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[H] \textcolor<2>{gruen}{Ein Credential das innerhalb einer Systemd-Unit verwendet werden kann} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\end{description}
+\end{frame}
+\setbeamercovered{transparent}
+
+\begin{frame}[fragile]
+\frametitle{Was ist systemd-creds?}
+\begin{minted}[escapeinside=||,breaklines,fontsize=\small,breakanywhere]{output}
+DESCRIPTION
+       systemd-creds is a tool for |\colorbox{inlineheighlight}{listing, showing, encrypting and decrypting unit credentials}|. Credentials are limited-size binary or textual objects that may be passed to unit processes. They are primarily used for passing cryptographic keys (both public and private) or certificates, user account information or identity information from the host to services.
+
+       |\colorbox{inlineheighlight}{Credentials are configured in unit files}| via the ImportCredential=, LoadCredential=, SetCredential=, LoadCredentialEncrypted=, and SetCredentialEncrypted= settings, see systemd.exec(5) for details.
+\end{minted}
+Optionen sind list, cat, encrypt, decrypt, user, system
+\end{frame}
+
+\setbeamercovered{invisible}
+
+\begin{frame}
+\frametitle{Was macht die Option \texttt{list} bei systemd-creds?}
+\framesubtitle{Rätselraten}
+\begin{description}
+\item[A] \textcolor<2>{red}{Listet den Inhalt des aktuellen Verzeichnisses auf} \onslide<2->{\textcolor{red}{X}}
+\item[B] \textcolor<2>{red}{Listet alle bekannten Credentials auf} \onslide<2->{\textcolor{red}{X}}
+\item[C] \textcolor<2>{gruen}{Listet alle Dateien des Verzeichnisses der Umgebungsvariable \$CREDENTIALS\_DIRECTORY auf} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[D] \textcolor<2>{red}{gibt die Stärke der vorhandenen Credentials aus} \onslide<2->{\textcolor{red}{X}}
+\item[E] \textcolor<2>{gruen}{gibt die Sicherheitsstärke der vorhandenen Credential Dateien je nach Speicherort aus} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[F] \textcolor<2>{red}{macht gar nichts} \onslide<2->{\textcolor{red}{X}}
+\item[G] \textcolor<2>{gruen}{macht nichts weil \$CREDENTIALS\_DIRECTORY nicht gesetzt ist} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\end{description}
+\note<2>{zeigen...}
+\end{frame}
+
+\setbeamercovered{transparent}
+
+\begin{frame}
+\frametitle{Was macht die Option \texttt{list} bei systemd-creds? -- Demo}
+\center{\LARGE{DEMO}}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Was macht die Option \texttt{list} bei systemd-creds? -- manpage}
+\begin{minted}[escapeinside=||,breaklines,fontsize=\small,breakanywhere]{output}
+  list
+           Show a list of credentials |\colorbox{inlineheighlight}{passed into the current execution context}|. This command shows the |\colorbox{inlineheighlight}{files in the directory}| referenced by the |\colorbox{inlineheighlight}{\$CREDENTIALS\_DIRECTORY environment variable}|, and is |\colorbox{inlineheighlight}{intended to be executed from within service context}|.
+           Along with each credential name, the size and security state is shown. The latter is one of |\colorbox{inlineheighlight}{"secure"}| (in case the credential is backed by |\colorbox{inlineheighlight}{unswappable memory}|, i.e.  "ramfs"), |\colorbox{inlineheighlight}{"weak"}| (in case it is backed by any |\colorbox{inlineheighlight}{other type of memory)}|, or  |\colorbox{inlineheighlight}{"insecure"}| (if having any |\colorbox{inlineheighlight}{access mode that is not 0400}|, i.e. if readable by anyone but the owner).
+           Added in version 250.
+\end{minted}
+\note{Note to my inner self: "Manpage lesen hilft gegen Frustration"}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{systemd-cred in Zusammenhang mit TPM -- Fehler}
+\begin{listing}
+\begin{minted}{bash}
+echo -n test | systemd-creds encrypt --name=cryptenroll.passphrase - luks.pass.cred 
+\end{minted}
+\vspace{-0.2cm}
+\caption{Dateiname und Credentialname müssen gleich sein - aber keine Fehlermeldung}
+\end{listing}
+\vspace{-0.1cm}
+\begin{listing}
+\begin{minted}{console}
+systemd-run -p LoadCredential=cryptenroll.passphrase:/root/cryptenroll.passphrase \
+            -p SetCredential=cryptenroll.new-tpm2-pin:4321\
+            --unit=systemd-cryptsetup@root.service \
+            --wait systemd-cryptenroll \
+            --tpm2-device=auto \
+            --tpm2-with-pin=yes /dev/vda3 
+systemd-cryptsetup@root.service: Failed to set up credentials: Protocol error
+\end{minted}
+\vspace{-0.2cm}
+\caption{Versuch die Systemd-Creds mit der Unit zusammen zu nutzen}
+\end{listing}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{systemd-cred in Zusammenhang mit TPM}
+\begin{listing}
+\begin{minted}{bash}
+systemd-creds setup
+echo -n GPN23 | systemd-creds --system encrypt --name=cryptsetup.tpm2-pin - cryptsetup.tpm2-pin
+systemd-creds decrypt --name=cryptsetup.tpm2-pin --system cryptsetup.tpm2-pin 
+\end{minted}
+\caption{systemd-creds init und encrypt sowie decrypt}
+\end{listing}
+\begin{listing}
+\begin{minted}{bash}
+systemd-run -p SetCredential=cryptenroll.passphrase:test -p SetCredential=cryptenroll.new-tpm2-pin:4321 systemd-cryptenroll --tpm2-device=auto --tpm2-with-pin=yes /dev/vda3
+\end{minted}
+\caption{Setzt mit systemd-creds definierte Passphrase}
+\end{listing}
+\note{Mit verschlüsselten Passphrases noch nicht erfolgreich\\}
+\note<beamer>{Wir wissen etwas über den TPM im Bootprocess, wie wir damit die Festplatte ver/entschlüsseln können, was es mit PCRs auf sich hat \dots fehlt noch die restliche Konfiguration}
+\end{frame}
+
+\section{Konfiguration in System}
+\begin{frame}[fragile]
+  \frametitle{initramfs modifizieren}
+  \begin{itemize}
+  \item{dracut}
+    \begin{listing}
+      \begin{minted}{linux-config}
+# Wichtig: Leerzeichen nach und vor den Anführungsstrichen!
+add_dracutmodules+=" tpm2-tss crypt "
+      \end{minted}
+      \caption{\texttt{/etc/dracut.conf.d/tpm2-tss.conf} anlegen}
+    \end{listing}
+  \item{initramfstools}
+    \begin{listing}
+      \begin{minted}{linux-config}
+rng_core 
+tpm
+tpm_tis_core
+tpm_tis
+      \end{minted}
+      \caption{\texttt{/etc/initramfs-tools/modules} erweitern}
+    \end{listing}
+  \item{initramfs bauen}
+    \begin{itemize}
+      \item{\mintinline{bash}{dracut -f}}
+      \item{\mintinline{bash}{update-initramfs -u}}
+    \end{itemize}
+  \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Grub}
+  \begin{itemize}
+    \item{Kernel-Optionen in Grub:}
+       Datei \texttt{/etc/default/grub}: \texttt{GRUB\_CMDLINE} anpassen
+      \begin{listing}
+        \begin{minted}{linux-config}
+GRUB_CMDLINE_LINUX="rd.auto rd.luks=1 rd.luks.options=tpm2-device=auto"
+        \end{minted}
+        \caption{nur TPM}
+      \end{listing}
+      \begin{listing}
+        \begin{minted}{linux-config}
+GRUB_CMDLINE_LINUX="rd.auto rd.luks=1 rd.luks.options=tpm2-device=auto,tpm2-pin=yes"
+        \end{minted}
+        \caption{TPM mit PIN}
+    \end{listing}
+    \item{Grub updaten}
+      \begin{minted}{console}
+update-grub # Debian
+grub2-mkconfig -o /boot/grub2/grub.cfg # fedora
+  \end{minted}
+  \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Konfiguration in der Crypttab}
+\texttt{/etc/crypttab}
+\begin{itemize}
+  \item{systemd-Version $<$ 255}
+    \note[item]{systemd-Version $<$ 255: Zeile auskommentieren, damit systemd das LUKS nicht nochmal entschlüssen will}
+    \begin{minted}{linux-config}
+#dm_crypt-0 UUID=ede52a15-f515-4fed-838d-5433999f3f24 none luks
+    \end{minted}
+  \item{systemd-Version $>$ 256}
+    \note[item]{systemd-Version $>$ 256: nicht auskommentieren, sondern erweitern:}
+    \begin{minted}{linux-config}
+dm_crypt-0 UUID=ede52a15-f515-4fed-838d-5433999f3f24 none discard,tpm2-device=auto,tpm2-pin=yes  
+    \end{minted}    
+\end{itemize}
+\end{frame}
+
+\section{Unterschiede bei den Distributionen}
+\begin{frame}
+\frametitle{Welche Unterschiede bezüglich des TPMs gibt es bei Distributionen?}
+\begin{itemize}
+  \item{unterschiedliche Tools für initramfs}
+  \begin{itemize}
+    \item{Dracut}
+    \note[item]{Dracut: Fedora, OpenSuse}
+    \item{Initramfstools}
+    \note[item]{initramfstools: Debian, Ubuntu, Archlinux}
+    \note[item]{Dracut ist einfacher zu konfigurieren, daher wechseln gerade viele von initramfstools zu dracut}
+  \end{itemize}
+  \item{unterschiedliche Versionen von systemd}
+\note[item]{systemd Version hat massive Auswirkungen auf tpm/luks Möglichkeiten}
+  \item{verschiedene Bootloader}
+  \item{unterschiedliche TPM-Bibliotheken}
+  \begin{description}
+    \item[ibmtss2] IBM
+    \item[tpm2-tss] Intel
+  \end{description}
+  \note[item]{überwiegend wird die von Intel benutzt}
+  \end{itemize}
+\end{frame}
+
+\setbeamercovered{invisible}
+\section{Debugging}
+\begin{frame}[fragile]
+\frametitle{Debugging mit dem TPM I}
+\framesubtitle{Rätselraten}
+\textbf{Folgende journald Meldung ist durch einen Konfigurationsfehler verursacht}
+\note<beamer>[item]{Bitte um Handzeichen}
+\begin{minted}{linux-config}
+localhost kernel: Unknown kernel command line parameters "splash BOOT_IMAGE=/vmlinuz-6.8.0-49-generic tpm2-pin=yes", will be passed to user space.
+\end{minted}
+\only<2>{\textcolor{red}{X}}
+\note[item]{der Kernel kann mit den TPM Einstellungen nichts anfangen und gibt es weiter an den User-space}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Debugging mit dem TPM II}
+\framesubtitle{Rätselraten}
+\textbf{Folgende journald Meldung ist durch einen Konfigurationsfehler verursacht}
+\note<beamer>[item]{Bitte um Handzeichen}
+\begin{minted}{linux-config}
+localhost systemd-udevd[278]: /usr/lib/udev/rules.d/60-tpm-udev.rules:3 Unknown user 'tss', ignoring.
+\end{minted}
+\only<2>{\textcolor{red}{X}}
+\note[item]{Der User \texttt{tss} ist nicht bekannt, wird aber in der udev-Regel verwendet Ubuntu24.04}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Debugging mit dem TPM III}
+\framesubtitle{Rätselraten}
+\textbf{Folgende journald Meldung ist durch einen Konfigurationsfehler verursacht}
+\note<beamer>[item]{Bitte um Handzeichen}
+\begin{minted}{linux-config}
+systemd[1]: systemd-tpm2-setup-early.service - TPM2 SRK Setup (Early) was skipped because of an unmet condition check (ConditionSecurity=measured-uki).
+\end{minted}
+\only<2>{\textcolor{red}{X}}
+\note[item]{Es wird kein Unified Kernel Image verwendet}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Debugging mit dem TPM IV}
+\framesubtitle{Rätselraten}
+\textbf{Folgende journald Meldung ist durch einen Konfigurationsfehler verursacht}
+\only<2>{\textcolor{green}{\textbf{\checkmark}}}
+\note<beamer>[item]{Bitte um Handzeichen}
+\begin{minted}[breaklines,fontsize=\footnotesize,breakanywhere,escapeinside=||]{linux-config}
+systemd-cryptsetup[513]: WARNING:esys:src/tss2-esys/api/Esys_StartAuthSession.c:391:Esys_StartAuthSession_Finish() Received TPM Error
+systemd-cryptsetup[513]: ERROR:esys:src/tss2-esys/api/Esys_StartAuthSession.c:136:Esys_StartAuthSession() Esys Finish ErrorCode (0x0000098e)
+systemd-cryptsetup[513]: Failed to unseal secret using TPM2: State not recoverable
+systemd-cryptsetup[513]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/6b563880-9b80-4b25-a317-267617bbd26c.
+systemd-cryptsetup[513]: WARNING:esys:src/tss2-esys/api/Esys_StartAuthSession.c:391:Esys_StartAuthSession_Finish() Received TPM Error
+systemd-cryptsetup[513]: ERROR:esys:src/tss2-esys/api/Esys_StartAuthSession.c:136:Esys_StartAuthSession() Esys Finish ErrorCode (0x0000098e)
+systemd-cryptsetup[513]: Failed to unseal secret using TPM2: State not recoverable
+systemd-cryptsetup[513]: TPM2 operation failed, falling back to traditional unlocking: State not recoverable
+\end{minted}
+\note[item]<2>{wirkliche Hinweise, was falsch konfiguriert ist, gibt es leider nicht, aber jede Menge irrelevanter Meldungen}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{TPM-Fehlercodes entschlüsseln}
+\framesubtitle{Rätselraten}
+Was bedeutet der Fehlercode \texttt{0x0000098e}?
+\begin{description}
+\item[A] \textcolor<2>{gruen}{authorization HMAC failed} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[B] \textcolor<2>{red}{BlueScreen of Death} \onslide<2->{\textcolor{red}{X}}
+\item[C] \textcolor<2>{red}{steht in der Manpage unter Exit Codes} \onslide<2->{\textcolor{red}{X}}
+\item[D] \textcolor<2>{gruen}{Fehler auf Layer 8 (falsche TPM-PIN eingegeben)} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\item[E] \textcolor<2>{red}{ganz klar es handelt sich um eine fehlerhafte Esys\_StartAuthentificationSession.}\onslide<2->{\textcolor{red}{X}}
+\item[F] \textcolor<2>{gruen}{kann mit \mintinline{bash}{tpm2_rc_decode} entschlüsselt werden} \onslide<2->{\textcolor{gruen}{\checkmark}}
+\end{description}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{TPM-Fehlercodes entschlüsseln}
+\begin{listing}
+\begin{minted}{console}
+tpm2_rc_decode 0x0000098e
+tpm:session(1):the authorization HMAC check failed and DA counter incremented
+\end{minted}
+\caption{Fehlerursache: PIN falsch eingegeben}
+\end{listing}
+\end{frame}
+
+\section{Fazit}
+\begin{frame}[fragile]
+\frametitle{Nachteile des TPM in Bezug auf \texttt{systemd-cryptenroll}}
+\begin{itemize}
+\item{automatischer Wechsel der Entschlüsselungs-Option von PIN zu Passphrase nicht sichtbar}
+\item{keine Update der PCR Measurements (Ausnahme Archlinux und UKI)}
+\item{systemd-cryptenroll mit TPM ausgelegt für Zusammenspiel mit UKI}
+\item{mehrere Versuche die TPM-PIN einzugeben, nur mit \texttt{tpm2-measure-pcr=yes} in \texttt{crypttab}}
+\item{Debugging:}
+\begin{itemize}
+\item{richtige Fehlermeldungen finden}
+\item{verständliche TPM-Fehlercodes}
+\item{fehlerhafte PIN-Eingabe erkennbar}
+\end{itemize}
+\item{nur TPM Entschlüsselung wiegt in falscher Sicherheit}
+\note[item]{bei Diebstahl des Rechners ist eine Festplatten-Verschlüsselung mit TPM ohne Pin so sicher wie keine Verschlüsselung}
+\end{itemize}
+\end{frame}
+
+\section{Fragen?}
+\begin{frame}
+  \frametitle{Ende}
+  \centering
+  \huge{Vielen Dank\\
+    fürs Zuhören!\\
+    Gibts noch Fragen?\\
+  }\vspace{1cm}
+  \small{Kontaktmöglichkeiten:\\
+    email: ratten@buecherratten.in-berlin.de\\
+    jabber: buecherratten@jabber.in-berlin.de\\
+    fediverse: buecherratten@pirati.ca\\
+    git-repro:
+ \begin{columns}
+    \only<beamer>{\begin{column}{0.2\textwidth}
+      \qrcode[hyperlink,height=2cm]{http://git.tuxteam.de/gitweb/?p=susannes-git/TPM-LUKS.git;a=shortlog;h=refs/heads/main}
+    \end{column}}
+    \begin{column}{0.8\textwidth}
+      \url{http://git.tuxteam.de/gitweb/?p=susannes-git/TPM-LUKS.git;a=shortlog;h=refs/heads/main}
+    \end{column}
+  \end{columns}
+  }
+\end{frame}
+
+\end{document}