{"id":2819,"date":"2021-02-20T11:03:38","date_gmt":"2021-02-20T10:03:38","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=2819"},"modified":"2021-02-20T11:03:38","modified_gmt":"2021-02-20T10:03:38","slug":"hardening-elf-files","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=2819","title":{"rendered":"Hardening <span class=\"caps\">ELF<\/span>&nbsp;files"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This post describes meth\u00adods to transform\/obfuscate\/minimize Lin\u00adux <span class=\"caps\">ELF<\/span>&nbsp;files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">sstrip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The sec\u00adtions are used for debug\u00adging and not nec\u00adces\u00adsary for a pro\u00adgram\u2019s exe\u00adcu\u00adtion. The com\u00admand <em>sstrip<\/em> removes all sec\u00adtions from the&nbsp;file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sstrip bin.elf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After the com\u00admand, it can be ver\u00adi\u00adfied with <code>readelf --sections bin.elf<\/code> that there are not sec\u00adtions are in the&nbsp;file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes meth\u00adods to transform\/obfuscate\/minimize Lin\u00adux <span class=\"caps\">ELF<\/span>&nbsp;files. sstrip The sec\u00adtions are used for debug\u00adging and not nec\u00adces\u00adsary for a pro\u00adgram\u2019s exe\u00adcu\u00adtion. The com\u00admand sstrip removes all sec\u00adtions from the&nbsp;file. sstrip bin.elf After the com\u00admand, it can be ver\u00adi\u00adfied with read\u00adelf \u2013sec\u00adtions bin.elf that there are not sec\u00adtions are in the&nbsp;file.<\/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":[355],"tags":[356],"class_list":["post-2819","post","type-post","status-publish","format-standard","hentry","category-reverse-engineering","tag-elf"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2819","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=2819"}],"version-history":[{"count":1,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2819\/revisions"}],"predecessor-version":[{"id":2820,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2819\/revisions\/2820"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}