Potentially Suspicious JWT Token Search Via CLI

 Original Source: [Sigma source]
Title: Potentially Suspicious JWT Token Search Via CLI
Status: test
Description:Detects potentially suspicious search for JWT tokens via CLI by looking for the string "eyJ0eX" or "eyJhbG". JWT tokens are often used for access-tokens across various applications and services like Microsoft 365, Azure, AWS, Google Cloud, and others. Threat actors may search for these tokens to steal them for lateral movement or privilege escalation.
References:
  -https://mrd0x.com/stealing-tokens-from-office-applications/
  -https://www.scip.ch/en/?labs.20240523
Author: Nasreddine Bencherchali (Nextron Systems), kagebunsher
Date: 2022-10-25
modified:2025-10-21
Tags:
  • -'attack.credential-access'
  • -'attack.t1528'
  • -'attack.t1552.001'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_tools:
    CommandLine|contains:
      -'find '
      -'find.exe'
      -'findstr'
      -'select-string '
      -'strings'

  selection_jwt_string:
    CommandLine|contains:
      -'eyJ0eXAiOi'
      -'eyJhbGciOi'
      -' eyJ0eX'
      -' "eyJ0eX"'
      -' 'eyJ0eX''
      -' eyJhbG'
      -' "eyJhbG"'
      -' 'eyJhbG''

  condition:all of selection_*
Falsepositives:
  -Unknown
Level: medium