Atlantiraptor Docs

parse_csv

Type: Plugin · Category: parsers

Parses events from a CSV file.

Parses records from a CSV file. We expect the first row of the CSV file to contain column names. This parser specifically supports Velociraptor’s own CSV dialect and so it is perfect for post processing already existing CSV files.

The types of each value in each column is deduced based on Velociraptor’s standard encoding scheme. Therefore types are properly preserved when read from the CSV file.

For example, downloading the results of a hunt in the GUI will produce a CSV file containing artifact rows collected from all clients. We can then use the parse_csv() plugin to further filter the CSV file, or to stack using group by.

Example

The following stacks the result from a Windows.Applications.Chrome.Extensions artifact:

SELECT count(items=User) As TotalUsers, Name
FROM parse_csv(filename="All Windows.Applications.Chrome.Extensions.csv")
Order By TotalUsers
Group By Name
Argument Type Description
filename list of accessors.OSPath (required) CSV files to open
accessor string The accessor to use
auto_headers bool If unset the first row is headers
separator string Comma separator (default ‘,’)
comment string The single character that should be considered a comment
columns list of string The columns to use

Required permissions: FILESYSTEM_READ

Platforms: macOS, Linux, Windows

Source: vql/parsers/csv/csv.go