Penetration testing X-Road Security and Central Servers

A penetration test of X-Road needs an agreed scope across the Security Server, the Central Server, the operator and each information system behind them. This page explains what to include, how to sequence the work and what to confirm before testing starts.

On this page

How X-Road penetration testing scopes Security Servers and Central Servers

A penetration test of X-Road covers the Central Server, the Security Server and the Configuration Proxy, and each of those servers needs written authorization from the party that owns it. An organization that runs X-Road usually needs this test before go-live, after a material change, or to give management and assurance teams independent evidence of the exposed surfaces. The X-Road operator authorizes testing of the Central Server, and each member authorizes testing of its own Security Server, so one approval does not cover the others. Confirm who owns the Configuration Proxy in your deployment before the scope is signed. DeployOpen performs security testing and reports findings, but it does not issue audit reports or attestations. Independent auditors and certification bodies issue those.

Supported platforms set the boundaries of the test plan. The Security Server runs on Ubuntu Server 22.04 and 24.04 LTS on x86-64 and on Red Hat Enterprise Linux 8 and 9, and the X-Road components are supported on Ubuntu, RHEL and Docker, so the scope should record the operating system or container image of each host. Check whether the Security Server database is local or a managed service such as AWS RDS or Azure Database for PostgreSQL, because that decides which database paths and credentials fall inside the test. For each Security Server, list the interfaces the tester may reach: TCP 4000 for the admin UI from internal networks, TCP 5500 for message exchange and TCP 5577 for OCSP from external networks, and TCP 8080 or 8443 for information system access from internal networks. If hardware security modules are attached through PKCS#11 with the xroad-addon-hwtokens package, name them too. The X-Road Security Server installation guide lists the ports and platforms that the scope should match.

Write the scope as one document that every server owner signs before testing begins. It should name each server, its owner and a contact who can stop a test, list the hosts, ports, admin UI and REST API endpoints in scope, and state which accounts testers may use. Ask the operator whether tests against the Central Server are allowed in production or only in a staging ecosystem, and whether tests may send traffic to live member services or only to test services. Agree the test window, the escalation path if a Security Server becomes unavailable during testing, and how any personal data that surfaces in logs will be handled. Keep the signed scope with the test report so every finding can be traced back to the authorization that allowed the test.

Which X-Road penetration testing targets to include and when each fits

This table compares the main attack surfaces of an X-Road deployment, what the official installation and hardening documentation says each one exposes, and when it belongs in a test scope. Read the first column as the entry point and the third column as the condition for including it. Security Server interfaces are usually in scope for a member test, while Central Server and host items depend on what the operator has agreed to share.

TargetWhat it exposes according to the docsWhen it fits the scope
Security Server admin UITCP 4000 from internal networks, with login through PAM and five admin rolesInclude for every Security Server test. Test role separation, account lockout and any LDAP group mapping through SSSD.
Information system accessTCP 8080 or 8443 from internal networks, used to reach services published through X-RoadInclude when consumer or provider systems on your network depend on it. Test access rights and TLS toward the information system.
Message exchangeTCP 5500 from external networks, carrying exchange traffic between membersInclude in every external test. Check authentication, message handling and which member networks can reach it.
OCSP responderTCP 5577 from external networks, used for certificate status checksInclude when certificate status checks are part of your trust model. Confirm the responder's exposure and allowed clients with the operator.
Management REST APIAutomation interface for Security Server administration. Confirm listener address, port and key handling in your installation.Include when API keys or automation tools are in use. Test key scope, storage and revocation.
Central Server admin and configuration servicesOperator-run administration and global configuration services. Confirm interfaces and ports with the operator before scoping.Include only with written operator approval. Test access only from networks the operator authorizes.
Host OS and SSHUbuntu 22.04 or 24.04 LTS, or RHEL 8 or 9. Hardening guidance expects key-only SSH and strong password policy.Include for hardening review on hosts you are permitted to test. Check SSH settings, lockout and password policy.
PostgreSQL connectionRequired database, local or remote, including managed services such as AWS RDS or Azure Database for PostgreSQLInclude when the database is remote or shared. Check the network path, credentials and encryption in transit as configured.
PKCS#11 HSM integrationHardware tokens through PKCS#11 drivers from the xroad-addon-hwtokens package, for RSA and EC keysInclude when signing keys sit in an HSM. Check token access, PIN handling and driver configuration.

