Reviewing an X-Road deployment against the X-Road threat model

Teams that run an X-Road Security Server or ecosystem component need to show that their deployment matches the published threat model and security architecture. This page explains how to check each trust boundary, what a review covers, and what to confirm in your own environment.

On this page

How an X-Road threat model review checks your deployment

A threat model review checks whether your member or ecosystem deployment has the controls that the published X-Road threat model and security architecture assume. Run it before go-live, after an upgrade, after administrator role changes, and before any assessment that asks how the system is protected. Start by taking the threat model and security architecture for the exact X-Road version you run from the X-Road documentation. The supported releases are 7.8.3, 7.7.4 and 7.6.5, and each needs its own reference. Check the X-Road releases page for current support status, and confirm the version on every Security Server and Central Server in scope. A mixed fleet needs a review against each version it runs. Record the version, the date and the reviewer before you open the deployment.

The review then walks each trust boundary and maps it to the controls the documentation describes, beginning with network exposure. On a Security Server, TCP 5500 (message exchange) and TCP 5577 (OCSP) are the ports that external networks reach. TCP 4000 for the admin UI and TCP 8080 or 8443 for information system access belong on internal networks only. Compare firewall rules, cloud security groups and load balancer listeners with that split, and record any rule that exposes a management or information system port more widely. Key storage is the second boundary. Confirm whether signing and authentication keys sit in software or on a hardware security module reached through a PKCS#11 driver, which the xroad-addon-hwtokens package supports for RSA and EC keys. Also confirm who can export or back up that key material. The Security Server installation guide lists the ports and packages to check against.

PostgreSQL, admin access and information system interfaces come last. The Security Server needs PostgreSQL, either local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. Confirm which network paths reach the database, which account the Security Server uses, and how backups are protected. For admin access, map each person to one of the five roles (Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer), and check how PAM and SSSD map LDAP groups to those roles. Then check the account and host settings in the X-Road security hardening guidelines, including lockout after 3 failed logins for 15 minutes, passwords of at least 16 characters, key-only SSH and the allowed-hostnames setting. The result is a gap list with evidence for each control. A review does not issue an audit report or certification. Independent auditors and certification bodies do that, so use the gap list to prepare for them.

Where the trust boundaries sit in a Security Server deployment

The diagram starts at the two network edges of a Security Server. External peers reach it on TCP 5500 for message exchange and TCP 5577 for OCSP, which is where network exposure review begins. Internal information systems use TCP 8080 or 8443, and administrators use the admin UI on TCP 4000, which falls under admin access review. Three dependencies sit behind the server. PostgreSQL, local or remote, falls under database review. The hardware security module, reached through PKCS#11, falls under key storage review. The admin UI authenticates through PAM and SSSD against LDAP, so group mapping to X-Road roles belongs in admin access review too.

Security Server ports and dependencies, each linked to its review area.

Which X-Road threat model review scope fits your deployment

This table compares the review scope choices that most change how an X-Road deployment is checked against the threat model. Read each row as a decision: the middle column shows what the review covers when you choose that option, and the last column lists what to confirm before the scope is agreed in writing. Most reviews combine one option from each pair, so the main takeaway is that the operator boundary, key storage, database hosting and admin identity each need a named owner before testing starts.

OptionWhat it changes in the reviewWhat to confirm
Member Security Server onlyCovers the member's Security Server, its exposed ports and host hardeningWhich parts of the Central Server the member can test or inspect
Central Server and ecosystem operator sideAdds Central Server configuration, management services and global configuration distributionOperator authority, change approval records and access to the management REST API
Software-stored keysKey review covers file permissions, key locations and whether backups include key materialWhere key files live, who can read them and how backups are protected
HSM-backed keys through PKCS#11 with xroad-addon-hwtokensAdds the token driver, token login handling and HSM administrator accessPKCS#11 driver version, how the token PIN is stored and who administers the HSM
Local PostgreSQLCovers database host access, local superuser accounts and database backup handlingWho can reach the database port and where database credentials are stored
Managed PostgreSQL such as AWS RDS or Azure Database for PostgreSQLAdds cloud identity, network rules and provider-side logging to the reviewProvider access model, encryption settings and log retention the client controls
Local accounts for admin accessChecks PAM login, local password policy and account lockout settingsWhich local accounts exist and who holds each of the five Security Server roles
LDAP-backed admin access through PAM and SSSDAdds directory group mapping to X-Road roles and directory-side account controlsGroup-to-role mapping, offboarding process and how SSSD cache settings are handled

How network exposure gets tested port by port

