Hyperledger Besu security hardening

Hardening a permissioned Besu network means deciding who can connect, who can transact, how node keys are stored and which APIs are reachable. This page covers each decision, the build order and how to verify the result.

On this page

Why Hyperledger Besu security hardening starts with a threat model

A regulated team that inherits or stands up a permissioned Besu network and must pass a security review should start by writing down what it is protecting and from whom, before changing any setting. Besu's defaults are not a hardened configuration. The software gives you the building blocks for node permissioning, account permissioning, JSON-RPC authentication and key storage, but it does not decide which of them your network needs. Each choice is a configuration or infrastructure decision, and reviewers will expect to see the reasoning behind each one across three layers: the node, the account and the network around them.

Several of the defaults and gaps matter immediately. The local node private key file is not encrypted, so anyone who can read it on disk can impersonate that node unless you move key custody to hardware through a security module plugin such as the Besu HSM plugin, enabled with the --security-module option. Besu also does not terminate HTTPS natively, so any encryption of JSON-RPC and WebSocket traffic has to be handled by a proxy or gateway that you design, deploy and test yourself. Those two facts alone mean the hardening work spans host security, network placement and certificate management, not just a Besu config file.

The retirement of Tessera privacy, onchain permissioning and Clique changes what must be controlled. If your network once relied on private transaction handling or smart-contract-based permissioning, the controls that protected those flows must now be rebuilt with local permissioning files, plugins or your own infrastructure, and the review must cover that gap. Confirm with your architects which features your network uses today, which versions it runs, and which trust boundaries exist between validators, RPC nodes and client applications. The exact controls depend on that design and on your own threat model, so treat the rest of this page as a checklist to apply against it, not a fixed baseline.

Which Besu components carry the security controls

Besu's security controls sit in separate components, and each one covers a different boundary: which peers connect, which accounts can act, where the node key lives, who can call the node APIs, what telemetry leaves the node, and what third-party code runs inside it. A control that works in one component does not protect another, so each card below names what it does not cover. Confirm option names and behavior against the docs for the exact Besu release you run.

Node permissioning file

The node permissions configuration file limits which enodes a node will connect to, which is how a private network keeps out unknown peers. It does not stop a permitted node from misbehaving, and it does not protect the node's own key or its API ports. Check that every validator and RPC node carries the same approved peer list, and that the list is updated through change control when a participant joins or leaves. Confirm how local permissioning is enabled in the current docs for your release.

Permissioning docs

Account permissioning file

Account permissioning, also configured locally per node, controls which accounts may onboard, can be suspended, and are restricted in the actions they may take. It governs transaction authorization at the network level, not who may log in to the node or query its APIs. Decide who approves changes to the account rules and how a suspension is applied across all nodes, since a rule set on one node alone may not match the others. Confirm the exact rule format for your release.

Node private key and security module

The local node private key file is not encrypted by Besu. For deployments that need hardware-backed key storage, the --security-module option can load a security module plugin, such as the Besu HSM plugin. This moves signing material out of a plain file, but it does not secure the host, the plugin's own configuration, or backups of keys made before migration. Ask the key custody owner to confirm which keys are held in the module and how key loss and recovery are handled.

Node keys docs

JSON-RPC and WebSocket endpoints

HTTP and WebSocket JSON-RPC endpoints can require authentication through a username and password credentials file or through JWTs validated against a public key using supported RS and ES algorithms. Besu does not terminate HTTPS natively, so TLS and network restriction must come from a reverse proxy or load balancer. Authentication does not limit which methods a caller may invoke, and an open port bound to all interfaces remains exposed. Confirm the endpoint bindings, the enabled API groups, and the authentication settings for each node type.

Authentication docs

Metrics endpoint

Enabling metrics with --metrics-enabled exposes a Prometheus endpoint, which defaults to port 9545. The endpoint reveals operational data about peers, sync and block production, which is useful to an attacker mapping the network. Keep it on a management network or behind firewall rules, and confirm whether your monitoring setup pulls from the node or receives pushes through a gateway. Verify the bind address and port in the current docs before you open any firewall rule.

Plugin framework

