Atlantiraptor Docs

VQL plugins and functions

VQL, the query language of Atlantiraptor, is extended by plugins (which produce rows, used after FROM) and functions (which return a single value). This reference lists every plugin and function built into this version, generated from the source code. To learn the language itself, start with VQL fundamentals.

There are 422 entries, grouped by category below.

Name Type Summary
Artifact Plugin This is the special plugin which automatically runs other artifacts inline.
atoi Function Convert a string to an integer.
basename Function Return the basename of the path.
chain Plugin Chain the output of several queries into the same table.
column_filter Plugin Select columns from another query using regex.
count Function Counts the items.
dict Function Construct a dict from arbitrary keyword args.
execve Plugin This plugin launches an external command and captures its STDERR, STDOUT and return code.
expand Function Expand the path using the environment.
filter Function Filters an array by regex or condition.
flatten Plugin Flatten the columns in query.
foreach Plugin Executes ‘query’ once for each row in the ‘row’ query.
format Function Format one or more items according to a format string.
get Function Gets the member field from the item.
glob Plugin Retrieve files based on a list of glob expressions
http_client Plugin Make a http request.
humanize Function Format items in human readable way.
if Function, Plugin Conditional execution of query
int Function Truncate to an integer.
items Function, Plugin Iterate over dict members producing _key and _value columns
join Function Join all the args on a separator.
len Function Returns the length of an object.
log Function Log a message to the query log stream.
lowcase Function Returns the lowercase version of a string.
memoize Function Memoize a query into memory.
netstat Plugin Collect network information.
now Function Returns the current time in seconds since epoch.
plist Function, Plugin Parse plist file
process_tracker_get Function Get a single process from the global tracker.
process_tracker_pslist Plugin List all processes from the process tracker.
pslist Plugin Enumerate running processes.
range Plugin Iterate over range.
read_file Function, Plugin Read a file into a string.
regex_transform Function Search and replace a string with multiple regex.
set Function Sets the member field of the item.
sigma Plugin Evaluate sigma rules.
split Function Splits a string into an array based on a regexp separator.
stat Function, Plugin Get file information.
str Function Returns the string representation of the provided data
substr Function Create a substring from a string
switch Plugin Conditional execution of multiple queries in order
tempdir Function Create a temporary directory.
tempfile Function Create a temporary file and write some data into it.
timestamp Function Convert from different types to a time.Time.
to_dict Function Construct a dict from a query.
unzip Plugin Unzips a file into a directory.
upload Function Upload a file to the upload service.

Parsers

Name Type Summary
carve_evtx Plugin Carve EVTX chunks from a file or device and parse their event records.
carve_usn Plugin Carve for the USN journal entries from a device.
commandline_split Function Split a commandline into separate components following the windows conventions.
grok Function Parse a string using a Grok expression.
leveldb Plugin Enumerate all items in a level db database
olevba Plugin Extracts VBA Macros from Office documents.
parse_auditd Plugin Parse log files generated by auditd.
parse_binary Function Parse a binary file into a data structure using a profile.
parse_csv Plugin Parses events from a CSV file.
parse_ese Plugin Opens an ESE file and dump a table.
parse_ese_catalog Plugin Opens an ESE file and dump the schema.
parse_evtx Plugin Parses events from an EVTX file.
parse_float Function Convert a string to a float.
parse_journald Plugin Parse a journald file.
parse_json Function Parse a JSON string into an object.
parse_json_array Function, Plugin Parse a JSON string into an array.
parse_jsonl Plugin Parses a line oriented json file.
parse_lines Plugin Parse a file separated into lines.
parse_mft Plugin Scan the $MFT from an NTFS volume.
parse_ntfs Function Parse specific inodes from an NTFS image file or the raw device.
parse_ntfs_i30 Plugin Scan the $I30 stream from an NTFS MFT entry.
parse_ntfs_ranges Plugin Show the run ranges for an NTFS stream.
parse_pe Function Parse a PE file.
parse_pkcs7 Function Parse a DER encoded pkcs7 string into an object.
parse_records_with_regex Plugin Parses a file with a set of regexp and yields matches as records.
parse_recyclebin Plugin Parses a $I file found in the $Recycle.Bin
parse_string_with_regex Function Parse a string with a set of regex and extract fields.
parse_usn Plugin Parse the USN journal from a device, image file or USN file.
parse_x509 Function Parse a DER encoded x509 string into an object.
parse_xml Function Parse an XML document into a dict like object.
parse_yaml Function Parse yaml into an object.
path_split Function Split a path into components.
pathspec Function Create a structured path spec to pass to certain accessors.
prefetch Plugin Parses a prefetch file.
regex_replace Function Search and replace a string with a regexp.
relpath Function Return the relative path of .
split_records Plugin Parses files by splitting lines into records.
sqlite Plugin Opens an SQLite file and run a query against it.
starl Function Compile a starlark code block - returns a module usable in VQL
yara Plugin Scan files using yara rules.
yara_lint Function Clean a set of yara rules.

