AWS Builder Center
Securing Blockchain and Crypto Exchanges with AWS: Lessons from Major Cyberattacks

Securing Blockchain and Crypto Exchanges with AWS: Lessons from Major Cyberattacks

Explore how AWS security services can help cryptocurrency exchanges and blockchain platforms prevent, detect, and respond to cyberattacks. Learn from major industry incidents involving Binance and other exchanges, and discover practical strategies using GuardDuty, CloudTrail, WAF, KMS, CloudHSM, and Security Hub to protect digital assets and critical infrastructure.

Security engineer

Securing Blockchain and Crypto Exchanges with AWS: Lessons from Major Cyberattacks

Introduction

Cryptocurrency exchanges and blockchain platforms have become attractive targets for sophisticated cybercriminals. Unlike traditional data breaches, a successful attack against digital asset infrastructure can result in irreversible financial transfers within minutes.
Recent incidents involving Binance and Brazil's Mercado Bitcoin demonstrate the scale of the challenge.
On October 29, 2026, Binance suffered a major security breach with an estimated impact of $6.3 billion, according to Reuters. Just days later, on November 2, Mercado Bitcoin reported a security incident involving suspicious cryptocurrency transfers across multiple blockchain networks. Independent investigators initially estimated losses exceeding $40 million.
These incidents highlight an important question:
How can cloud security services help cryptocurrency exchanges prevent, detect, contain, and investigate attacks before they result in catastrophic financial losses?
Amazon Web Services (AWS) offers security capabilities that can support digital asset infrastructure, including threat detection, identity protection, cryptographic key management, network security, vulnerability assessment, and incident response automation.
This article explores how to combine these services into a defense-in-depth security architecture for blockchain and cryptocurrency platforms.



1. Understanding the Threat Landscape

Cryptocurrency exchanges operate complex infrastructures that combine traditional web applications, cloud services, blockchain nodes, custody systems, trading engines, and cryptographic signing mechanisms.
Attackers may target different components depending on the platform's architecture.
Common attack vectors include:
  • Compromised API keys and cloud credentials.
  • Phishing and social engineering.
  • Hot wallet private-key compromise.
  • Vulnerabilities in smart contracts.
  • Cross-chain bridge exploitation.
  • Insecure transaction-signing services.
  • Supply-chain attacks.
  • Cloud infrastructure misconfigurations.
  • Compromised CI/CD pipelines.
  • Insider threats and privileged access abuse.
These threats require different security controls.
For example, a web application firewall may help mitigate malicious HTTP traffic, but it cannot independently prevent a transaction signed using a compromised private key.
Understanding this distinction is essential when designing blockchain security architectures.

2. Lessons from Major Cryptocurrency Attacks

Binance: The 2019 Hot Wallet Breach

In May 2019, Binance disclosed that attackers had obtained user API keys, two-factor authentication information, and other sensitive data.
The attackers withdrew approximately 7,000 BTC from the exchange's hot wallet.
According to Binance, the malicious withdrawal passed existing security checks before subsequent alarms triggered a response.
This incident demonstrates the importance of combining credential protection with transaction monitoring, withdrawal restrictions, and anomaly detection.

BNB Chain: The 2022 Cross-Chain Bridge Exploit

In October 2022, attackers exploited the BSC Token Hub cross-chain bridge.
Approximately two million BNB were improperly minted during the incident.
The attack illustrates the risks associated with cross-chain communication, proof verification, and blockchain protocol logic.
Traditional cloud security tools cannot automatically identify every flaw in blockchain consensus or smart-contract verification mechanisms.
Specialized smart-contract auditing, formal verification, and blockchain transaction monitoring remain essential.

Binance: The October 2026 Security Incident

On October 29, 2026, Binance experienced another major security incident.
Reuters reported an estimated $6.3 billion impact, making it one of the largest cryptocurrency security incidents reported.
The event reinforces the importance of secure custody, privileged access management, operational resilience, and rapid incident containment.
The precise technical causes of an incident must be established through verified forensic evidence rather than assumed from the financial impact.

Mercado Bitcoin: The November 2026 Incident

On November 2, 2026, Brazil's Mercado Bitcoin temporarily suspended deposits and withdrawals following a security incident.
Blockchain security researchers identified suspicious transfers involving wallets associated with the platform across multiple networks.
Initial independent estimates exceeded $40 million, while subsequent analyses reported higher figures.
Mercado Bitcoin stated that customer assets would not be negatively affected and that the incident was under investigation.
The publicly reported activity raised questions about transaction-signing access, wallet security, and the ability to detect abnormal transfers across multiple blockchains.
However, the precise initial compromise mechanism had not been publicly established at the time of writing.

Key Takeaway

