Generic.Client.VQL
Type: Client
Runs an arbitrary VQL query on the endpoint.
Required permissions: EXECVE
Implied permissions: IMPERSONATION
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Command |
string | SELECT * FROM info() |
Source
Defined in artifacts/definitions/Generic/Client/VQL.yaml.
name: Generic.Client.VQL
description: |
Runs an arbitrary VQL query on the endpoint.
# This artifact can literally run anything!
required_permissions:
- EXECVE
implied_permissions:
- IMPERSONATION
parameters:
- name: Command
default: SELECT * FROM info()
sources:
- query: |
SELECT _SessionId, *
FROM query(query=Command, env=dict(config=config))
- name: Overview
query: |
SELECT _SessionId, timestamp(epoch=now()) AS Timestamp, Command
FROM scope()