Skip to content

Security & authorization

Trust is a boundary you can test.

What you want to know before agreeing to a demo is on this page: how tenants’ data is kept apart, who can do what, which gates an active test passes and what we do not claim today.

200 fnd_2366…6d64 own record 404 · not_found not found 404 · not_found not found 200 fnd_2366…6d64 own record 404 · not_found not found 404 · not_found not found
No passage between basins A foreign id and a missing id get the same response Synthetic example

Tenant isolation

The tenant never comes from the request.

In a multi-tenant service the most expensive mistake is one organisation seeing another’s records. In Wariva that boundary is drawn by four rules and tested in every module.

  1. The tenant comes from a verified membership

    The active tenant is resolved from the verified membership of the session or API token. A tenant_id sent in the path, query or body is ignored.

    Principal.tenant_id
  2. Every store call filters by tenant

    Every store method that touches customer data takes the tenant id as a parameter and filters the query with it. In indexes that hold tenant data, tenant_id is the first field.

    GetFinding(ctx, tenantID, id)
  3. A foreign id behaves like a missing id

    An id that belongs to another tenant returns 404 not_found: the same status, error code and message a non-existent id gets. The response does not reveal that the record exists somewhere else.

    404 not_found
  4. A cross-tenant access test in every module

    The rule: every new API, download, export and background job gets a cross-tenant access test. The core API, identity management, brand watch, active scanning, integrations, reports and the assistant all carry these tests.

    go test ./internal/...
Anatomy of a request POST /api/v1/imports

The request tries to send another tenant’s id in three places.

  • query ?tenant_id=tnt_b85f…f5b9 ignored
  • body { "tenant_id": "tnt_b85f…f5b9" } ignored
  • form field tenant_id=tnt_b85f…f5b9 ignored
cookie wariva_session=•••••••• Principal.tenant_id = tnt_7d2e…4c20 the only source

The acceptance test does exactly this: an analyst in tenant A adds tenant B’s id to an import request. The record is still written to tenant A.

Interactive simulation

Probe the boundary yourself.

Pick who you are, request a record, compare the responses. The console is a simulation; the responses mirror the real shape in the API docs.

Simulation · synthetic ids GET /api/v1/findings/{id}
Who you are
Which record you request

Request

GET /api/v1/findings/fnd_8c1f4be07a2d95e3c6b10f4d7a9e2a57
Host: app.wariva.com
Cookie: wariva_session=••••••••••••

Response 404 Not Found

{
  "error": {
    "code": "not_found",
    "message": "not found"
  },
  "request_id": "req_9e373c784cbda5855b28da79"
}

Put the two 404s side by side

The left response was produced for another tenant’s record, the right one for an id that does not exist. Status, error code and message are identical.

Foreign id · fnd_8c1f…2a57 Missing id · fnd_0000…0000
HTTP/1.1 404 Not Found = HTTP/1.1 404 Not Found
{ = {
"error": { = "error": {
"code": "not_found", = "code": "not_found",
"message": "not found" = "message": "not found"
}, = },
"request_id": "req_9e373c784cbda5855b28da79" ≠ "request_id": "req_41b07f2c6d9a3e85c1f0a7d4"
} = }

= same≠ request_id · regenerated on every request

The only difference is the request_id field. It is generated randomly for every response and carries no information about whether the record exists.

A request’s path

Six layers, one descent.

An analyst changes the status of a finding. Before the request reaches data it passes these layers.

