RiskWrenv0.10.1
GitHub

Other systems and assistants

This guide is for whoever connects RiskWren to the systems around it, and for the people who then see what those systems send: the security team, assessors, stewards, and administrators. It covers tokens, webhooks, results that scanners and other tools report, the good-standing check, drafts, a tool server for an assistant on someone's own computer, and the optional assistant inside RiskWren. Every one of them is optional; an installation that uses none of them loses nothing else.

The technical detail a developer needs (headers, bodies, signatures, every route) is in The API. How to turn the assistant on is in Configuration.

What can connect, and what cannot#

RiskWren is passive. It never reaches into another system, and nothing here changes that:

What another system reports, or an assistant proposes, counts for nothing until a person confirms it or saves it.

Tokens#

An administrator makes a token under Admin → Other systems, one for each system that will use the API.

When making itWhat it means
What will use itA name, such as Vulnerability scanner. Everything the token changes is in the history as API token Vulnerability scanner
Acts asThe role it has: auditor (reads everything), manager, assessor, steward, or member. There are no administrator tokens
UnitFor a manager's or an assessor's token, optionally one unit; for a steward's, the unit it keeps
It may only readTicked by default. A token that may only read is refused every change, except proposing a draft and asking the assistant, which change nothing a person has not saved
Lasts, in daysUp to a year and a day. It is refused after its date

Make a token shows it once. RiskWren keeps only its fingerprint, so a lost token cannot be shown again: withdraw it and make another. The list shows each token's role, when it ends, and when it was last used. Withdraw ends one at once.

A token never makes a judgment that belongs to a named person: it cannot assess or accept a risk, rate a control, record or confirm a test result, decide an exception, confirm a closure, approve or publish a document, or triage an incident.

Choosing the role. Give each system the least it needs:

Being told what happens: webhooks#

A webhook tells an address when something happens: an issue raised or closed, an incident reported, a risk assessed. An administrator registers one under Admin → Other systems with a name (What receives it), an https:// Address, what it is Told of, and how its messages are Sent as:

Told ofMeans
*Everything
issue.*Everything that happens to issues. Any family works the same way: risk, control, issue, exception, incident, document, evidence, assessment, third_party, third_party_review, system, process, scope, agreement
issue.validateOne kind of event: here, a proposed closure confirmed or sent back

An event is named as the history names what was done. The ones most often wanted:

EventWhen
issue.create, issue.from_testAn issue is raised, by a person or by a failed test
issue.propose, issue.validateClosing an issue is proposed; the closure is confirmed or sent back
issue.cancel, issue.reopenAn issue is withdrawn, or opened again
incident.report, incident.triage, incident.closeAn incident is reported, triaged, or closed
exception.request, exception.decideAn exception is asked for, or decided
risk.assess, risk.escalateA risk is assessed, or escalated
control.rate, control.reportedA control is rated, or another system reports onto it
document.publishA new version of a policy or other document is published
third_party.call_review, third_party.offboardA third party's review is called for, or its relationship is ending

Admin → Other systems lists each webhook's latest deliveries with their event names, so a webhook told of a whole family for a while shows the name of everything in it.

Sent asForWhat arrives
The plain messageA program written to receive itThe event, when it happened, and the record's type, reference, and address
A ticketA service desk that opens a ticket from what it is sentA title, a description, and a link back
A chat messageA channel that takes incoming messagesOne line: RiskWren: issue.create: ISS-0031 https://…

Whatever the shape, a message names the event and the record and never says what the record contains: the receiver asks the API, with a token, for what it may see. A restricted record is never named. A new webhook is told only of what happens after it is registered.

Messages are signed with the webhook's secret, which is shown once, when it is registered. A message the address does not accept is tried again after a minute, five minutes, half an hour, two hours, and twelve hours. The latest deliveries, with how each went, are listed with the webhook for thirty days. A webhook can be paused, and sent a test message (Send a test) to check the address.

Webhooks are sent by the Webhooks job, every minute, while scheduled work runs (Scheduled work).

Results reported by other systems#

A vulnerability scanner, a configuration checker, or a monitoring tool can report what it has found of a control: that a check passed, partly passed, or failed, or a piece of evidence such as a monthly patch compliance report. It reports with a token that acts as an assessor, a manager, or a steward and may change things.

Where it shows. What is reported appears at once on the control's page, in a card headed Reported by other systems, under its source's name, with a link to see it in the source where one was sent. Reports waiting for a decision are also listed under Compliance → From other systems, for those who assess the controls' units.

Checks and evidence a patch scanner has reported onto controls, waiting for an assessor to confirm or set them asideChecks and evidence a patch scanner has reported onto controls, waiting for an assessor to confirm or set them aside

Nothing counts until a person confirms it. Confirming needs someone who assesses the control's unit (an assessor or a manager for it) and does not own the control, the same second pair of eyes a test result needs.

ReportedConfirming it
Failed or PartlyRaises an issue on the control, found by security testing, with the severity the confirmer chooses (high for a failure, moderate for partly, unless changed). The control's owners are made its owners and are told, as for a failed test; if the control has no owner, the confirmer keeps it
PassedKeeps it on record as confirmed. Nothing else changes
EvidenceFiles it with the control, as evidence that counts for a year from when it was observed

