Get Secured
← All Posts Operational Security 13 June 2026

Cloud Security for Crypto and Web3 Firms: A Practical Guide

The vast majority of Web3 infrastructure runs in the cloud. Ethereum nodes, Solana validators, exchange backends, wallet APIs, indexers, and data pipelines all live on AWS, GCP, Azure, or a combination of all three. Cloud infrastructure is fast to deploy, globally distributed, and cost-effective at scale. It is also one of the most consistently exploited attack surfaces in the crypto industry.

Cloud misconfigurations, overprivileged IAM roles, and leaked credentials account for a significant share of the operational losses that have hit crypto firms over the past five years. Unlike smart contract vulnerabilities, which are often discovered and exploited by external researchers, cloud security failures are almost always internal: a developer who stored a private key in an S3 bucket, a CI/CD pipeline that exposed AWS credentials in build logs, a service account with administrator permissions that was never scoped down. These failures are preventable with the right controls, policies, and governance in place.

This guide is written for CISOs, security directors, and senior engineers responsible for securing cloud environments at crypto and Web3 firms. It covers the full operational discipline of cloud security: IAM governance, key management, infrastructure hardening, CI/CD security, posture management, and incident response, within the specific context of Web3 workloads and the regulatory landscape now emerging around them.

Why Cloud Security Is Critical for Crypto Firms

Cloud security has always mattered. In crypto, it is existential. The reason is straightforward: cloud environments in Web3 do not just store application data. They store or provide access to cryptographic keys that control funds. A compromised cloud account can mean a drained hot wallet, a slashed validator, or a destroyed signing ceremony. The consequences are irreversible.

Consider the specific categories of sensitive material that crypto firms routinely hold in cloud environments:

  • Hot wallet private keys: Frequently stored as environment variables, in cloud secret managers, or in application configuration files on cloud instances. A developer who exports these to a local file, commits them accidentally to a repository, or leaves them in an EC2 instance's user data has created a critical exposure.
  • Validator keys: Proof-of-stake validator keys are stored on cloud VMs in configurations that are rarely as hardened as they should be. Key theft or duplication can result in slashing penalties or complete loss of staked assets.
  • API keys and OAuth tokens: API keys for exchanges, custodians, and third-party services are regularly stored in cloud environment variables or CI/CD secrets. Exfiltration of these keys can enable withdrawal requests, fund movements, or data extraction.
  • Signing keys for smart contract deployments: Deployer wallets are often developer-managed and poorly protected. A leaked deployer key can result in malicious upgrades to proxy contracts or unauthorised contract ownership transfers.

The attack surface is compounded by the velocity at which Web3 teams operate. Infrastructure is spun up and torn down frequently; new cloud accounts are created for experiments and never properly decommissioned; access rights granted during a hackathon or product sprint are never revoked. This creates a sprawling, poorly governed cloud environment that is difficult to audit and easy to exploit.

Cloud misconfigurations are consistently cited as a leading cause of data breaches across industries. In crypto, the impact is uniquely severe because the assets at risk are liquid, pseudonymous, and non-recoverable.

The Shared Responsibility Model in Web3 Context

Every major cloud provider publishes a shared responsibility model that defines the boundary between provider-managed security and customer-managed security. Understanding this boundary is foundational to cloud security governance.

At a high level, the cloud provider is responsible for:

  • Physical security of data centres
  • Hardware, networking, and hypervisor security
  • Availability and resilience of core services
  • Security of the managed service layer (e.g., the underlying infrastructure running AWS RDS)

The customer is responsible for:

  • Identity and access management configuration
  • Operating system patching and hardening
  • Application security
  • Data encryption at rest and in transit
  • Network access control (VPCs, security groups, NACLs)
  • Key management and secrets governance
  • Monitoring, alerting, and incident response
"Nearly every significant cloud breach in the crypto industry has occurred within the customer responsibility zone. The cloud provider did not fail. The customer's configuration, access controls, or credential governance did."

This is a critical point for leadership to internalise. When an AWS credential is leaked and an attacker drains an S3 bucket containing wallet keys, AWS has not been breached. The customer's IAM configuration, credential handling, or developer practices failed. Accountability for cloud security outcomes sits with the organisation operating on top of the cloud.

