Server-only

Velociraptor provides complete control of the server within VQL queries. On the server the VQL engine contains the following plugins and functions which you can use to manage and automate the server via VQL queries. Such server-side VQL can be run via Server Artifacts, Notebooks, or the API.

Since these rely on the server datastore and server services they are not available on clients!

Plugin/FunctionTypeDescription
add_client_monitoringFunctionAdds a new artifact to the client monitoring table
add_server_monitoringFunctionAdds a new artifact to the server monitoring table
artifact_definitionsPluginDump artifact definitions from the internal repository
artifact_deleteFunctionDeletes an artifact from the global repository
artifact_setFunctionSets an artifact into the global repository
artifact_set_metadataFunctionSets metadata about the artifact
backupPluginGenerates a backup file
backup_restorePluginRestore state from a backup file
cancel_flowFunctionCancels the flow
client_createFunctionCreate a new client in the data store
client_deletePluginDelete all information related to a client from the filestore
client_infoFunctionReturns client info (like the fqdn) from the datastore
client_metadataFunctionReturns client metadata from the datastore
client_set_metadataFunctionSets client metadata
clientsPluginRetrieve the list of clients
collect_clientFunctionLaunch an artifact collection against a client
create_flow_downloadFunctionCreates a download pack for the flow
create_hunt_downloadFunctionCreates a download pack for a hunt
create_notebook_downloadFunctionCreates a notebook export zip file
delete_eventsPluginDelete events from a flow
delete_flowPluginDelete all the files that make up a flow
enumerate_flowPluginEnumerate all the files that make up a flow
favorites_deleteFunctionDelete a favorite
favorites_saveFunctionSave a collection into the favorites
file_storeFunctionResolves file store paths into full filesystem paths
file_store_deleteFunctionDelete file store paths
flow_logsPluginRetrieve the query logs of a flow
flow_resultsPluginRetrieve the results of a flow
flowsPluginRetrieve the flows launched on each client
get_client_monitoringFunctionRetrieve the current client monitoring state
get_flowFunctionGets flow details
get_server_monitoringFunctionRetrieve the current server monitoring state
gui_usersPluginRetrieve the list of users on the server
huntFunctionCreate and launch a hunt
hunt_addFunctionAssign a client to a hunt
hunt_deletePluginDelete a hunt
hunt_flowsPluginRetrieve the flows launched by a hunt
hunt_infoFunctionRetrieve the hunt information
hunt_resultsPluginRetrieve the results of a hunt
hunt_updateFunctionUpdate a hunt
huntsPluginRetrieve the list of hunts
importFunctionImports an artifact into the current scope
import_collectionFunctionImports an offline collection zip file (experimental)
inventoryPluginRetrieve the tools inventory
inventory_addFunctionAdd or reconfigure a tool into the inventory
inventory_getFunctionGet tool info from inventory service
killkillkillFunctionSends a kill message to the client and forces a restart - this is very aggressive!
labelFunctionAdd the labels to the client
link_toFunctionCreate a url linking to a particular part in the Velociraptor GUI
loggingPluginWatch the logs emitted by the server
mailPluginSend Email to a remote server
monitoringPluginExtract monitoring log from a client
monitoring_logsPluginRetrieve log messages from client event monitoring for the specified client id and artifact
notebook_createFunctionCreate a new notebook
notebook_deletePluginDelete a notebook with all its cells
notebook_exportFunctionExports a notebook to a zip file or HTML
notebook_getFunctionGet a notebook
notebook_updateFunctionUpdate a notebook metadata
notebook_update_cellFunctionUpdate a notebook cell
orgFunctionReturn the details of the current org
org_createFunctionCreates a new organization
org_deleteFunctionDeletes an Org from the server
orgsPluginRetrieve the list of orgs on this server
parallelizePluginRuns query on result batches in parallel
passwdFunctionUpdates the user’s password
queryPluginEvaluate a VQL query
repackFunctionRepack and upload a repacked binary or MSI to the server
rm_client_monitoringFunctionRemove an artifact from the client monitoring table
rm_server_monitoringFunctionRemove an artifact from the server monitoring table
send_eventFunctionSends an event to a server event monitoring queue
server_frontend_certFunctionGet Server Frontend Certificate
server_metadataFunctionReturns server metadata from the datastore
server_set_metadataFunctionSets server metadata
set_client_monitoringFunctionSets the current client monitoring state
set_server_monitoringFunctionSets the current server monitoring state
sourcePluginRetrieve rows from an artifact’s source
timelinePluginRead a timeline
timeline_addFunctionAdd a new query to a timeline
timeline_deleteFunctionDelete a super timeline
timelinesPluginList all timelines in a notebook
upload_directoryFunctionUpload a file to an upload directory
uploadsPluginRetrieve information about a flow’s uploads
userFunctionRetrieves information about the Velociraptor user
user_createFunctionCreates a new user from the server, or updates their permissions or reset their password
user_deleteFunctionDeletes a user from the server
user_grantFunctionGrants the user the specified roles
user_optionsFunctionUpdate and read the user GUI options
vfs_lsPluginList directory and build a VFS object
whoamiFunctionReturns the username that is running the query