Besu's plugin framework lets teams add functionality through the plugin API, including the HSM security module. Every plugin runs inside the node process with the node's privileges, so its code, dependencies and update path become part of your security boundary. Review each plugin's source and release history before it is deployed, and pin versions that match your Besu release. Confirm compatibility with the plugin API for the release you intend to run.

Besu source repository

Which permissioning and key custody options fit a regulated network

This table compares the main permissioning, key custody and JSON-RPC exposure choices for a Besu network, with the operational cost of each. Read each row as a decision: find the option that matches your regulatory evidence needs, then check the administration, change control, plugin dependency and audit evidence columns before committing.

DecisionWhen it fitsOperational costAudit evidence to expect
Node permissioning onlyValidators and nodes are known consortium members, and account-level rules can be enforced by the application layerLow administration: one permissions file per node, but every change must be applied to each node and trackedVersioned permissions files and records of who approved each node connection
Node plus account permissioningRegulators or counterparties expect control over which accounts may submit transactions, onboard or be suspendedHigher change control: account lists must be kept in sync across nodes and reviewed on onboarding and offboardingApproval records for account changes, plus evidence that suspended accounts cannot transact
Local file-based account policyThe permitted account set changes rarely and a small operations team can manage files under version controlManual edits on each node risk drift between nodes; needs a review step before every rolloutGit history of policy files and deployment logs showing which version each node ran
Plugin-based account policyRules must be driven by an external system such as an identity or onboarding service with frequent updatesAdds a plugin to build, upgrade and test against each new Besu release, which increases release effortPlugin source, version pinning and test results for each Besu and plugin combination
Unencrypted node key file on protected storageLower-risk test or internal networks where strict file permissions, encrypted disks and restricted access are already enforcedSimple to run, but key protection depends on OS controls and backup handling of the key fileEvidence of file permissions, disk encryption and access reviews for the host
Security module plugin with hardware-backed keysRegulated deployments that require keys to stay in dedicated hardware or a managed security moduleAdds hardware or service procurement, plugin dependency and an extra recovery procedure for key materialKey custody configuration, access logs from the module and documented key ceremony records
JSON-RPC on internal interfaces onlyNodes serve only internal applications and operators reach them through controlled networksRequires network segmentation and firewall rules, and limits remote access for partnersFirewall rule exports, network diagrams and records showing RPC ports are not reachable externally
JSON-RPC behind a reverse proxyExternal or partner applications must call the node through a single controlled entry pointAdds TLS termination, proxy hardening and token or credential handling outside Besu, which must be maintainedProxy configuration, certificate records, authentication logs and results of exposure scans

How to sequence Besu security hardening from node to network

