Server automation
Everything the console does, VQL on the server can do too. That makes Atlantiraptor easy to automate: react to events as they happen, run work on a schedule, and connect it to the rest of your security tools.
The building blocks
| Block | Runs | Use it for |
|---|---|---|
Server artifacts (SERVER) |
Once, under Server collections | One-off jobs: imports, exports, reports, cloud hunts |
Server event artifacts (SERVER_EVENT) |
Continuously, under Server events | Reacting to events: forward alerts, post-process collections, label clients, schedule hunts |
| Event queues | Always | The events to react to; see Event queries |
| Secrets | When a query uses one | Credentials for the systems you connect to; see Secrets |
| APIs | When called | Letting other systems drive Atlantiraptor; see API keys and the gRPC API |
Common automation
Forward alerts
The Integrations page turns on ready-made forwarders for Slack, Teams, Discord and webhooks, email, Splunk and Elastic. See Integrations and Alerting.
React to finished collections
Every finished collection emits a row on System.Flow.Completion. A
server event artifact can follow up:
name: Custom.Server.Automation.TriageFollowUp
type: SERVER_EVENT
sources:
- query: |
SELECT collect_client(client_id=ClientId,
artifacts="Windows.Memory.ProcessDump",
spec=dict(`Windows.Memory.ProcessDump`=dict(
ProcessRegex="rundll32")))
FROM watch_monitoring(artifact="System.Flow.Completion")
WHERE Flow.artifacts_with_results =~ "Windows.Detection.Yara.Process"
Schedule work
clock() emits a row on a schedule; combine it with hunt() or
collect_client(). Server.Monitoring.ScheduleHunt is a worked example
that starts a hunt at a set time on chosen days.
Keep the fleet tidy
- Label clients by what they are (see Automatic labels).
- Delete old monitoring data with
Server.Utils.DeleteMonitoringData, and old collections withServer.Utils.DeleteManyFlows(see Storage). - Watch the server with
Server.Monitor.Health.
Writing your own
- Write the artifact (
type: SERVER_EVENT) under Artifacts, New. Name itCustom.Server.…. - Test the query in a notebook first: a notebook cell runs on the server
with the same plugins. Use
send_event()to inject a test event into a queue. - Add it under Server events, Configure.
- Watch its log and results under Server events.
Server event artifacts run with the server’s own, full permissions, and only administrators can change Server events. Review them as you would any code that runs on the server; the change is recorded in the audit log.
In this section
- Integrations: SIEMs, chat, email, MISP, TheHive, cloud log stores.
- API keys and the REST API: connect a SIEM or SOAR.
- The gRPC API: full programmatic access with VQL.
- Alerting: how alerts are raised, routed and forwarded.