Where the trust boundaries sit in a Security Server test

Testing starts at the Security Server boundary, where external member traffic arrives on TCP 5500 for messages and TCP 5577 for OCSP. Internal administrators reach the admin UI on TCP 4000, and internal information systems use TCP 8080 or 8443. Admin logins go through PAM, which uses SSSD to check LDAP groups mapped to X-Road roles. The server also depends on PostgreSQL, local or managed, and may hold keys on a PKCS#11 token. The Central Server belongs to the operator. Before testing a path, get written approval from the owner of every boundary it crosses.

Each boundary is labeled with the party that approves tests crossing it.

X-Road penetration testing steps, from authorization to retest

The sequence moves from written permission and a fixed software version to a mapped attack surface, role-by-role testing and host review, and ends with a report and a retest of every finding. Each step closes with a check the team can confirm before moving on. No traffic reaches a live interface until the owners have approved the scope in writing.

  1. Obtain written authorization from every owner

    Before any traffic is sent, request written authorization from the owner of each Security Server in scope and from the X-Road operator who runs the Central Server and global configuration. The letter should list every host, network range, port, interface and test account, along with the test window and whether the Central Server is in scope, because changes there affect other members. Check: each owner and the operator has confirmed the scope in writing, and the signed list matches the hosts you will test.

  2. Fix the X-Road version under test

    Record the exact X-Road release installed on every Security Server and Central Server in scope, and flag any host running a version outside the agreed list. The supported releases are 7.8.3, 7.7.4 and 7.6.5. Include 8.0.0 Beta 2 only if the written scope names it, since it is a beta available for testing with its production release scheduled for December 2026. Check: a version inventory from each host matches the scope letter, and any mixed-version pairing is noted in the test plan because it may change which findings apply.

  3. Build an exposure map from listening ports

    Scan each network zone from the position an attacker in that zone would hold, then compare what answers with the expected Security Server listeners. From external networks, TCP 5500 carries message exchange and TCP 5577 serves OCSP. From internal networks, TCP 4000 serves the admin UI and TCP 8080 or 8443 serves information system access. Confirm the PostgreSQL port is reachable only from the Security Server. Any other open service, or an admin UI reachable from outside the admin network, becomes a finding. Check: the map lists each host, port and source network, and every unexpected open port has an explanation from the owner.

  4. Create one test account per role

    Ask each owner to create one admin account for each of the five Security Server roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Admin users authenticate through PAM, and where LDAP is integrated through SSSD, confirm with the owner which directory groups map to which roles before testing begins. Use each account only for its own role, so later tests show whether any role can act outside its remit. Check: five accounts exist, each logs in with its intended role, and the owner has a plan to disable them when testing closes.

  5. Check hardening, host and TLS configuration

    Walk through the X-Road security hardening guidelines, version 0.6 dated 09.01.2025, and record each control as met, partly met or not met, with evidence. Examples include locking accounts for 15 minutes after 3 failed logins, passwords of at least 16 characters, key-only SSH and the allowed-hostnames setting. On each host, review the operating system build and patch level, file permissions on configuration and key material, and TLS protocol and cipher settings on the admin and interface ports. Check: every control in scope has an evidence entry, and each host has a written configuration summary.

  6. Test admin UI, REST API and services

    Sign in to the admin UI on TCP 4000 with each role account and attempt actions that role should not perform, for example a Service Administrator attempting a registration approval. Call the management REST API with test keys created for the engagement, and confirm each key can do only what its scope allows. Test the information system interfaces on TCP 8080 or 8443 for authentication, access rights and input handling, using the service descriptions the owner agrees to. Record every request, response and role used. Check: a role matrix shows allowed and denied actions for each account, and every test key is revoked at close.

  7. Report findings and retest every fix

    Deliver a written report that rates each finding, shows the evidence and affected host, and recommends a fix the owner can apply. Owners then apply the fixes, and the same tests run again to confirm each one works. If a finding appears to be in X-Road's code, confirm with NIIS whether its bug bounty or another reporting route applies before sharing details beyond the owner. Check: every finding has an owner, a fix and a recorded retest result, and the owner accepts the final report in writing.