For crypto firms, the most dangerous gaps in the customer responsibility zone are: IAM over-permissioning, unencrypted storage of sensitive key material, absence of network segmentation, and failure to monitor for anomalous API calls. These are not sophisticated attack vectors. They are the basics of cloud security governance, and they are consistently missed.

Identity and Access Management in Cloud Environments

Cloud IAM is the single most important control layer in any cloud environment. Getting IAM right prevents the majority of cloud-based attacks. Getting it wrong creates lateral movement paths that can lead from a single leaked credential to complete account compromise.

Effective cloud IAM governance for crypto firms requires the following operational disciplines:

Least Privilege as a Design Principle

Every IAM principal, whether a human user, a service account, or a CI/CD pipeline role, should have only the permissions required to perform its specific function. This is easy to state and difficult to implement in practice, because cloud permissions are granular and engineers frequently default to broad permissions for convenience. A security team that wants to actually enforce least privilege needs tooling to identify overprivileged roles, a process for scoping new permissions requests, and a regular review cycle to remove permissions that are no longer needed.

AWS IAM Access Analyzer, GCP IAM Recommender, and Azure AD Access Reviews all provide automated identification of unused or excessive permissions. These tools should be run continuously, not as one-off exercises.

MFA on All Human Accounts

Multi-factor authentication must be enforced on every human account with cloud console access, with no exceptions. Root accounts on AWS must have MFA enforced and the root credentials must never be used for day-to-day operations. Dedicated admin accounts should be used only for privileged tasks, and all such activity should be logged. Read more about privileged access governance in our guide on privileged access management for crypto firms.

Service Account Governance

Service accounts are a persistent governance problem. They accumulate over time, are rarely reviewed, and often have permissions far exceeding what any specific workload requires. Every service account should have a documented owner, a defined scope of permissions, and an expiry or review date. Service account keys should never be downloaded and stored as files; use workload identity federation wherever possible to avoid long-lived credentials entirely.

Cross-Account Access and Role Assumption

Many crypto firms use multi-account architectures, with separate AWS accounts for production, staging, and development environments. Cross-account role assumption creates privilege escalation risks if not carefully controlled. Roles that can be assumed from development accounts should never have production permissions. Condition keys should restrict which principals can assume which roles, and all role assumption events should be logged and monitored.

For broader identity governance strategy, see our post on identity and access management for crypto firms.

Securing Crypto Keys in the Cloud

Key management is the highest-stakes cloud security challenge for crypto firms. The controls appropriate for encrypting application data differ significantly from those required for protecting hot wallet signing keys or validator keys.

Cloud KMS Services

AWS Key Management Service, GCP Cloud KMS, and Azure Key Vault all provide managed key management with audit logging, access controls, and automatic key rotation. These services are appropriate for encrypting data at rest, protecting database credentials, and managing application-layer secrets. They provide a significant security improvement over storing keys in environment variables or configuration files.

However, cloud KMS services have an important limitation for high-value cryptographic operations: the key material is ultimately managed within the cloud provider's control plane. In the event of a cloud account compromise with sufficient IAM permissions, an attacker could potentially use or export key material. This is an acceptable risk for many use cases, but not for keys that directly control large sums of crypto assets.

Hardware Security Modules for High-Value Keys

For hot wallet signing keys, validator keys, and other high-value cryptographic material, hardware security modules provide a materially stronger security posture. HSMs provide physical tamper resistance, FIPS 140-2 Level 3 certification, and a hardware boundary that ensures key material never exists in plaintext outside the device. Our detailed guide on hardware security modules for crypto firms covers HSM architecture, selection criteria, and operational best practices.

AWS CloudHSM and Azure Dedicated HSM provide cloud-hosted HSM options that retain hardware-level key protection while integrating with cloud infrastructure. For the highest assurance, on-premises or co-located HSMs operated under direct physical control remain the gold standard.

Secrets Management

Environment variables are not a secrets manager. They are a common shortcut that creates significant exposure risk: environment variables can be logged, printed in error messages, exposed through application vulnerabilities, or committed to version control as part of Docker files or deployment scripts. Any secret that was ever in an environment variable should be treated as potentially compromised if it has been accessible to a broad developer population.

