Atlantiraptor Docs

Windows.System.Threads

Type: Client

Lists threads for selected processes, matching by name or PID regex filters.

This uses Velociraptor’s threads plugin.

Parameters

Name Type Default Description
ProcessRegex regex . A regex applied to process names.
PidRegex regex .

Source

Defined in artifacts/definitions/Windows/System/Threads.yaml.

name: Windows.System.Threads
description: |
  Lists threads for selected processes, matching by name or PID regex
  filters.
  
  This uses Velociraptor's threads plugin.

parameters:
  - name: ProcessRegex
    description: A regex applied to process names.
    default: .
    type: regex
  - name: PidRegex
    default: .
    type: regex


sources:
  - query: |
      -- firstly find processes in scope
      LET processes = SELECT int(int=Pid) AS Pid,
              Name, Exe, CommandLine, StartTime
        FROM process_tracker_pslist()
        WHERE Name =~ ProcessRegex
            AND format(format="%d", args=Pid) =~ PidRegex
            AND log(message="Scanning pid %v : %v", args=[Pid, Name])

      LET Hex(X) = format(format="%#X", args=X)

      SELECT * FROM foreach(row=processes,
      query={
          SELECT StartTime as ProcessCreateTime,Pid, Name,
                 tid AS Tid, times.CreateTime AS ThreadCreateTime,
                 Hex(X=thread_start_address) AS StartAddress,
                 thread_start_address_name AS StartAddressName,
                 Hex(X=memory_basic_info.BaseAddress) AS BaseAddress,
                 filename AS Filename
          FROM threads(pid=Pid)
      })

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.