Start by mapping which networks may reach TCP 5500 and 5577 from outside your organization, since those ports carry message exchange and OCSP traffic from external peers. For each port, check three layers: the host firewall on the Security Server, any firewall or security group in front of it, and any load balancer listener that forwards to it. Then test from at least one network you control that is not on the external peer list, and confirm the connection is refused or dropped. Before any external test, confirm the external peer list with the ecosystem operator, because the list defines what counts as an expected source, and traffic from unlisted addresses may trigger that operator's incident response. Record the exact source ranges each rule allows, along with the rule names, so the review can compare them against the list line by line.

The admin UI on TCP 4000 is documented for internal access, so the goal here is simple to state and easy to get wrong: no external path may reach it. Test that from an external network against every public address, including the load balancer virtual IP, any port forward or reverse proxy, and any VPN route that bridges into the internal segment. TCP 8080 and 8443 serve information system access from internal networks, so test them from the internal segments that consume services, and confirm that the external test networks cannot reach them either. Ask the team that owns each internal segment for its routing and NAT documentation, because a port closed on the Security Server can still be reached through a forward on a router you did not inspect.

The allowed-hostnames setting belongs in the same check, because the X-Road security hardening guidelines list it as the control against host header injection. Confirm that the setting lists only the names your operators and information systems legitimately use, then send requests to the admin UI and the information system ports with unexpected Host values from an allowed network and confirm they are rejected. Keep the results as a matrix with one row per port and source network, showing the expected result, the observed result, the rule or listener responsible, and the retest date. Rerun the full matrix after any firewall, load balancer or hostname change, since each of those can reopen a path that was closed before.

How key storage and admin access change the review

When signing and authentication keys sit in software on the Security Server, the review centers on where the key material is stored on disk, who can read it, and how it is replaced if the host fails. Software keys are simpler to deploy and recover, but they are only as protected as the host operating system and its backups.

  • Key location: Confirm where each signing and authentication key is stored on the Security Server host, and which operating system accounts can read those files and the directories above them.
  • Backup scope: Check whether key material is included in backups, who holds the means to decrypt those backups, and whether a restore has been tested on a separate host.
  • Privileged access: List the root and other privileged accounts on the host, because they can read software keys without using the X-Road admin UI.
  • Recovery evidence: Ask for the documented procedure for replacing a compromised key, the date it was last exercised, and the record of who approved the change.
  • Host lifecycle: Confirm what happens to key material when a host is decommissioned or cloned into a new virtual machine.

Check each answer against host output such as file listings, permission reports and restore records, and treat the runbook as a claim to verify.

Setup sequence for an X-Road threat model review

This sequence takes a review from agreed scope to a retested findings list. Each step produces an artifact that the next step depends on, so the review can be repeated against a later version or another member's deployment. The order also keeps evidence tied to the exact software version under review.

  1. Confirm the written scope and deliverables

    Agree in writing which Security Servers, Central Servers, network zones and administrator roles are in scope, what the findings report will contain and whether a retest is included. The reviewer and the client's security lead sign the scope document before any testing starts, and the reviewer confirms that the named systems are the ones the client operates. The step is done when the signed scope lists every in-scope system, every deliverable and the retest terms, with no open questions on the boundary.

  2. Obtain the threat model for the deployed version

    Request the published threat model and security architecture for the exact release the client runs, and confirm the version on every Security Server before you read it. The supported releases are 7.8.3, 7.7.4 and 7.6.5, and X-Road 8.0.0 Beta 2 is for testing only, so it should not be used as the production baseline for this review. If a server runs another version, record that as the first finding and ask the client for its upgrade plan. The step is done when the version reported by each host matches the document version you are reviewing against. Check the X-Road releases page for the current support list.

  3. Inventory servers, ports, databases, HSMs and LDAP mappings

    List every Security Server with its operating system, its PostgreSQL instance (local or managed, such as AWS RDS or Azure Database for PostgreSQL), its PKCS#11 hardware security module setup if one is used, and the LDAP groups mapped through SSSD and PAM. Record the ports each server should expose: TCP 5500 and 5577 to external networks, and TCP 4000 plus 8080 or 8443 to internal networks. Include any Central Server, configuration proxy and backup target that touches these hosts. The step is done when the inventory matches the configuration files and service listeners on each host, and every gap is logged for the client to explain.

  4. Test exposure from each network zone

    Scan each Security Server from every network zone that should reach it, including the external network, the internal network and any administration segment. Expected results are that TCP 5500 and 5577 answer from external networks, and that TCP 4000 plus 8080 or 8443 answer only from internal networks. Any other listener that responds, including the admin UI reachable from an external path, becomes a finding with the source zone and port recorded. Use the same test method from each zone so results can be compared, and keep the raw output as evidence. The step is done when each zone has a table of open and closed ports that matches the inventory from the previous step.

  5. Compare settings with the hardening guide

    Check the running configuration against the X-Road security hardening guidelines, version 0.6 dated 09.01.2025. Confirm that accounts lock for 15 minutes after 3 failed logins, that passwords are at least 16 characters, that SSH accepts keys only, that the allowed-hostnames setting is in place against host header injection, and that global configuration is published over HTTPS on version 7.4 and later. Read each value on the host itself, because deployment templates drift over time. The step is done when every item is marked met, not met or not applicable, with the command output or screenshot kept beside it.

  6. Review role assignments and directory mappings

    Check which people and directory groups hold each of the five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Trace each LDAP group, mapped through SSSD and PAM, to the X-Road role it grants, and compare that with the separation the client intends. Flag any group or account that holds registration or approval power alongside service or system administration, and any shared or unnamed account. The step is done when every role has a named owner group, and every conflict is listed for the findings report with the members involved.

  7. Write findings with fixes and owners

    Record each deviation from the threat model, the hardening guide or the agreed scope as a finding. Each finding names the affected host or role, the evidence, the risk in plain language and a specific fix the client's team can apply. Group findings by area: network exposure, key storage, database access, hardening and administrator access. Review the draft with the client's security and platform leads so they can challenge facts before the report is final. The step is done when every finding has an owner, a fix and a retest condition, and the report wording has been agreed with the client.

  8. Retest fixes and close findings

    After the client applies each fix, repeat the exact check that produced the finding, from the same network zone and with the same method. Record the retest result next to the original evidence, and mark the finding closed only when the check passes. If a fix cannot be applied, record the accepted risk, its owner and the date of the decision. The step is done when every finding is either closed or has a signed accepted-risk entry, and the final report lists anything still open. Run this step only if the written scope includes a retest.

