Docs · Torii
The two planes
Torii looks in two places and asks a different question in each. The value is in the answer to both at once.
| Plane | The question it answers | Where the answer comes from |
|---|---|---|
| Code | Is this vulnerability in code you wrote or ship? | Scanners run over the repositories you connect. |
| Runtime | Is it on a machine you own, right now? | An agent on each host you enrol. |
Neither answer implies the other. A vulnerable library in a repository may never be deployed. A vulnerable package on a server may have nothing to do with your code. Application security tools usually cover the first question and host security tools the second, and the two lists never meet.
The code plane
When you connect a repository, Torii reads it through a read-only app install and runs open-source scanners over it. Six kinds of check are built:
- Dependencies. Known vulnerabilities in the packages your code depends on.
- Secrets. Credentials committed to the repository, including in its history.
- Static analysis. Risky patterns in your own source, found with rules minatolabs writes and maintains.
- Infrastructure as code. Terraform, Kubernetes manifests, Dockerfiles and similar definitions.
- Container images. Vulnerable components inside an image.
- Pipeline definitions. Unsafe patterns in GitHub Actions workflow files.
What Torii covers lists the languages, ecosystems and file types each check reads, and the ones it does not.
How a scan runs
Each scan job serves one organisation. The scanners run as a non-root process inside a sandbox that has no network access, and the sandbox is destroyed when the job ends. A repository is hostile input as far as Torii is concerned: the design assumes a scanner could be attacked by the code it reads, and gives it nothing worth reaching.
More than one scanner
Several scanners can report the same problem. A finding is designed to carry how many scanners confirmed it and how many disagreed, and the console to show you those counts. It does not show which tool said what: the scanners are an implementation detail, and agreement between independent tools is the signal that matters. Matching the same problem across scanners is only partly working today; the coverage page gives the measured figure.
The runtime plane
You install an agent on a host and enrol it. From then on the host belongs to your organisation and appears in the Runtime view. Enrolling a host walks through it, and The host agent explains what the agent does on the machine.
Today the runtime plane gives you an inventory of enrolled hosts. The Runtime view is built to show the status of each agent with these labels:
| Agent status | Meaning |
|---|---|
| Healthy | The agent reported less than 12 hours ago. |
| Delayed | Nothing for 12 hours or more. Roughly one missed daily run. |
| Silent | Nothing for 48 hours or more. Treat what you see for this host as stale. |
| Not reporting | The agent has never reported, or its last report is dated in the future. Torii does not round either of those up to healthy. |
Every enrolled host shows Not reporting today, and stays that way after the agent is installed, because nothing records a report from an agent yet.
Correlation
A scheduled job joins the two planes, one organisation at a time. It matches the two sides on the vulnerability identifier and sorts every vulnerability into one of three groups:
| Group | Meaning |
|---|---|
| In code and running | Present in a repository you connected and on a host you enrolled. |
| Code only | Present in a repository, not seen on any enrolled host. |
| Runtime only | Present on a host, not traced to a connected repository. Usually patching work rather than a code fix. |
How findings are ranked
Priority is a sum of four things. They are listed here from the one that counts most to the one that counts least:
- Which group it is in. In code and running counts most. Runtime only comes next, and code only counts least.
- Whether it is known to be exploited. Membership of the CISA Known Exploited Vulnerabilities list.
- How likely exploitation is. The published EPSS score.
- The severity label. Critical, high, medium, low or info. When both planes report a severity, the higher of the two is used.
Severity is deliberately the weakest term. A critical label on a library that is not deployed anywhere matters less than a medium one on a component that is running and being exploited in the wild.