Torii user guide — contents

Docs · Torii

What Torii covers, and what it does not

A security tool is only as useful as your knowledge of its blind spots. This page lists every kind of check Torii has, what each one finds, and the gaps you should plan around.

Read this first

Two rules apply throughout. Each scanner runs in a sandbox with no network access, reading a copy of your repository that it cannot change. And where a scan can tell that it silently examined nothing, such as a dependency scan that found no packages or a secrets scan that covered no commits, it is reported as a failure, never as a clean result.

Dependencies

Finds known vulnerabilities in the open-source packages your code depends on. Three independent engines read your repository and match what they find against vulnerability databases that Torii keeps its own copy of, so a scan does not depend on reaching anyone else's service. Torii keeps advisory data for these eight ecosystems, and all three engines have been tested against each of them:

EcosystemExamples of what is read
npmJavaScript and TypeScript packages
PyPIPython packages
GoGo modules
MavenJava packages
crates.ioRust crates
RubyGemsRuby gems
PackagistPHP Composer packages
NuGet.NET packages
  • Vendored and installed trees are scanned. Packages under node_modules/, .venv/ and vendor/ are read for dependencies.
  • Build output is excluded. obj/, bin/, target/, dist/, build/, .next/ and .nuxt/ are not scanned, so the same dependency is not reported twice.
  • No packages found is a failure. A repository in which an engine finds no packages at all is reported as a failed scan, not a clean one.

Gaps

  • Ecosystems outside the table have not been tested. Do not rely on Torii for them.
  • Identifying a bundled Java archive (a .jar file) by its checksum has not been proven yet, because the database it needs is not in place. Dependencies declared in a pom.xml are read.
  • One of the three engines does not read installed PHP Composer packages, so those are checked by fewer engines than the rest.

Secrets

Finds credentials committed to your repository: cloud keys, access tokens, API keys and similar. It reads the git history as well as the current files.

  • History is scanned, not just the latest commit. When a later scan cannot tell where the previous one stopped, for example after a force-push or a rebase, it scans the full history again rather than scanning nothing.
  • Old secrets are not hidden. A credential found in history is reported as an open finding that tells you to rotate it. A secret deleted from the files is still compromised, so Torii does not quietly mark it as accepted.
  • Live checks are optional. Torii can check whether a found credential still works for a fixed list of credential types. Data handling and licences explains exactly what that sends and where.

Gaps

  • The check that a credential still works needs a second engine that Torii does not distribute. Where it is not present, secrets are detected and reported without that check. It has not yet been run against a live credential.
  • A credential type outside the fixed list is detected and always reported as unverified.

Static analysis