Admin access and host hardening checks that carry the most weight

These six checks cover the places where a careless administrator or an attacker could change how a Security Server accepts requests: who holds admin roles, how logins and hosts are configured, how traffic is encrypted, and where the database and signing keys live. For each card, request the evidence named there and compare it with the trust assumptions in your threat model.

Five admin roles and directory groups

The Security Server defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Ask for the mapping from each role to an LDAP group, reached through PAM and SSSD, and confirm that no single group can approve its own changes. Request the audit records showing who approved registrations and service changes, and who altered role assignments.

User guide

Lockout, password and SSH settings

The hardening guide recommends locking an account for 15 minutes after 3 failed logins and requiring passwords of at least 16 characters. Check these values on every Security Server host, and confirm that SSH accepts key-only logins with password authentication disabled. Ask for the effective configuration files and a test showing a locked account and a rejected password login.

Hardening guide

Allowed hostnames for header injection

The hardening guide's allowed-hostnames setting limits which host names the Security Server answers to, which guards against host header injection. Review the value on each node, including any node behind a load balancer, and confirm that every name clients use is on the list. Request the effective configuration and the result of a test request that sends an unlisted Host header.

HTTPS and TLS on configuration paths

The hardening guide recommends publishing global configuration over HTTPS from version 7.4, so confirm that configuration distribution uses HTTPS on the version you run. For information system paths on TCP 8080 or 8443, check which TLS versions and cipher settings are enabled, and which certificates the endpoints present. Request the endpoint scan output and the TLS configuration files for each path.

Hardening guide

PostgreSQL access, backup and recovery

The Security Server requires PostgreSQL, either local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. Check which accounts can connect, whether the database accepts connections only from the Security Server hosts, and where the credentials are stored. Ask for the backup scope and evidence that a restore has been tested on a separate host.

Installation guide

HSM custody and key use

X-Road supports hardware security modules through PKCS#11 drivers using the xroad-addon-hwtokens package, with RSA and EC keys. Ask who holds the HSM operator credentials, which OS accounts and service identities can load the module, and who can use the signing keys in day-to-day operation. Request the token configuration and the access list, and confirm the HSM policy on key export matches your risk model.

Installation guide

What a threat model review hands back to your team

The written findings are the main thing your team receives, so the format matters. Each finding is tied to one place in the deployment: a threat model area such as network exposure, key storage or administrator access, plus the specific element involved. That element might be a listening port such as TCP 4000 for the admin UI, a role such as Security Officer or Service Administrator, or a key, such as a signing key held on a hardware security module through the PKCS#11 driver. Severity is agreed in the written scope before testing starts, so the ranking follows your own risk method. Every finding names a fix owner, describes the recommended change, and records a retest result once the change is in place. Ask for a sample report during scoping so you can check these fields before you sign.