Server

Name Type Summary
add_client_monitoring Function Adds a new artifact to the client monitoring table.
add_server_monitoring Function Adds a new artifact to the server monitoring table.
artifact_definitions Plugin Dump artifact definitions from the internal repository.
artifact_delete Function Deletes an artifact from the global repository.
artifact_set Function Sets an artifact into the global repository.
artifact_set_metadata Function Sets metadata about the artifact.
backup Plugin Generates a backup file.
backup_restore Plugin Restore state from a backup file.
cancel_flow Function Cancels the flow.
client_create Function Create a new client in the data store.
client_delete Plugin Delete all information related to a client from the filestore.
client_info Function Returns client info (like the fqdn) for a specific client from the datastore.
client_metadata Function Returns client metadata from the datastore.
client_set_metadata Function Sets client metadata.
clients Plugin Returns client info for one or more clients from the datastore.
collect_client Function Launch an artifact collection against a client.
create_flow_download Function Creates a download pack for the flow.
create_hunt_download Function Creates a download pack for a hunt.
create_notebook_download Function Creates a notebook export zip file.
deb_create Plugin Create a deployable Debian package for client or server.
delete_events Plugin Delete events from a flow.
delete_flow Plugin Delete all the files that make up a flow.
enumerate_flow Plugin Enumerate all the files that make up a flow.
favorites_delete Function Delete a favorite.
favorites_save Function Save a collection into the favorites.
file_store Function Resolves file store paths into full filesystem paths.
file_store_delete Function Delete file store paths.
flow_logs Plugin Retrieve the query logs of a flow.
flow_results Plugin Retrieve the results of a flow.
flows Plugin Retrieve the flows launched on each client.
get_client_monitoring Function Retrieve the current client monitoring state.
get_flow Function Gets flow details.
get_server_monitoring Function Retrieve the current server monitoring state.
gui_users Plugin Retrieve the list of users on the server.
hunt Function Create and launch a hunt.
hunt_add Function Assign a client to a hunt.
hunt_delete Plugin Delete a hunt.
hunt_flows Plugin Retrieve the flows launched by a hunt.
hunt_info Function Retrieve the hunt information.
hunt_results Plugin Retrieve the results of a hunt.
hunt_update Function Update a hunt.
hunts Plugin Retrieve the list of hunts.
import Function Imports an artifact into the current scope.
import_collection Function Imports a collection zip file .
inventory Plugin Retrieve the tools inventory.
inventory_add Function Add or reconfigure a tool into the inventory.
inventory_get Function Get tool info from inventory service.
killkillkill Function Sends a kill message to the client and forces a restart - this is very aggressive!
label Function Add the labels to the client.
link_to Function Create a url linking to a particular part in the Velociraptor GUI.
logging Plugin Watch the logs emitted by the server.
monitoring Plugin Extract monitoring log from a client.
monitoring_logs Plugin Retrieve log messages from client event monitoring for the specified client id and artifact
notebook_create Function Create a new notebook.
notebook_delete Plugin Delete a notebook with all its cells.
notebook_export Function Exports a notebook to a zip file or HTML.
notebook_get Function Get a notebook.
notebook_update Function Update a notebook metadata.
notebook_update_cell Function Update a notebook cell.
org Function Return the details of the current org.
org_create Function Creates a new organization.
org_delete Function Deletes an Org from the server.
orgs Plugin Retrieve the list of orgs on this server.
parallelize Plugin Runs query on result batches in parallel.
passwd Function Updates the user’s password.
query Plugin Evaluate a VQL query.
repack Function Repack and upload a repacked binary or MSI to the server.
rm_client_monitoring Function Remove an artifact from the client monitoring table.
rm_server_monitoring Function Remove an artifact from the server monitoring table.
rpm_create Plugin Create a deployable RPM package for client or server.
secret_add Function Add a new secret
secret_modify Function Modify the secret
secrets Plugin Retrieve the list of secrets on the server.
send_event Function Sends an event to a server event monitoring queue.
server_frontend_cert Function Get Server Frontend Certificate
server_metadata Function Returns server metadata from the datastore.
server_set_metadata Function Sets server metadata.
set_client_monitoring Function Sets the current client monitoring state.
set_server_monitoring Function Sets the current server monitoring state.
source Plugin Retrieve rows from an artifact’s source.
timeline Plugin Read a timeline.
timeline_add Function Add a new query to a timeline.
timeline_delete Function Delete a super timeline.
timelines Plugin List all timelines in a notebook
upload_directory Function Upload a file to an upload directory.
uploads Plugin Retrieve information about a flow’s uploads.
user Function Retrieves information about the Velociraptor user.
user_create Function Creates a new user from the server, or updates their permissions or reset their password.
user_delete Function Deletes a user from the server.
user_grant Function Grants the user the specified roles.
user_options Function Update and read the user GUI options
vfs_ls Plugin List directory and build a VFS object.
whoami Function Returns the username that is running the query.

