Atlantiraptor Docs

Windows.Search.WSLFileFinder

Type: Client

Searches for files inside Windows Subsystem for Linux (WSL) VHDX disk images. Supports glob filtering, file content inspection using Yara, and provides optional file hash calculation and upload.

Precondition: SELECT * FROM info() where OS = 'windows'

Parameters

Name Type Default Description
VHDXGlob string C:/Users/*/AppData/Local/wsl/**/*.vhdx Where to look for VHDX containers.
SearchFilesGlob string /home/* Use a glob to define the files that will be searched.
SearchFilesGlobTable csv (see the artifact source) Alternative specify multiple globs in a table
YaraRule yara A yara rule to search for matching files.
Upload_File bool N
Calculate_Hash bool N
MoreRecentThan timestamp
ModifiedBefore timestamp
ExcludePathRegex regex ^/(proc\|sys\|run\|snap) If this regex matches the path of any directory we do not even descend inside of it.
DoNotFollowSymlinks bool N If specified we are allowed to follow symlinks while globbing

Source

Defined in artifacts/definitions/Windows/Search/WSLFileFinder.yaml.

name: Windows.Search.WSLFileFinder
description: |
  Searches for files inside Windows Subsystem for Linux (WSL) VHDX
  disk images. Supports glob filtering, file content inspection using
  Yara, and provides optional file hash calculation and upload.

precondition:
  SELECT * FROM info() where OS = 'windows'

parameters:
  - name: VHDXGlob
    description: Where to look for VHDX containers.
    default: "C:/Users/*/AppData/Local/wsl/**/*.vhdx"

  - name: SearchFilesGlob
    default: /home/*
    description: Use a glob to define the files that will be searched.

  - name: SearchFilesGlobTable
    type: csv
    default: |
      Glob
      /home/someuser/*
    description: Alternative specify multiple globs in a table

  - name: YaraRule
    type: yara
    default:
    description: A yara rule to search for matching files.

  - name: Upload_File
    default: N
    type: bool

  - name: Calculate_Hash
    default: N
    type: bool

  - name: MoreRecentThan
    default: ""
    type: timestamp

  - name: ModifiedBefore
    default: ""
    type: timestamp

  - name: ExcludePathRegex
    default: "^/(proc|sys|run|snap)"
    type: regex
    description: If this regex matches the path of any directory we do not even descend inside of it.

  - name: DoNotFollowSymlinks
    type: bool
    default: N
    description: If specified we are allowed to follow symlinks while globbing

sources:
  - query: |
      SELECT * FROM foreach(row={
        SELECT OSPath AS VHDXPath FROM glob(globs=VHDXGlob)
        WHERE log(message="Found VHDX file at %v", args=VHDXPath, dedup=-1)
      }, query={
        SELECT VHDXPath, OSPath.Path AS OSPath, *
        FROM Artifact.Linux.Search.FileFinder(
           SearchFilesGlob=SearchFilesGlob,
           SearchFilesGlobTable=SearchFilesGlobTable,
           YaraRule=YaraRule,
           Upload_File=Upload_File,
           Calculate_Hash=Calculate_Hash,
           MoreRecentThan=MoreRecentThan,
           ModifiedBefore=ModifiedBefore,
           ExcludePathRegex=ExcludePathRegex,
           DoNotFollowSymlinks=DoNotFollowSymlinks,
           LocalFilesystemOnly=FALSE,
           ACCESSOR="raw_ext4",
           ROOT=pathspec(DelegateAccessor="vhdx", DelegatePath=VHDXPath))
      })

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.