Hardening controls the test should verify on each server

The X-Road security hardening guide (version 0.6, dated 09.01.2025) sets baseline controls for each server, and the test should confirm them on every host. The six controls below cover login protection, administrator access, request handling and configuration distribution. Each card states what the tester checks and what a failure looks like, so each finding maps to one setting and one fix.

Account lockout after failed logins

The hardening guide recommends locking an account for 15 minutes after 3 failed logins. The tester sends a controlled run of wrong passwords to each login path that accepts credentials, including the admin UI and SSH, then checks that the account locks, that a correct password is refused during the lock, and that the lock expires on schedule. A failure is any login path that keeps accepting guesses, or one that locks for a different period than the documented setting. Confirm which paths the lockout covers in your configuration, since operating system and application accounts can be handled separately.

Hardening guide

Minimum password length

The hardening guide recommends passwords of at least 16 characters for every account that can log in to a server. The tester attempts to set passwords just below that length on operating system and administrator accounts, then confirms the policy rejects them on both new accounts and password changes. A failure is a policy that accepts shorter passwords on any account with server access. Ask the operator to show the password policy in effect on each host, because a setting that covers one account type may not cover another.

Hardening guide

Key-only SSH access

Key-only SSH means each host accepts public key authentication and refuses passwords. The tester reads the effective SSH daemon configuration on every server, including included files, because an include can override the main file. The tester then attempts a password login from an allowed network and confirms it is refused, and checks that each named administrator has a key on record. A failure is password authentication still enabled, including through an include file or a fallback setting. Verify the running daemon's settings, not only the file that was edited.

Allowed hostnames against host header injection

The allowed-hostnames setting limits which host names a server answers to, which blocks host header injection. The tester sends requests with substituted Host headers, including the server's own address and an unrelated name, and checks that unlisted names are rejected on the admin UI and information system interfaces. Confirm the setting name and location for your version in the hardening guide, then compare the list with the names your members use. A failure is any request accepted under a host name nobody approved. An empty or overly broad list defeats the control.

Global configuration published over HTTPS

From version 7.4, the hardening guide recommends publishing global configuration over HTTPS, so each server fetches it over an encrypted channel. The tester identifies the URL every Security Server uses to fetch global configuration, confirms it is HTTPS, and checks that the certificate validates against the expected trust chain. A failure is a configuration endpoint that serves over plain HTTP, or a client that accepts an invalid certificate. Confirm with the operator which version each member runs, since this control applies from 7.4 onward.

PAM and SSSD role mapping

The Security Server authenticates admin users through PAM, and SSSD can map LDAP groups to the five X-Road roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. The tester signs in with one test account per group and confirms each account receives only its own role. It also confirms that a user in no group has no access and that removing a user from a group revokes access on the next login. A failure is one group granting more than one role.

Security Server user guide

Coordinating with the X-Road operator and the NIIS bug bounty