Windows

Name Type Summary
amsi Function AMSI is an interface on windows to scan a string for malware.
authenticode Function Parses authenticode information from PE files.
certificates Plugin Collect certificate from the system trust store.
etw_sessions Plugin Enumerates all active ETW sessions
handles Plugin Enumerate process handles.
interfaces Plugin List all active network interfaces using the API.
lookupSID Function Get information about the SID.
modules Plugin Enumerate Loaded DLLs.
partitions Plugin List all partitions
proc_dump Plugin Dumps process memory.
proc_yara Plugin Scan processes using yara rules.
read_reg_key Plugin This is a convenience plugin which applies the globs to the registry accessor to find keys.
reg_rm_key Function Removes a key and all its values from the registry.
reg_rm_value Function Removes a value in the registry.
reg_set_value Function Set a value in the registry.
srum_lookup_id Function Lookup a SRUM id.
threads Plugin Enumerate threads in a process.
token Function Extract process token.
users Plugin Display information about workstation local users.
vad Plugin Enumerate process memory regions.
winobj Plugin Enumerate The Windows Object Manager namespace.
wmi Plugin Execute simple WMI queries synchronously.

Linux

Name Type Summary
audit Plugin Register as an audit daemon in the kernel.
connections Plugin List all active connections
ebpf_events Plugin Dumps information about potential ebpf_events that can be used by the watch_ebpf plugin.
sysinfo Function Collect system information on Linux clients
watch_ebpf Plugin Watch for events from eBPF.

Event plugins

Name Type Summary
clock Plugin Generate a timestamp periodically.
diff Plugin Executes ‘query’ periodically and emit differences from the last query.
fifo Plugin Executes ‘query’ and cache a number of rows from it.
watch_auditd Plugin Watch log files generated by auditd.
watch_csv Plugin Watch a CSV file and stream events from it.
watch_etw Plugin Watch for events from an ETW provider.
watch_evtx Plugin Watch an EVTX file and stream events from it.
watch_journald Plugin Watch a journald file and stream events from it.
watch_jsonl Plugin Watch a jsonl file and stream events from it.
watch_monitoring Plugin Watch clients’ monitoring log.
watch_syslog Plugin Watch a syslog file and stream events from it.
watch_usn Plugin Watch the USN journal from a device.
wmi_events Plugin Executes an evented WMI queries asynchronously.