Proper secrets management for cloud environments uses a dedicated secrets store: HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, or Azure Key Vault. These systems provide centralised secret storage with access audit logs, automatic rotation capabilities, and fine-grained access controls. Applications retrieve secrets at runtime through authenticated API calls rather than having secrets baked into deployment configurations.

For comprehensive coverage of how data and secret handling relates to broader data loss prevention controls, see our post on data loss prevention for crypto firms.

Hardening Cloud Infrastructure for Web3

Cloud infrastructure hardening covers the network architecture, compute configuration, and monitoring controls that reduce the attack surface of Web3 workloads.

VPC Architecture and Network Segmentation

A well-designed VPC architecture is foundational to cloud security. All production workloads should run in private subnets with no direct internet exposure. Validator nodes, RPC endpoints, and database instances must never have public IP addresses. Internet-facing components, such as load balancers and API gateways, should sit in a demilitarised zone that routes traffic to backend services in private subnets.

Security groups should follow least-privilege principles: only the specific ports required for each workload should be open, and inbound access should be restricted to known IP ranges wherever possible. Default-deny outbound rules should be enforced where operationally feasible, to limit the potential for data exfiltration from compromised instances.

RPC Endpoint Security

Public-facing RPC endpoints are a persistent target in Web3 infrastructure. Unauthenticated RPC endpoints can be abused for DDoS amplification, data harvesting, or as entry points for more targeted attacks. All RPC endpoints should require authentication, implement rate limiting, and sit behind a WAF configured with rules appropriate for blockchain node traffic. Consider using private endpoints or allowlisted IP ranges for internal tooling that does not need public access.

Logging and Monitoring

AWS CloudTrail, GCP Cloud Audit Logs, and Azure Monitor provide comprehensive API-level audit logging across cloud environments. These logs must be enabled in all regions, forwarded to a centralised log aggregation platform, and retained for a period sufficient to support incident investigations. Logs should be stored in a separate account or bucket with restricted write access, so that an attacker who compromises the primary cloud account cannot tamper with audit evidence.

Anomaly detection should be configured to alert on: root account usage, console logins from unusual geolocations, large data transfers from storage buckets, IAM policy changes, and security group rule modifications. AWS GuardDuty, GCP Security Command Center, and Microsoft Defender for Cloud all provide managed threat detection capabilities that should be enabled as a baseline.

For a broader view of network-level and zero trust controls, see our post on zero trust security for Web3 organisations.

CI/CD Pipeline Security in Cloud Environments

CI/CD pipelines are one of the most underprotected attack surfaces in cloud-native organisations. A compromised pipeline with access to cloud credentials can deploy malicious code, exfiltrate secrets, or modify production infrastructure. For Web3 teams, the consequences extend to smart contract deployments that may be irreversible.

Secrets in Build Environments

Build pipelines regularly need cloud credentials to deploy infrastructure, push container images, or invoke cloud APIs. These credentials must be managed as secrets within the CI/CD platform's secrets store, never hardcoded in pipeline configuration files or passed as plain-text environment variables. GitHub Actions secrets, GitLab CI variables, and similar mechanisms provide secure storage for pipeline credentials, but they must be configured with scope restrictions so that secrets are only accessible to the specific jobs and branches that require them.

Ephemeral credentials using OIDC federation are a better option than long-lived service account keys. GitHub Actions OIDC integration with AWS, GCP, and Azure allows pipelines to request short-lived credentials for each run, eliminating the need to store permanent cloud credentials in the CI/CD system.

Build Environment Isolation

Each pipeline run should execute in an isolated, ephemeral environment. Shared build agents that persist state between runs can accumulate credentials, cached artefacts, and environment configurations from previous builds, creating cross-contamination risks. Container-based runners that are destroyed after each job are the correct architectural pattern.

Dependency Supply Chain Security

Build pipelines that pull dependencies from public registries without integrity verification are vulnerable to dependency confusion attacks and malicious package substitution. All dependencies should be pinned to specific versions with cryptographic hash verification. SBOM generation as part of the build process creates an auditable record of every dependency in a release. Container images should be scanned for known vulnerabilities before deployment, and base images should be sourced from verified, minimal distributions.