These incidents demonstrate that cryptocurrency security requires protecting three interconnected layers:
  1. Cloud and application infrastructure.
  1. Cryptographic keys and transaction authorization.
  1. Blockchain protocols and on-chain activity.
AWS can provide important controls for the first two layers, while the third also requires blockchain-specific security technologies.



3. Amazon GuardDuty: Detecting Suspicious Cloud Activity

Amazon GuardDuty is a managed threat detection service that analyzes supported AWS telemetry to identify potentially malicious activity.
Depending on enabled protection features, GuardDuty can help detect:
  • Suspicious AWS credential usage.
  • Unusual API activity.
  • Potentially compromised EC2 instances.
  • Malicious network communications.
  • Cryptocurrency mining activity.
  • Suspicious container runtime behavior.
  • Certain malware-related indicators.

Example Scenario

Consider a cryptocurrency exchange operating a transaction-processing service on Amazon EC2.
An attacker compromises the application and attempts to use its AWS credentials from an unexpected environment.
GuardDuty may generate findings associated with anomalous credential usage or suspicious activity.
The security operations team can investigate the affected workload, restrict access, and evaluate whether transaction-signing systems are exposed.

Enable GuardDuty

aws guardduty create-detector \
--enable
This enables a GuardDuty detector in the configured AWS Region, subject to permissions and account configuration.
Important: GuardDuty is not a blockchain transaction monitoring platform. It does not inherently detect malicious on-chain transfers or compromised wallet signatures.

4. AWS CloudTrail: Auditing Critical Operations

AWS CloudTrail provides visibility into supported AWS API activity.
For cryptocurrency platforms, audit trails are especially important because cloud configuration changes can affect sensitive transaction-processing infrastructure.
Relevant activities may include:
  • Changes to IAM policies.
  • Creation of new access keys.
  • Modifications to KMS key policies.
  • Changes to security groups.
  • Changes to workload roles.
  • Access to sensitive AWS resources.
  • Modification of logging configurations.

Example: Investigating KMS Activity

aws cloudtrail lookup-events \
--lookup-attributes \
AttributeKey=EventName,AttributeValue=Sign
This command can help retrieve matching CloudTrail management events where supported and available in the selected Region.
Organizations should also configure appropriate CloudTrail trails or event data stores, retention policies, and log integrity controls.
For wallet-related investigations, cloud audit logs should be correlated with transaction authorization records and blockchain activity.

5. AWS KMS and CloudHSM: Protecting Cryptographic Keys

Private-key security is one of the most critical aspects of cryptocurrency infrastructure.
If an attacker obtains the ability to authorize unauthorized blockchain transactions, traditional network defenses may no longer be sufficient.
AWS provides two relevant cryptographic services.

AWS Key Management Service (AWS KMS)

AWS KMS helps manage cryptographic keys and control their usage through IAM and key policies.
Depending on the blockchain's cryptographic requirements, supported asymmetric KMS keys may be suitable for certain signing operations.
However, compatibility with blockchain signing formats, curves, recovery identifiers, and transaction serialization must be verified.
KMS does not automatically provide a complete cryptocurrency wallet or custody platform.

AWS CloudHSM

AWS CloudHSM provides dedicated hardware security modules for cryptographic operations.
It can support architectures that require greater control over key management and cryptographic processing.
Potential applications include:
  • Protecting supported private keys.
  • Restricting access to cryptographic operations.
  • Separating key-management responsibilities.
  • Supporting custom transaction-signing workflows.
CloudHSM integration requires careful evaluation of supported algorithms, application interfaces, operational responsibilities, and blockchain compatibility.

Recommended Wallet Security Controls

A secure custody architecture should combine:
  1. Hardware-backed key protection where appropriate.
  1. Strictly controlled signing permissions.
  1. Multi-party authorization or threshold-signing mechanisms.
  1. Transaction value limits.
  1. Destination address allowlists.
  1. Independent transaction verification.
  1. Separation between hot and cold wallets.
  1. Emergency withdrawal suspension procedures.
Critical principle: Protecting a private key is not sufficient if a compromised application can request arbitrary signatures.
Transaction authorization policies must be enforced independently from the application requesting the signature.



6. AWS WAF and Shield: Protecting Exchange APIs

Cryptocurrency exchanges frequently expose internet-facing APIs for authentication, account management, trading, and withdrawals.
These endpoints can be targeted by:
  • Credential stuffing.
  • Automated abuse.
  • Malicious HTTP requests.
  • Application-layer denial-of-service attacks.
  • Exploitation attempts against vulnerable applications.
AWS WAF helps filter and inspect supported HTTP requests.
AWS Shield provides protection against supported distributed denial-of-service attacks.

Example Security Architecture

