Atlantiraptor Docs

Configuration file reference

The server and clients read their settings from YAML configuration files (server.config.yaml and client.config.yaml). This page lists every setting, generated from the annotated sample configuration in this repository. A value shown is the default used when the setting is left out. For how to create and change the configuration, see Server configuration.

Top-level sections: version · Client · API · GUI · CA · Frontend · Datastore · Logging · Monitoring · autoexec · server_type · obfuscation_nonce · autocert_cert_cache · defaults · lockdown · debug_mode · Minion · security

version

The values you see are the default values that will be used when the option is omitted. If an item is a list, the default list applies only when the item is empty. If you want to preserve some of the default items in the list, you should copy the entire default list and set it.

This is the version of the Velociraptor binary used to generate this configuration file. It simply annotates the produced file and can not be changed. When Velociraptor loads the configuration file, this field will be updated so for example velociraptor config show will update this to the present version.

version.name

Name of the agent - always “velociraptor”

Default: velociraptor

version.version

The release version on GitHub.

Default: 0.74

version.commit

The commit at which this binary was built. This is more accurate than the version for reporting issues etc.

Default: f3264824

version.build_time

The time the binary was built.

Default: "2022-04-13T02:24:43+10:00"

version.ci_build_url

The URL to the Github Action CI job that built this binary. Not all release binaries are built on the Github CI due to signing requirements.

Default: https://github.com/Velocidex/velociraptor/actions/runs/3391188003

version.compiler

The version of the Go compiler that built this binary

Default: go1.19.2

version.install_time

The time the client was installed (as written in the writeback file).

Default: 1680267359

version.system

The operating system this binary is running under.

Default: linux

version.architecture

Default: amd64

Client

The Client block will be copied into the client.config.yaml and it is expected to be used by clients. It contains no secrets and can be embedded into clients. The server must also have this block as it needs to refer to client specific information sometimes.

Client.Crypto

The Crypto options specifies cryptographic options.

Client.Crypto.root_certs

These are the root CA certs the client will trust. This is needed when going through a MITM proxy. Certificates are in PEM format one after the next. Certificates do not have to have the CA basic constraint!

Default:

|
        -----BEGIN CERTIFICATE-----
        <certificate 1>
        -----END CERTIFICATE-----
        -----BEGIN CERTIFICATE-----
        <certificate 2>
        -----END CERTIFICATE-----

Client.Crypto.certificate_thumbprints

Clients may connect to servers which use a self-signed certificate. This list allows to specify a set of certificate thumbprints (SHA256) which are used to validate TLS server certificates.

Fingerprints can be generated with the OpenSSL command line utility: openssl s_client -connect www.google.com:443 < /dev/null | openssl x509 -fingerprint -sha256 -noout

Certificate thumbprints may or may not include colon characters. Capitalization of the hex digits is ignored by Velociraptor. A thumbprint of any of the forms used below (or combinations thereof) is fine.

Default:

- "E6:E2:8B:35:CE:C5:BA:C4:53:C5:AF:BF:2B:76:34:62:40:5C:D0:60:80:E1:30:1A:A7:A5:A9:DA:0C:8B:11:E1"
- "E6E28B35CEC5BAC453C5AFBF2B763462405CD06080E1301AA7A5A9DA0C8B11E1"
- "e6e28b35cec5bac453c5afbf2b763462405cd06080e1301aa7a5a9da0c8b11e1"

Client.Crypto.certificate_verification_mode

Velociraptor supports several ways of verifying TLS certificates. The certificate_verification_mode specifies which of the three modes is applied. Currently, three modes are available:

PKI (the default): verify TLS certs against public CA lists, the list of additional root_certs (see above), and the built-in CA cert

PKI_OR_THUMBPRINT: the same as PKI with the addition that certificates which have a thumbprint that is present in certificate_thumbprints will be accepted as well

THUMBPRINT_ONLY: Velociraptor only accepts certificates which have a matching thumbprint in certificate_thumbprints. All other certificates will be rejected. This mode is also known as certificate pinning.

Default: "PKI"

Client.Crypto.allow_weak_tls_server

By default velociraptor uses TLS 1.3 to secure it’s communications. Some networks use a MITM TLS proxy which does not support more secure protocols so this setting can be applied to make the server allow lower TLS versions.

Default: false

Client.Crypto.client_certificate

If you want to use mTLS to mutually authenticate clients to the server, place a pem encoded client certificate here. This certificate will be presented to the server before a TLS connection can be made.

This is an additional level of security that controls connections between clients and server. It is normally not needed as client connections are controlled via the embedded nonce. However mTLS authentication allows termination of the TLS before the server (e.g. using a reverse proxy).

To configure this feature you can create a certificate signed by the Velociraptor CA: velociraptor –config server.config.yaml config api_client –name “Client” api.config.yaml

This will create an api config file with the key pair encoded as PEM strings. You can then copy and paste those into the settings below. Only clients configured with these keys can talk with the server

To require the frontend to only talk with mTLS authenticated clients, set the Frontend.require_client_certificates to true.

Default: "-----BEGIN CERTIFICATE----- ..."

Client.Crypto.client_certificate_private_key

Default: "-----BEGIN RSA PRIVATE KEY----- ..."

Client.server_urls

A list of one or more URLs the clients will try to connect to. When all connections fail the client will back off for a while. Clients will choose one of these at random so it is a good way of achieving fault tolerance and load balancing. As of version 0.72, You can choose to use websockets here for a better experience by setting the URL to start with wss://

Client.server_urls.wss

Default: //192.168.1.1:8000/

Client.server_urls.https

Default: //192.168.1.1:8000/

Client.ws_ping_wait_sec

When using websockets the server will ping the client every this many seconds.

Default: 60

Client.proxy

A URL to a proxy that will be used to connect to the server. Some environments have egress filtering requiring Velociraptor to use a proxy to be able to reach the server. NOTE: We do support PAC based proxy configurations (see below), but we do not support Windows domain authentication - you might need to add an allow rule to the proxy config to allow the Velociraptor server URL without authentication.

Default: https://proxy:3128/

Client.proxy_config

Some proxy configurations are more complex. You can specify a more detailed configuration here instead of the proxy parameter above.

Client.proxy_config.http

The proxy configuration for http and https urs.

Default: "<not set>"

Client.proxy_config.https

Default: "<not set>"

Client.proxy_config.proxy_url_regexp

A list of url regexp to match the url and connect to the target. Use an empty string to denote direct connection.

Default: "^https://localhost/": ""

Client.proxy_config.pac

Location of a PAC file (overrides the above settings). This can be a file:// URL or even a data: url (safest option - this embeds the pac file in the config file).

Default: "<not set>"

Client.proxy_config.ignore_environment

If this is set we ignore the HTTP_PROXY and HTTPS_PROXY environment variables. By default we allow these environment variables to override the settings in this file.

Default: false

Client.ca_certificate

The Internal Velociraptor CA certificate used to verify the server certificates. Do not change this! This will be generated by the config wizard and can not be replaced. It is only used internally.

Default:

|
    -----BEGIN CERTIFICATE-----
    Generated by the config wizard!!!
    -----END CERTIFICATE-----

Client.nonce

This is a shared secret between servers and clients. The server will refuse to communicate with clients having the wrong nonce. The nonce is used to group clients into Org Groups - so clients from different orgs have different nonce.

Default: rKNKAYam310=

Client.writeback_darwin