Settle who can approve the test before any traffic is sent. A test of a Central Server or a shared ecosystem component, such as a configuration proxy, is not a decision one member can make alone, because the operator runs those components for every member. Get written approval from the operator's governance contact and confirm whether other parties must also agree. A test of your own Security Server is approved inside your organization by its owner and the person accountable for the systems it fronts, but the operator should still hear about it, because exchanges with other members pass through that server. Change windows matter for two reasons. A test during a freeze or a planned release adds risk to a change that is sensitive, and the operator's monitoring baseline reflects normal operations, so unusual load looks like an attack unless someone tells the monitoring team it is coming.

Agree the traffic pattern in writing, including the time window. Record the source addresses, target components and ports, request rate and concurrency ceiling, the test client subsystem that makes the requests, and the hours when traffic may flow. Ask the operator's monitoring team which alert rules the planned pattern would trigger, such as bursts of failed authentication, unusual OCSP queries or unexpected load on 5500, and whether those alerts can be annotated or suppressed for the window. Agree a stop condition and name one person on each side who can halt the test immediately. Brief the security operations staff who receive the alerts, so an analyst who sees a spike knows it is the test and whom to call. Without this, a scanner run that is fully inside the contract can still be handled as a live intrusion, which costs the operator response time and can damage trust in the test.

The NIIS bug bounty may apply where a finding concerns X-Road itself, meaning the software or its shared components. Findings that stay within one member's configuration or its information systems usually belong elsewhere. Read the program's terms in full before the first packet is sent, and confirm whether it covers your deployment and which components it names, including any conditions on testing and reporting. Do not assume a finding on a Central Server is covered only because the server runs X-Road. Agree routing for each finding class with the operator in advance: flaws in X-Road core code, issues in the operator's configuration, weaknesses in your own Security Server, and problems in connected information systems may each go to a different party. Write this routing into the statement of work so the tester knows where each result goes on the day it is found, and so no report lands with a party that cannot act on it.

Limits to confirm in your environment before testing

These six items decide what a test can touch, when it can run and who must approve it. Confirm each one with the named owner before the statement of work is signed, because a wrong assumption here changes the test plan, the data handling and the findings you can responsibly report.

Deployed version and Beta 2 scope

Record the exact package version on every Security Server and Central Server in scope. The current release is 7.8.3, with 7.7.4 and 7.6.5 also supported, but any 8.0.0 Beta 2 system is a pre-release and should be tested only if the scope names it. With the production release of X-Road 8 scheduled for December 2026, a beta finding may not apply to the version your members run. Ask the X-Road operator and the member's platform owner to confirm the version and whether Beta 2 is in scope.

X-Road GitHub repository

PostgreSQL location and access

The Security Server needs PostgreSQL, whether local or remote, and managed services such as AWS RDS or Azure Database for PostgreSQL are supported. Confirm where the database runs, because that decides whether the test may reach it at all and which network path is exposed. Agree in writing on which database accounts the tester may use, whether read-only access is allowed and whether test data may be created or altered. Ask the database administrator or the cloud team that owns the managed instance.

Security Server installation guide

Hardware security module tokens

Determine whether signing keys sit on hardware security modules accessed through PKCS#11 drivers via the xroad-addon-hwtokens package. If they do, the HSM is part of the test path, and the test must not disrupt signing, key loading or token sessions used by production members. Confirm whether the HSM operator, the key custodian or the security team must approve any login, call or key operation. Also confirm whether the tokens hold RSA or EC keys, because that changes which operations you test.

Production testing and test windows

Find out whether any test may run against production Security Servers or Central Servers at all. If it may, get the allowed windows, the source addresses the tester will use, the rate limits and the stop conditions in writing, along with who can halt testing during a live exchange. Testing against a non-production copy is a common alternative, but confirm that the copy matches production in version, global configuration and certificates. Ask the change advisory board or the CISO's delegate who signs off production changes.

Bug bounty coverage

