{"id":2785,"date":"2021-02-16T09:47:25","date_gmt":"2021-02-16T08:47:25","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=2785"},"modified":"2025-03-31T20:23:33","modified_gmt":"2025-03-31T18:23:33","slug":"scanning-git-repositories","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=2785","title":{"rendered":"Scanning and downloading Git repositories"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Mir\u00adror\u00ading<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/arthaud\/git-dumper\">https:\/\/github.com\/arthaud\/git-dumper<\/a> (faster then&nbsp;wget!)<\/li>\n\n\n\n<li>wget \u2011r <a href=\"http:\/\/dev.linkvortex.htb\/.git\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/dev.linkvortex.htb\/.git\/<\/a>\n<ul class=\"wp-block-list\">\n<li>After\u00adwards, direct git status<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/lijiejie\/GitHack\/blob\/master\/GitHack.py\">https:\/\/github.com\/lijiejie\/GitHack\/blob\/master\/GitHack.py<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/kootenpv\/gittyleaks\">git\u00adtyleaks<\/a>: Exe\u00adcute with\u00adin a local repos\u00adi\u00adto\u00adry the com\u00admand <code>gittyleaks --find-anything<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/awslabs\/git-secrets\">git-secrets<\/a>: Scans (only) com\u00admit mes\u00adsages for sen\u00adsi\u00adtive infor\u00adma\u00adtion with <code>git secrets --scan-history<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/dxa4481\/truffleHog\">truf\u00adfle\u00adHog<\/a>: Scans repos and prints out infor\u00adma\u00adtion with a high entropy: Exe\u00adcute it with <code>trufflehog $repo_dir<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/jsdtaylor\/git-secret-scanner\">git-secret-scan\u00adner<\/a>: Scans a repo with <code>git-secret-scanner scan -d $git_repo<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Oth\u00ader&nbsp;tools<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/HightechSec\/git-scanner\">git-scan\u00adner<\/a>: Scans mul\u00adti\u00adple hosts or a sin\u00adgle&nbsp;host.<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/auth0\/repo-supervisor\">repo-super\u00advi\u00adsor<\/a>: Tool which can be added as git-hook to scan new pull requests for sen\u00adsi\u00adtive data before it\u2019s going to be merged.<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/UKHomeOffice\/repo-security-scanner\">repo-secu\u00adri\u00adty-scan\u00adner<\/a>: Old\u00ader scanner<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mir\u00adror\u00ading git\u00adtyleaks: Exe\u00adcute with\u00adin a local repos\u00adi\u00adto\u00adry the com\u00admand git\u00adtyleaks \u2013find-any\u00adthing. git-secrets: Scans (only) com\u00admit mes\u00adsages for sen\u00adsi\u00adtive infor\u00adma\u00adtion with git secrets \u2013scan-his\u00adto\u00adry. truf\u00adfle\u00adHog: Scans repos and prints out infor\u00adma\u00adtion with a high entropy: Exe\u00adcute it with truf\u00adfle\u00adhog $repo_dir. git-secret-scan\u00adn\u00ader: Scans a repo with git-secret-scan\u00adner scan \u2011d $git_repo. Oth\u00ader&nbsp;tools<\/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":[469],"tags":[354],"class_list":["post-2785","post","type-post","status-publish","format-standard","hentry","category-passive-enum","tag-git"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2785","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=2785"}],"version-history":[{"count":6,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2785\/revisions"}],"predecessor-version":[{"id":4867,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2785\/revisions\/4867"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}