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

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

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.

Related detections9 linkedT1083 — drag to rearrange
Possible Nagios XI Path Traversal via Graphtemplates Directory Parameter
Suspicious Credential String Enumeration via findstr to Temp Directory
Suspicious ipconfig Reconnaissance Output Redirected to CentreStack Log File
Possible osTicket PHP Filter Chain Injection via Anonymous Ticket Endpoints (via webserver)
Possible Local File Inclusion Path Traversal Targeting CentreStack Web.config
PUA: TruffleHog Execution on Windows via trufflehog.exe Process Launch
Linux Process Execution of TruffleHog with Secret-Scanning Platforms
Windows: Notepad Password File Discovery via Process Creation
Linux process execution of shell via nice utility
Webserver URL Enumeration for Exposed .git Paths via GET Keyword
Pivot detection · T1083 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.