This sequence moves a permissioned Besu network from an open default to a locked-down state, starting with who may connect and act, then key custody, then API and metrics exposure, and finishing with host and network paths. Each step ends with a check you can record as evidence for your security and compliance reviewers.

  1. Define the node and account roster

    Before editing any configuration, list every validator, RPC node, bootnode and observer that will join the network, along with the operator who controls each one and the accounts that will be permitted to send transactions. This roster is the input to every later step, so the security, platform and business owners should sign off on it together. Done means each node has a named operator, a stable enode identity and a record of which accounts are onboarded. Ask your implementation partner or internal team to keep this roster under change control, since every permissions file in the next steps is derived from it.

  2. Write and distribute the node permissions file

    Create the local node permissions configuration that lists the enode identities allowed to connect, and deploy the same approved list to every node so no node accepts a peer the others reject. Enable node permissioning through the Besu configuration, then confirm the file path and format against the permissioning documentation for the Besu version you run, because configuration keys change between releases. The step closes when a test node that is not on the list is refused, and a listed node connects, with both results captured in your test log.

  3. Write account permissioning rules and test onboarding

    Define the account permissioning rules that control which accounts may be onboarded, which can be suspended and which actions they may take, then deploy the same local rules to each node. Test the full lifecycle with a non-production account: onboard it, confirm it can transact, suspend it, and confirm that transactions from it are rejected. Note that onchain permissioning was removed in the 25.6.0 release, so these rules are local to each node and must be kept in sync through your own change process. The step closes with a recorded onboarding and suspension test for each node type.

  4. Decide key custody and configure the security module

    Node private keys are not encrypted in the default file-based setup, so decide how each validator's key will be stored before the network goes live. If hardware-backed storage is required by your controls, configure the security module with the --security-module option and the HSM plugin, and confirm the plugin version matches your Besu release. If your controls accept file-based custody, document the file location, OS permissions, backup handling and who can read the file. The step closes when a node starts with the chosen custody method and the signing identity matches the expected enode and validator address.

  5. Restrict JSON-RPC and WebSocket to authenticated internal clients

    Bind JSON-RPC and WebSocket to internal interfaces only and require authentication, either with a username and password credentials file or with JWTs validated against a public key using an accepted signing algorithm. Besu does not terminate HTTPS natively, so place TLS in front of the node and keep the upstream proxy on a restricted network. The step closes when an unauthenticated request is rejected, an authenticated internal client succeeds, and a request from outside the approved network range is blocked. Record each result, since these are the tests auditors usually ask to see.

  6. Restrict metrics exposure

    Enable metrics only where monitoring needs them, using the metrics option with its default port unless your standards require otherwise, and limit which hosts can reach that port. Metrics often reveal peer counts, block heights and node identities, so treat the endpoint as sensitive even though it is read-only. If you push metrics to a gateway, confirm the gateway address and its access controls as well. The step closes when the Prometheus server can scrape the node, and a host outside the monitoring network receives no response on the metrics port.

  7. Lock down host and network paths

    Close every port that the node does not need, restrict peer-to-peer traffic to the enode list, and place validators in segments that only permitted peers and operators can reach. Apply operating system hardening, restrict administrative access, and confirm that the node runs under a dedicated service account with access to its data and key files only. Verify by scanning each node from an unapproved host and from an approved peer, then comparing the open ports with the expected list. The step closes with a documented port inventory and a scan result for each node that matches it.

Where the trust boundaries sit in a hardened Besu network

The diagram starts at clients on the public side, whose requests reach an authenticating reverse proxy that terminates TLS before anything touches a node. Inside the private zone, RPC nodes sit between that proxy and the validators, which hold their keys in a security module instead of the unencrypted node key file. Peer connections between validators are only allowed where the node permissions file lists them, and metrics leave the nodes only toward the internal monitoring network. When you review this design, check each arrow against the control named on it, and confirm that no validator port is reachable from outside the private zone.

Trust boundaries and the controls at each hand-off in a hardened Besu deployment.

How hardening differs for validators, RPC nodes and air-gapped sites

Validators sign and propose blocks, so their priority is protecting the node private key and limiting who can reach them. The local node private key file is not encrypted by default, which makes key custody the first decision. Teams that need hardware-backed storage can attach a security module plugin, such as the Besu HSM plugin, through the --security-module option. Validators should accept peer connections only from known participants, enforced through node permissioning, and should not expose JSON-RPC or WebSocket endpoints to any public network.

  • Key custody: Decide whether the key stays on disk with strict file permissions or moves into an HSM. Confirm the plugin version supports your Besu release before you commit.
  • Peer restriction: Keep the node permissions file limited to other validators and designated sentry or RPC nodes.
  • No public API exposure: Bind RPC and WebSocket interfaces to localhost or a management network only, or disable them where your operations do not need them.
  • Account permissioning: If validators participate in onchain rules, confirm which accounts can submit transactions and whether you rely on local account rules.
  • Access to the host: Restrict operating system accounts that can read the key file, the data directory and the configuration.

Confirm with your platform owner which key custody model your regulator or internal policy accepts, and test the recovery path for a lost or replaced validator key.

What drives the effort and cost of Besu security hardening

This table lists the drivers that change how much work Besu security hardening takes, from node counts and environments to HSM procurement and custom plugin upkeep. Read each row as a lever: the middle column explains why it matters, and the right column gives the pattern that keeps it manageable. The main takeaway is that standard templates and one key custody pattern cut effort more than any single tool choice.

