Open-Source Wikis

/

Trivy

/

Systems

aquasecurity/trivy

Systems

The "systems" section covers the internal building blocks that the Trivy CLI and server share. None of them are user-facing on their own, but every scan flows through several of them.

Pages

  • Scan servicepkg/scan/, the orchestrator behind trivy image/fs/repo/vm/sbom.
  • fanalpkg/fanal/, file analysis (analyzers, walkers, artifact handlers, image readers).
  • Cachepkg/cache/, blob/artifact cache with filesystem, in-memory, Redis, and remote backends.
  • Databasepkg/db/ and pkg/javadb/, Trivy DB and Java DB lifecycle.
  • RPCpkg/rpc/ and rpc/, Twirp client/server.
  • Plugin systempkg/plugin/, external binary plugins.
  • Module systempkg/module/, WebAssembly module host.

How systems compose into a scan

graph LR
    subgraph CLI
      C[commands]
    end
    subgraph Scan
      S[scan service]
    end
    subgraph Inspection
      F[fanal]
    end
    subgraph Storage
      Cache[cache]
      DB[database]
    end
    subgraph Extension
      P[plugin]
      M[module]
    end
    subgraph Wire
      R[rpc]
    end
    C --> S
    S --> F
    S --> DB
    F --> Cache
    F --> M
    C --> P
    S -. client .- R
    R -. server .- S

Each system has its own page; the diagrams there go further than this overview.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

Systems – Trivy wiki | Factory