The following are the locations to write the writeback file - this file is used to keep client state. In the default configuration, writeback files persist across uninstall/reinstall cycles to keep the client id consistent. If you don’t want this you can change the location of the writeback to be inside the tempdir_windows directory (it will be removed on uninstall).

Default: /etc/velociraptor.writeback.yaml

Client.writeback_linux

Default: /tmp/velociraptor.writeback.yaml

Client.writeback_windows

On Windows, if the writeback path starts with HKLM\ the path will be interpreted as a registry key that will be used to store the writeback instead of files on disk.

Default: $ProgramFiles\Velociraptor\velociraptor.writeback.yaml

Client.level2_writeback_suffix

If this value is specified, Velociraptor will create a level 2 writeback file. This second file is used as a backup and to write more frequently updated content. This scheme should reduce the likelihood that the file is corrupted to the point that the client id is lost.

Default: l2

Client.tempdir_windows

This is the directory Velociraptor will use for temporary files. If not specified or not writable, Velociraptor will use the $TMP or $TEMP env variable.

Default: $ProgramFiles\Velociraptor\Tools

Client.tempdir_linux

Default: /tmp/

Client.tempdir_darwin

Default: /tmp/

Client.max_poll

Number of seconds to wait before polling. Typically Velociraptor connections are persistent but will force a re-connection every max_poll seconds to refresh the connection. NOTE that typically Velociraptor reuses TCP connections so this only applies to the HTTP transactions, i.e. The TCP connections are always up.

Default: 60

Client.max_poll_std

Standard deviation between polls adds randomness to the poll period. This ensures that clients are not synchronized to even up the load on the server.

Default: 30

Client.nanny_max_connection_delay

If this is set, the nanny will exit if we are not able to send messages to the server within this many seconds. NOTE - even a failed connection will reset the counter, the nanny will only fire if the client has failed in some way - e.g. the communicator is stopped for some reason

Default: 0

Client.prevent_execve

If this is set, prevent arbitrary code execution on clients. NOTE: This will vastly reduce the capabilities of the client.

Default: false

Client.default_max_wait

The default max time to wait before we send partial VQL results. This setting is used to ensure we don’t send too many small requests by batching the rows into time batches.

Default: 60

Client.concurrency

Maximum number of concurrent queries the client will allow (default 2). This ensures we do not overwhelm the client by scheduling too many concurrent queries. NOTE: Queries marked as URGENT will skip this control and run anyway.

Default: 2

Client.max_memory_hard_limit

If set the client will hard exit when it uses this much memory (in bytes). This is a safety feature to prevent runaway process - ensure this is not set too low.

Default: 0

Client.client_info_update_time

Clients will send a Server.Internal.ClientInfo message to the server every this many seconds. This helps to keep the server info up to date about each client. This should not be sent too frequently. The default is 1 day (86400 seconds).

Default: 86400

Client.disable_checkpoints

When a collection starts on the client, the client writes a checkpoint file so it can detect when it crashed previously and restarted. If this option is set we disable client checkpoints and so we can not report to the server when the client crashes while collecting an artifact.

Default: false

Client.windows_installer

These settings are used by the velociraptor service install command. We typically do not use this as we prefer to distribute MSI packages via package management systems.

Client.windows_installer.service_name

Default: Velociraptor

Client.windows_installer.install_path

Default: $ProgramFiles\Velociraptor\Velociraptor.exe

Client.windows_installer.service_description

Default: Velociraptor service

Client.darwin_installer

Settings used by the darwin velociraptor service install command.

Client.darwin_installer.service_name

Default: com.velocidex.velociraptor

Client.darwin_installer.install_path

Default: /usr/local/sbin/velociraptor

Client.use_self_signed_ssl

If this setting is true, Velociraptor will expect the server to use self signed TLS certificates. The client will verify the TLS connection by checking that the server certificate is signed by the Velociraptor internal CA. With this setting it is possible to use an IP address for the server URL (not recommended though)

Default: true

Client.pinned_server_name

Do not change this!

Default: VelociraptorServer

Client.max_upload_size

The maximum size of the POST request the client will send to the server. Some proxy servers limit the size of POST messages.

Default: 5242880

Client.connection_timeout

Maximum timeout for connection retry - the length of time we try a connection before restarting it (default 5 min).

Default: 300

Client.disable_compression

Disable client/server compression. Typically no need to change this.

Default: false

Client.labels

It is possible to pre-label clients using the configuration file. The server will add these labels to the clients automatically upon enrollment. This allows different client packages to be distributed in the real world and have them automatically identified.

Default:

- Label1
- Label1

Client.logfile_name

The client normally does not write any logs on the endpoint. However this makes it hard to debug any issues so you can choose to have the client write its logs in a file on the endpoint. The file will be written in an encrypted form which can only be decrypted by the Generic.Client.LocalLogsRetrieve artifact.

Path relative to the relevant tmpdir above where client side logs are kept. These logs are encrypted client side and need to be decrypted on the server to read.

Default: "logfile.log"

Client.logfile_size

Default: 10000000

Client.panic_file

On Windows, the client usually runs as a service. If a crash occurs while Velociraptor is running as a Windows service the traceback of the error is printed to Stderr, however a Windows service discards these messages. This means that if Velociraptor crashes we lose the panic backtrace which is useful for debugging why it crashed. This setting allows us to specify a path to a log file on the client where Velociraptor will write stdout and stderr in the event of a crash. This feature is currently not implemented for non-Windows platforms where this setting will have no effect.

Default: $TEMP/panic.log

Client.local_buffer

Velociraptor keeps a local buffer file to store query results while they are being shipped across the network. There are two types of buffers - an in memory buffer and a local file based buffer file. When the buffer is exceeded the query is paused so it is important to have reasonable size available for the buffer file to prevent queries taking too long (and possibly timing out).

Client.local_buffer.memory_size

Maximum size of the in-memory buffer. When this size is exhausted the query is paused until the data is sent over the network.

Default: 52428800

Client.local_buffer.disk_size

If the disk size of the local buffer is set to 0, no disk file will be used, only a memory buffer will be used.

Default: 1073741824

Client.local_buffer.filename_linux

Where to store the files on the local disk for the various operating systems.

Default: /var/tmp/Velociraptor_Buffer.bin

Client.local_buffer.filename_windows

Default: $TEMP/Velociraptor_Buffer.bin

Client.local_buffer.filename_darwin

Default: /var/tmp/Velociraptor_Buffer.bin

Client.insecure_network_trace_file

Setting this will write clear text network traces to this file. This is used for debugging network communications in complex scenarios (e.g. in the presence of proxies etc). Do not leave this configured in production! This setting will also disable TLS verification for the server name so it will be possible to MITM the client->server connection.

NOTE: Velociraptor has 2 layers of encryption - this setting bypasses the outer TLS layer to expose the underlying HTTP communications. Client->server communication still remain encrypted however.

Default: "/tmp/trace.txt"

Client.server_version

The server that created this config file - this is only a hint.

Client.server_version.system

Default: linux

Client.low_resource_max_cpu

By default when running on a low resource machine we cap the CPU use to 50%. This allows to change that - needs to be between 0 and 100 (100 disables throttling).

Default: 50

Client.low_resource_cpu_count

We determine we are running on a low resource machine if the system has less than 2 cores. This allows you to increase the threshold. Set to a large number to disable.

Default: 1

Client.dns_cache_refresh_min

If greater than 0 we install a local DNS cache. This is usually not needed as most operating systems already have local DNS caching resolvers. This DNS cache will be refreshed periodically from upstream. Note that the ttl of the record is currently ignored and we refresh according to this setting. This setting takes effect both on the client and on the server.

