SIEM
Feed your SIEM with WASViking vulnerabilities, findings and audit events through the REST API and the API Webhook destination.
WASViking gives a SIEM two ways in. Use either, or both.
| Way | What arrives | How |
|---|---|---|
| The SIEM reads the API | Infrastructure Defense vulnerabilities, findings, the audit log | A script or connector calls the REST API on a schedule |
| WASViking sends events | Finding and asset events, alerts | An API Webhook alert destination posts JSON to your collector |
Read through the API
Create an API key with the scopes the SIEM needs (see Scopes):
| Data | Endpoint | Scope |
|---|---|---|
| Vulnerabilities of hosts | /infrastructure/vulnerabilities/ |
infrastructure:read |
| Hosts | /infrastructure/hosts/ |
infrastructure:read |
| Findings | /findings/ |
findings:read |
| Audit log | /audit-log/ |
audit_logs:read |
The vulnerabilities endpoint takes updated_since: the SIEM asks only for
what was found, fixed, reopened or accepted since its last read, so every
change arrives once. Use status=all so the fixed ones come too, with
their resolved_at.
A script that a scheduler runs every few minutes, writing one JSON event per line for the log collector to pick up:
import json
import os
import pathlib
import time
from datetime import datetime, timezone
import requests
BASE = os.environ.get("WASVIKING_API_URL", "https://api.wasviking.com")
HEADERS = {"Authorization": f"ApiKey {os.environ['WASVIKING_API_KEY']}"}
STATE = pathlib.Path("wasviking_last_read.txt")
since = STATE.read_text().strip() if STATE.exists() else "2026-01-01"
started = datetime.now(timezone.utc).isoformat()
page = 1
while True:
response = requests.get(
f"{BASE}/api/v1/public/infrastructure/vulnerabilities/",
headers=HEADERS,
params={"status": "all", "updated_since": since, "page": page, "page_size": 100},
timeout=30,
)
if response.status_code == 429: # too many requests: wait as told, then ask again
time.sleep(int(response.headers.get("Retry-After", "60")))
continue
response.raise_for_status()
data = response.json()
for row in data["vulnerabilities"]:
print(json.dumps(row)) # one JSON event per line for the log collector
if page * data["page_size"] >= data["total"]:
break
page += 1
STATE.write_text(started)
It remembers when it last read in wasviking_last_read.txt, reads every
page, and waits whenever the API asks it to (see
Rate limits). The same calls work in any
language: Endpoints shows them in Python,
PowerShell, Ruby, JavaScript and Java.
Receive events
In the portal, create an API Webhook alert destination (see Notification channels) pointing at the HTTPS endpoint of your collector, with an Authorization Header your collector checks. WASViking then posts a JSON body for every finding and asset event and for the alerts the destination subscribes to. The events and their shape are in Webhook events.
Which to use
- To follow the vulnerabilities of your hosts, read the API: those are not sent as events.
- To react within seconds to new findings on web applications and other assets, receive the events.
- Read the audit log through the API to keep a copy of who did what in the portal.