DriverWhy it changes effort or costHow to keep it down
Validators and RPC nodesEach node needs its own node key handling, permissions file, JSON-RPC authentication settings and metrics endpoint, so effort grows with node count.Use one node configuration template with per-node variables only, and keep RPC nodes on a small, fixed role set.
Environments (development, test, production)Each environment needs separate permission files, keys and credentials, so hardening work repeats per environment and drift between them creates audit questions.Generate permission files from one source of truth, keep production keys out of lower environments, and promote configuration through the same pipeline.
Organizations that must agree on permissionsNode and account permissioning lists must match across members, and every change to who can connect or transact needs sign-off from each operator.Agree a written change process and a shared allowlist format before go-live, and limit changes to scheduled windows with recorded approvals.
Identity provider integration for JWT issuanceValidating externally issued JWTs means agreeing token claims, signing algorithms and key rotation with the identity team, which adds coordination beyond node work.Pick one supported signing algorithm, document the claim-to-permission mapping, and confirm rotation steps with the identity owner before building.
HSM or security module procurement and integrationHardware-backed key storage through a security module plugin requires hardware selection, procurement, vendor support, and testing of signing and recovery paths.Standardize on one key custody pattern across all nodes, and ask the HSM vendor to confirm compatibility with the Besu plugin before purchase.
Compliance evidence requirementsAssessors often ask for proof of access control, key handling, logging and change records, and collecting that evidence takes effort on top of configuration.Define the evidence list early, export configuration and access logs on a fixed schedule, and map each control to a named artifact.
Custom plugin code carried across releasesBesu ships roughly monthly, so custom plugins or patches must be rebuilt, retested and rechecked against each release, and any JDK changes add to the work.Keep custom code to the minimum needed, use the plugin API rather than forks where possible, and schedule a regular compatibility test for each new release.

Which controls protect the node, the account and the network

Besu hardening spans three layers: the node itself, the accounts that act on it and the network paths that reach it. The cards below cover the controls we see most often in regulated deployments, and each one needs confirmation against the Besu release and environment you actually run.

Protect the node key file

The local node private key file is not encrypted by Besu. Restrict read access to the Besu service account, keep the data directory off shared volumes and isolate the host so other workloads cannot read it. Where policy requires hardware-backed key storage, check whether an HSM security module plugin fits your environment, selected with the --security-module option. Confirm the plugin's support status and version compatibility before you commit to it.

Node keys docs

Restrict JSON-RPC and WebSocket access

Decide which interfaces listen at all, which addresses they bind to and which API methods they expose. Validator nodes should rarely serve RPC to anyone beyond their own tooling, and RPC nodes should expose only the namespaces your applications call. Review the enabled API list in each environment and confirm that WebSocket endpoints follow the same rules as HTTP. Never expose administrative methods to untrusted networks.

Terminate TLS in front of nodes

Besu does not terminate HTTPS natively, so encryption for RPC traffic has to come from a reverse proxy, load balancer or service mesh placed in front of each node. Decide where certificates are issued and rotated, whether mutual TLS is required for internal callers and how the proxy forwards authentication headers or tokens. Confirm the proxy configuration with a test that fails on plain HTTP connections.

Authentication docs

Limit peers to the permissions list

Node permissioning restricts which peers a node will connect to, based on a local permissions configuration file. Keep the list limited to known validator and RPC node identities, and record who approves each change. Review the file whenever a participant joins, leaves or rotates its node key, because a stale entry can keep an old identity reachable. Confirm how your Besu version reloads this file and whether a restart is needed.

Permissioning docs

Control account onboarding and suspension

Account permissioning governs which accounts may submit transactions, and the local configuration can restrict specific actions or suspend an account without a network-wide change. Define who approves onboarding, what evidence is required, how suspensions are recorded and how a suspended account is reviewed. Test suspension and restriction rules in a non-production network before relying on them for a regulated process. Confirm the rules are enforced on every node, not only on the ones you inspected.

Permissioning docs

Keep metrics and admin off public networks

Metrics endpoints and administrative interfaces expose node state and can reveal peer and validator details. Enable metrics with the --metrics-enabled option only where your monitoring stack can reach them, bind them to private addresses and place them behind network policy. Review firewall rules after each upgrade, since default bindings and ports can change between releases. Confirm which interfaces each node listens on by scanning from outside your private network.

