{"id":4772,"date":"2025-03-20T12:56:52","date_gmt":"2025-03-20T11:56:52","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=4772"},"modified":"2025-03-20T13:47:17","modified_gmt":"2025-03-20T12:47:17","slug":"linux-incidence-response","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=4772","title":{"rendered":"Linux incidence response"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Note: See many, many com\u00admands from <a href=\"https:\/\/andreas-klingler.de\/infosec\/?p=2307\" data-type=\"post\" data-id=\"2307\">the Lin\u00adux privesc post<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Analyze logs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On sys\u00adtems: Browse through the <code>\/var\/log<\/code> files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On new\u00ader sys\u00adtems with systemd:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>See all recent logs:<br><code>journalctl<\/code><\/li>\n\n\n\n<li>See all logs from a ser\u00advice:<br><code>journalctl -t sudo<\/code><\/li>\n\n\n\n<li>See all logs from a ser\u00advice with\u00adin a time\u00adframe:<br><code>journalctl -t ssh --since 2025-01-01 --until 2025-02-02<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Note: If you have an image, you can also ana\u00adlyze logs from a mount\u00aded image like <code>journalctl --root \/mnt\/hdd23 -t ssh ...<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Analyze startup services<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On SysVinit: Browse through <code>\/etc\/init.d\/<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On sys\u00adtemd: Browse through <code>\/etc\/systemd\/<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Analyze filesystem<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/andreas-klingler.de\/infosec\/?p=795\" data-type=\"post\" data-id=\"795\">See the ext3 Lin\u00adux file sys\u00adtem blog&nbsp;post.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: See many, many com\u00admands from the Lin\u00adux privesc post. Ana\u00adlyze logs On sys\u00adtems: Browse through the \/var\/log files. On new\u00ader sys\u00adtems with sys\u00adtemd: Note: If you have an image, you can also ana\u00adlyze logs from a mount\u00aded image like jour\u00adnalctl \u2013root \/mnt\/hdd23 \u2011t ssh \u2026 Ana\u00adlyze start\u00adup ser\u00advices On SysVinit: Browse through \/etc\/init.d\/ On&nbsp;[\u2026]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[512],"tags":[],"class_list":["post-4772","post","type-post","status-publish","format-standard","hentry","category-incident-response"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4772"}],"version-history":[{"count":2,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4772\/revisions"}],"predecessor-version":[{"id":4783,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4772\/revisions\/4783"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}