Atlantiraptor Docs

Windows.Forensics.SRUM

Type: Client

Parses the Windows SRUM database (srudb.dat) to extract execution stats, resource usage, and network activity.

Update 2026-07-11:
Added optional SruDbIdMapTable to selection table. We have found this table useful searching for binary name strings.
Added filters for ExecutableRegex, UserRegex and TimeStamp.

Implied permissions: FILESYSTEM_WRITE

Parameters

Name Type Default Description
SRUMLocation string c:/windows/system32/sru/srudb.dat
accessor string auto
ExecutableRegex string . Filter on application or binary name.
UserRegex regex . Filter on Username or UserSid
TimeAfter timestamp 1600-01-01 00:00:00 +0000 UTC search for TimeStamp after this date. YYYY-MM-DDTmm:hh:ssZ
TimeBefore timestamp 2200-01-01 00:00:00 +0000 UTC search for TimeStamp before this date. YYYY-MM-DDTmm:hh:ssZ
Tables multichoice (see the artifact source) SRUM tables to parse. The four original artifact sources are selected by default. Availability varies by Windows version.
NetworkConnectionsGUID hidden {DD6636C4-8929-4683-974E-22C046A43763}
ApplicationResourceUsageGUID hidden {D10CA2FE-6FCF-4F6D-848E-B2E99266FA89}
ExecutionGUID hidden {5C8CF1C7-7257-4F13-B223-970EF5939312}
NetworkUsageGUID hidden {973F5D5C-1D90-4944-BE8E-24B94231A174}
Upload bool Select to Upload the SRUM database file ‘srudb.dat’

References

Source

Defined in artifacts/definitions/Windows/Forensics/SRUM.yaml.

name: Windows.Forensics.SRUM
description: |
  Parses the Windows SRUM database (srudb.dat) to extract execution
  stats, resource usage, and network activity.
  
  Update 2026-07-11:  
  Added optional SruDbIdMapTable to selection table. 
  We have found this table useful searching for binary name strings.   
  Added filters for ExecutableRegex, UserRegex and TimeStamp.

reference:
  - https://medium.com/@cyberengage.org/making-sense-of-srum-data-with-srum-dump-tool-67b90402df41
  - https://blog.elcomsoft.com/2025/08/analyzing-the-windows-srum-database/
  - https://github.com/ReversecLabs/slide-decks/blob/main/2023-SANS_DFIR_Summit_Europe/Exploring_the_depths_of_SRUM_for_incident_response.pdf
  - https://github.com/libyal/esedb-kb/blob/main/documentation/System%20Resource%20Usage%20Monitor%20(SRUM).asciidoc

type: client

parameters:
  - name: SRUMLocation
    default: c:/windows/system32/sru/srudb.dat
  - name: accessor
    default: auto
  - name: ExecutableRegex
    default: .
    description: |
      Filter on application or binary name.
  - name: UserRegex
    default: .
    type: regex
    description: |
      Filter on Username or UserSid
  - name: TimeAfter
    type: timestamp
    default: 1600-01-01
    description: "search for TimeStamp after this date. YYYY-MM-DDTmm:hh:ssZ"
  - name: TimeBefore
    type: timestamp
    default: 2200-01-01
    description: "search for TimeStamp before this date. YYYY-MM-DDTmm:hh:ssZ"

  - name: Tables
    type: multichoice
    description: |
      SRUM tables to parse. The four original artifact sources are
      selected by default. Availability varies by Windows version.
    default: '["Execution Stats", "Application Resource Usage", "Network Connections", "Network Usage"]'
    choices:
      - Execution Stats
      - Application Resource Usage
      - Network Connections
      - Network Usage
      - SruDbIdMapTable
  - name: NetworkConnectionsGUID
    default: "{DD6636C4-8929-4683-974E-22C046A43763}"
    type: hidden
  - name: ApplicationResourceUsageGUID
    default: "{D10CA2FE-6FCF-4F6D-848E-B2E99266FA89}"
    type: hidden
  - name: ExecutionGUID
    default: "{5C8CF1C7-7257-4F13-B223-970EF5939312}"
    type: hidden
  - name: NetworkUsageGUID
    default: "{973F5D5C-1D90-4944-BE8E-24B94231A174}"
    type: hidden
  - name: Upload
    description: Select to Upload the SRUM database file 'srudb.dat'
    type: bool