Deployment Approval Workflows

Production deployments, particularly smart contract deployments or infrastructure changes that affect key management systems, should require explicit approval from a separate reviewer before proceeding. Automated pipelines should be able to deploy to staging environments without approval, but production gates must involve human review. This control prevents a single compromised developer account from being able to push malicious changes directly to production.

Vulnerability management in the pipeline and beyond is covered in our guide on vulnerability management for Web3 firms.

Cloud Security Posture Management

Cloud Security Posture Management (CSPM) refers to the continuous assessment of cloud configurations against security best practices and compliance requirements. In complex, fast-moving cloud environments, configurations drift from their intended state. New resources are deployed without following the approved security baseline; permission boundaries are modified temporarily and never restored; public access is enabled on storage buckets for a quick file share and never disabled.

CSPM tooling addresses this by continuously scanning cloud environments for misconfigurations and deviations from policy. Leading CSPM tools include Wiz, Orca Security, Prisma Cloud, and the native security posture features in AWS Security Hub, GCP Security Command Center, and Microsoft Defender for Cloud.

CIS Benchmarks as a Baseline

The Centre for Internet Security publishes hardening benchmarks for AWS (CIS AWS Foundations Benchmark), GCP (CIS Google Cloud Platform Foundation Benchmark), and Azure (CIS Microsoft Azure Foundations Benchmark). These benchmarks cover hundreds of specific configuration controls across IAM, logging, networking, and storage. They provide a concrete, auditable baseline against which cloud environments can be continuously assessed.

CSPM tools can be configured to continuously evaluate cloud environments against CIS Benchmark controls and generate findings for any deviations. These findings should feed into a prioritised remediation queue, with critical misconfigurations such as publicly accessible storage buckets containing sensitive data treated as immediate incidents.

Drift Detection and Infrastructure as Code

Infrastructure as code (IaC) tools such as Terraform, Pulumi, and AWS CloudFormation enable cloud infrastructure to be defined, versioned, and deployed consistently. When IaC is used alongside a policy-as-code layer, security controls can be enforced at the point of infrastructure definition rather than detected after deployment. Tools such as Checkov, tfsec, and OPA integrate with IaC pipelines to block non-compliant resource definitions before they reach production.

Incident Response in Cloud Environments

Cloud incident response differs from traditional on-premises response in several important ways. The speed of cloud infrastructure means attackers can provision new resources, move laterally, and exfiltrate data faster than most traditional IR processes can respond. Log availability depends on having correctly configured audit logging before the incident occurred. And the evidence you need, including CloudTrail logs, VPC flow logs, and memory snapshots, may be deleted or overwritten if not preserved quickly.

Cloud Forensics Preparation

IR readiness in cloud environments requires preparation before incidents occur. Specifically:

  • CloudTrail must be enabled in all regions and all accounts, with logs forwarded to an immutable, write-protected destination
  • VPC flow logs must be enabled for all production VPCs
  • S3 access logging must be enabled for buckets containing sensitive data
  • Snapshots of EC2 instances involved in an incident must be taken before any remediation to preserve evidence
  • Network traffic captures should be available through VPC Traffic Mirroring for forensic reconstruction

Account Lockdown Procedures

Every crypto firm operating in the cloud should have a documented account lockdown procedure that can be executed within minutes of a suspected compromise. This procedure should cover: revoking compromised IAM credentials, isolating affected EC2 instances by modifying security groups, blocking suspicious IP addresses at the WAF layer, and engaging cloud provider support for emergency account protection.

The lockdown procedure should be rehearsed through tabletop exercises. Discovering that your IR runbook has not been updated since you migrated from one cloud provider to another is a costly finding to make during an active incident.

IR Runbooks for Cloud Environments

Cloud IR runbooks should cover specific scenarios including: compromised IAM credentials, public S3 bucket exposure, unauthorised EC2 instance creation, and KMS key misuse. Each runbook should specify the detection signal, the immediate containment steps, the evidence preservation steps, and the escalation path. Runbooks should be version-controlled alongside infrastructure code and reviewed at least quarterly.