Internet
|
v
Amazon CloudFront
|
v
AWS WAF + AWS Shield
|
v
Application Load Balancer
|
v
Exchange API Services
|
v
Authentication and Authorization
|
v
Trading and Withdrawal Services
Recommended protections include:
  • Rate-based rules.
  • Bot mitigation where applicable.
  • Strong authentication.
  • API authorization controls.
  • Request validation.
  • Network segmentation.
  • Monitoring of sensitive operations.
These controls reduce application exposure but cannot independently prevent malicious transactions authorized through compromised signing infrastructure.

7. Amazon Inspector: Continuous Vulnerability Monitoring

Amazon Inspector continuously assesses eligible AWS workloads for known software vulnerabilities.
Supported scanning capabilities include Amazon EC2, Amazon ECR container images, and AWS Lambda.
For blockchain infrastructure, this is particularly valuable because vulnerable operating systems, container images, and runtime dependencies may provide attackers with initial access.

Example Scenario

A cryptocurrency exchange operates blockchain RPC services inside containers.
A newly disclosed CVE affects a software dependency included in one of the container images.
Amazon Inspector may identify the vulnerable package and generate a security finding.
The security team can then:
  1. Identify affected images and workloads.
  1. Evaluate exploitability and exposure.
  1. Update the vulnerable dependency.
  1. Rebuild and test the container.
  1. Redeploy the affected service.
  1. Verify that the finding is resolved.
Inspector does not replace smart-contract auditing or specialized blockchain vulnerability analysis.

8. AWS Security Hub: Centralized Security Visibility

Large cryptocurrency platforms often operate multiple AWS accounts and environments.
These may include:
  • Trading infrastructure.
  • Wallet and custody systems.
  • Blockchain nodes.
  • Customer-facing APIs.
  • Analytics platforms.
  • Development and CI/CD environments.
AWS Security Hub helps centralize supported security findings and posture information.
When integrated with services such as GuardDuty and Inspector, it can provide a consolidated view of security risks.
For example, a vulnerable internet-facing workload that also exhibits suspicious credential activity may warrant immediate investigation.
A centralized security operations workflow helps teams correlate multiple signals instead of reviewing each service independently.

9. Designing a Secure Cryptocurrency Exchange Architecture on AWS

A resilient architecture should separate internet-facing services from sensitive custody and signing infrastructure.

Reference Architecture

INTERNET
|
v
CloudFront + WAF
|
v
Public API Layer
|
v
Authentication Services
|
v
Trading Engine
|
v
Withdrawal Policy Engine
|
+------+------+
| |
v v
Risk Assessment Fraud Detection
| |
+------+------+
|
v
Independent Approval Layer
|
v
Transaction Signing Service
|
v
KMS / CloudHSM / MPC
(as architecturally suitable)
|
v
Blockchain Network

Security and Monitoring Plane
-----------------------------
GuardDuty
CloudTrail
Amazon Inspector
AWS Security Hub
EventBridge
CloudWatch
On-chain Monitoring

Essential Architectural Principles

Separate critical environments.
Use dedicated AWS accounts and network boundaries for sensitive custody infrastructure.
Minimize privileges.
Apply least-privilege IAM policies and carefully restrict access to cryptographic signing operations.
Enforce independent transaction approval.
A compromised API or trading service should not automatically gain unrestricted withdrawal authority.
Monitor both cloud and blockchain activity.
Cloud telemetry alone cannot provide complete visibility into cryptocurrency transfers.
Design for emergency containment.
Establish procedures to suspend withdrawals, revoke credentials, disable signing authorization, and isolate compromised services.

10. Automated Incident Response with Amazon EventBridge

Amazon EventBridge can route supported AWS security events to automated response workflows.
For example, a high-severity GuardDuty finding affecting a sensitive workload may trigger an investigation workflow.

Conceptual Response Flow

Amazon GuardDuty
|
v
High-Severity Finding
|
v
Amazon EventBridge
|
v
AWS Lambda / Step Functions
|
v
Security Validation
|
+---- Notify Security Team
|
+---- Create Incident
|
+---- Restrict Compromised Access
|
+---- Request Withdrawal Suspension
|
v
Forensic Investigation
Actions affecting cryptocurrency custody should be designed carefully.
Automatically suspending withdrawals may be appropriate under predefined conditions, but destructive actions or key rotation without coordination can introduce operational and financial risks.
High-impact response actions should include authorization safeguards, tested procedures, and recovery plans.

11. Monitoring Blockchain Transactions

AWS-native security services primarily focus on cloud infrastructure and supported application environments.
They do not automatically analyze every blockchain transaction for fraud or theft.
To address this gap, organizations can integrate specialized blockchain analytics platforms into their AWS architecture.
Potential monitoring capabilities include:
  • Detection of unusual withdrawal volumes.
  • Identification of previously unseen destination addresses.
  • Monitoring of rapid cross-chain asset movements.
  • Detection of abnormal signing frequency.
  • Alerts for transactions exceeding defined thresholds.
  • Correlation between cloud security events and on-chain transfers.
