Webserver URL Enumeration for Exposed .git Paths via GET Keyword

Alerts when web requests include .git/ in the URL, suggesting source code enumeration against version control paths.

FreeReviewedSigma · Medium · v2
Category
webserver
Author
James Ahearn (SigmaHQ), DRL 1.1
Published
2019-06-08
Updated
2026-07-31
title: Webserver URL Enumeration for Exposed .git Paths via GET Keyword
id: 63850321-fd85-44dd-a21e-210f2a9948e0
status: test
description: This rule flags web requests where the URL contains the keyword “.git/”, indicating attempts to enumerate or access exposed Git-related paths. Attackers often use this pattern to discover and download source code from misconfigured repositories. Detection relies on webserver request telemetry that includes the full URL observed for GET traffic.
references:
  - https://pentester.land/tutorials/2018/10/25/source-code-disclosure-via-exposed-git-folder.html
  - https://medium.com/@logicbomb_1/bugbounty-how-i-was-able-to-download-the-source-code-of-indias-largest-telecom-service-52cf5c5640a1
  - https://github.com/SigmaHQ/sigma/blob/master/rules/web/webserver_generic/web_source_code_enumeration.yml
author: James Ahearn, Huntrule Team
date: 2019-06-08
modified: 2022-10-05
tags:
  - attack.discovery
  - attack.t1083
logsource:
  category: webserver
detection:
  keywords:
    - .git/
  condition: keywords
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 953d460b-f810-420a-97a2-cfca4c98e602
    type: derived