Regulatory and Compliance Requirements

The regulatory environment for cloud security in crypto is maturing rapidly. Firms that operate in regulated jurisdictions must understand the specific cloud security requirements imposed by applicable frameworks.

DORA Cloud Outsourcing Requirements

The Digital Operational Resilience Act (DORA) applies to financial entities operating in the EU, including crypto-asset service providers regulated under MiCA. DORA treats cloud service providers as critical ICT third-party providers and imposes specific requirements on firms that rely on cloud infrastructure. These requirements include: written contracts with cloud providers that specify security responsibilities, exit strategies that demonstrate firms can migrate or rebuild on alternative infrastructure, and concentration risk monitoring that accounts for dependence on a single cloud provider.

For a detailed treatment of DORA obligations for crypto firms, see our post on DORA compliance for crypto and Web3 firms.

MiCA Cloud Risk Management

The Markets in Crypto-Assets Regulation includes operational resilience requirements that extend to cloud infrastructure. CASPs are required to identify, assess, and manage risks arising from their use of cloud services. This includes maintaining documentation of cloud dependencies, conducting regular risk assessments of cloud providers, and ensuring that cloud security controls are proportionate to the sensitivity of the assets and data held.

ISO 27001:2022 Cloud Controls

ISO 27001:2022 introduced control A.5.23, which specifically addresses information security for cloud services. This control requires organisations to establish and implement information security requirements for the acquisition, use, management, and exit from cloud services. Firms pursuing ISO 27001 certification must document their cloud security controls against this requirement and demonstrate continuous monitoring and improvement.

Frequently Asked Questions

What is the biggest cloud security risk for crypto firms?

The most common and damaging cloud security failure for crypto firms is overprivileged IAM roles combined with exposed credentials. When AWS access keys or GCP service account tokens are leaked through GitHub repositories or misconfigured CI/CD pipelines, attackers can pivot directly to cloud storage buckets, secret managers, or key management services holding private keys. A single exposed credential with broad permissions can result in irreversible asset loss within minutes.

Should crypto firms use cloud KMS or hardware security modules for key management?

For high-value keys such as hot wallet signing keys or validator keys, hardware security modules provide a stronger security guarantee than cloud KMS services. Cloud KMS protects keys at rest and enforces usage policies, but the key material is ultimately managed within the cloud provider's infrastructure. HSMs provide physical tamper resistance and FIPS 140-2 Level 3 certification, ensuring keys never exist in plaintext outside the hardware boundary. Cloud KMS is acceptable for lower-sensitivity operations such as encrypting application data or database columns.

How should validator nodes be deployed in the cloud?

Validator nodes should be deployed in private subnets within a dedicated VPC, with no direct public internet exposure. Inbound peer connections should be managed through a separate sentry node architecture, where public-facing sentry nodes relay traffic to validators that are not reachable from the internet. Security groups should restrict inbound traffic to known peer IPs where possible, and all management access should route through a bastion host or VPN with MFA enforced. Validator keys should never be stored on the VM filesystem; use a secrets manager or attached HSM.

What does the shared responsibility model mean for a crypto firm?

The shared responsibility model defines which security controls the cloud provider manages and which the customer must manage. The cloud provider secures the physical infrastructure, hypervisor, and core network fabric. The customer is responsible for everything above that layer: operating system patching, IAM configuration, data encryption, network access controls, application security, and key management. Nearly all significant cloud breaches in Web3 have occurred within the customer responsibility zone, not due to failures by the cloud provider.

What compliance frameworks apply to cloud security for crypto firms?

Several frameworks are directly relevant. DORA applies to EU-regulated crypto firms and imposes specific requirements around cloud outsourcing, including contractual obligations, exit strategies, and concentration risk monitoring. MiCA includes cloud risk management requirements for crypto-asset service providers. ISO 27001:2022 includes control A.5.23 on information security for cloud services. The CIS Benchmarks for AWS, GCP, and Azure provide a prescriptive hardening baseline. Firms operating across jurisdictions should map their cloud controls against all applicable frameworks to identify gaps.

Secure Your Organisation Before the Next Attack

Secure Your Cloud Infrastructure