Finds risky patterns in the source code you wrote, using a rule collection that minatolabs writes and maintains itself. The rules cover these kinds of problem:

  • SQL injection
  • Command and code injection
  • Path traversal
  • Server-side request forgery
  • Unescaped output, such as cross-site scripting and template injection
  • Unsafe deserialisation (not for Go)
  • Unvalidated redirects
  • Weak cryptography
  • JSON Web Token validation mistakes
  • Missing authorisation on the API surface (C# and Python only)

Depth varies by language. The number of rules for each:

LanguageRules
Python25
JavaScript and TypeScript22
C#20
Java17
Go15

Gaps

  • Other languages get no static analysis. There are no rules for any language outside the table, for example Ruby, PHP, Kotlin, Swift, Rust, C or C++.
  • No cross-file or cross-function tracking. A value that reaches a dangerous call through a helper in another file, or through another function in the same file, is not followed. Flows inside a single function are.
  • Vendored code is not analysed. Code under vendored folders gets dependency scanning and never static analysis.

Infrastructure as code

Finds misconfigurations in the files that describe your infrastructure. Two engines run, and together they read:

  • Terraform, including plan files in JSON
  • AWS CloudFormation
  • Kubernetes manifests
  • Helm charts
  • Dockerfiles
  • Serverless Framework, Azure Resource Manager, Bicep and Ansible (one engine only)

Gaps

  • Docker Compose files are not checked. Neither engine has checks for them.
  • One engine gives no real severity. Its findings carry no severity of their own, so Torii stores them at a default. Torii does not invent a severity it was not given.
  • A repository with no infrastructure files is not an error. Most repositories have none, so finding none does not fail the scan.

Container images

Finds vulnerable components inside a container image, using two independent engines. An image is always identified by its digest, never by a tag, because a tag can be moved to point at different contents after the scan.

Supply chain and SBOMs

Every scan produces a software bill of materials (SBOM) in CycloneDX 1.6 format. Torii compares each build's SBOM with the previous one and raises a finding when a new indirect dependency appears without any change to your direct dependencies.

Gaps

  • The first scan raises no supply-chain finding. There is no earlier build to compare with. The second scan is the first that can say anything.
  • Images get no supply-chain finding. The package changes in an image are recorded, but an image SBOM does not say which packages are direct and which are indirect, so the finding is withheld.
  • The finding records the version the package arrived at. That version is not updated by later scans.
  • SBOMs cannot be downloaded through the product. They are kept for the next comparison, but there is no screen or route to fetch one.

Pipeline definitions

Asks whether the pipeline that builds your code can be trusted. It reads GitHub Actions workflow files under .github/workflows/ and composite actions defined in action.yml or action.yaml, and also audits .github/dependabot.yml and .pre-commit-config.yaml where present. It finds, among others:

  • Actions referenced by a tag or branch instead of a pinned commit
  • Credentials left behind for later steps
  • Template injection from untrusted input
  • Permissions wider than the job needs
  • Dangerous triggers

Neither engine ever edits your files. Where Torii can suggest a fix, such as the pinned form of an action reference, it gives the exact reference and location.

Gaps

  • Only GitHub Actions. Pipeline definitions for other CI systems are not read.
  • Five checks need GitHub and do not run. Because the scan has no network, these are skipped and the scan says so: a pinned commit that does not exist in the repository it claims, a known-vulnerable action version, a pinned commit whose tag has moved, a reference that could be either a tag or a branch, and a version comment that does not match the commit. 35 checks do run.
  • Ready-to-paste pinned lines need GitHub too. Without it, the finding carries the reference and location and says that the pinned line could not be computed.

Cloud accounts

Assesses how a cloud account is configured, through a read-only role you create. Four providers are supported:

  • Amazon Web Services
  • Microsoft Azure
  • Google Cloud
  • Oracle Cloud

Gaps

  • Other providers are not supported, because a provider without a role model and a least-privilege policy must not be scanned.
  • Scheduled, not continuous. Each account is assessed weekly by default, or daily, or not at all. A change between runs is not seen until the next one.

Outside-in checks

Torii is designed to check your public web surface from the outside, with passive checks only, and only against hostnames under a domain you have proven you own.

Hosts

The host agent runs on Debian and Ubuntu Linux and on macOS, on 64-bit Intel and ARM processors. The installer sets it to watch sensitive files on the machine: sign-in and permission settings, private keys, and deployment credentials. The host agent lists them.

Gaps

  • No Windows agent. The console issues no token for Windows.
  • Other Linux distributions are not supported. The installer needs dpkg and refuses to run without it.
  • Who changed a file is often unknown. On Linux it is recorded only where the Linux audit service runs. On macOS it is never recorded, and watched files are checked every 30 seconds rather than as they change.
  • Container runtime detection is not offered. Torii does not watch what happens inside running containers.

Correlation and matching

Correlation joins the code plane and the runtime plane on the vulnerability identifier. The two planes explains the three groups and the ranking.

  • The runtime half has never been read from a live source. The join is proven correct against test data, including the boundary between organisations. If the runtime source does not look the way Torii expects, Torii refuses to use it and records the run as unavailable, rather than reporting that nothing is running.
  • Matching across scanners is partial. When several engines report the same problem, Torii does not yet reliably merge them into one finding. In the one measurement taken, 687 raw findings from three dependency engines became 681, a rate of 0.9%.
  • Corrections do not reach stored findings. If Torii later improves how it describes a finding, for example its file path or severity, findings stored before the change keep the old values.

Platforms at a glance

AreaCoveredNot covered
Code hostsGitHubGitLab and Bitbucket (planned)
Languages for static analysisPython, JavaScript, TypeScript, C#, Java, GoEvery other language
Dependency ecosystemsnpm, PyPI, Go, Maven, crates.io, RubyGems, Packagist, NuGetOther ecosystems are untested; bundled .jar files by checksum are unproven
Infrastructure filesTerraform, CloudFormation, Kubernetes, Helm, Dockerfiles, Serverless, ARM, Bicep, AnsibleDocker Compose
CI systemsGitHub ActionsEvery other CI system
Cloud providersAWS, Azure, Google Cloud, Oracle CloudEvery other provider
Host operating systemsDebian and Ubuntu Linux, macOSWindows, and Linux distributions without dpkg

Deliberately deferred

These are decisions, not oversights. Each has a stated condition for revisiting it.

Not offeredWhy
Container runtime detectionThe runtime plane has to be solid first. It will be considered on customer demand.
Cross-file and cross-function code analysisNot available in the open analysis engine Torii uses.
Active web testingAttacking a production system needs a separate, explicit authorisation flow for each target.
A self-hosted editionIt would bring every distribution obligation at once. Considered for the first customer that requires it.
A Windows agentNo Windows host exists to prove a package on.
Recording who changed a file on every hostNeeds the Linux audit service on Linux and is not possible with the agent on macOS.
Choosing the region your data is kept inTorii runs in a single region at launch.
SOC 2 certificationA gap analysis first, certification later.
Comments in your editor or on pull requestsThe rate of false findings has to be measured and acceptable first.
Docker Compose checksNeither infrastructure engine has them.
Downloading past SBOMsNo retrieval route exists yet.
Supply-chain findings for imagesAn image does not say which packages are direct dependencies.