Skip to content

Architecture and data flow

DefenceLabs Unity is a multi-tenant web application. It connects to a company's existing tools with read-only access, builds one model of the organisation from what it reads, and turns that model into findings that people can act on. This page shows the main components and how data moves between them.

Architecture diagram

Unity architecture diagram

Figure 1. How Unity reads connected apps and runs workflows. The sync service and the proxy are the only components that call connected apps, and both make read-only requests. Workflow sandboxes hold no credentials and reach connected apps only through the proxy.

Components

  • Unity application. One multi-tenant web application (SvelteKit), hosted on Amazon Web Services (AWS) in the London region (eu-west-2), behind Cloudflare, at unity.periculo.co.uk. Each company is a separate tenant, and every record is tied to one company.
  • Database. PostgreSQL (Amazon RDS, eu-west-2) holds the company model (the "ontology"), findings, workflows and settings.
  • File storage. AWS S3 storage, in the eu-west-2 region and with versioning switched on, holds uploaded policies, evidence and workflow run data.
  • Key management. AWS KMS (eu-west-2) encrypts every stored credential with envelope encryption, bound to the company it belongs to.
  • Workflow sandboxes. Isolated, short-lived containers on AWS Fargate, one per workflow run, with no internet access.
  • AI. Anthropic's Claude, called only from the app server.

Data flow in one line

Connected app → read-only API (credentials decrypted in the app only) → Unity sync → ontology in PostgreSQL → built-in checks and approved workflows (sandbox → proxy → read-only API) → findings → people in Unity, and optionally a Jira issue that a person creates.

The next page, Integrations and data collection, explains each step.

Trust boundaries

  • Company environment. The apps Unity reads from. The company grants access and can remove it in the connected app.
  • Periculo platform. The Unity application, database, file storage, workflow sandboxes and proxy, hosted on AWS in the London region.
  • Third parties. Cloudflare (network edge), AWS (hosting) and Anthropic (AI, processed in the United States). The Data governance page lists the sub-processors.