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
- Generated and sealed in your account; decrypted only in memory
- Sealed with
- A KMS key in your account that can't be deleted or disabled without changing its policy first
- Backup
- None, by design
- LayerZero receives
- Public keys, validator address, AWS account ID and Region, contact email
- Inbound network
- One peer-to-peer port; no SSH
What's created in your account
Everything lives in three CloudFormation stacks, in one AWS account you use only for the validator.
| Stack | Created by | Holds | If you delete it |
|---|---|---|---|
zero-onboarding | Your administrator, once | The KMS key that seals your keys, the S3 bucket that stores them, a small network (VPC), and the role the onboarding tool runs as | The KMS key and the bucket are kept on purpose, so you can't lose your keys by deleting the stack |
zero-keygen | The onboarding tool, while it generates your keys | A short-lived machine that generates and seals your keys. Between runs, nothing | Nothing is kept |
zero-validator | The onboarding tool, when you prepare your validator | Your validator host, its data volume and a fixed public IP address | The 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
| Stage | What happens |
|---|---|
| Generated | On the short-lived key-generation machine, in memory only. |
| Sealed | Each 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. |
| Stored | In your bucket. Files can be added but never overwritten or deleted, and every version is kept. |
| Used | Your validator copies the sealed files at each start and decrypts them into its own memory. KMS only allows the decryption from your validator host. |
| Replaced | Until 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 LayerZero | When |
|---|---|
| Your contact email and the one-time code it receives | When you generate your keys, to prove the seat is yours |
| Your public file: both public keys and your validator address, signed by both private keys | When you generate your keys |
| Your AWS account ID and Region, and which version of the onboarding tool you ran | With your public file |
| Your validator host's public IP address, and which genesis it checked | When 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 can | LayerZero can't |
|---|---|
| Check your public file and accept or reject it | Use your KMS key or decrypt your keys |
| Put your public keys in the network's genesis | Use the onboarding role or read your bucket |
| Let your AWS account download the validator software | Sign in to your machines (no SSH, no keys, no access) |
| Publish new releases, which you choose to install | Change what your host runs without you running a command |
Network exposure
| Key-generation machine | Validator host | |
|---|---|---|
| Inbound | Nothing | TCP 9000, the peer-to-peer port. Your node turns away any identity that isn't in the network's genesis. |
| Outbound | HTTPS only (AWS APIs and the software registry) | Open: other validators, AWS and the software registry |
| Remote access | None | AWS 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 trust | Because | What limits it |
|---|---|---|
| LayerZero's software | It acts in your account and holds your keys in memory | Pinned digests, signed provenance, scans; you can inspect it first |
| AWS | Your keys are generated on EC2 and protected by AWS KMS | AWS's own controls |
| Your contact mailbox, until uploads close | Anyone who controls it and gets a code could register replacement keys | Codes 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 role | It can reach your keys indirectly | Only the people you name |
| Whoever can open a session on your validator host | They could read the keys from the validator's memory | Restrict Session Manager and Run Command on the host |
| Your account administrators | They can change the KMS key's policy, roles and stacks | Least 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:
| Event | Expected |
|---|---|
Someone assumes the zero-onboarding role | When your operators run the onboarding tool |
| KMS encrypt or decrypt with your sealing key | While keys are being generated, and when your validator host starts. Anything else: investigate |
| Changes to the KMS key's policy or the bucket's policy | Never in normal operation |
| Session Manager sessions or commands on the validator host | Only when your team troubleshoots |
How to revoke
| To | Do |
|---|---|
| Let fewer people use the onboarding role | Change who the role trusts, or remove their permission to assume it. Revoke active sessions on the role to end open ones now. |
| Stop the validator | Stop its host in EC2. Anyone who can use the onboarding role can start it again. |
| Stop all use of your keys | Remove 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 everything | Only when the network ends: see When the network ends. |