T1539 IBM QRadar · QRadar

Detect Steal Web Session Cookie in IBM QRadar

An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials. Web applications and services often use session cookies as an authentication token after a user has authenticated to a website. Cookies are often valid for an extended period of time, even if the web application is not actively used. Session cookies can be found on disk in browser profile directories (SQLite databases), in the process memory of the browser, and in network traffic to remote systems. Tools such as Evilginx2 and Muraena act as adversary-in-the-middle proxies to capture session cookies from victims directed to phishing domains without the victim's endpoint ever being directly compromised. Malware families including Raccoon Stealer, QakBot, Spica, CookieMiner, Grandoreiro, and EVILNUM specifically target browser cookie stores for theft. Stolen session cookies can bypass multi-factor authentication by reusing authenticated sessions, enabling account takeover without requiring credentials.

MITRE ATT&CK

Tactic
Credential Access
Technique
T1539 Steal Web Session Cookie
Canonical reference
https://attack.mitre.org/techniques/T1539/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS EventTime,
  devicehostname AS Hostname,
  username AS AccountName,
  "filename" AS AccessedFile,
  "filepath" AS FilePath,
  "processname" AS InitiatingProcess,
  "processcommandline" AS CommandLine,
  CATEGORYNAME(category) AS Category,
  QIDNAME(qid) AS EventName,
  logsourcename(logsourceid) AS LogSource
FROM events
WHERE
  LOGSOURCETYPEID IN (12, 79)
  AND starttime > NOW() - 86400 SECONDS
  AND (
    ("filepath" ILIKE '%Chrome%User Data%' OR "filepath" ILIKE '%Edge%User Data%' OR
     "filepath" ILIKE '%Firefox%Profiles%' OR "filepath" ILIKE '%BraveSoftware%Brave-Browser%' OR
     "filepath" ILIKE '%Opera Software%Opera Stable%' OR "filepath" ILIKE '%Vivaldi%User Data%')
    AND (
      "filename" ILIKE 'Cookies' OR "filename" ILIKE 'cookies.sqlite' OR
      "filename" ILIKE 'cookies.sqlite-wal' OR "filename" ILIKE 'Local State' OR
      "filename" ILIKE 'Login Data'
    )
  )
  AND "processname" NOT ILIKE '%chrome.exe'
  AND "processname" NOT ILIKE '%msedge.exe'
  AND "processname" NOT ILIKE '%firefox.exe'
  AND "processname" NOT ILIKE '%brave.exe'
  AND "processname" NOT ILIKE '%opera.exe'
  AND "processname" NOT ILIKE '%vivaldi.exe'
  AND "processname" NOT ILIKE '%chromium.exe'
  AND "processname" NOT ILIKE '%msedgewebview2.exe'
  AND "processname" NOT ILIKE '%MsMpEng.exe'
  AND "processname" NOT ILIKE '%SearchIndexer.exe'
  AND "processname" NOT ILIKE '%SgrmBroker.exe'
  AND "processname" NOT ILIKE '%svchost.exe'
  AND "processname" NOT ILIKE '%TiWorker.exe'
  AND "processname" NOT ILIKE '%WerFault.exe'
ORDER BY starttime DESC
high severity medium confidence

AQL query for IBM QRadar detecting non-browser processes accessing browser session cookie stores and credential databases across Chrome, Edge, Firefox, Brave, Opera, and Vivaldi profiles. Targets file access events from Sysmon or Windows Security log sources while excluding known-legitimate browser and system processes.

Data Sources

Windows Sysmon logs via QRadar DSMWindows Security Event logs via QRadar DSM

Required Tables

events

False Positives & Tuning

  • Enterprise DLP agents (e.g., Symantec DLP, Forcepoint) scanning browser profile directories for sensitive data classification — add DLP agent process names to the exclusion list
  • Antivirus or EDR real-time protection performing on-access scanning of new or modified cookie files — whitelist AV engine process names (e.g., MsMpEng.exe, ekrn.exe, bdservicehost.exe)
  • User-initiated cookie export tools or browser migration assistants (e.g., Windows Easy Transfer, browser built-in profile import) running temporarily during browser setup or migration
Download portable Sigma rule (.yml)

Other platforms for T1539


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Copy Chrome Cookie Database via CMD

    Expected signal: Sysmon Event ID 11 (FileCreate): TargetFilename=%TEMP%\df00tech_test_cookies.db, Image=cmd.exe. DeviceFileEvents: ActionType=FileCreated, FileName=df00tech_test_cookies.db, FolderPath containing Chrome\User Data, InitiatingProcessFileName=cmd.exe. The source Cookies file read will appear as a separate FileAccess event for the Cookies file initiated by cmd.exe.

  2. Test 2Extract Chrome Cookies and Local State via PowerShell

    Expected signal: Sysmon Event ID 1: powershell.exe Process Create with CommandLine containing Chrome\User Data and Copy-Item. Sysmon Event ID 11: Two FileCreate events — TargetFilename containing df00tech_chrome\LocalState and df00tech_chrome\Cookies, Image=powershell.exe. DeviceFileEvents: Two file access events for Local State and Cookies files, InitiatingProcessFileName=powershell.exe.

  3. Test 3Read Firefox Cookie Database via sqlite3

    Expected signal: Sysmon Event ID 1: sqlite3.exe Process Create with CommandLine containing Firefox\Profiles, cookies.sqlite, and SELECT. Sysmon Event ID 11: TargetFilename=%TEMP%\df00tech_ff_cookies.txt, Image=sqlite3.exe. DeviceProcessEvents: FileName=sqlite3.exe, ProcessCommandLine contains moz_cookies. DeviceFileEvents: sqlite3.exe accessing cookies.sqlite within Firefox Profiles path.

  4. Test 4Linux Firefox Cookie Theft via File Copy

    Expected signal: Linux auditd: syscall=openat with path containing .mozilla/firefox and cookies.sqlite, and syscall=open/write for /tmp/df00tech_ff_linux_cookies.sqlite. Syslog/auditd: process cp accessing Firefox profile path. Linux EDR agents: file access event for cookies.sqlite initiated by cp process.

Unlock Pro Content

Get the full detection package for T1539 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections