artifact_set_metadata
Type: Function · Category: server
Sets metadata about the artifact.
This VQL function is used to clean up the artifact search screen and guide users to assist with investigations.
Velociraptor comes with a lot of built in artifacts which may be confusing to some users and in specialized deployments it may be preferable to guide users into a small subset of artifacts and hide the rest.
For example, say you have a set of custom artifacts that you only want to show. Then I would add a special keyword to their description (for example a company name - say “Written by ACME inc”). Then a query like this will hide the others:
SELECT name, artifact_set_metadata(name=name, hidden=TRUE)
FROM artifact_definitions() WHERE NOT description =~ "ACME"
| Argument | Type | Description |
|---|---|---|
name |
string (required) | The Artifact to update |
hidden |
bool | Set to true make the artifact hidden in the GUI, false to make it visible again. |
basic |
bool | Set to true make the artifact a ‘basic’ artifact. This allows users with the COLLECT_BASIC permission able to collect it. |
tags |
list of string | Optional tags to attach to the artifact. |
Required permissions: ARTIFACT_WRITER, SERVER_ARTIFACT_WRITER
Platforms: macOS, Linux, Windows
Source: vql/server/repository.go