implied_permissions:
  - FILESYSTEM_WRITE

export: |
  LET ResolveESEId(OSPath, Accessor, Id) = cache(
      name="ESE",
      func=srum_lookup_id(file=OSPath, accessor=Accessor, id=Id),
      key=format(format="%v-%v-%v", args=[OSPath, Accessor, Id]))

  LET SRUMFiles = SELECT OSPath FROM glob(globs=SRUMLocation)

imports:
  - Windows.Sys.AllUsers

sources:
  - name: Upload
    precondition:
        SELECT * FROM scope() WHERE Upload
    query: |
        SELECT upload(file=SRUMLocation, accessor=accessor) AS Upload
        FROM scope()

  - name: Execution Stats
    precondition:
        SELECT * FROM scope() WHERE "Execution Stats" IN Tables
    query: |
      SELECT * FROM foreach(row=SRUMFiles,
      query={
           SELECT  AutoIncId AS ID,
                TimeStamp,
                ResolveESEId(OSPath=OSPath,
                             Accessor=accessor, Id=AppId) AS App,
                ResolveESEId(OSPath=OSPath,
                             Accessor=accessor, Id=UserId) AS UserSid,
                LookupSIDCache(SID=ResolveESEId(
                    OSPath=OSPath, Accessor=accessor, Id=UserId) || "") AS User,
                timestamp(winfiletime=EndTime) AS EndTime,
                DurationMS,
                NetworkBytesRaw
           FROM parse_ese(file=OSPath,
                          accessor=accessor, table=ExecutionGUID)
           WHERE App =~ ExecutableRegex
            AND ( UserSid =~ UserRegex OR User =~ UserRegex ) 
            AND TimeStamp > TimeAfter
            AND TimeStamp < TimeBefore
      })

  - name: Application Resource Usage
    precondition:
        SELECT * FROM scope() WHERE "Application Resource Usage" IN Tables
    query: |
      SELECT * FROM foreach(row=SRUMFiles,
      query={
         SELECT AutoIncId as SRUMId,
               TimeStamp,
               ResolveESEId(OSPath=OSPath, Accessor=accessor, Id=AppId) AS App,
               ResolveESEId(OSPath=OSPath,
                            Accessor=accessor, Id=UserId) AS UserSid,
               LookupSIDCache(SID=ResolveESEId(
                    OSPath=OSPath, Accessor=accessor, Id=UserId) || "") AS User,
               ForegroundCycleTime,
               BackgroundCycleTime,
               FaceTime,
               ForegroundContextSwitches,
               BackgroundContextSwitches,
               ForegroundBytesRead,
               ForegroundBytesWritten,
               ForegroundNumReadOperations,
               ForegroundNumWriteOperations,
               ForegroundNumberOfFlushes,
               BackgroundBytesRead,
               BackgroundBytesWritten,
               BackgroundNumReadOperations,
               BackgroundNumWriteOperations,
               BackgroundNumberOfFlushes
          FROM parse_ese(file=SRUMFiles.OSPath,
                       accessor=accessor, table=ApplicationResourceUsageGUID)
          WHERE App =~ ExecutableRegex
            AND ( UserSid =~ UserRegex OR User =~ UserRegex ) 
            AND TimeStamp > TimeAfter
            AND TimeStamp < TimeBefore
      })

  - name: Network Connections
    precondition:
        SELECT * FROM scope() WHERE "Network Connections" IN Tables
    query: |
      SELECT * FROM foreach(row=SRUMFiles,
      query={
        SELECT AutoIncId as SRUMId,
             TimeStamp,
             ResolveESEId(OSPath=OSPath,
                          Accessor=accessor, Id=AppId) AS App,
             ResolveESEId(OSPath=OSPath,
                          Accessor=accessor, Id=UserId) AS UserSid,
             LookupSIDCache(SID=ResolveESEId(
                    OSPath=OSPath, Accessor=accessor, Id=UserId) || "") AS User,
             InterfaceLuid,
             ConnectedTime,
             timestamp(winfiletime=ConnectStartTime) AS StartTime
        FROM parse_ese(file=OSPath,
                       accessor=accessor, table=NetworkConnectionsGUID)
        WHERE App =~ ExecutableRegex
          AND ( UserSid =~ UserRegex OR User =~ UserRegex ) 
          AND TimeStamp > TimeAfter
          AND TimeStamp < TimeBefore
      })

  - name: Network Usage
    precondition:
        SELECT * FROM scope() WHERE "Network Usage" IN Tables
    query: |
      SELECT * FROM foreach(row=SRUMFiles,
      query={
        SELECT AutoIncId as SRUMId,
             TimeStamp,
             ResolveESEId(OSPath=OSPath,
                          Accessor=accessor, Id=AppId) AS App,
             ResolveESEId(OSPath=OSPath,
                          Accessor=accessor, Id=UserId) AS UserSid,
             LookupSIDCache(SID=ResolveESEId(
                    OSPath=OSPath, Accessor=accessor, Id=UserId) || "") AS User,
             UserId,
             BytesSent,
             BytesRecvd,
             InterfaceLuid,
             L2ProfileId,
             L2ProfileFlags
        FROM parse_ese(file=OSPath, accessor=accessor, table=NetworkUsageGUID)
        WHERE App =~ ExecutableRegex
          AND ( UserSid =~ UserRegex OR User =~ UserRegex ) 
          AND TimeStamp > TimeAfter
          AND TimeStamp < TimeBefore
      })
    notebook:
        - type: vql_suggestion
          name: SRUM Network Usage summary
          template: |
              /*
              # SRUM Network Usage summary
              */
              SELECT Fqdn,
                  count() as TotalEntries,
                  min(item=TimeStamp) as Earliest,
                  max(item=TimeStamp) as Latest,
                  App,
                  User,UserId,
                  sum(item=BytesSent) as TotalSent,
                  sum(item=BytesRecvd) as TotalRecvd,
                  InterfaceLuid
              FROM source(artifact="Windows.Forensics.SRUM/Network Usage")
              GROUP BY App, User,InterfaceLuid
              ORDER BY TotalSent DESC

  - name: SruDbIdMapTable
    precondition:
        SELECT * FROM scope() WHERE "SruDbIdMapTable" IN Tables
    query: |
      LET ParseSRUMIdMap(OSPath) = SELECT
          IdIndex,
          IdType,
          ResolveESEId(
              OSPath=OSPath, Accessor=accessor, Id=IdIndex) AS Value,
          parse_string_with_regex(
              string=ResolveESEId(
                  OSPath=OSPath, Accessor=accessor, Id=IdIndex),
              regex="^(?<PackageName>[^!]*)\\!(?<PackageId>[^!]*)\\!(?<Path>[^!]*)\\!((?<Timestamp>[^!]*)\\!)?((?<InstanceID>[^!]*)\\!)?((?<Args>[^!]*))?$") AS Parsed
        FROM parse_ese(
            file=OSPath, accessor=accessor, table="SruDbIdMapTable")
          
      SELECT IdIndex,
             IdType,
             if(condition=Parsed.Path,
                then=Parsed.Path,
                else=Value) AS Path,
             Parsed.PackageName AS PackageName,
             Parsed.PackageId AS PackageId,
             timestamp(string=Parsed.Timestamp) AS TimeStamp,
             Parsed.InstanceID AS InstanceID,
             Parsed.Args AS Args,
             Value as __RawValue
      FROM foreach(row=SRUMFiles,
      query={
        SELECT * FROM ParseSRUMIdMap(OSPath=OSPath)
      })
      WHERE __RawValue AND IdType = 0 AND Path =~ ExecutableRegex
        AND ( UserSid =~ UserRegex OR User =~ UserRegex ) 
        AND TimeStamp > TimeAfter
        AND TimeStamp < TimeBefore

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.