{"id":3475,"date":"2023-09-12T13:38:29","date_gmt":"2023-09-12T11:38:29","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=3475"},"modified":"2023-09-12T15:20:36","modified_gmt":"2023-09-12T13:20:36","slug":"mit-lynis-die-sicherheit-von-linux-pruefen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/12\/mit-lynis-die-sicherheit-von-linux-pruefen\/","title":{"rendered":"Mit Lynis die Sicherheit von Linux pr\u00fcfen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Lynis ist so gesehen nur ein einfaches Shellscript &#8211; doch es pr\u00fcft das Linux-System und so manches mehr auf die Sicherheit des Systems. Dazu z\u00e4hlt etwa die Aktualit\u00e4t des Systems und der Software, der Bootloader, Zombie-Prozesse und vieles, vieles mehr. Sehen wir uns diese Software hier etwas n\u00e4her an.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lynis installieren<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich ganz einfach \u00fcber die <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=10\" target=\"_blank\">Paket-Verwaltung<\/a> durch das Paket &#8222;<strong>lynis<\/strong>&#8222;. F\u00fcr weitere Distributionen steht das Script unter <a rel=\"noreferrer noopener\" href=\"https:\/\/cisofy.com\/lynis\/\" target=\"_blank\">Lynis<\/a> zum Download.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lynis nutzen<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Das Script wird als <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=366\" target=\"_blank\">root<\/a> auf dem <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=3\" target=\"_blank\">Terminal<\/a> mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lynis audit system<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">gestartet &#8211; mit dieser Option geht die Suche nach allen m\u00f6glichen L\u00fccken im System von vorne bis hinten durch:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01-1024x576.jpeg\" alt=\"\" class=\"wp-image-3476\" style=\"width:429px;height:241px\" width=\"429\" height=\"241\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-01.jpeg 1920w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/a><figcaption class=\"wp-element-caption\">Mit Lynis die Sicherheit von Linux pr\u00fcfen<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Warten Sie einfach ab, der Test dauert etwa eine Minute &#8211; die Software ist sehr schnell und pr\u00e4sentiert anschlie\u00dfend ihre Ergebnisse. Eine umfassende Ausgabe erhalten Sie mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>less \/var\/log\/lynis.log<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Alle m\u00f6glichen Optionen der Software erhalten Sie mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lynis<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02-1024x576.jpeg\" alt=\"\" class=\"wp-image-3477\" style=\"width:465px;height:262px\" width=\"465\" height=\"262\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-02.jpeg 1920w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/a><figcaption class=\"wp-element-caption\">Mit Lynis die Sicherheit von Linux pr\u00fcfen<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Erg\u00e4nzung aus dem Forum<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Am Ende des Programms gibt es &#8222;Warnings&#8220; und &#8222;Suggestions&#8220; mit Hinweisen auf Seiten von <a rel=\"noreferrer noopener\" href=\"https:\/\/cisofy.com\/lynis\" target=\"_blank\">https:\/\/cisofy.com\/lynis<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03-1024x319.png\" alt=\"\" class=\"wp-image-3479\" style=\"width:468px;height:146px\" width=\"468\" height=\"146\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03-1024x319.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03-300x93.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03-768x239.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-03.png 1211w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Und ausserdem wird vorgeschlagen, meine Logdatei zur Verf\u00fcgung zu stellen:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-04.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-04.png\" alt=\"\" class=\"wp-image-3480\" style=\"width:467px;height:115px\" width=\"467\" height=\"115\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-04.png 851w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-04-300x74.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/Lynis-04-768x189.png 768w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/a><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Lynis ist so gesehen nur ein einfaches Shellscript &#8211; doch es pr\u00fcft das Linux-System und so manches mehr auf die Sicherheit des Systems. Dazu z\u00e4hlt etwa die Aktualit\u00e4t des Systems und der Software, der Bootloader, Zombie-Prozesse und vieles, vieles mehr. Sehen wir uns diese Software hier etwas n\u00e4her an. Lynis installieren Unter auf Debian basierenden [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3479,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[15],"class_list":["post-3475","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sicherheit","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=3475"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3475\/revisions"}],"predecessor-version":[{"id":3481,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3475\/revisions\/3481"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/3479"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=3475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=3475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=3475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}