Default: 0

Client.Logging

Client specific logging configuration - this can be different from the server configuration. Usually the client does not log anything but you can enable this for debugging.

API

This section configures the API service. The API server accepts connections from the GUI gRPC gateway, as well as connections from the gRPC API clients (e.g. with pyvelociraptor).

API.hostname

This is the hostname used to connect to - it is used here to copy into new api client configuration files to assist gRPC API connections (e.g. pyvelociraptor).

Default: 192.168.1.11

API.bind_address

Interface to bind to - by default only bind to 127.0.0.1 but will need to be exposed on 0.0.0.0 for external pyvelociraptor clients to connect.

Default: 127.0.0.1

API.bind_port

The port to listen on.

Default: 8001

API.bind_scheme

Usually these do not need to be changed.

Default: tcp

API.pinned_gw_name

Do not change this. It is the common name of the certificate that will be trusted to be from the GUI. ACL checks will be disabled for all connections from this name.

Default: GRPC_GW

GUI

Configure the GUI admin web application.

GUI.use_plain_http

Allows the GUI to start with no encryption - WARNING This only makes sense if you have TLS proxy in front. In fact the GUI will not work without a TLS proxy because the CSRF cookie is still set to secure only.

Default: false

GUI.base_path

You can serve Velociraptor at a sub path of the server. All URLs will then be formed below the base path.

Default: /

GUI.public_url

The public URL of this server. Change this if you are proxying the GUI using a different URL.

Default: http://velo.example.com/app/index.html

GUI.allowed_cidr

A list of CIDR addresses from permitted networks. If this is not set, permit all connections to the GUI from anywhere. This is useful when you want to limit access to the GUI by IP address but still allow access to clients from any IP, while running both the frontend and GUI on the same port (normally port 443)

Default: - 192.168.0.0/16

GUI.forwarded_proxy_header

Header defined by the proxy containing the remote address. This header will be used in the allowed_cidr matching if specified. NOTE: Only use this if you do have a reverse proxy in front of the server. Otherwise an attacker can simply send this header to pretend to come from any IP address. If this setting is specified we take the src address from the header, otherwise from the remote IP address. Default is not set.

Default: "X-Forwarded-For"

Allows additional links to be defined for site customization.

Default: -

GUI.links.text

The text of the link (visible in the GUI)

Default: Google Search

GUI.links.url

Where the link points to.

Default: https://www.google.com

GUI.links.new_tab

should the link be opened in a new tab?

Default: true

GUI.links.type

The type of links. Currently: sidebar: This link will appear in the sidebar navigation menu context: Will appear as part of the context (right click) menu

Default: sidebar

GUI.links.icon_url

The icon before the link. This can be a data URL or a link to a png

Default: data:image/svg+xml;base64,....

GUI.links.encode

For context menu the value in the cell can be relayed to the target URL. This setting controls the encoding of the value and the parameter to attach it to.

Default: "plain"

GUI.links.parameter

Default: "q"

GUI.links.method

Can be GET (default) or POST

Default: "GET"

GUI.links.disabled

If set we ignore this entry completely

Default: false

GUI.bind_address

Bind the GUI to this port. By default: For self signed SSL the GUI will be bound to the localhost only! For Let’s Encrypt deployments the GUI will be bound on 0.0.0.0 making it accessible from anywhere. NOTE: The only valid settings here are 0.0.0.0 for external access and 127.0.0.1 for localhost - Do not specify any other address unless you know what you are doing!

Default: 127.0.0.1

GUI.bind_port

Bind port for the GUI. When using Let’s Encrypt the GUI is bound to port 443 and this setting is ignored because Let’s Encrypt only supports port 443.

Default: 8889

GUI.gw_certificate

The internal certificate for gRPC connections between the gateway and the API server. DO NOT Change this!

Default:

|
    -----BEGIN CERTIFICATE-----
    Generated by the config wizard!!!
    -----END CERTIFICATE-----

GUI.gw_private_key

Default:

|
    -----BEGIN RSA PRIVATE KEY-----
    Generated by the config wizard!!!
    -----END RSA PRIVATE KEY-----

GUI.reverse_proxy

Velociraptor supports a reverse proxy allowing you to place other applications behind the Velociraptor Oauth2/TLS server.

Default: -

GUI.reverse_proxy.route

Any paths below this route will be forwarded to the given URL (and the path copied into the target)

Default: /CyberChef/

GUI.reverse_proxy.url

The URL to forward to. This can be a file:// URL which allows you to host static files at this location.

Default: file:///shared/CyberChef/

GUI.reverse_proxy.require_auth

If this is set to true, the user needs to be authenticated to Velociraptor before they are proxied.

Default: true

GUI.trusted_origins

A list of domains that we will trust to send us the CSRF token. Use this only when serving the JS from a different domain than the API server.

Default: - www.example.com

GUI.initial_users

When the Velociraptor server starts for the first time, the server can create the following initial user with admin level access. This is designed to automate deployment and allow users to sign in immediately to the GUI. You can remove these accounts or change their ACLs/Roles later.

Default: -

GUI.initial_users.name

Username to create

Default: mic

GUI.initial_users.password_hash

Password hashes - this is only useful for Basic Authenticator which uses passwords. They can be left empty for Oauth based authenticator.

Default: aa3a779e09062dea3a46811e0c0624ba7999cf15a2d12dce7489aca339c3deff

GUI.initial_users.password_salt

Default: f8707a7a9c876a4e6210d4f5bbdee4846adff7465d50efc43a305175aab8f146

GUI.initial_orgs

When Velociraptor starts the first time these orgs will be created.

Default: -

GUI.initial_orgs.org_id

Default: O1234

GUI.initial_orgs.name

Default: My Company

GUI.initial_orgs.nonce

If this is empty we use the org id. The nonce is a shared secret in the client configuration which binds clients to this Org. See Client.nonce.

Default: O1234

GUI.authenticator

How to authenticate users to the server. Velociraptor comes with a large number of authenticators. This section configures the authenticator to use.

GUI.authenticator.type

The type of authenticator to use. Currently: basic, google, azure, oidc-cognito (prior to v0.75.6), github, saml, oidc, multi

Default: basic

GUI.authenticator.saml_certificate

Used by SAML authenticator

Default:

|
      -----BEGIN CERTIFICATE-----
      -----END CERTIFICATE-----

GUI.authenticator.saml_private_key

Default:

|
      -----BEGIN RSA PRIVATE KEY-----
      -----END RSA PRIVATE KEY-----

GUI.authenticator.saml_idp_metadata_url

Default: http://localhost:8080/simplesaml/saml2/idp/metadata.php

GUI.authenticator.saml_root_url

Default: https://localhost:8889

GUI.authenticator.saml_user_attribute

Default: email

GUI.authenticator.saml_allow_idp_initiated

Allow IdP-initiated SAML flow.

Default: false

GUI.authenticator.saml_user_roles

This feature allows roles to be set in the SAML claims. It is a similar feature to the OIDC Role setting below but less flexible. If you need more flexibility, prefer to use the OIDC flow.

When these are configured, any user that authenticated with SAML will receive these roles on all the orgs. These roles are the minimum roles the user can have - you can add more roles via the GUI

NOTE: roles are additive which means you can not revoke the roles from the IDP. If you need this use the OIDC flow below with the override_acls flag.

Default:

- analyst
- investigator

GUI.authenticator.oidc_issuer

URL to OIDC Configuration Document. The configuration should be available in the ‘oidc_issuer + /.well-known/openid-configuration’ endpoint.