DeployOpen prepares the systems, controls and evidence that an assessment will examine, including configuration exports, role assignments, network rule sets and the retest records that show a fix took effect. Independent auditors and certification bodies are the parties that issue audit reports and certifications, so the review feeds their work without replacing it. Confirm with your assessor which artifacts they want, in what format and for what period, so the evidence is collected once and in a form they can use. Also confirm whether they will accept a findings report from an outside security firm as an input to their own testing.

Some fixes sit outside your organization. Decisions that affect the whole ecosystem, such as the global configuration, member classes, the approved certification authorities or how the Central Server is operated, belong to the operator of your X-Road ecosystem. A finding that traces back to those decisions should go to that operator with the evidence attached, and your team should not change shared configuration on its own. Member-side fixes, such as your Security Server hosts, database access, admin accounts and HSM settings, still need coordination with the operator because a change to a shared endpoint can affect other members. Agree a contact path and a change window with the operator before the report is delivered.

Limits to confirm in your environment before the review

Several parts of the X-Road threat model depend on decisions made outside your Security Server, by the operator, your database provider, your HSM vendor, your directory team or your change board. Confirm each item below before the review starts, and record who answered so that findings match what you actually run.

Confirm the X-Road version

The threat model applies to the version you run, so confirm the exact release on every Security Server and Central Server before the review. Supported 7.x releases are 7.8.3, 7.7.4 and 7.6.5, and 7.8.0 is the last new-feature release in the 7 line. X-Road 8 is available as 8.0.0 Beta 2 for testing, with production scheduled for December 2026. NIIS intends to patch X-Road 7 beyond 2026 but has not decided how long that will last, so ask NIIS or your operator for the date you can plan around.

X-Road releases

Ecosystem controls belong to the operator

Some controls span the whole ecosystem, including global configuration distribution, member onboarding, trust service choices and the Central Server's management services. The operator of your X-Road ecosystem runs these, so your member review can only record what the operator confirms. Ask the operator which of these it enforces, how it notifies members of changes and which evidence it will share for your review, and get those answers in writing before you finalize scope.

Managed database controls

The Security Server needs PostgreSQL, either local or remote, and managed services such as AWS RDS and Azure Database for PostgreSQL are supported options. Controls such as encryption at rest, backup retention, network isolation and access logging are set by the provider and service tier you choose. Ask the provider which of these its service includes and how each is configured for your instance, then confirm that your DBA owns the Security Server database account and its password rotation.

Installation guide

HSM support depends on the driver

X-Road reaches hardware security modules through PKCS#11 drivers, using the xroad-addon-hwtokens package, and supports RSA and EC keys. Whether your module works depends on the driver library and vendor, including the driver version and the vendor's support statement for your firmware, so confirm that combination before the review. Ask the HSM vendor which driver version it supports with your module and key types, and ask your operator which key types your ecosystem uses.

Production testing needs a change window

Checking threat model assumptions on a live Security Server can disturb message exchange, so agree a change window with the operator and your change board before any test starts. Write down which hosts, admin interfaces and information system endpoints are in scope, who watches the logs during testing and who can call a stop. Ask the operator whether a staging environment mirrors your production configuration, and if it does not, agree in advance which checks are read only.

LDAP group design

The Security Server authenticates admin users through PAM, and SSSD can map LDAP groups to the five X-Road roles. Which groups exist, how they nest and who may change their membership depends on your directory, so ask the directory owner to confirm the design before the review. Check that no single account holds roles whose duties should stay separate, and that removing a user from a group also removes their X-Road access.

User guide

What an X-Road threat model review costs and needs from you

What drives the cost of an X-Road threat model review?

The cost follows the size and shape of the deployment in scope. The main drivers are the number of Security Servers, the number of networks they face and cross, the number of hardware security modules holding signing keys, the directory integrations used for administrator sign-in, and the number of retests after fixes. Each Security Server adds configuration to read and check, and each network zone adds exposure paths to model. DeployOpen does not publish a price list. A quote follows from the written scope, so ask for each driver as a separate line item. Internal staff time for documentation, access approvals and change windows is a separate cost to your own budget. Confirm which items are fixed in the scope and which would be charged as extra.

Which parts of an X-Road review are one-time and which recur?

The initial review is one-time work for the scope agreed in writing before it starts. Retests after fixes are a cost to ask about, because whether they are included or billed separately depends on the scope. Recurring costs come from three places: repeat reviews after upgrades or membership changes, ongoing support, and retainers. Ongoing support, upgrades and continuous testing are available as retainers, so a retainer is the option if you want checks between formal reviews. A repeat review is new scope and is quoted again from its written scope. Your own internal effort for each cycle recurs too. Ask the quote to show one-time and recurring lines separately so you can budget for both.