Set aside keeps a report on record, with the reason, and changes nothing else.

A report never rates the control and never replaces a person's test result: only a test in an assessment does that. It also never changes a risk's rating by itself.

Three things to know:

Is it in good standing?#

Another process can ask whether a third party, a scope, or an exception is in good standing before it goes ahead: purchasing before it buys from a supplier, a data-access request before it grants access to a research enclave, a deployment pipeline before it releases into a scope. It gets yes or no, with each reason as a short code and a sentence, and nothing of the record's contents. A record its token may not see is not found.

Asked aboutIt is not in good standing when
A third partyIt is not active (not_active) or is being offboarded (offboarding); it has not been tiered (not_tiered); its tier calls for a review and none has been concluded (never_reviewed); its last review was not approved (not_approved); its review is past its date (review_overdue); or information is shared with it that no agreement of the kind the program requires covers (no_agreement)
A scopeIt is not active; a requirement it is held to is failing, because a control that answers it failed a test that still holds (failing; an exception in force keeps a requirement out of this); or a critical or high issue about it is past its date (issues_overdue)
An exceptionIt is not in force: still requested, refused, withdrawn, approved but not yet begun (upcoming), or ended (expired); the reason's code is its state

Read a yes for what it is. For a third party it means: active and not being ended, tiered, reviewed as its tier asks and approved, the review in date, and no gap in coverage. A gap counts whatever the asking token may see, and the answer says only that there is one. It does not mean the supplier was asked anything beyond what its tier calls for: a supplier in the lowest tier, which calls for no reviews, is in good standing once it is tiered and covered.

Give the asking process an auditor's token that may only read: it can ask about anything and changes nothing.

The answer is a reason to look, not a verdict: a process that gets no should stop for a person rather than refuse on its own. The API guide has recipes for purchasing, data access, and deployments.

Drafts#

An assistant, or another system with a token, may propose a risk, an issue, or a control. A proposal is a draft: a record of its own, never a half-made risk. It waits under Drafts, beside Home in the menu, for a person who may add that kind of record in its unit: a unit's steward or a manager for a risk or a control, and also an assessor for an issue. A draft with no unit waits for those whose roles cover the whole organization. Whoever asked an assistant for a draft also sees it.

A risk and an issue drafted by a security engineer's assistant, waiting under Drafts to be opened in the ordinary form or set asideA risk and an issue drafted by a security engineer's assistant, waiting under Drafts to be opened in the ordinary form or set aside

Each draft shows what it proposes, where it came from, and what it rests on, in the drafter's words.

Those who may make drafts that are waiting see one line on Home, with how many, leading to Drafts; nothing is said under the bell. A token that may only read may still propose one.

An assistant on your own computer#

riskwren tools lets an AI assistant that runs on someone's own computer, and supports the Model Context Protocol, read RiskWren and propose drafts. The assistant starts it, and each tool calls RiskWren's API with a token, so the assistant sees exactly what the token may and nothing more.

ToolWhat it does
searchSearches every kind of record the token may see
get_recordOne record in full, by its reference
risk_with_controlsA risk, with its ratings and the controls that bear on it
scope_readinessA scope: what it is held to, how far it meets it, and its open issues
whats_overdueRisks whose review is overdue, issues past their date, controls whose rating is stale
draft_risk, draft_issue, draft_controlA draft, which a person then opens under Drafts

To set it up:

  1. Ask an administrator for a token: an auditor's that may only read is enough, since drafting needs no more.
  2. Tell the assistant to start riskwren tools --url https://your-riskwren-address, with the token in the RISKWREN_TOKEN environment variable of the assistant's own settings, never on the command line. The API guide shows the usual settings file.
  3. Use --no-drafts to offer only the tools that read.

What the assistant does with what it reads is between it and whoever provides the model behind it. Use one your organization trusts with what the token may see, or narrow the token.

The assistant in RiskWren#

An administrator may turn on an assistant inside RiskWren, with a provider the organization chooses: a model running on its own machines, or a service it has an agreement with. While it is off, none of what follows appears.

When it is on, it works for whoever is signed in, from what they may see, through the same tools as the tool server. It is sent no restricted record, and no record of a data class the organization keeps back; such a record reaches it only as a reference and the reason it was withheld. Each person may ask it a limited number of times a day, and each request stops after a set time.

Summarize#

Summarize, beside Connections on a record's page, writes a short summary of the record: what it is, where it stands, what is overdue or failing, and what would help next. The summary is shown, not saved; it says which tools it used, and should be checked against the record before anyone relies on it. It is not offered on a restricted record.

Draft with the assistant#

Draft with the assistant, on the risk register, asks for a few sentences about what could go wrong and, optionally, the unit. The assistant first looks for a risk that already says the same and, if it finds one, names it instead of drafting. Otherwise it drafts a title, a cause, an event, and a consequence, and the ordinary Raise a risk form opens with them filled in. Nothing is made until you save it; if you close the form, the draft waits under Drafts. Anyone may ask for a draft, but only a steward or a manager of the unit can save it as a risk. If you cannot add risks, the form will not save: tell your steward, who will find the draft under Drafts. Nobody is told of it otherwise.

What you write in the box is sent to the provider as you wrote it, so leave out what should not be.

For administrators#

Describes RiskWren 0.10.1. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.