Default: ""

GUI.authenticator.oidc_name

Name of this authenticator to show in the GUI (e.g company name). Note that you can provide many OIDC authenticators as part of the multi authenticator so having a name here helps keep them recognizable.

Default: "Company Name"

GUI.authenticator.oidc_auth_url_params

Additional URL parameters that should be added to the OIDC redirect URL.

GUI.authenticator.oidc_auth_url_params.Key

Default: Value

GUI.authenticator.avatar

Default: http://www.example.com/icon.png

GUI.authenticator.oauth_client_id

These are required for the oauth flow - get from the OIDC provider.

Default: C123445

GUI.authenticator.oauth_client_secret

Default: X23456

GUI.authenticator.oidc_debug

When this is set we emit detailed logging. Turn this on when configuring the server initially if you want to debug your OIDC setup. You probably do not want this enabled in production.

Default: false

GUI.authenticator.disable_email_to_sub_pin

In many IdP the email address can be changed and is not verified. By default Velociraptor OIDC authenticator pins the email address to the immutable sub GUID reported by the OIDC server. This stops email addresss hijacking in some situation but prevents the same email from being used by different IdP servers. Set this parameter to disable this pinning and allow the same email address on different OIDC sub IDs. Be careful that users are not able to set any email address for their account in the IdP as this allows them to take over other user’s accounts. This setting is required for the MultiAuthenticator to work properly.

Default: false

GUI.authenticator.claims

Additional OIDC claims configuration. This is an experimental setting and should not be used except for specific situations.

GUI.authenticator.claims.username

The name of the claim that represents the username (by default this is ‘email’). Be careful that this MUST be unique across the domain! It is vulnerability to allow something like ‘name’ across a public domain because anyone can set this name in their OIDC accounts!

Default: email

GUI.authenticator.claims.roles

The field that specifies the roles. If this not set (the default), we do not allow roles to be set via OIDC. You must configure your OIDC server to send specific roles in this claim (the claim can be named for example ‘roles’). If this is configured we use the role map below to assign Velociraptor roles based on the OIDC server’s roles.

NOTE: The roles will be assigned to the user in all orgs.

Default: ""

GUI.authenticator.claims.role_map

A mapping between OIDC claim roles and Velociraptor roles. For example:

Default: Velociraptor.Reader:

GUI.authenticator.claims.role_map.roles

Default: - reader

GUI.authenticator.claims.allow_unverified_email

Velociraptor usually requires the email_verified claim before we can trust the email claim and use it as the username. However, some IDP (e.g. Azure) do not set this. If you want to ignore this requirement, set the below to true.

Default: false

GUI.authenticator.claims.override_acls

When this is set, the OIDC roles override (clear) existing velociraptor roles. The default behavior is to ensure the user’s ACL contains at least the OIDC roles. This is needed if you want to be able to remove access from the IDP.

Default: false

GUI.authenticator.tenant

This is specifically required by the Azure authenticator only.

Default: O...

GUI.authenticator.auth_redirect_template

URL to redirect to on Unauthorized API call. If blank we just cycle to the logon screen again.

Default: http://www.google.com

GUI.authenticator.default_roles_for_unknown_user

Certs authenticator: If a user presents a certificate but does not exist in the system, the user will automatically receive a default role. If this is not set the user will be rejected and you will have to manually add the user to a role before they are allowed.

Default: - administrator

GUI.authenticator.default_session_expiry_min

How long to keep the session alive between auth flows - default 24 hours

Default: 1440

GUI.authenticator.sub_authenticators

Used by the multi authenticator to provide multiple authenticators. NOTE: Sub authenticators must be oauth based (i.e. not basic auth).

GUI.authenticator.sub_authenticators.type

Default: Google

CA

This is the internal Velociraptor CA configuration. It is needed to sign new API keys. Secure deployments can remove this part of the config and safely store it offline.

CA.private_key

CA private key - the public certificate is in Client.ca_certificate

Default:

|
    -----BEGIN RSA PRIVATE KEY-----
    -----END RSA PRIVATE KEY-----

Frontend

Configuration of the frontend. The Frontend is the service that directly talks with clients.

Frontend.base_path

Serve the Frontend from this base path instead of “/”

Default: "/"

Frontend.use_plain_http

This allows the frontends to listen on plain HTTP - It is useful if you have SSL offloading (e.g. nginx). This is not configured by the wizard - you will need to manually configure it. You better know what you are doing here!

Default: false

Frontend.require_client_certificates

Enabling this requires the clients to present a valid certificate (signed by one of the Root CAs listed in Client.Crypto.root_certs or the Velociraptor built in CA itself). NOTE: If you use configurations that place the Frontend and the GUI on the same port then you MUST use the ClientCertificate authenticator. See further discussions at Client.Crypto.client_certificate.

If this setting is enabled it becomes more difficult to troubleshoot the server since a simple curl command will be rejected. To test connectivity with the server you should instead provide client cert and key files:

curl -kv https://localhost:8000/server.pem –cert client.pem –key key.pem

Default: false

Frontend.proxy