Default metrics port
9545
Metrics docs

How to test that Besu security hardening works and fails safely

Test each control with a negative case before you trust it. The point is to prove that a control refuses what it should refuse. Start with node permissioning: bring up a node that is absent from the permissions configuration file and confirm that it is refused as a peer. Then bring up a listed node and confirm that it connects. Do the same for account permissioning: with a test account suspended, submit a transaction from it and confirm the node rejects it. Run these tests from a machine that sits where the threat sits, not from the operator's workstation, and record the node logs and the exact responses. A positive test that passes tells you little if the negative test was never run.

Next, test the exposure surface from outside the allowed network. Send JSON-RPC requests with no credentials, with a wrong password, and with a JWT signed by a key the node does not trust, and confirm each is rejected. Confirm that the WebSocket and HTTP ports do not answer from networks outside the allowed range, using a port scan from an outside host and a connection attempt from the wrong subnet. Besu does not terminate HTTPS natively, so check the TLS termination layer in front of the node as a separate item. Also test the fail-closed behavior: stop or disconnect the security module, such as the HSM plugin configured through the --security-module option, and confirm the node does not start or stops signing. A node that keeps signing without its key path is a failure, even if the rest of the network looks healthy.

Record every test as evidence: the date, the Besu version and JDK, the configuration file hashes, the command or request used, the expected result, the observed result and the log lines that show it. Store this with the change record so an auditor or security reviewer can trace each control to a result. Retest after every Besu upgrade, because the maintainers' release notes can change permissioning, RPC or key handling behavior, and a database upgrade may make an older binary unable to open the data. The operator's configuration check confirms that settings are present and match the intended file. An independent security test asks whether an attacker can get around those settings, using methods the operator did not design, and it is most useful when the tester is not the person who wrote the configuration. Confirm the test scope, rules of engagement and retest terms in writing before testing begins.

What to monitor, back up, upgrade and document after hardening

Besu exposes metrics for Prometheus when the --metrics-enabled option is set, and the default metrics endpoint listens on port 9545. For a hardened network, the useful signals are the ones that show a control has changed or been tested: unexpected peer connections, repeated failed authentication attempts and nodes that stop producing or importing blocks. Whether these signals reach your alerting depends on how your environment collects logs and metrics, so confirm it rather than assume it.

  • Restrict the metrics endpoint: Expose port 9545 only to your Prometheus server or push gateway, and confirm that no RPC or validator network can reach it.
  • Watch peer count against the allowlist: Compare connected peers with the node permissions file so that connections from unknown nodes raise an alert.
  • Track authentication failures where logs allow: Confirm whether failed JSON-RPC authentication attempts appear in your logs or can be derived from a fronting proxy, and alert on bursts.
  • Alert on block production and sync status: A stalled validator or a node that falls behind may indicate a permissioning or network change that blocked it.

Confirm in your own environment which of these signals you can actually collect, who receives the alerts and how often each alert has been tested.

What Besu security hardening costs and what it needs from your team

How much effort does Besu security hardening take, and what drives it?

Effort depends mainly on how many nodes you run, how many environments need the same controls, and how many access paths you expose. A single validator behind a private network with no RPC exposure is far smaller work than a consortium with validators, RPC nodes, a permissions file per node, JSON-RPC authentication, and an HSM-backed key for each validator. Other drivers include whether you need to replace unencrypted node key files, how many identity sources must map to Besu accounts, and how much evidence your compliance team wants in writing. Ask any partner to break the quote into node count, environments, and each control area so you can see which items move the price up or down.

Can our internal team harden a Besu network without a partner?

Yes, a team with Besu operations experience can do much of this internally, especially the permissions files, JSON-RPC settings, and network rules, which are configuration work. The harder parts are usually independent review and key custody design, where an outside view helps. Before deciding, check whether your engineers have run validators in production, understand the Besu plugin model for hardware key storage, and have time to retest after each release. Most teams find the first pass is the expensive one, and the ongoing cost is keeping controls correct as the software changes.

What does the hardening work need from our team before it starts?