How long does an X-Road threat model review take?

No duration is given here, and the timeline depends on the same drivers as cost: the number of Security Servers, networks, hardware security modules, directory integrations and retests. Timing also depends on how quickly your documentation and network diagrams arrive, when administrator access is approved, and when a change window opens for tests that touch live systems. A deployment with many Security Servers and several network zones takes longer to model than a single server on one network. Ask for a written timeline with milestones for document intake, the testing window, the findings report and the retest. Confirm whether an X-Road upgrade planned during the review would move those dates.

What do we need to provide for a threat model review?

Before the review starts, the work needs five things from your side:

  • Architecture documentation: a current Security Server inventory, member classes, and how each server connects to the Central Server
  • Network diagrams: showing which zones can reach the message exchange, OCSP and admin ports
  • Admin access: accounts for the admin UI and read access to configuration, approved through your normal process
  • A change window: a scheduled period for tests that touch live systems and for applying fixes
  • A named owner: one person who makes decisions, approves scope changes and accepts findings

Missing any of these usually moves the timeline, so agree the list in the written scope before work begins.

Can our own team run an X-Road threat model review alone?

Yes, a team with X-Road operations experience can run a review using the published threat model and security architecture, and the steps on this page give a sequence to follow. Your team will need working knowledge of TLS, PKI and certificates, PAM and LDAP for admin sign-in, PKCS#11 for hardware keys, and PostgreSQL, because the review touches all of them. The main limit is independence. A team that runs its own deployment tends to test its own assumptions, so an outside reviewer often finds gaps the operators missed. Decide early whether the review will be internal, external or a mix of both, and record who approved each finding and each fix.

Does a threat model review replace an audit of X-Road?

No. A threat model review does not replace an audit. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors and certification bodies do that work. What the review gives you is a tested view of the deployment against the X-Road threat model, a findings report with fixes, and a retest, along with evidence your compliance team can hand to an auditor. Treat the findings as inputs to your control evidence. Bring your compliance lead into scope discussions early so the evidence matches what your auditor will ask for.

How often should we repeat an X-Road threat model review?

Repeat the review whenever a change alters the trust boundary, and add a regular interval set by your risk policy. Triggers include X-Road upgrades between supported lines, such as 7.8.3, 7.7.4 and 7.6.5, changes to administrator roles, new members or Security Servers joining the ecosystem, new network paths or firewall changes, changes to hardware security module or key storage, and changes to directory groups used for admin sign-in. A move to X-Road 8 is a new scope and needs its own review. No fixed interval is set here, so agree one with your risk owner.

Which X-Road ports and keys should a review check first?

Start with exposure, key storage and admin access, because those three areas set the largest paths into the deployment. For exposure, check the Security Server installation guide and confirm which ports face external networks: TCP 5500 for message exchange and 5577 for OCSP. The admin UI on TCP 4000 and information system access on 8080 or 8443 should sit on internal networks only. For keys, confirm whether signing keys sit in software or in a hardware security module reached through PKCS#11 with the xroad-addon-hwtokens package, and who can use them. For admin access, confirm the five roles are held by different people and that LDAP groups map to the intended roles through SSSD.

How DeployOpen scopes and delivers this review

DeployOpen reviews an X-Road deployment by starting from the published X-Road threat model and security architecture, then checking your Security Servers, Central Server connections and surrounding systems against it. The work covers network exposure, key storage, administrator access and the hardening settings around them. Engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before work starts.

How we scope

  • The written scope names each Security Server, Central Server and information system interface included in the review.
  • We map threat model areas, such as network exposure and key storage, to the systems in scope.
  • Scope also records which role-separated accounts, directory groups and hosts you want assessed, and what is excluded.

How we build

  • Review starts with architecture documents, the deployed Security Server settings and the network paths between members.
  • We check exposed ports, including TCP 5500, 5577, 4000 and 8080 or 8443, against the intended network zones.
  • Key storage is traced across software keys and PKCS#11 hardware modules, and admin login across PAM and LDAP mapping.

How we hand over

  • Findings are written against the threat model area, the affected component and the evidence we collected.
  • Each finding includes a recommended fix, such as tightening the allowed-hostnames setting or separating an administrator role.
  • You receive a written report that your team can take into its own change records and compliance evidence.

How we support

  • Fixes can be applied by your team or by DeployOpen under a separate written scope.
  • A retest of the fixed items can be included in the written scope so closure is documented.
  • Ongoing support, upgrades and continuous testing are available as a retainer after the review.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.