A proxy setting to use - Velociraptor needs to connect to download tools. This setting will force it to go out over this proxy. NOTE- If you don’t want to allow outbound connections, just set this to an non-existent setting (e.g. http://127.0.0.1:3128).

SECURITY: This proxy setting and the proxy_config below control ALL server-initiated outbound HTTP connections, including tool materialization and VQL’s http_client() plugin. Without a proxy or with a permissive proxy, any user with admin-equivalent permissions can make the server fetch arbitrary URLs, including internal RFC 1918 addresses and cloud endpoints. Set a restrictive proxy or configure proxy_url_regexp to limit outbound destinations

Default: "http://127.0.0.1:3128"

Frontend.proxy_config

These proxy settings are exactly the same as the Cllient.proxy_config settings but apply to the server.

Frontend.proxy_config.http

Default: "<not set>"

Frontend.proxy_config.https

Default: "<not set>"

Frontend.proxy_config.proxy_url_regexp

Default: "^https://localhost/": ""

Frontend.proxy_config.pac

Default: "<not set>"

Frontend.proxy_config.ignore_environment

Default: false

Frontend.do_not_compress_artifacts

Velociraptor can attempt to obfuscate artifact names when compiling them into raw VQL. If this is set to false this obfuscation is removed.

Default: true

Frontend.hostname

The publicly accessible hostname of the frontend.

Default: 192.168.1.11

Frontend.bind_address

Which interface to bind to. Usually the frontend is bound to 0.0.0.0 to allow all clients to connect from anywhere.

Default: 0.0.0.0

Frontend.bind_port

Default: 8000

Frontend.certificate

These are used to secure the client/server communications - Even when using external TLS certificates! This certificate must be signed by the Velociraptor root CA in all cases (tls_certificate_filename for that). If using an external TLS configuration this layer of encryption happens in addition to the external TLS certificates.

Default:

|
    -----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----

Frontend.private_key

Default:

|
    -----BEGIN RSA PRIVATE KEY-----
    -----END RSA PRIVATE KEY-----

Frontend.tls_certificate_filename

If you want to use your own certificates for TLS as an alternative to Autocert, then you can set those here. These certificates will be used for TLS on both the frontend and GUI. NOTE: We expect these to be proper certificates - i.e. NOT self signed. If you want to use certificates issued by another CA you will also need to add that CA cert to the Client.Crypto.root_certs field.

Be sure to set Client.use_self_signed_ssl=false when you set this.

Default: "/etc/cert.pem"

Frontend.tls_private_key_filename

Default: "/etc/cert.key"

Frontend.dyn_dns

If configured, Velociraptor will attempt to update the dynamic DNS server with its public IP address. Currently we only support a number of providers including noip and cloudflare.

Frontend.dyn_dns.type

The type of DynDNS provider (Can be cloudfront or noip)

Default: noip

Frontend.dyn_dns.hostname

The hostname to update

Default: www.velo.com

Frontend.dyn_dns.ddns_username

Default: 1234233452

Frontend.dyn_dns.ddns_password

Default: 2313e2324

Frontend.dyn_dns.ddns_hostname

The hostname to update - if empty we use Frontend.hostname

Default: "<not set>"

Frontend.dyn_dns.update_url

If empty we use Google Domains.

Default: http://dyndns.provider.com/

Frontend.dyn_dns.frequency

How often to check for IP assigned

Default: 60

Frontend.dyn_dns.checkip_url

The url we will use to check the ip. Should return a plain IP address (default is Google Domains)

Default: http://dyndns.provider.com/checkip

Frontend.dyn_dns.dns_server

DNS server we query for our own hostname/ip mapping (default 8.8.8.8:53)

Default: "8.8.8.8:53"

Frontend.dyn_dns.api_token

Used by the cloudfront provider

Default: <not set>

Frontend.dyn_dns.zone_name

The zone to update (dns domain).

Default: <not set>

Frontend.proxy_header

Header defined by the proxy containing the remote address. If this is not set we use the remote IP address from the TCP connection. This setting is needed if you have a reverse proxy in front of the server.

Default: "X-Forwarded-For"

Frontend.default_server_monitoring_artifacts

We have the Server.Monitor.Health enabled always but these are any additional artifacts that should be installed by default.

Default: - Server.Monitor.Health

Frontend.default_client_monitoring_artifacts

When creating the initial client monitoring artifact table, these artifacts will be assigned to all clients.

Default: - Generic.Client.Stats

Frontend.run_as_user

The user that the frontend should run as. If set we refuse to run as a different user. This is normally set by the Ubuntu deb package as it is running as a low privilege user called “velociraptor”. This setting is important as it stops users from running velociraptor as root with sudo - doing this will break the velociraptor datastore when it creates files only readable by root.

Default: velociraptor

Frontend.initial_server_artifacts

When the server is created initially, these server artifacts will be collected. You can use this to fire custom initialization sequences.

Default: - MySpecialArtifact

Frontend.GRPC_pool_max_size

Number of gRPC connections in the pool to use to connect to the API server.

Default: 100

Frontend.GRPC_pool_max_wait

Default: 60

Frontend.artifact_definitions_directory

Load artifacts from this directory at startup

Default: "/tmp/"

Frontend.collection_error_regex

A regular expression that if matches any log messages from the client’s query represent a failure of the collection. Marking the collection as failed can highlight potential problems with the VQL so this regex tries to detect common issues (e.g. Symbol not found) to draw attention to failures.

Default: "ERROR:"

Frontend.resources

Sets resource limitations on the server. These parameters represent the set of tunable parameters you can use to optimize performance on loaded servers.

Frontend.resources.connections_per_second

Load shed connections faster than this to preserve stability.

Default: 300

Frontend.resources.notifications_per_second

The rate at which we notify clients of new work (e.g. a new hunt is started). Slower notification rate helps to slow down the swarm effect and reduced load on the server.

Default: 1000

Frontend.resources.enrollments_per_second

How quickly do we enroll clients (default 100/s, -1 to disable enrollments)

Default: 100

Frontend.resources.concurrency

The maximum number of concurrent client connections we can process. Concurrency limits helps to ensure the server is not overloaded serving too many clients at the same time. Concurrency refers to the actual serving time of a client (i.e. time taken to read the response and write to the datastore), not the total number of clients served by server. Default is number of cores * 2.

Default: 20

Frontend.resources.concurrency_timeout

The maximum time a client will be waiting for a concurrency slot before timing out. A small value will result in many reconnections under load and may degrade performance.

Default: 600

Frontend.resources.max_upload_size

Increasing this allows the frontend to receive larger POST messages lowering crypto overheads but this comes at the expense of more memory use.

Default: 10485760

Frontend.resources.expected_clients

This setting controls the size of various LRU caches in the frontend (e.g. the session key cache, client info cache). This number should be larger than the number of actual clients or else the system will see high CPU load from cache misses.

Default: 10000

Frontend.resources.per_client_upload_rate

Bandwidth control: Per client and global rates in bytes/sec. This is useful for low bandwidth deployments where we want to ensure Velociraptor does not saturate slow links. The bandwidth limitation caps the total bandwidth used by the server per client and globally.

Default: 0

Frontend.resources.global_upload_rate

Default: 0

Frontend.resources.client_event_max_wait

Wait time for collecting events from clients - smaller means less latency to respond to client events but also means more TLS handshake and network overheads due to frequent POST.

Default: 100

Frontend.resources.minion_batch_wait_time_ms

Minions batch updates to the master so as to minimize RPC as much as possible, this controls how often these batches are flushed to the master (default 10 sec).

Default: 10

Frontend.resources.client_info_lru_ttl

Number of seconds before expiring client info cache entries. Default (0) means do not expire at all. Expiring client info from cache too frequently can result in a lot more IO. Default size of this cache is the expected_clients above.

Default: 0

Frontend.resources.client_info_sync_time

How often to sync client info records (ms) between minion and master.

Default: 0

Frontend.resources.client_info_write_time

Default: 0

Frontend.resources.client_info_skip_writing_legacy_records

Old versions of Velociraptor would write client records separately. This is no longer used as the records are combined into larger index files. However, it may still be worth writing the legacy records because it allows Velociraptor to rebuild the index if needed. This may prove to add too much to the load so we can turn it off by default in future.

Default: false

Frontend.resources.max_journal_buffer_size

The journal files are used to queue messages between event generators and event consumers when the consumer is unable to drain these quickly enough. The setting specifies the maximum size of the file - when it is exceeded, the file will be truncated and events will be lost. Default is 1gb

Default: 1000000000

Frontend.resources.index_snapshot_frequency

How often to save an index snapshot to storage (default 600 sec). Index files are typically 150kb / 1000 clients.

Default: 10

Datastore

Velociraptor has a datastore abstraction and can use a number of possible data storage engines. This section configures the data store implementation.

Datastore.implementation

The data store implementation to use. This is usually set to FileBaseDataStore.

Default: FileBaseDataStore

Datastore.location

The directory under which we store small files.

Default: /mnt/data

Datastore.filestore_directory

Larger result sets and uploads are stored in the filestore_directory. This is usually the same as the location setting but it can be different to keep larger slower storage options away from smaller and faster data.

Default: /mnt/data

Datastore.memcache_write_mutation_max_age

How long before a write is forced from the pool for delayed writes

Default: 1

Datastore.memcache_write_max_memory

Maximum amount of data cached in memory before we force it to be flushed to disk. Default 100mb

Default: 100000000

Datastore.minion_implementation

When using a master/minion setup it is necessary to have the Master and Minion nodes use different filesystem implementations. These more specific parameters can control datastore implementations on the master and minion separately.

Default: RemoteFileDataStore

Datastore.master_implementation

Default: MemcacheFileDataStore

Datastore.max_dir_size

Cap directories to this size after reporting error - this should not happen normally but may happen if the deployment has been very active or due to a bug!

Default: 50000

Datastore.min_allowed_file_space_mb

Set to the min required disk space. When we fall below this available disk space, we refuse to write files. This avoids the possibility of writing corrupted files. Default is 50mb. Set to -1 to disable disk space monitoring.

Default: 50

Datastore.disk_check_frequency_sec

How often to check the disk space (default 10 sec)

Default: 10

Datastore.memcache_expiration_sec

The following apply to the MemcacheFileDataStore

How long to expire the memcache (default 10 min)

Default: 6000

Datastore.memcache_write_mutation_buffer

How many mutations to queue up ahead of busy writers. By default 0 means writes will be blocked until they are handed off to a writer thread. Set to -1 to disable asynchronous writes.

Default: 100

Datastore.memcache_write_mutation_writers

The MemcacheFileDataStore separates writers into a writing pool. These set the number of writer threads in that pool. Number of writing threads - increase for high latency filesystems (default 100).

Default: 100

Datastore.memcache_write_mutation_min_age

How long to delay writes so they can be combined. This applies for writing result sets - we keep the writes in memory for min_age seconds in order to combine further writes. If another write occurs to the same result sets the TTL is extended and writes are delayed. However, once we reach max_age, a write is forced. The aim is to keep combining separate writes as much as possible into larger writes but at the same time prevent frequently written files from never flushing to disk.

Default:

1000 # Default 1000 msec
  int64 memcache_write_mutation_max_age: 5000  # Default 5000 msec

Datastore.memcache_datastore_max_size

MemcacheFileDataStore will cache small files in memory to improve efficiency. This is the maximum size of the cache. Maximum size of memcache lru (default 10000)

Default: 10000

Datastore.memcache_datastore_max_item_size

Do not cache large objects in memory - falls back to FileBaseDataStore

Default: 1000

Datastore.memcache_datastore_max_dir_size

Default: 50000

Datastore.compression

The compression mode for collections. This setting allows compressed results to be stored on the server. For performance reasons, the client must compress the data into chunks and the server simply writes the results to storage. This means it is only supported by clients more recent than 0.75.

Allowed settings: - none: No compression - disable compression in client transmission. Note that for older clients (prior to 0.75), compression is not supported anyway, but this setting will disable compression on new clients as well.

  • zlib: Zlib compression enabled on collections. This is the default setting when communicating with newer clients.

Default: "zlib"

Datastore.max_object_size

The maximum size of stored objects in the datastore. The Datastore is assumed to contain smallish objects which are read and written atomically. This setting places a limit on the size of these objects to maintain efficiency and speed. If you hit this limit it means that you need to rethink your approach. See https://atlantsecurity.github.io/atlantiraptor/troubleshooting/server/#message-too-large The default size is 4Mb.

Default: 4194304

Logging

Configure logging behavior

Logging.output_directory

A directory to write log files in .

Default: /mnt/data/logs

Logging.separate_logs_per_component

If this is set the logs will be separated into different components (e.g. Frontend, GUI, Audit etc). This makes it easier to find the source of the log messages

Default: true

Logging.remote_syslog_server

If you want to forward events to a remote syslog server, fill this server addresss or hostname. If a port is omitted we use port 514.

Default: "localhost:514"

Logging.remote_syslog_protocol

The protocol to use for remote syslog (default udp).

Default: "udp"

Logging.remote_syslog_components

The logging components to forward. If not specified we only send Audit events.

Default: - VelociraptorAudit

Logging.debug

Specific configuration for each log level. If a log level is not configured here it is logged as normal.

Logging.debug.rotation_time

How often to rotate the files in seconds.

Default: 8000

Logging.debug.max_age

Maximum age of each file (File will be deleted after this time (1 year).

Default: 31536000

Logging.debug.disabled

If this is true this log source is disabled.

Default: true

Logging.info

Logging.info.rotation_time

Default: 8000

Logging.info.max_age

Default: 31536000

Logging.info.disabled

Default: true

Logging.error

Logging.error.rotation_time

Default: 8000

Logging.error.max_age

Default: 31536000

Logging.error.disabled

Default: true

Monitoring

This controls the Monitoring server (i.e. Prometheus) If you have a monitoring service like Grafana or Data Dog then change this server to bind to 0.0.0.0 and point your scraper at it.

Monitoring.bind_address

Default: 127.0.0.1

Monitoring.bind_port

Default: 8003

Monitoring.metrics_url

If set we use this in links etc, otherwise we take a guess based on bind_address and bind_port above.

Default: "http://localhost:8003/metrics"

autoexec

Run these automatically when the binary starts.

autoexec.argv

When starting without any command line parameters, this argv array will be used as if it was typed on the command line. This is a way to get Velociraptor to automatically execute a function as startup when used without parameters.

Default:

- artifacts
- collect
- Generic.Client.Info

autoexec.artifact_definitions

Load these artifact definitions into the binary at startup. NOTE: These definitions are considered “built-in” which will ensure they can not be modified at runtime.

The format of these fields is an artifact definition - so the following description also covers artifact definitions more generally.

Default: -

autoexec.artifact_definitions.name

The name of the artifact. Artifacts are referred to by name within the system.

Default: Generic.Client.InfoXXX

autoexec.artifact_definitions.description

A Human readable description of the artifact. This should have a single summary paragraph

Default: Artifact Description

autoexec.artifact_definitions.author

The artifact author

Default: Author

autoexec.artifact_definitions.type

Type of the artifact: CLIENT, SERVER, CLIENT_EVENT, SERVER_EVENT

Default: CLIENT

autoexec.artifact_definitions.reference

A list of references

autoexec.artifact_definitions.reference.https

Default: //www.google.com

autoexec.artifact_definitions.tools

Artifacts can specify third party tools to load. Velociraptor will attempt to fetch these tools when a user wants to collect this artifact. Velociraptor will push the tool to the endpoint so the artifact may use it.

Default: -

autoexec.artifact_definitions.tools.name

The name of the tool

Default: MyTool

autoexec.artifact_definitions.tools.url

The URL to fetch the tool from when we upload it the first time, or when we update.

Default: http://www.google.com

autoexec.artifact_definitions.tools.github_project

As an alternative to a url we allow scrapping of GitHub releases using the github API. NOTE: When this method is specified, the file will always be served locally.

Default: GitHubProject

autoexec.artifact_definitions.tools.github_asset_regex

Default: GitHubAsset

autoexec.artifact_definitions.tools.serve_locally

If set, the tool will be served locally from the filestore path - otherwise the endpoint will download the file by itself from the url above.

Default: true

autoexec.artifact_definitions.tools.admin_override

This is set when an admin explicitly overrides a tool. If this is set we will not update the tool definition when upgrading server versions.

Default: true

autoexec.artifact_definitions.tools.serve_url

Once the tool is added with the above fields, the following fields are used to keep state on it.

The URL we serve the tool from when we serve locally. If this is empty we just let the endpoint download its own tool from the url above.

Default: https://www.google.com

autoexec.artifact_definitions.tools.serve_path

Only valid for local dummy inventory.

Default: Where to read the file from the filesystem

autoexec.artifact_definitions.tools.filestore_path

A filestore path where the file can be downloaded from - if served locally.

Default: /public/1234

autoexec.artifact_definitions.tools.filename

The name of the cached file on the endpoint. This file will persist and can be accessed again if this tool is needed in future. If the file is missing (or has the wrong hash), then it will be downloaded again.

Default: MyTool.exe

autoexec.artifact_definitions.tools.expected_hash

Hex encoded sha256 hash of the file. Endpoints will check this hash against their fetch file to ensure it was correctly transferred.

Default: 1234

autoexec.artifact_definitions.tools.materialize

If set on a request we refresh the hash.

Default: true

autoexec.artifact_definitions.required_permissions

A list of permissions the user needs to possess before they are allowed to collect this artifact.

Default: - EXECVE

autoexec.artifact_definitions.resources

autoexec.artifact_definitions.resources.timeout

Default timeout for this artifact

Default: 600

autoexec.artifact_definitions.resources.ops_per_second

Default: 100

autoexec.artifact_definitions.resources.cpu_limit

Default: 20

autoexec.artifact_definitions.resources.iops_limit

Default: 20

autoexec.artifact_definitions.resources.max_rows

Default resource use for the entire collection.

Default: 1000000

autoexec.artifact_definitions.resources.max_upload_bytes

Default: 1000000

autoexec.artifact_definitions.precondition

If the artifact specifies a precondition the client will evaluate this query before evaluating the main artifact. If the precondition returns no rows (ie. FALSE) then the artifact will not be collected. You can use the precondition to protect incompatible clients from collecting the artifact (usually the OS condition).

Default: SELECT OS FROM info() WHERE OS =~ "windows"

autoexec.artifact_definitions.parameters

Parameters are provided to the artifact by the user. They can change the way the VQL is evaluated.

Default: -

autoexec.artifact_definitions.parameters.name

The name of the parameter. This name will appear in the scope during query execution.

Default: Foo

autoexec.artifact_definitions.parameters.friendly_name

A human friendly name for the parameter (if not specified we show the name).

Default: A Foo Variable

autoexec.artifact_definitions.parameters.default

A default value for the parameter. NOTE: Parameters are always strings so this field needs to be the string representation of the type - e.g. “10” rather than 10.

Default: "10"

autoexec.artifact_definitions.parameters.description

A description of this parameter to be shown in the GUI

Default: A parameter

autoexec.artifact_definitions.parameters.type

The type of this parameter. Currently one of: string, regex, yara, upload, int, int64, integer, timestamp, csv, artifactset, json, json_array, bool, choices

Default: int

autoexec.artifact_definitions.parameters.choices

For parameters of type “choices” this is a list of possible choices.

Default:

- One
- Two

autoexec.artifact_definitions.export

A snippet of VQL that can be imported by other artifacts

Default: VQL here

autoexec.artifact_definitions.imports

A list of artifacts that will be imported by this artifact.

Default: - Artifact.Name

autoexec.artifact_definitions.sources

A list of queries to gather data from.

Default: -

autoexec.artifact_definitions.sources.name

An optional name for the query

Default: MySource

autoexec.artifact_definitions.sources.description

Default: A description for the source

autoexec.artifact_definitions.sources.query

Default: SELECT * FROM info()

autoexec.artifact_definitions.sources.queries

An internal list of compiled queries. For backwards compatibility with very old artifacts.

Default: - DO NOT USE

autoexec.artifact_definitions.sources.precondition

A precondition applying to this source only.

Default: SELECT OS FROM info() WHERE OS =~ "windows"

autoexec.artifact_definitions.sources.notebook

An artifact source may define multiple notebook cells to be used when the artifact is collected or hunted for.

autoexec.artifact_definitions.sources.notebook.type

The type of the notebook cell: e.g. suggestion adds a cell to the suggestion button. Also can be vql or markdown.

Default: suggestion

autoexec.artifact_definitions.sources.notebook.env

Parameters to pre-populate in the cell.

autoexec.artifact_definitions.sources.notebook.env.key

Default: X

autoexec.artifact_definitions.sources.notebook.env.value

Default: Y

autoexec.artifact_definitions.sources.notebook.template

Default: Text here

server_type

Default: linux

obfuscation_nonce

This is used to obfuscate artifact names when sending to the client. NOTE: This is currently not very robust - i.e. it does not hide the artifact names very well - you should not name artifacts in a sensitive way.

This value is server-only and is NOT distributed to client configuration files. Do not confuse it with Client.nonce, which is a different value that IS sent to clients for org grouping.

Default: zKJDb3KcWh8=

autocert_cert_cache

Path to store autocert certificates.

Default: /tmp/

defaults

Various defaults used by various things.

defaults.notebook_cell_timeout_min

Normally notebook queries timeout in 10 minutes (can not be changed from within the notebook). This is done to reduce load on the server. If you want to increase notebook timeout you can change this.

Default: 10

defaults.notebook_default_new_cell_rows

By default new cells only list 50 rows if there is no custom cell template. This is to make refreshing the cell quick. Usually users need to edit or the limit clause to see the full result table in the cell. This setting increases the default 50 rows.

Default: 50

defaults.notebook_memory_low_water_mark

When running on a shared server notebook calculations can increases memory use and affect other users. The following settings control notebook calculations to ensure they do not use too much memory. You should set the following in accordance with the VM settings of the server with a small margin of safety.

When calculating a new cell we do not start calculation until the process memory is smaller than the low memory mark.

Default: 0

defaults.notebook_memory_high_water_mark

When the process memory exceeds the high water mark, we actively cancel in flight notebook cell calculations to bring memory use down.

Default: 0

defaults.notebook_number_of_local_workers

Since Version 0.7.1, notebook queries are run in separate worker threads, even on single server configurations. This parameters sets the number of workers available.

Set to -1 to disable local workers. The default is 5 local workers. If you want the master to not perform any notebook computations reduce this to -1 and set Minion.notebook_number_of_local_workers to 5.

Default: 5

defaults.notebook_wait_time_for_worker_ms

Wait this long for a worker to become available before giving up. The default is 10 seconds.

Default: 10000

defaults.notebook_worker_priority

The default priority of notebook processors (Higher priority will receive jobs over lower priority).

Default: 10

defaults.csv_delimiter

When exporting to CSV from the GUI the usual separator is comma (,). This setting allows to change the default to any single character.

Default: ','

defaults.hunt_expiry_hours

By default hunts expire in 7 days but you can change this using this setting.

Default: 168

defaults.event_max_wait

Default value of max_wait and relevant jitter for new event queries the GUI creates.

Default: 100

defaults.event_max_wait_jitter

Default: 30

defaults.event_change_notify_all_clients

If set we actively notify all clients as soon as event table is changed. This causes a lot of load on large deployments so it is off by default. It means that you will need to wait for the client to reconnect before it receives updates to its event table (usually about 5 min). When running velociraptor gui we set this to true in order to get a responsive GUI.

Default: false

defaults.artifact_definitions_directories

Additional directories to load artifacts from on start up.

Default: - /etc/artifacts/

defaults.max_in_memory_group_by

The number of rows to keep in memory during a group by operation. Once this is exceeded we switch to disk mode which is a lot slower but has no memory limitations. Default 30000

Default: 30000

defaults.acl_lru_timeout_sec

How long to cache ACL policies (default 60 sec)

Default: 60

defaults.unauthenticated_lru_timeout_sec

Ignore messages from unauthenticated clients for this long - gives them a chance to enroll first (default 10 sec).

Default: 10

defaults.export_concurrency

Controls how exports work (creating hunt or collection exports to a zip file). On slow filesystems, increase the number of worker threads to increase parallelism. You can also increase the timeout if the filesystem is too slow to build large hunt zip files within the default 10 minute timeout.

Default: 10

defaults.export_max_timeout_sec

Default: 600

defaults.hunt_dispatcher_refresh_sec

The server maintains an index of all hunts in order to quickly allow the GUI to filter/sort them. This setting controls how often to rebuild the hunt index (default 600 sec). You probably don’t need to change it.

Default: 600

defaults.hunt_dispatcher_refresh_rate

The hunt dispatcher index rebuild is rate limited to reduce load on the server. This sets how fast it should go (in flows per second). You probably do not want to change this.

Default: 10

defaults.notebook_versions

Total number of cell versions we keep for undo/redo support.

Default: 5

defaults.watch_plugin_frequency

Watch plugin frequency sleep time in seconds: How often watch_syslog() will check for changes (default 3).

Default: 3

defaults.watch_plugin_buffer_size

Maximum length of the line that will be parsed (16kb)

Default: 16384

defaults.backup_period_seconds

Period in seconds when to produce a backup. Velociraptor will generate a backup of important metadata about the server. By default this happens daily but you can change it here (set to -1) to disable backups.

Default: 86400

defaults.client_info_housekeeping_period

The server’s client info manager runs housekeeping tasks periodically to determine if clients need to be notified. This setting controls how often to run the client info’s house keeping thread in seconds (default 60 sec)

Default: 60

defaults.disable_unicode_usernames

Disable unicode usernames. By default Velociraptor allows usernames to consist of any Unicode character for i8n support, however this opens the possibility for Homoglyph attacks. Setting the following to true will restrict usernames to the set a-z and 0-9

Default: false

defaults.reindex_period_seconds

How often to refresh the search index (default 5 min). This rebuilds the search index periodically to avoid inconsistencies.

Default: 300

defaults.indexed_client_metadata

The client metadata is an arbitrary key/value store that holds user defined information per client. You can normally store anything in the client metadata but this information is not indexed, making searching on it slow (using VQL each client’s metadata blob needs to be opened, read and matched).

This setting allows you to define some fields in the client metadata that will be indexed. These fields should not be too large so as to keep the index size smallish so it is recommended to use only small strings. Once fields are defined here, the extra data can be searched in the GUI search bar using a verb such as :match.

For example, define here: indexed_client_metadata: - department

Then a search for department:accounting will match all clients with the key department and value contains accounting in their client metadata.

Default: - department

defaults.disable_active_inflight_checks

If this is set we do not actively check the status of in-flight collections. This is a new feature to 0.73 and may need to be disabled in some large deployments due to additional overheads.

Default: false

defaults.write_internal_events

Normally internal event artifacts are not written to disk but passed internally. For debugging it is useful to have a written record though. Enabling this will also write them to disk. Probably only useful for debugging.

Default: false

defaults.max_rows

Defaults for client communication limits. Decrease those if your clients are behind a proxy that only accepts very small POST messages. If not set we use client defaults.

Default: 0

defaults.max_row_buffer_size

Default: 0

defaults.max_batch_wait

Default: 0

defaults.max_logs

Maximum default value for log messages sent by the client for each flow. Once this is reached, the client stops sending log messages in the current collection.

Default: 100000

lockdown

The Velociraptor server may be placed into “lockdown” mode. While in lockdown mode certain permissions are denied - even for administrators. This additional protection mode helps to mitigate the case when a Velociraptor administrator’s account is compromised. The server can be taken out of lockdown mode by setting lockdown to false and restarting the server.

Default: false

debug_mode

This will be set when Velociraptor is started with the –debug flag.

Default: false

Minion

This configuration applies for minions. On minions this will override the settings elsewhere in the config file allowing an easy way to manage the difference between minions and master nodes. This override occurs at config load times so you can see the final configuration using velociraptor –minion –config server.config.yaml config show

Minion.notebook_number_of_local_workers

Used to override Defaults.notebook_number_of_local_workers

Default: 4

Minion.notebook_worker_priority

Used to override Defaults.notebook_worker_priority. By default minion workers have higher priority than the master node allowing minions to take over notebook calculations most of he time.

Default: 10

security

security.allowed_file_accessor_prefix

A list of path prefixes allowed for the ‘file’ accessor. If this is empty the file accessor will work on all directories. If you want to disable access to the server’s filesystem you can set this to a non existent directory, e.g. /nonexistent/ . The below shows the default list, which is used if nothing is set here. You should copy and modify the entire list to preserve the defaults.

Default: - /tmp/

security.denied_file_accessor_prefix

Deny takes precedent over allow. The below shows the default list, which is used if nothing is set here. You should copy and modify the entire list to preserve the defaults.

Default: - /bin/

security.allowed_fs_accessor_prefix

A list of prefixes allowed for the fs accessor. All other prefixes will be rejected. The below shows the default list, which is used if nothing is set here. You should copy and modify the entire list to preserve the defaults.

Default:

- artifact_definitions
- clients
- downloads
- notebooks
- public
- temp
- server_artifacts
- server_artifacts_logs

security.denied_fs_accessor_prefix

Deny takes precedent over allow. IMPORTANT: Setting this list replaces the built-in deny list (acl, backups, config, orgs, secrets, users) rather than merging with it. If you add custom prefixes here, you must also include any of the built-in prefixes you want to keep.

Default: - config

security.allowed_plugins

If these are set we enforce VQL to only have the specified allowed VQL plugins and functions. This is a way to harden the server by removing potentially sensitive functionality to allow only approved VQL plugins to run. The below shows some examples but the default is actually an empty list which causes no plugins to be restricted.

Default: - glob

security.allowed_functions

Default: - dict

security.allowed_accessors

Default: - auto

security.denied_plugins

Alternatively, it might be easier to deny specific plugins and functions and accessors. The below shows some examples but the default is actually an empty list which causes no plugins to be denied.

Default: - execve

security.denied_functions

Default: - rm

security.denied_accessors

Default: - s3

security.lockdown_denied_permissions

When the server is in lockdown mode the following permissions will be denied (Even for administrators). The below shows the default list, which is used if nothing is set here. You should copy and modify the entire list to preserve the defaults.

Default:

- ARTIFACT_WRITER
- SERVER_ARTIFACT_WRITER
- EXECVE
- SERVER_ADMIN
- FILESYSTEM_WRITE
- FILESYSTEM_READ
- MACHINE_STATE

security.certificate_validity_days

Default expiry of certificate issuance (default 365 days). This will apply for e.g. rotating certificates or issuing an api cert.

Default: 365

security.disable_inventory_service_external_access

Normally the inventory service attempts to download tools in its own but if this is set, we prevent any external access.

Default: false

security.secrets_dek

The Data Encryptions Key to use for protecting the secrets in storage. This can take a number of forms:

  1. If it starts with env://<VAR> the secret will be taken from an Environment variable.
  2. If empty the secret is taken from obfuscation_nonce (which by default is the hash of the private key).

In future further methods may be implemented (e.g. EKMS).

See the following for more information https://atlantsecurity.github.io/atlantiraptor/secrets/#protecting-stored-secrets

Default: ""

security.vql_must_use_secrets

This controls VQL plugins that may accept secrets as well full parameters. If this flag is set, those plugins will refuse to accept direct parameters, instead only accepting a secret name. This allows the admin to control exactly how these plugins work without disabling them completely.

Default: false

security.shadowed_env_vars

Prevent VQL from having access to these environment variables. Environment Vars sometimes may contain secrets and confidential information.

Default: - VELOCIRAPTOR_CONFIG

security.client_self_labels_regex

Clients can include labels baked into their configuration file (See Client.labels ). The below regex controls which labels are accepted. By default a regex is not specified, meaning that clients may not label themselves.

Be aware that rogue clients can specify any label accepted by the below regex and so can participate in labeled hunts. If you want the clients to auto label set this to .+

Default: ""