Integrate Spike with NVADR (RedHunt Labs)
Send NVADR (RedHunt Labs) issues to Spike so an exposed asset or security risk pages your on-call rotation, and resolves its incident when the issue is closed.
NVADR is RedHunt Labs' attack surface management platform. It watches your internet-facing assets and raises issues in its Issue Tracker for security risks, unknown assets, third-party assets, data leaks and dark web mentions.
Send each NVADR issue to a Spike integration URL and an open issue pages your on-call rotation, while closing the issue, or marking it WON'T FIX, resolves the incident.
Prerequisites
An NVADR account with access to the Issue Tracker and to Settings → Integrations & API, where your organisation's Public API key lives
An NVADR integration in Spike and its webhook URL
A place to run a small forwarder (a script on a schedule, a workflow tool or a serverless function) that can call
https://api.redhuntlabs.comand POST tohooks.spike.sh. NVADR has no trigger that calls a URL when an issue changes, so the forwarder polls for changes
Step 1 — Create the integration in Spike
In Spike, go to Integrations → Add integration → NVADR (RedHunt Labs), attach it to a service and an escalation policy, and copy the webhook URL. It looks like https://hooks.spike.sh/<your-token>/push-events.
Step 2 — Get your NVADR Public API key
Sign in to NVADR, go to Settings → Integrations & API and scroll to the Public API section.
If a key is already shown, copy it and use that one. Click Generate only when there is no key yet. Store the key as a secret in your forwarder; it is sent in the
x-api-keyheader.Open Issue Tracker and look at an issue. Note its ID, Status, Priority and Assignee, and the risk, asset, severity and category it was raised on, so you can recognise them in the API response.
Step 3 — Run a forwarder that sends changes to Spike
NVADR does not push issues anywhere, so your forwarder polls the Issue Tracker API on a schedule, for example every 5 minutes. The API returns at most 100 issues per request. When there are more, the response carries a next_page value, and you ask for that page with the page parameter:
On each run the forwarder should:
Fetch every page. Request the first page, then keep requesting
?page=<next_page>with the value from the last response until a response has nonext_page. The API is rate-limited and answers429 Too Many Requestswhen it is called too fast (RedHunt does not publish the limits). On a 429, wait and retry the same page with a growing delay (for example 5, 10, then 20 seconds). If it still fails, stop this run without sending or storing anything, and let the next run start again.Compare each issue's
statuswith what it stored on the previous run, keyed by the issueid. Store these between runs in a file or small database.For every issue that is new or whose status changed, map the response fields onto the body below and POST it to your Spike webhook URL with
Content-Type: application/json. Send one issue per request.Store the new status only after Spike accepts the POST, so a failed request is retried on the next run.
The body to send:
When the issue is closed, send the same body with status changed (and the current last_seen):
id
Yes
The NVADR Issue Tracker issue id, a number or a string. It is the same on every delivery about one issue and is how Spike matches them. Without it a CLOSED or WON'T FIX cannot resolve the incident. Never in the title.
status
Yes
OPEN, IN PROGRESS, WON'T FIX or CLOSED. Case, underscores and the apostrophe do not matter, so In_Progress and WONT_FIX work.
title
Recommended
The risk name, such as Exposed Git Repository.
asset
Recommended
The host, IP or URL the risk was found on. A URL is shown as its host (and port) only.
severity
Recommended
critical, high, moderate or low, in any case. Shown in the title as [Critical] and so on. Any other value leaves the bracket out. Sets the incident severity.
category
Optional
Security Risk or Data Leak. Used in the title only when title is missing.
priority
Optional
NVADR priority, P0 to P4. P1 to P4 set the incident priority; P0 is ignored. Not in the title.
assignee
Optional
Email of the NVADR user the issue is assigned to. Shown on the incident, not in the title.
first_seen
Optional
ISO 8601 time NVADR first saw the risk. Display only.
last_seen
Optional
ISO 8601 time NVADR last saw the risk. Moves on every rescan. Display only.
A value left as an unexpanded template variable ($id, ${id}, {{id}}, %id%, <id>) counts as missing.
What each status does
status
With no open incident for the id
With an open incident
OPEN
Opens an incident
Joins it, no new page
IN PROGRESS
Opens an incident, because the risk is still live
Joins it
CLOSED
Dropped
Resolves it when the body carries the same id
WON'T FIX
Dropped
Resolves it when the body carries the same id
missing or unknown
Treated as firing
Treated as firing, never resolves
A CLOSED or WON'T FIX body resolves an incident only when both it and the incident carry the same id. Without an id it joins the incident and leaves it open for someone to resolve by hand.
Incident identity
Spike identifies the incident by id, so the title is display only. A repeat that changes only last_seen, priority or assignee joins the open incident instead of paging again. Two different issues with different ids are two incidents. A body with no usable id falls back to matching on the title, which is built to stay identical across deliveries. Titles can be shared by different issues (two paths on one host show the same host, and an issue without a title reads NVADR security risk on <host>), so a body without an id never resolves an incident. Always send the id.
Incident title
NVADR sends no sentence about the fault, so Spike builds the title from severity, title and asset:
A closed issue replaces the severity bracket with NVADR's status word:
When a part is missing the title falls back in this order:
No recognised severity:
Exposed Git Repository on staging.acme-corp.comNo asset:
[Critical] Exposed Git RepositoryNo
title:[High] NVADR security risk on 203.0.113.24(thecategorylower-cased, orNVADR issuewithout it)A GROUPED-mode ticket title,
<asset> - <severity>such asstaging.acme-corp.com - Critical, names no risk and repeats the severity, so when its<asset>is the body'sassethost it counts as notitle:[Critical] NVADR security risk on staging.acme-corp.comNeither
titlenorasset:NVADR issue with no details
on {asset} is left out when the title already names that host as a whole word. Whitespace is collapsed, and the whole title is capped at 200 characters: the severity bracket and the asset host are kept whole and the title is cut at a word boundary with .... The id, priority, assignee, first_seen and last_seen are never in the title.
Use a Title Remapper if you would rather read incidents another way.
Step 4 — Confirm it end to end
Send the firing body with a test
idand check an incident opens on your service titled[Critical] Exposed Git Repository on staging.acme-corp.com.Send it again with a newer
last_seenand check it joins the same incident.Send the body with
"status": "CLOSED"and check the incident resolves.
Disclaimer: These integration instructions are offered independently by Spike.sh, and Spike.sh is not affiliated with nor a partner of RedHunt Labs.
Last updated

