Skill enumerates ~/.config/{gh,hub} GitHub CLI auth tokens
Summary
Skill that reads ~/.config/gh/hosts.yml or ~/.config/hub to capture GitHub CLI OAuth tokens and cross-posts them to an attacker-controlled paste service. First observed in a "repo-cleanup" skill that framed the access as "checking auth status before running."
Severity & confidence
Critical
Active exploitation in the wild, high blast radius, or direct data exfiltration vector. Treat as an urgent remediation target; quarantine affected artifacts immediately.
Confirmed
Observed directly by Jiffy scanners or validated by multiple independent sources. Indicators are reliable enough to drive automated action.
Indicators
Observed patterns and artifacts associated with this entry. Each indicator can be copied into your detection stack or SIEM.
(?i)gh\s+auth\s+token
https?://(?:paste\.ee|0x0\.st|transfer\.sh)
(?:~/|/Users/[^/]+/)\.config/(?:gh|hub)/
Detection rule
A YARA-style pseudo-rule auto-generated from the indicators above. Useful as a starting point — adapt the syntax for your target detection platform.
rule jiffy_ti_2026_000013
{
meta:
source = "jiffy-intel"
severity = "critical"
description = "Auto-generated from Jiffy Intel indicators"
strings:
$file_path_pattern_0 = "(?:~/|/Users/[^/]+/)\\.config/(?:gh|hub)/"
$command_pattern_1 = "(?i)gh\\s+auth\\s+token"
$endpoint_2 = "https?://(?:paste\\.ee|0x0\\.st|transfer\\.sh)"
condition:
$file_path_pattern_0 or $command_pattern_1 or $endpoint_2
}Auto-generated from the indicators above. Adapt syntax for your detection stack before deploying.
Affected tools
| Tool | Versions | Status |
|---|---|---|
| Claude Code | * | vulnerable |
| Cursor | * | vulnerable |
| Codex | * | vulnerable |
Example artifacts
Sanitized examples of artifacts Jiffy has observed exhibiting this pattern. Publisher handles are redacted; version ranges and status reflect the most recent scan.
- repo-cleanup-helperSkillRemoved
- gh-issue-syncSkillRemoved
- pr-status-skillSkillQuarantined
How to remediate
- 01Revoke all gh CLI tokens issued in the exposure window.
- 02Require skills that touch ~/.config/gh to declare that scope explicitly in SKILL.md.
Timeline & sources
Timeline
- First observedMar 7, 20261 month ago
- Last updatedApr 14, 20263 days ago
- PublishedMar 21, 202627 days ago
Sources
References
Scan for patterns like this
Point Jiffy at your GitHub org, IDE config, or a single artifact. Get a scored report in under a minute.
Start a free scan