A monitoring pipeline can use services such as Amazon EventBridge, AWS Lambda, Amazon Kinesis, and Amazon S3 to process and retain relevant events.
The blockchain-specific detection logic must come from suitable analytics engines, custom rules, or specialized providers.

Example Detection Logic

def evaluate_withdrawal(tx):
alerts = []

if tx["amount_usd"] > 100000:
alerts.append("HIGH_VALUE_TRANSFER")

if not tx["destination_allowlisted"]:
alerts.append("UNKNOWN_DESTINATION")

if tx["withdrawals_last_hour"] > 20:
alerts.append("UNUSUAL_FREQUENCY")

return alerts
This simplified Python example demonstrates basic risk signals.
Production systems require more sophisticated controls, including historical baselines, reliable transaction data, multi-asset valuation, false-positive management, and independent approval enforcement.

12. Incident Response After a Cryptocurrency Breach

When a cryptocurrency exchange detects suspicious activity, response speed is critical.
A structured response plan should include:

Phase 1 — Detection

Identify abnormal cloud activity, unauthorized signing operations, suspicious withdrawals, and anomalous blockchain transfers.

Phase 2 — Containment

Restrict compromised identities, isolate affected workloads, suspend sensitive operations where necessary, and protect unaffected signing infrastructure.

Phase 3 — Investigation

Correlate CloudTrail records, GuardDuty findings, application logs, transaction authorization records, and blockchain transaction histories.

Phase 4 — Recovery

Rebuild compromised systems, replace exposed credentials, validate custody controls, and restore services through controlled procedures.

Phase 5 — Post-Incident Improvement

Perform root-cause analysis, strengthen security controls, test emergency procedures, and document lessons learned.
For blockchain incidents, early coordination with relevant counterparties, custodians, blockchain analytics providers, and law enforcement may support asset tracing and recovery efforts.
However, freezing or recovering digital assets depends on the specific blockchain, token issuer, jurisdiction, and circumstances.



13. Best Practices for Blockchain Security on AWS

Organizations operating cryptocurrency infrastructure should prioritize the following controls:
  • [ ] Enable GuardDuty across relevant AWS accounts and Regions.
  • [ ] Centralize CloudTrail logs with appropriate retention and integrity protections.
  • [ ] Continuously scan supported workloads with Amazon Inspector.
  • [ ] Apply least-privilege IAM policies.
  • [ ] Separate custody infrastructure from internet-facing services.
  • [ ] Protect cryptographic keys using suitable hardware-backed or distributed custody mechanisms.
  • [ ] Enforce independent transaction authorization.
  • [ ] Implement withdrawal limits and destination controls.
  • [ ] Monitor blockchain transactions in real time.
  • [ ] Integrate security findings with AWS Security Hub.
  • [ ] Automate validated incident response workflows.
  • [ ] Perform smart-contract and cross-chain bridge security assessments.
  • [ ] Conduct regular penetration tests and incident response exercises.
  • [ ] Test disaster recovery and emergency withdrawal suspension procedures.

14. Important Limitations

AWS security services can significantly improve the security posture of cryptocurrency platforms, but they cannot eliminate every blockchain-specific risk.
In particular:
  • GuardDuty does not automatically detect fraudulent blockchain transfers.
  • AWS WAF cannot prevent a valid transaction signed by a compromised wallet.
  • Amazon Inspector does not audit smart-contract business logic.
  • AWS KMS and CloudHSM do not automatically provide complete cryptocurrency custody solutions.
  • CloudTrail does not replace blockchain transaction monitoring.
  • Security Hub does not independently prevent cryptocurrency theft.
A comprehensive strategy must combine cloud security, application security, cryptographic controls, blockchain analysis, and operational governance.



Conclusion

The major cryptocurrency incidents involving Binance, BNB Chain, and Mercado Bitcoin demonstrate that protecting digital assets requires more than securing blockchain protocols.
Attackers can target credentials, application infrastructure, transaction-signing systems, privileged identities, and cross-chain integrations.
AWS provides a strong foundation for securing the infrastructure supporting cryptocurrency exchanges.
Amazon GuardDuty helps detect suspicious cloud activity, CloudTrail supports forensic investigations, Amazon Inspector identifies known vulnerabilities, AWS WAF protects application entry points, and KMS or CloudHSM can support suitable cryptographic key-management architectures.
However, these capabilities must be combined with independent transaction authorization, specialized blockchain monitoring, secure custody, and tested incident response procedures.
The most important security principle is that compromising a single application, cloud identity, or signing component should never be sufficient to authorize unrestricted movement of digital assets.
In blockchain security, prevention matters, but the ability to detect and contain an attack before irreversible transactions occur is equally critical.



References

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article