Experimental

Name Type Summary
js Function Compile and run javascript code.
js_call Function Compile and run javascript code.
js_get Function Get a variable’s value from the JS VM.
js_set Function Set a variables value in the JS VM.
sequence Plugin Combines the output of many queries into an in memory fifo.
xattr Function Query a file for the specified extended attribute.

Other

Name Type Summary
adx_upload Plugin Upload rows to Azure Data Explorer (ADX).
alert Function Generate an alert message.
all Function Returns TRUE if all items are true.
any Function Returns TRUE if any items are true.
array Function Create an array.
atexit Function Install a query to run when the query is unwound.
auto Accessor Access the file using the best accessor possible.
aws_cloudtrail Plugin Read AWS CloudTrail management events of one region (LookupEvents, the last 90 days).
aws_iam Plugin Call a read-only AWS IAM action, following paging.
aws_regions Plugin List the AWS regions to hunt: the regions field of the secret if set, otherwise the regions enabled for the account (ec2:DescribeRegions), otherwise the default commercial regions.
azure_monitor_upload Plugin Upload rows to Azure Monitor / Log Analytics via the Logs Ingestion API (Data Collection Rule).
background Function Run a query in the background.
batch Plugin Batches query rows into multiple arrays.
bit_and Function Returns a bitwise AND operation between two integers.
bit_not Function Returns a bitwise NOT operation on an integer.
bit_or Function Returns a bitwise OR operation between two integers.
bit_shl Function Shifts the value to the left.
bit_shr Function Shifts the value to the right.
bit_xor Function Returns a bitwise XOR operation on an integer.
bzip2 Accessor Access the content of bzip2 files.
cache Function Creates a cache object.
cache_dns Function Add a DNS record to the cache..
cat Plugin Read files in chunks.
cidr_contains Function Calculates if an IP address falls within a range of CIDR specified networks.
collect Plugin Collect artifacts into a local file.
collector Accessor Open a collector zip file as if it was a directory - automatically expand sparse files.
collector_sparse Accessor Open a collector zip file as if it was a directory.
combine Plugin Combine the output of several queries into the same result set.
copy Function Copy a file.
data Accessor Makes a string appears as an in-memory file.
dedup Plugin Dedups the query based on a column.
delay Plugin Executes ‘query’ and delays relaying the rows by the specified number of seconds.
describe_address Function Describe an address in the PE text section.
dirname Function Return the directory path.
efivariables Plugin Enumerate efi variables.
elastic_upload Plugin Upload rows to elastic.
enumerate Function Collect all the items in each group by bin.
environ Function, Plugin Get an environment variable.
eval Function Evaluate a vql lambda function on the current scope.
ewf Accessor Allow reading an EWF file.
ext4 Accessor Access files by parsing the raw ext4 filesystems.
fat Accessor Access the FAT filesystem inside an image by parsing FAT.
favorites_list Plugin List all user’s favorites.
file Accessor Access files using the operating system’s API.
file_links Accessor Access the filesystem using the OS APIs.
file_nocase Accessor Access files using the operating system’s API.
filesystems Plugin Enumerates mounted filesystems.
for Plugin Iterate over a list.
fs Accessor Provide access to the server’s filestore and datastore.
fs_sparse Accessor Provide access to the server’s filestore and datastore.
gcs_pubsub_publish Function Publish a message to Google PubSub.
generate Function Create a named generator that receives rows from the query.
geo_distance Function Great circle distance in kilometres between two latitude/longitude points.
geoip Function Lookup an IP Address using the MaxMind GeoIP database.
getpid Function Returns the current pid of the Velociraptor process.
gws_api Plugin Read from Google Workspace’s Admin SDK Directory API or Gmail API (GET only), following nextPageToken.
gws_reports Plugin Read Google Workspace audit events (Admin SDK Reports API).
gzip Accessor Access the content of gzip files.
help Plugin Dump information about all VQL functions and plugins.
host Function Perform a DNS resolution.
hunt_reindex Plugin Reindex a hunt.
index Plugin Create a local index from a query.
index_search Plugin Search a previously created index.
info Function, Plugin Get information about the running host.
ip Function Format an IP address.
lazy_dict Function Construct a dict from arbitrary keyword args - does not materialize args so it is suitable for building args via ** expansion.
lazy_ntfs Accessor Access the NTFS filesystem by parsing NTFS structures.
logscale_upload Plugin Upload rows to LogScale ingestion server.
lru Function Creates an LRU object
m365_audit Plugin Read the Microsoft 365 unified audit log (Exchange, SharePoint, OneDrive, Entra ID, Teams…) through the Office 365 Management Activity API.
m365_graph Plugin Read from the Microsoft Graph API of a Microsoft 365 / Entra ID tenant (GET only), following paging.
magic Function Identify a file using magic rules.
mail Function, Plugin Send Email to a remote server.
map Function Apply a map on a list of items.
max Function Finds the largest item in the aggregate.
me Accessor Access files bundled inside the Velociraptor binary itself.
mft Accessor The mft accessor is used to access arbitrary MFT streams as files.
min Function Finds the smallest item in the aggregate.
mscfb Accessor Parse a MSCFB file as an archive.
netcat Plugin Make a tcp connection and read data from a socket.
notebooks Plugin List all notebooks
ntfs Accessor Access the NTFS filesystem by parsing NTFS structures.
ntfs_vss Accessor Access the NTFS filesystem by considering all VSS.
offset Accessor Allow reading another file from a specific offset.
okta_api Plugin Read from the management API of an Okta organisation (GET only), following Link paging.
okta_logs Plugin Read the System Log of an Okta organisation.
overlay Accessor Merges several paths into a single path.
parse_pst Plugin Parse a PST file and extract email data.
parse_unified_logs Plugin Parses MACOS unified logs.
patch Function Patch a JSON object with a json patch or merge.
path_join Function Build a path by joining all components.
pe_dump Function Dump a PE file from process memory.
pipe Accessor, Function Read from a VQL pipe.
process Accessor Access process memory like a file.
process_tracker Function Install a global process tracker.
process_tracker_all Function Get all processes stored in the tracker.
process_tracker_callchain Function Get a call chain from the global process tracker.
process_tracker_children Function Get all children of a process.
process_tracker_tree Function Get the full process tree under the process id.
process_tracker_updates Plugin Get the process tracker update events from the global process tracker.
pskill Function Kill the specified process.
pst Accessor An accessor to open attachments in PST files.
rand Function Selects a random number.
ranged Accessor Reconstruct sparse files from idx and base
rate Function Calculates the rate (derivative) between two quantities.
raw_ext4 Accessor Access the Ext4 filesystem inside an image by parsing the image.
raw_file Accessor Access the filesystem using the OS API.
raw_ntfs Accessor Access the NTFS filesystem inside an image by parsing NTFS.
raw_reg Accessor Access keys and values by parsing a raw registry hive.
read_crypto_file Plugin Read a previously stored encrypted local storage file.
reduce Function Apply a lambda function on each item and return the accumulator.
reformat Function Reformat VQL
reg Accessor An alias for the registry accessor, which accesses the registry using the OS APIs.
registry Accessor Access the registry like a filesystem using the OS APIs.
rekey Function Causes the client to rekey and regenerate a new client ID.
remap Function Apply a remapping configuration to the root scope.
reverse Function reverse an array.
rm Function Remove a file from the filesystem using the API.
rsyslog Function Send an RFC5424 compliant remote syslog message.
s3 Accessor Allows access to S3 buckets.
sample Plugin Executes ‘query’ and samples every n’th row.
scope Accessor, Function, Plugin Present the content of a scope variable as a file.
semver Function Parse a semantic version string.
serialize Function Encode an object as a string.
shell_session Function Recreate or retrieve a shell session handle.
shell_session_control Function Control a previously created shell session.
sigma_log_sources Function Constructs a Log sources object to be used in sigma rules.
similarity Function Compare two Dicts for similarity.
sleep Function Sleep for the specified number of seconds.
slice Function Slice an array.
smb Accessor Access smb shares (e.g.
sparse Accessor Allows reading another file by overlaying a sparse map on top of it.
splunk_upload Plugin Upload rows to splunk.
sql Plugin Run queries against sqlite, mysql, and postgres databases
ssh Accessor Access a remote system’s filesystem via SSH/SFTP.
strip Function Strip prefix and/or suffix from a string
sum Function Sums the items.
template Function Expand a Go style template .
timestamp_format Function Format a timestamp into a string.
typeof Function Print the underlying Go type of the variable.
upcase Function Returns an uppercase version of the string.
upload_azure Function Upload files to Azure Blob Storage Service.
upload_gcs Function Upload files to GCS.
upload_s3 Function Upload files to S3.
upload_sftp Function Upload files to SFTP.
upload_smb Function Upload files using the SMB file share protocol.
upload_transactions Plugin View the outstanding transactions for uploads.
upload_webdav Function Upload files to a WebDAV server.
url Function Construct a URL or parse one.
user_message Function Send the user a message which will appear in the user notification view.
user_messages Plugin Emit the user’s console messages.
uuid Function Generate a UUID.
verify Function verify an artifact
version Function Gets the version of a VQL plugin or function.
vfs Accessor Access client’s VFS filesystem on the server.
vhdx Accessor Allow reading a VHDX file.
vmdk Accessor Allow reading a VMDK file.
winpmem Accessor, Function Access physical memory like a file.
write_crypto_file Plugin Write a query into an encrypted local storage file.
write_csv Plugin Write a query into a CSV file.
write_file Function Writes a string onto a file.
write_jsonl Plugin Write a query into a JSONL file.
yarax Plugin Scan files using yara rules (Using the new yarax engine).
zip Accessor Open a zip file as if it was a directory.
zip_nocase Accessor Open a zip file as if it was a directory.

Developer

Name Type Summary
mock Function Mock a plugin.
mock_check Function Check expectations on a mock.
mock_clear Function Resets all mocks.
mock_replay Function Replay recorded calls on a mock.
panic Plugin Crash the program with a panic!
profile Plugin Returns a profile dump from the running process.
profile_goroutines Plugin Enumerates all running goroutines.
profile_memory Plugin Enumerates all in use memory within the runtime.
trace Function Upload a trace file.

Encode

Name Type Summary
base64decode Function Decodes a base64 encoded string.
base64encode Function Encodes a string into base64.
base85decode Function Decode a base85 encoded string.
brotli_decompress Function Decompress a brotli compressed block of data.
compress Function Compress a file using GZip.
crypto_rc4 Function Apply rc4 to the string and key.
encode Function Encode an object as a string.
entropy Function Calculates shannon scale entropy of a string.
gunzip Function Uncompress a gzip-compressed block of data.
hash Function Calculate the hash of a file.
lzxpress_decompress Function Decompress an lzxpress blob.
pk_decrypt Function Decrypt files using pubkey encryption
pk_encrypt Function Encrypt files using pubkey encryption
rot13 Function Apply rot13 deobfuscation to the string.
tlsh_hash Function Calculate the tlsh hash of a file.
unhex Function Apply hex decoding to the string.
utf16 Function Parse input from utf16.
utf16_encode Function Encode a string to utf16 bytes.
xor Function Apply xor to the string and key.
xz_decompress Function Decompress an xz compressed block of data.
zstd_decompress Function Decompress a zstd compressed block of data.