Windows CLI Searching for JWT Strings (eyJ0eX / eyJhbGci) in Command Line

Flags Windows CLI token hunting when search utilities are used alongside JWT-like substrings in the command line.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems), kagebunsher (SigmaHQ), DRL 1.1
Published
2022-10-25
Updated
2026-07-30

ATT&CK techniques

Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Windows process creation events where a command-line includes common text-search utilities (e.g., find, findstr, select-string, strings) together with JWT-like base64 substrings such as "eyJ0eX" or "eyJhbGci". Searching for JWT token patterns via CLI can indicate credential harvesting or reconnaissance for exposed or saved tokens. The detection relies on process creation telemetry with the full command line and checks for both the search tool usage and the presence of JWT-like strings.

Related detections9 linkedT1552.001 — drag to rearrange
Suspicious UAT-10608 Hidden Credential Harvesting Script Execution via nohup
Suspicious Access to Cloud and Database Credential Files via Process
Malicious OAuth Application Granted Full Mailbox and EWS Permissions (via m365)
Suspicious Credential Exfiltration to webhook.site (via dns_query)
Suspicious GAM OAuth Token Enumeration via Process Creation
Suspicious Shai-Hulud Worm Stager Execution from Temp (via process_creation)
Suspicious prt-scan Campaign Credential Harvesting via proc environ Scan (via process_creation)
Possible Stolen AWS Credential Validation via STS GetCallerIdentity
Suspicious Double Base64 Decoded Payload Piped to Shell in CI (reviewdog Supply Chain)
Windows CLI Searching for JWT Strings (eyJ0eX / eyJhbGci) in Command Line
Pivot detection · T1552.001 · 9 related

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