Skip to main content
UNIFIED SOC INCIDENT RESPONSE BLUEPRINT

543,000+ Valid Secrets Exposed on GitHub in Massive Leak Study

A Truffle Security audit revealed 543,699 valid secrets on GitHub with a 784-day median lifespan. 36.8% leaked after GitHub enabled Push Protection.

Detection & Hunting Detectors (1)

[T1589.001] 543,000+ Valid Secrets Exposed on GitHub in Massive Leak Study Hunt QueryStandalone Rule
// Microsoft Sentinel / Defender XDR - Hunting for Cloud Authentication Anomalies Post-Secret Exposure
// Detects AWS STS GetCallerIdentity or Azure sign-ins from unfamiliar ASN/IP ranges immediately after credential creation
let Lookback = 14d;
let SuspiciousGeoSignins = SigninLogs
| where TimeGenerated >= ago(Lookback)
| where ResultType == 0
| where AppDisplayName in~ ("AWS IAM Console", "Azure Portal", "Google Cloud Management")
| extend IPAddress = tostring(IPAddress), UserPrincipalName = tolower(UserPrincipalName)
| summarize FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), IPCount=dcount(IPAddress), Locations=make_set(Location) by UserPrincipalName, AppDisplayName
| where IPCount > 3 or array_length(Locations) > 2;
let AWSAnomalousSTS = AWSCloudTrail
| where TimeGenerated >= ago(Lookback)
| where EventName in~ ("GetCallerIdentity", "CreateAccessKey", "CreateUser", "AttachUserPolicy")
| project TimeGenerated, EventName, SourceIPAddress, UserIdentityArn, UserIdentityAccountId, UserAgent
| where SourceIPAddress !startswith "10." and SourceIPAddress !startswith "172.16." and SourceIPAddress !startswith "192.168.";
AWSAnomalousSTS
| sort by TimeGenerated desc

Verified Indicators of Compromise (10)

Indicators of Compromise (IOCs)
10 Identified
DOMAINapi.openai.com
DOMAINapi.stripe.com
DOMAINsts.amazonaws.com
DOMAINslack.com
PATTERNghp_[0-9a-zA-Z]{36}
PATTERNAKIA[0-9A-Z]{16}
PATTERNxoxb-[0-9]{10,}-[0-9a-zA-Z]+
PATTERNsk_live_[0-9a-zA-Z]{24,}
PATTERNAIzaSy[0-9a-zA-Z_-]{33}
PATTERNsk-proj-[0-9a-zA-Z_-]{48,}