The work needs four inputs. First, a current network diagram showing validators, RPC nodes, bootnodes, and which systems connect to each. Second, the identity provider you want to use for API callers, plus the claims or groups that should map to roles. Third, key custody decisions: whether node keys stay as files, move to an HSM or other security module, and who approves key creation and rotation. Fourth, the compliance requirements that apply to your environment and the evidence your assessors expect. Missing any of these usually extends the discovery phase and changes the quote.

How long does a Besu hardening pass take, and why does it vary?

Duration depends on the agreed scope, not on a fixed template. A pass covering a small set of nodes in one environment is shorter than one covering several environments, multiple identity integrations, and formal test evidence. Timing also depends on how quickly your team approves changes, schedules maintenance windows for node restarts, and returns decisions on key custody. Ask for a timeline in the written scope that lists dependencies, client actions, and the points where your sign-off is required, rather than a single number with no assumptions behind it.

Is an HSM plugin required for Besu hardening?

No. Besu documentation states that the local node private key file is not encrypted, and it describes a security module plugin, such as the Besu HSM plugin enabled with the --security-module option, for deployments that need hardware-backed key storage. Whether you need it depends on your key custody policy, your regulator's expectations, and how sensitive your validator keys are. Other valid options may include tighter file permissions, encrypted volumes, and strict access controls on the host. Confirm the plugin version you need with the vendor and test it on a non-production network before you commit to it.

What happens to our hardening controls during monthly Besu upgrades?

Besu ships roughly monthly under calendar versioning, and each release can change defaults, remove features, or alter database behavior. The Besu 26.10.0 release notes say the Bonsai database auto-upgrades on first start and older versions cannot open it, so a backup taken before the upgrade is needed for rollback. Controls such as permissions files, JSON-RPC authentication, and plugin configuration must be rechecked after each upgrade, and JDK requirements can change too; the Besu 26.6.0 release notes state that JDK 25 is required. Plan a regression check on your hardening controls as part of each upgrade, and ask a support provider how they handle that step.

What should a hardening partner hand over at the end?

A well-scoped engagement should hand over documented configuration for each node, including the permissions files, JSON-RPC and WebSocket exposure settings, and network rules, along with the key custody design and any plugin configuration. You should also receive test results showing what was checked, the findings and their fixes, a retest record, and a runbook covering upgrade checks and backup and restore steps. Ask for these items to be named in the written scope, with acceptance criteria, so your team can operate the network without the partner. Remember that a partner can prepare evidence for your compliance review, but independent auditors and certification bodies issue the assessment results.

How DeployOpen scopes, hardens, tests and hands over Besu security work

DeployOpen plans and hardens Hyperledger Besu nodes inside your own infrastructure, from node and account permissioning through key custody and API exposure. Each engagement follows a written scope, is built and tested against that scope, and is handed over with documentation your security and operations teams can review.

How we scope

  • Inventory every node, validator, RPC endpoint and network path that falls within the agreed hardening scope.
  • Confirm which Besu version and JDK your environment runs, since current releases require JDK 25.
  • Agree in writing which permissioning, key custody, JSON-RPC and network controls the engagement covers.
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts, and ongoing support available as a retainer.

How we build

  • Write node permissioning and account permissioning files that match your approved participant and onboarding rules.
  • Plan key custody for the unencrypted node key file, including whether a security module plugin is the right fit.
  • Lock down JSON-RPC and WebSocket exposure with authentication, access limits and network segmentation around each node.
  • Record each configuration decision so reviewers can trace why each control exists and who owns it.

How we hand over

  • Deliver hardening documentation covering configuration files, key handling, exposure settings and the reason for each choice.
  • Provide evidence of each control, such as configuration snapshots and test results, that compliance teams can review.
  • Hand over runbooks for rotating keys, updating permission files and recovering a node after a failed upgrade.
  • Walk operations staff through the configuration so they can maintain the controls after the engagement closes.

How we support

  • Retest the hardened network after configuration changes, Besu upgrades or new validators are added.
  • Review each new Besu release for changes to permissioning, authentication or key handling before rollout.
  • Confirm with your team which support tier, testing cadence and response expectations apply under a retainer.
  • Use security testing of nodes, APIs and infrastructure to check that controls hold over time.

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.