PATCH /api/v1/findings/{id}/status
  1. 01 / 06 · Credential

    Session cookie or API token

    The browser sends the wariva_session cookie, automation sends Authorization: Bearer wrv_…. The server stores only the SHA-256 digest of either.

  2. 02 / 06 · Principal

    The caller is resolved

    The credential becomes a Principal: user, active tenant, role and how the caller arrived. Handlers and background jobs read the tenant from here only.

  3. 03 / 06 · Membership

    The tenant comes from an active membership

    An active tenant is assigned only through an active membership. If the membership was removed or the tenant suspended, the tenant stays empty; the change applies on the next request.

  4. 04 / 06 · Role check

    The route demands an access level

    Every route declares one level: viewer, analyst, tenant_admin or platform_admin. Writes made with the cookie must also carry the X-Wariva-CSRF header.

  5. 05 / 06 · Store

    The query is filtered by tenant

    The handler takes the tenant id from the Principal and passes it to the store method as a parameter. Another tenant’s record cannot pass this filter.

  6. 06 / 06 · Audit log

    The change is recorded

    The status change is published as an event with its actor and written to the audit log. No retention limit is defined for these records.

    The line that lands in the audit log
    {
     "type": "core.finding.status_changed",
     "tenant_id": "tnt_7d2e…4c20",
     "actor_id": "usr_c76c…e3b2",
     "actor": "Acme Analyst (synthetic)",
     "subject": "finding:fnd_2366…6d64",
     "data": {
      "from": "in_review",
      "to": "resolved"
     }
    }

Roles

Who can do what?

There are three tenant roles and one platform role. Every API route demands exactly one of these levels; the table below is derived from the routes themselves.

Permission Viewer Analyst Organisation admin Platform admin
Reading
See findings, assets, components, dashboard and reports can can can after entering the tenant; written to its audit log
Download evidence files, export CSV and JSON can can can after entering the tenant; written to its audit log
Ask the assistant, request an AI insight can can can after entering the tenant; written to its audit log
Triage and import
Status, assignment, due date, tags and comments cannot can can after entering the tenant; written to its audit log
Upload an SBOM or artifact, start scans and imports cannot can can after entering the tenant; written to its audit log
Add monitored domains, decide on a look-alike domain cannot can can after entering the tenant; written to its audit log
Create reports, export STIX cannot can can after entering the tenant; written to its audit log
Add a scope, verify ownership, start an active scan cannot can can after entering the tenant; written to its audit log
Organisation management
Add members, change roles, create and revoke API tokens cannot cannot can after entering the tenant; written to its audit log
SLA policy, connectors and notification rules cannot cannot can after entering the tenant; written to its audit log
Sign the legal undertaking for a public target cannot cannot can after entering the tenant; written to its audit log
Record a written attestation for internal ranges cannot cannot can after entering the tenant; written to its audit log
Allow intrusive templates for a scan cannot cannot can after entering the tenant; written to its audit log
Read the organisation’s audit log cannot cannot can after entering the tenant; written to its audit log
Platform
Create and suspend tenants; create users, reset passwords cannot cannot cannot can
Platform denylist and the kill switch cannot cannot cannot can
Update the vulnerability database, start a KEV sync cannot cannot cannot can

can cannot after entering the tenant; written to its audit log

API tokens follow the same table: a token is bound to one tenant and one role and can never carry platform rights.

Organisation settings screen: members and their roles. Three synthetic members are listed as Organisation admin, Analyst and Viewer.
Organisation settings › Members Synthetic demo data

Identity

Accounts live in Wariva’s own directory.

Users, organisations, memberships, sessions, API tokens and the audit log are part of the product. Sign-in is with a work e-mail and a password.

An API token is shown once

When an organisation admin creates a token, the full value is returned in that response only. The server keeps the SHA-256 digest of the secret part and the prefix for display.

Simulation · the token is generated randomly in your browser

This value will not be shown again.

wrv_2396175727e5_················································
Name Prefix Role Stored
CI pipeline wrv_2396175727e5 analyst sha256(secret part) 5b1e…c04a

The full value can no longer be read anywhere.

  • One tenant, one role
  • Never platform rights
  • Optional expiry
  • Revocation is immediate

Sign-in protection

5 failed attempts / e-mail

20 failed attempts / IP

15 minute window

At the limit, sign-in returns 429 rate_limited. An unknown account, a wrong password and a disabled account get the same 401 response; every path runs one argon2id verification.

