Skip to content

Security model

How the AWS quickstart protects your validator keys, what it creates in your account, what LayerZero receives, and what you're trusting.

On this page

Wherever you run it, your validator's private keys stay with you: LayerZero never sees them. This page covers how LayerZero's AWS quickstart does that. Your keys are generated in your AWS account, sealed with a KMS key you own, and never leave the account. LayerZero receives only your public keys and a few facts about your setup. Nothing in your account grants LayerZero access: no policy names a LayerZero account, and LayerZero can't sign in to your machines.

It's a summary for your security team. If you run on other infrastructure, the same principles apply, with your own key custody in place of KMS. Your LayerZero contact can share the full security review, which goes down to each IAM permission.

Private keys
Sealed with
Backup
LayerZero receives
Inbound network

What's created in your account

Everything lives in three CloudFormation stacks, in one AWS account you use only for the validator.

StackCreated byHoldsIf you delete it
zero-onboardingYour administrator, onceThe KMS key that seals your keys, the S3 bucket that stores them, a small network (VPC), and the role the onboarding tool runs asThe KMS key and the bucket are kept on purpose, so you can't lose your keys by deleting the stack
zero-keygenThe onboarding tool, while it generates your keysA short-lived machine that generates and seals your keys. Between runs, nothingNothing is kept
zero-validatorThe onboarding tool, when you prepare your validatorYour validator host, its data volume and a fixed public IP addressThe data volume and IP address are kept, so a validator never restarts without its signing history

The onboarding tool also keeps your validator's state in Systems Manager Parameter Store, under /zero-onboarding/.

Who can use it

The onboarding tool acts in your account through one IAM role, zero-onboarding. By default, only the person who set up access can use it. If you signed in through a role, such as an AWS SSO permission set, that's everyone who signs in through the same role. You can name other people when you set up access.

The role can create and manage only the onboarding stacks and the resources they hold. It can't use your KMS key directly, delete or overwrite stored keys, or change its own permissions.

Your keys

StageWhat happens
GeneratedOn the short-lived key-generation machine, in memory only.
SealedEach key is encrypted with a fresh data key, which your KMS key encrypts in turn. Only the sealed files are written. A plain key never touches disk.
StoredIn your bucket. Files can be added but never overwritten or deleted, and every version is kept.
UsedYour validator copies the sealed files at each start and decrypts them into its own memory. KMS only allows the decryption from your validator host.
ReplacedUntil LayerZero closes uploads, generating again replaces your keys. After the network's genesis, they can't be replaced.

There is no backup. Your KMS key is the only way to decrypt your keys. Its policy stops anyone, your own administrators included, from scheduling its deletion or disabling it without changing the policy first. Don't close the account or remove the key while the network is running.

What leaves your account

Sent to LayerZeroWhen
Your contact email and the one-time code it receivesWhen you generate your keys, to prove the seat is yours
Your public file: both public keys and your validator address, signed by both private keysWhen you generate your keys
Your AWS account ID and Region, and which version of the onboarding tool you ranWith your public file
Your validator host's public IP address, and which genesis it checkedWhen you prepare your validator

LayerZero also sees your account download its software, and sees what your validator publishes to the network, like any other node.

LayerZero sends back a signed receipt (or a rejection with its reason), which the tool saves in your bucket, and emails your contact address.

What LayerZero can and can't do

LayerZero canLayerZero can't
Check your public file and accept or reject itUse your KMS key or decrypt your keys
Put your public keys in the network's genesisUse the onboarding role or read your bucket
Let your AWS account download the validator softwareSign in to your machines (no SSH, no keys, no access)
Publish new releases, which you choose to installChange what your host runs without you running a command

Network exposure

Key-generation machineValidator host
InboundNothingTCP 9000, the peer-to-peer port. Your node turns away any identity that isn't in the network's genesis.
OutboundHTTPS only (AWS APIs and the software registry)Open: other validators, AWS and the software registry
Remote accessNoneAWS Session Manager only. No SSH key, no SSH port

The software you run

LayerZero builds the onboarding tool and the validator software in CI, scans them for known vulnerabilities, and publishes them with signed build provenance. You run each one by its digest: a fingerprint of that exact build, which can't change under the same name. Your machines pull those exact digests.

You can inspect everything before you run it: the images, and the CloudFormation templates the tool deploys. See Before you start.

What you're trusting

You trustBecauseWhat limits it
LayerZero's softwareIt acts in your account and holds your keys in memoryPinned digests, signed provenance, scans; you can inspect it first
AWSYour keys are generated on EC2 and protected by AWS KMSAWS's own controls
Your contact mailbox, until uploads closeAnyone who controls it and gets a code could register replacement keysCodes work once and expire after 10 minutes. You're emailed every key LayerZero accepts. LayerZero never asks for your code
Whoever can use the onboarding roleIt can reach your keys indirectlyOnly the people you name
Whoever can open a session on your validator hostThey could read the keys from the validator's memoryRestrict Session Manager and Run Command on the host
Your account administratorsThey can change the KMS key's policy, roles and stacksLeast privilege, and monitoring (below)

A key that leaks stays valid for the network's life, because keys can't be replaced after genesis. If you suspect a leak, stop your validator host and tell LayerZero immediately.

What to monitor

CloudTrail records everything the onboarding tool and your machines do. These are worth an alert:

EventExpected
Someone assumes the zero-onboarding roleWhen your operators run the onboarding tool
KMS encrypt or decrypt with your sealing keyWhile keys are being generated, and when your validator host starts. Anything else: investigate
Changes to the KMS key's policy or the bucket's policyNever in normal operation
Session Manager sessions or commands on the validator hostOnly when your team troubleshoots

How to revoke

ToDo
Let fewer people use the onboarding roleChange who the role trusts, or remove their permission to assume it. Revoke active sessions on the role to end open ones now.
Stop the validatorStop its host in EC2. Anyone who can use the onboarding role can start it again.
Stop all use of your keysRemove the decrypt permissions from the KMS key's policy, and stop the host: a running validator keeps its keys in memory. This is reversible; while it's in place, your validator can't start.
Remove everythingOnly when the network ends: see When the network ends.