Where findings are reported through the NIIS bug bounty, confirm that the bug bounty covers the target before testing starts. A finding on an asset outside the program's scope may not qualify for the bounty and may still need disclosure through your own channel. Confirm whether the client expects reports through the bounty, through the client's own disclosure process or both, and how the authorization letter for the test fits with the program's rules. Ask the NIIS bug bounty program team and your own legal or security contact.

X-Road 7 maintenance period

X-Road 7.8.0, released at the beginning of February 2026, is the last new-feature release of the 7 line. NIIS intends to maintain X-Road 7 with bug fixes and security patches beyond 2026, but the length of that maintenance period has not been decided. If a finding depends on a patch that may not arrive in time, record that as a risk in the report and ask the NIIS or the X-Road operator for the planned support horizon. Ask your platform owner how this affects the upgrade plan and who funds it.

NIIS 7.8.0 blog post

What the findings report should contain and how retest closes it

The findings report opens with a scope section that names every X-Road component tested, the exact release installed on each host, and the operating system and database each one ran on. Record the release as installed (for example 7.8.3, 7.7.4 or 7.6.5, the supported versions at the time of writing), because a finding against one release may not apply to another. Next, list the accounts tested by role. For a Security Server, that means each of the five roles (Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer), with the result for each: what the account could reach, what it could change, and whether any single role could approve its own change. If admin users sign in through PAM with SSSD and LDAP group mapping, the report should also show which directory groups map to which X-Road roles. Confirm with your X-Road operator which Central Server accounts are part of the test.

Each finding should carry five things: a severity rating from the scale agreed in the written scope, the affected server and component (for example the admin UI on TCP 4000, message exchange on TCP 5500, OCSP on TCP 5577, or an information system interface on 8080 or 8443), evidence such as request and response captures, screenshots and log extracts, reproduction steps that a developer can follow without the tester present, and a named fix owner. The fix owner matters in X-Road because a finding may sit with your platform team, the Central Server operator, a hosting provider or the owner of the information system behind the Security Server. Ask for findings in your control to be separated from findings that depend on operator configuration, so each can be assigned and tracked.

Retest results close the loop. For each finding, the report should record whether the fix was verified, partly fixed or still open, against which release and configuration, and on what date. Fix work and retesting are included only where the written scope says so. If the scope covers the report alone, fixes stay with your team and any retest is a separate piece of work to quote. Check two points before signing. First, confirm the retest runs on the release you will run in production, since X-Road 7.8.0 is the last new-feature release of the 7 line and NIIS has not decided how long 7.x will receive fixes beyond 2026. Second, remember that DeployOpen does not issue audit reports, attestations or certifications. The findings report is evidence for your own assessor, who decides what it proves.

Questions buyers ask before hiring outside help for X-Road testing

What drives the cost of an X-Road penetration test?

The cost follows the written scope, mainly how many components and interfaces are tested and how much access the testers receive. A test of one Security Server's admin UI and host is a much smaller job than a test covering several Security Servers, a Central Server, REST API endpoints and the information system interfaces behind them. The main cost component is tester time for planning, testing, analysis, reporting and any agreed retest. Travel or on-site work adds cost only where the environment requires it. The engagement is one-time work unless you add a retainer for continuous testing. Ask for a quote that lists each component, interface and environment in scope, the retest terms and what the operator or your team must provide. DeployOpen does not publish a price list, so the written scope and quote are the reference point.

How long does an X-Road penetration test take?

Duration depends on the size of the scope, how quickly access is granted and how soon the X-Road operator approves testing windows. The schedule comes from the written scope rather than from a fixed template. The main drivers are the number of Security Servers and whether they run in a cluster, the size of the admin UI and REST API surface, the number of information system interfaces, and whether test accounts for each role are ready on day one. Central Server work adds time when it needs the operator's written approval and a change window. Ask for a plan with milestones: kickoff, environment access, testing, draft findings, fixes, retest and final report. Confirm which milestones depend on your team or on the operator so you can plan staffing around them.

What does the penetration test need from our team?