Password: argon2id

$argon2id$v=19$m=65536,t=3,p=2

A random salt per user; the parameters are written inside the hash. When parameters change, the hash is renewed at the next sign-in.

At least 8 characters. The e-mail address and common passwords are rejected.

Session

Cookie
wariva_session · HttpOnly · SameSite=Lax
Value
256 random bits; only its SHA-256 on the server
Writes
X-Wariva-CSRF header required
On password change
other sessions are revoked

Authorization model for active testing

No authorization, no scan.

Active scanning runs only inside authorized scope: for a public target, ownership verification or a legal undertaking signed by an organisation admin; for an internal network, a written attestation. It is non-destructive by default and audited at every step. A scan request passes these gates.

Try a target · Simulation

  1. 01

    Kill switch

    When a platform admin engages it, new scans stop for every tenant.

    503 kill_switch_engaged
  2. 02

    Concurrent scan cap

    At most 3 scans at a time per tenant by default.

    429 too_many_scans
  3. 03

    Denylist

    Cloud metadata address, loopback, reserved ranges and the operator’s own infrastructure. It overrides every scope.

    422 denied
  4. 04

    Authorized scope

    The host and every resolved IP must sit inside an unexpired scope authorized by ownership verification or by a legal undertaking. An authorization lasts 90 days by default.

    422 out_of_scope
  5. 05

    IP pinning

    The IPs seen when the scope was authorized are pinned to it. At scan start the name is resolved again; if the IPs changed, the target is aborted.

    dns_rebinding
  6. 06

    Non-destructive default

    nuclei’s dos, fuzzing and brute-force templates are always excluded from scanning. Intrusive templates open only with an organisation admin’s per-scan opt-in. The controlled load test and the credential audit are separate, capped and audited modules; they pass through the same gate.

    403 intrusive_forbidden

app.acme-demo.example

The scan starts

Who requested it, the target, the authorizing scope and method, engine versions and timings are recorded.

activescan.scan.started

How a scope becomes authorized

DNS TXT
wariva-site-verification=<token>
Well-known file
/.well-known/wariva-verification.txt
HTML meta tag
<meta name="wariva-verification" content="<token>">
Legal undertaking
public targets · at most a /24 · signed by an organisation admin only
Written attestation
internal ranges · organisation admin only

The first three prove ownership. A legal undertaking does not: the signer declares that they are authorized to test the target, takes on the responsibility, and the statement is recorded immutably.

Unauthorized scanning, exploitation without consent, mass targeting and indiscriminate destructive/DoS traffic meant to knock a service over are out of scope by design and are not added to the product.

The full authorization model: Sheet 05
Ownership verification panel on the penetration testing screen: the challenge token with the DNS TXT record, well-known file and HTML meta tag methods.
Penetration testing › Verify ownership Synthetic demo data

Evidence, logs and AI boundaries

Evidence is stored, never logged.

Raw evidence is what a finding rests on, so it is stored and verified by its digest. It does not enter log lines or the AI model.

What is in the log

The log line of an import request
{  "time": "2026-11-27T09:14:02.118Z",  "level": "INFO",  "msg": "http request",  "request_id": "req_373c4c35f51c6b82b9761efd",  "method": "POST",  "path": "/api/v1/imports",  "status": 200,  "bytes": 1184,  "duration_ms": 412,  "tenant_id": "tnt_7d2e…4c20",  "user_id": "usr_c76c…e3b2"}

Never logged

  • raw evidence
  • file contents
  • request bodies
  • passwords and tokens

In audit events, fields whose name contains password or secret are dropped before the record is written.

How evidence is stored

id
evd_3bfa3f87181c3da8f387f31aa30d396d
sha256
039c9fcf93a98e9fd14448f74d4641a2bbd7185ba2a3a86e3bec0c315e6c4e82
source
grype 0.122.1
location
<tenant>/03/039c9fcf…4e82

