Docs · Torii
Data handling and licences
Torii holds a list of what is wrong with your software. This page says where that list lives, who can read it, what leaves Torii, and what Torii is built on.
Torii is hosted, and that makes it different
SnapStep keeps your work on your own device. Torii cannot work that way. It scans your code and watches your hosts on your behalf, so the results are stored on Torii's servers, and minatolabs operates those servers.
The service runs on Amazon Web Services, which makes AWS a sub-processor of whatever you connect. It runs in a single region. Choosing a region for your data is not offered. Encrypted connections to the service end at an AWS load balancer, so AWS handles your requests as well as storing the database.
What Torii stores
- Your organisation. Its name, plan and limits.
- Your assets. Repository names, host names, cloud account identifiers and role references, domain names.
- Findings. What was found and where, including file paths inside your repositories.
- An audit log of what was done in your organisation and by whom.
- The people who can sign in. For each person, the identifier their minatolabs account gives Torii, their email address and name, and their membership. For each sign-in, a session record with the network address and browser it came from. Torii holds no password.
A repository is copied into a sandbox for the length of a scan. The sandbox has no network access and is destroyed when the scan ends.
What Torii does not store
- Token values. API tokens and enrolment tokens are kept as SHA-256 hashes. The value is shown once and cannot be recovered.
- Cloud credentials. Torii connects by assuming a role you create. It holds no access key, client secret or key file for your account, and the table that records the connection has no column for one.
- One-time values in the audit log. The log records that a token or an external id was issued, never the value.
Who can read your data
Inside Torii, separation between organisations is enforced by the database. Organisations and roles describes how. Inside your organisation, a role decides what each person or token may do.
The audit log
Torii records creations, removals, refusals and also reads: listing a resource writes an entry with the number of rows returned. Owners, admins and the security role can read the log through the API. It returns the newest entries first, 100 by default and at most 1000 per request. When you act in the console, the entry names you as the actor, not the console.
curl -sS "$TORII_CONTROL_PLANE_URL/v1/audit-events?limit=200" \ -H "Authorization: Bearer $TORII_API_TOKEN"
| Field | Meaning |
|---|---|
occurred_at | When it happened. |
actor_type | Who acted: user for a person, token for an API token, system or anonymous. |
actor_id | Which one. |
action | What was attempted. |
resource_type | The kind of thing it was attempted on. |
resource_id | The specific one, where there is one. |
outcome | allowed, denied, not_found or error. |
There is no audit screen in the console and no export of the log.
What leaves Torii
There is one case in which Torii sends something of yours to a third party, and it is switched on by default, so read this part.
Secret verification
When Torii finds something in your code that looks like a credential, it can check whether that credential still works. Checking means sending the credential to the service that issued it and asking who it belongs to. A revoked key is untidy; a working key is an incident, and without the check Torii cannot tell them apart.
- What is sent: the credential and the few characters around it that identify its type. Not your source code, not the file, not the commit. The part of Torii that performs the check runs in a separate sandbox that has no copy of your repository.
- What the check does: one read-only identity call. It does not read your data at the provider and does not change anything. Credential types that can only be checked by causing an effect, such as a webhook that posts a message, are never verified.
- What it costs you: the credential travels to a third party, and the check is visible to whoever owns the account it belongs to, in that account's own logs.
It goes only to the issuing service, from this fixed list:
| Destination | Credential types |
|---|---|
sts.us-east-1.amazonaws.com | AWS access keys |
api.github.com | GitHub personal access tokens and app tokens |
gitlab.com | GitLab personal and project access tokens |
slack.com | Slack bot, user and app tokens |
api.openai.com | OpenAI API keys |
api.stripe.com | Stripe secret and restricted keys |
api.sendgrid.com | SendGrid API keys |
api.twilio.com | Twilio account SIDs and auth tokens |
api.digitalocean.com | DigitalOcean personal access tokens |
registry.npmjs.org | npm access tokens |
The list cannot be changed by you, by minatolabs support, or by anything in a repository being scanned. Credentials of any other type are still detected and reported, always as unverified.
The console shows the setting under Policy, as Enabled or Disabled, with the full disclosure under What this sends, and where. The console has no switch for it: to turn verification off, use the API with a role that may change policy (owner, admin or security).
curl -sS -X PUT "$TORII_CONTROL_PLANE_URL/v1/settings/secret-verification" \
-H "Authorization: Bearer $TORII_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'Send true to turn it back on. Leaving the field out is refused rather than read as on. Detection does not change; every secret is then reported as unverified. The change applies to scans that start afterwards and is recorded in the audit log with who made it.
Everything else
The sandbox that scans your code has no route to the internet. When cloud scanning is live, Torii will call your cloud provider with temporary credentials for the role you created; that is a call to your own account, not a transfer to a third party.
Retention and deletion
Each organisation has a retention period in days, set by its plan and shown in Settings.
What has not been checked by anyone else
- No independent penetration test has been carried out.
- Torii holds no SOC 2 report or other certification.
- Some protections are proven only in a test environment so far. What is available today lists what is live.
Open-source licences
Torii is built on open-source software, and the rules about how are enforced by the build, not by habit.
- Torii's own code depends only on software under permissive licences: MIT, Apache-2.0, BSD, ISC and equivalents. Every dependency is read from the real dependency graph on each build and checked against that policy. A copyleft dependency fails the build by name.
- Copyleft programs are run, never linked. Where Torii uses a program under a copyleft licence, it starts it as a separate process and exchanges files and standard output with it. It does not modify or patch those programs.
- The static analysis rules are minatolabs' own. Torii does not use third-party rule collections whose licences forbid use in a hosted service.
- The policy is described in the console under Settings, Open-source licences, View attributions.
The host agent and your right to its source
Hosting software is not distributing it, so most open-source obligations do not reach a hosted service. The host agent is the exception: it is installed on your machines, which is distribution.
The Torii host agent includes the Wazuh agent, licensed under the GNU General Public License, version 2 (GPL-2.0-only), shipped unmodified. A copy of that licence is included in the agent package, and so is a written offer, SOURCE-OFFER.txt. minatolabs offers, for three years from the date you receive the package, to provide the complete corresponding source code for the GPL-licensed components in it, for no more than the cost of distributing it. Uninstalling the agent does not withdraw the offer.
First find the version string, which names the exact package you have. Run torii-agent-version on the machine (see The host agent), or read it from SOURCE-OFFER.txt. Then:
If you are a Torii customer, download the source directly with the same API token you used to download the agent:
curl -fsS -H "Authorization: Bearer $TORII_API_TOKEN" -O -J \ "$TORII_CONTROL_PLANE_URL/v1/agent-packages/<version string>/source"
The SHA-256 of what you receive must equal corresponding_source_sha256 in the package's PROVENANCE.json. Every role may download it, and each download is recorded in your audit log.
Anyone else can ask for it on the public page at torii.minatolabs.com/agent-source, titled Source code for the Torii Host Agent. No sign-in is needed.
- In Version string, enter the version string.
- In How to reach you, enter an email or postal address.
- Add a note in Anything else (optional) if you want to.
- Choose Request the source.
The page answers with a short reference. minatolabs then sends the corresponding source for that version to the contact you gave. The page stores only the version, the contact and your message, to answer the request. If too many requests arrive at once it asks you to try again in an hour.