Atlantiraptor Docs

compress

Type: Function · Category: encode

Compress a file using GZip.

The file is compressed using gzip. You can change the location of the output using the output parameter.

Note that output is a required parameter - you can consult how paths are handled in Velociraptor to correctly manipulate paths

https://atlantsecurity.github.io/atlantiraptor/forensics/#paths-and-ospath

Example

SELECT OSPath, compress(path=OSPath, output=OSPath.Dirname + ( OSPath.Basename + ".gz")) AS Compressed
FROM glob(globs="C:/Windows/*.exe")

Unlike the common gzip utility the file is not removed after compression.

Argument Type Description
path accessors.OSPath (required) A path to compress
accessor string Accessor (e.g. ntfs,file)
output string (required) A path to write the output - default is the path with a .gz extension

Required permissions: FILESYSTEM_WRITE, FILESYSTEM_READ

Platforms: macOS, Linux, Windows

Source: vql/server/compress.go