Files are addressed by their content digest under a tenant prefix. Download routes re-check the tenant before any bytes are read.

What never reaches the model

The assistant works only with allow-listed facts of the caller’s tenant. Its tools have no tenant parameter; the tenant is fixed from the session.

  • tenant ids
  • evidence bytes
  • storage references
  • file names
  • hashes
  • analyst notes and justifications
  • assignees
  • comments
  • job ids
  • other tenants’ data
A fixed rule in every prompt
“You never decide or change priority or status.”

Priority is set by the published rule set wariva-priority/2. The assistant explains; it does not decide priority or status.

Wariva is a hosted service: assistant calls go to the operator’s AI gateway. If the gateway is not configured, the AI routes answer 503 and the rest of the product is unaffected.

The assistant’s boundaries: Sheet 08

What we do not claim

What is not on the chart.

Nautical charts mark unsurveyed waters plainly. The items below are not part of the product today, or are not claimed by us.

  1. 01 Sign-in

    Sign-in is with Wariva’s own accounts.

    A work e-mail and a password. Your organisation admin creates the account; the temporary password is changed at first sign-in. A connection to an external identity provider and a second verification step are not part of the product today.

    unsurveyed
    • SSO
    • SAML · OIDC
    • LDAP · SCIM
    • MFA
  2. 02 Compliance

    We claim no certification or independent audit report.

    There is no published compliance certification or independent penetration-test report for Wariva. The controls described on this page were read from the product’s code and tests.

    unsurveyed
    • ISO 27001
    • SOC 2
    • pentest report
  3. 03 Continuity

    The product is a release candidate, operated as a service.

    Version 1.0.0-rc2. There is no published availability commitment, support SLA or recovery objective.

    unsurveyed
    • uptime guarantee
    • RTO · RPO
  4. 04 Data

    Three retention periods are stated.

    The audit log is kept without a time limit, notifications for 180 days, the delivery log for 90 days. There is no published commitment on data residency or backups.

    unsurveyed
    • data-residency commitment
    • backup guarantee
  5. 05 Active testing

    Scanning runs known checks inside authorized scope.

    Known-vulnerability and misconfiguration checks with nuclei, nmap and ProjectDiscovery tools. There are no exploit chains, credentialed scans or brute-force/DoS traffic against a target; it does not stand in for a penetration test carried out by people. The controlled load test and the credential audit are separate modules bound by the same authorization model.

    unsurveyed
    • red team
    • exploit chains
    • credentialed scans
  6. 06 Legal undertaking

    An undertaking is not proof of ownership.

    The legal undertaking an organisation admin signs is a declaration that they are authorized to test the target, and it places the responsibility on the signer. Wariva cannot technically check that the declaration is true; it stores the record immutably so that it can be produced if it is ever needed. We make no claim about the legal sufficiency of the undertaking text.

    unsurveyed
    • proof of ownership
    • verification of the statement
    • legal sufficiency
  7. 07 AI

    The rule set decides priority; the assistant explains.

    AI does not rank and does not change status. A KEV match does not mean your organisation was breached; the assistant’s fixed rules say so too.

    unsurveyed
    • AI decisions
    • risk-score model

Technical legend

Numbers, field names, response codes.

A short inventory of what a security review asks. Values are the product’s defaults.

A Password and sign-in

Password hash
argon2id · m=64 MiB · t=3 · p=2
random salt per user
Password policy
8 to 256 characters
e-mail and common passwords rejected
Sign-in limit
5 / e-mail · 20 / IP · 15 min
429 rate_limited + Retry-After
Temporary password
4×5 characters, about 98 bits
shown once, changed at first sign-in

B Session and token

Session cookie
wariva_session · HttpOnly · SameSite=Lax
Secure on an https address
Session lifetime
12 h idle · 7 days absolute
in Redis; key is sha256(cookie)
CSRF
X-Wariva-CSRF: 1
on every write made with the cookie
API token
wrv_<12 hex>_<64 hex>
only the SHA-256 is stored
Token scope
one tenant · one role
no platform rights