Your team provides the written authorization, the accounts and the documentation, and it names who can make decisions during testing. Before testing starts, expect to supply:

  • Signed written authorization naming the hosts, networks, admin UI addresses and test windows in scope.
  • Test accounts for each X-Road role in use, such as Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer, plus the directory group mapping if admin logins run through PAM and SSSD with LDAP.
  • Architecture and network documentation, including the ports exposed to external and internal networks and the information systems published through X-Road.
  • A named contact who can answer questions during testing and stop it if production is affected.
  • A staging environment where possible, with a current backup and a rollback plan.

Confirm who owns each item before kickoff so testing does not wait on access or approvals.

Can our internal security team run an X-Road penetration test?

Yes, a capable internal team can test many of these areas, but it should be clear about its blind spots. Internal reviewers often know the intended design, which makes it harder to notice where the design and the running configuration have drifted apart. Checks that are hard to self-review include whether the admin UI and REST API keep approval and execution with separate roles, whether account lockout, password length and key-only SSH from the hardening guide are enforced on every host, whether the allowed-hostnames setting blocks host header injection, how TLS is configured toward information systems, and how signing keys are protected when a hardware security module is used through PKCS#11. An independent tester brings a fresh view. Your team still owns the fixes, the evidence and the decision to accept any residual risk.

Can an operator-owned X-Road Central Server be penetration tested?

Yes, but only with written approval from the X-Road operator that runs it, and only within the scope that operator agrees. A Central Server holds configuration for an entire ecosystem, so testing it affects more parties than a single member. Approvals usually include the operator's written authorization naming the Central Server hosts and endpoints, agreed test windows, a named operator contact, rules on data handling and load, and agreement on how findings are reported and fixed. Where a finding concerns shared X-Road software rather than one deployment, the operator decides how it is handled. Where relevant, confirm with the operator whether such findings go through the NIIS bug bounty. Ask for every approval to be listed in the written scope before testing starts.

Does an X-Road penetration test produce an audit report?

No. DeployOpen tests the environment and delivers a findings report, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those. The findings report typically covers each issue with its severity, reproduction steps, supporting evidence and recommended fixes, and it can include a retest where that is agreed in the scope. Your auditor may use the report and the fix evidence as inputs to their own assessment, so agree on the report format early. Before signing, ask for a sample report and confirm which evidence it includes, such as screenshots, request logs and configuration captures.

How DeployOpen scopes, runs and retests an X-Road security test

DeployOpen treats each X-Road penetration test as a fixed-scope engagement agreed in writing before testing starts. The written scope names the Security Server or Central Server components, the admin UI and REST API, information system interfaces, host and TLS configuration, and who at the X-Road operator approves testing windows.

How we scope

  • The written scope lists every Security Server or Central Server in the test, with hostnames, network zones and owners.
  • We agree which admin UI, REST API, information system interfaces and TLS endpoints are in scope.
  • Fixed-scope terms cover deliverables and timelines, and ongoing testing can follow as a retainer.

How we build the test

  • Testing covers the admin UI, which authenticates through PAM and can be mapped to LDAP groups via SSSD.
  • We check the five Security Server roles for privilege separation, and whether role boundaries hold under the directory setup.
  • Host and TLS checks compare SSH, lockout, password, allowed-hostnames and port exposure against the hardening guide.

How we hand over

  • Findings are written up with severity, reproduction steps, affected components and suggested fixes for your operator team.
  • Coordinate with the X-Road operator before reporting any flaw in X-Road itself, and confirm whether the NIIS bug bounty applies.
  • Retesting of fixed findings is scoped in writing, so the agreed retest is documented before work starts.

How we support

  • Handover covers the written findings, the test record and a walkthrough with the team that runs the servers.
  • After the engagement, ongoing support, upgrades and continuous testing can be contracted as a retainer.
  • Ask for the written scope, deliverables, retest terms and operator approval steps before you sign.

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.