C Isolation and error shape

Error body
{"error":{"code","message"},"request_id"}
X-Request-Id on every response
Foreign or missing id
404 not_found
same code, same message
Role too low
403 forbidden
also without an active tenant
No or invalid credential
401 unauthenticated
including expired and revoked tokens

D Audit log

Coverage
every event that has an actor
from all modules
Retention
no time limit
no TTL index defined
Fields
id · type · time · actor_id · actor · subject · title · severity · data
Filters
type prefix · actor · time range
page 50, max 200

E Active testing

Authorization lifetime
90 days
expired scopes are swept hourly
Challenge token
40 hex characters
20 random bytes
Verification request
one GET · 8 s · 256 KiB
or one TXT lookup
Legal undertaking
wariva-undertaking/1 · record_sha256
public target · at most a /24 · at most 90 days · immutable record
Concurrent scans
3 per tenant
429 too_many_scans
Always excluded
dos · fuzzing · brute-force
nuclei -exclude-tags

F Secrets and evidence

Connector secrets
AES-256-GCM · HKDF-SHA256
write-only in the API; bound to tenant and connector
Evidence file
content-addressed by SHA-256
under a tenant prefix
AI budget
500,000 tokens / tenant / day
20 requests / user / minute

Frequently asked

What the security team asks.

01 Can another organisation see our data?

Every request takes the tenant from a verified membership and every store query is filtered by that tenant. A request made with another tenant’s id gets 404 not_found; the response is the same one a non-existent id gets. Evidence downloads and exports follow the same rule, and every module carries cross-tenant access tests.

02 Is there SSO or multi-factor authentication?

Not today. Sign-in is with Wariva’s own accounts, a work e-mail and a password. Passwords are stored with argon2id, at least 8 characters are required, failed sign-ins are limited per e-mail and per IP, and a session ends after 12 hours idle and after 7 days at the latest.

03 Can a platform admin access our organisation’s data?

A platform admin can enter a tenant and then works there with organisation-admin rights. That entry is written to your organisation’s audit log as an iam.tenant.entered event, which your organisation admin can read.

04 What happens if an API token leaks?

A token is bound to one tenant and one role and can never carry platform rights. It stops working the moment an organisation admin revokes it; creation and revocation are written to the audit log. A token keeps working after its creator leaves the organisation, so it has to be revoked explicitly.

05 Can a scan be started without an authorized scope?

No. The target and every IP it resolves to must sit inside an unexpired, authorized scope. A public target is authorized by ownership verification or by a legal undertaking signed by an organisation admin; an internal network by an organisation admin’s written attestation. Otherwise the request is refused with 422 out_of_scope, no engine is run and the refused request is recorded. The platform denylist overrides every scope.

06 Can we scan a target whose ownership we cannot prove?

If it is a public target and you really are authorized to test it, yes: your organisation admin signs the legal undertaking for that scope. It is not proof of ownership. The signer declares that they own the target, are its authorised representative or hold the owner’s explicit written permission, and takes on the legal, criminal and financial responsibility for the scans, for themselves and their organisation. The statement is stored immutably with name, title, organisation, account, IP address, timestamp and the SHA-256 of the record; the record exists so that it can be produced if it is ever needed. The denylist still sits on top, a range may be at most a /24, validity is at most 90 days, and intrusive templates run only if the extra clause was accepted. Wariva cannot check that the statement is true; the analyst and viewer roles cannot sign.

07 What does the audit log contain and how long is it kept?

Every event that has an actor is recorded, whichever module it comes from: membership and token changes, finding status, scope authorization, scans started and refused. No retention limit is defined for these records. An organisation admin can filter the log by type prefix, actor and time range. Platform-level events such as sign-ins are kept in a separate platform log.

Next step

Let's chart your waters.

See it with your own SBOM and your own domain. In a demo session with nothing to install, review your first findings together with their source and evidence.