AnySec
Hardening a Crypto Exchange: What Comes First
← InsightsInfrastructure · 8 min read

Hardening a Crypto Exchange: What Comes First

Identity, cloud config, server, network, application — five hardening categories for a crypto exchange, ranked by what wallet-drainer losses run through.

By AnySec EngineeringAnySec engineering

The short answer

For a crypto exchange working through server, network, identity, application, and cloud-configuration hardening with limited change-window capacity, the priority order is: cloud configuration first, application integrity second, identity and access third, server/OS baseline fourth, network segmentation fifth. That order runs opposite to a generic hardening checklist — and opposite to what fits an online casino — because the highest-consequence loss path on an exchange runs through custody access and application integrity, not customer credential abuse.

Who this is for

This is written for a CISO or Head of Infrastructure at a crypto exchange who has already decided hardening needs to happen — usually off the back of a penetration test or vulnerability assessment finding gaps across the stack — and now has to decide what gets fixed in which change window first. It's not for you if you're still scoping that upstream engagement; scoping a penetration test for a crypto exchange covers which assets — wallet and custody infrastructure, the trading engine, the admin panel — need to be named individually before testing starts. This post assumes the findings exist and answers a narrower question: given five categories of hardening work and not enough change windows to do them all in week one, which comes first on an exchange specifically.

The five categories, on an exchange

The same five hardening categories apply to any platform, but two of them carry different weight once custody and signing infrastructure are in scope:

CategoryWhat's in scopeWhat's different on an exchange
Cloud configurationIAM role scoping, storage exposure, management console access (AWS/Azure/GCP)Extends to who and what can call a custody provider's API or an in-house HSM's signing function
ApplicationWAF rules, CSP, secure headersExtends to trading-UI bundle integrity — subresource integrity and CSP controls that stop injected client-side code, not just request filtering
Identity & accessMFA enforcement, conditional access policies, AD/Azure AD hardening, session and token controlsApplies mainly to employee and admin-panel access; customer-facing withdrawal approval is a product control, not a hardening category
Server / OSCIS and NIST benchmark baselines across Linux and Windows hostsSame scope as any platform
NetworkSegmentation, ACLs, IDS tuningSame scope as any platform

A real engagement touches all five eventually. The question is which change window gets the first two.

Why the casino order doesn't fit an exchange

Cloud hardening for an online casino puts identity and access first, because a casino's highest-realised-loss category that hardening can directly close is credential-stuffing-driven withdrawal fraud — an attacker using a stolen customer login to reach the cashier. That's an identity-layer problem by definition.

A crypto exchange's highest-consequence loss path doesn't run through a stolen customer credential at all. Our own SOC runbook for regulated exchanges already documents why: trading-and-custody-pipeline integrity is the top detection priority ahead of withdrawal flow, identity, and public surface — because the single highest-ROI detection target is unauthorized changes to the trading UI's public JavaScript bundle, the mechanism behind a wallet-drainer attack that can drain funds in under two hours. None of that requires an attacker to compromise a customer's identity. It requires an attacker to get code into the trading UI or access to a signing path — an application-integrity gap or a cloud-configuration gap, not an identity gap.

That's the same reasoning the casino post uses — rank hardening categories by what the realised loss path actually runs through — applied to a structurally different platform. The loss path is different, so the order is different.

The priority order for an exchange, and why

OrderCategoryWhy this position
1Cloud configurationCustody and signing-infrastructure access — an over-scoped IAM role or an unrestricted custody-API caller can move funds directly, without touching identity or a customer account at all
2ApplicationTrading-UI bundle integrity (CSP, subresource integrity) closes the mechanism behind the highest-consequence attack our own SOC runbook tracks — injected wallet-drainer code — before it can run
3Identity & accessStill closes real risk — employee and admin-panel access, session controls — but on an exchange this mainly bounds internal privilege, not the customer-facing path the casino order is built around
4Server / OSStandard CIS/NIST baseline; most pentest and VA findings map here, contained to a smaller blast radius once #1 and #2 limit what a compromised host can reach
5NetworkSegmentation matters most once the custody and application layer are already solid — it limits lateral movement after a compromise, it doesn't stop the wallet-drainer or over-permissioned API access that causes the largest single-incident loss

This is a starting default, not a fixed rule. A proper hardening engagement opens with a threat-modeling pass against your actual stack, and a specific finding — a third-party custody provider with broader API access than intended, an admin panel with no conditional access — can and should move a category up the list regardless of this general order.

What this looks like in an actual engagement

The order above answers "what first," but the engagement itself runs the same sequence regardless of which category leads: current-state assessment, threat-model the paths most likely to hit your stack, apply changes in change-windowed phases with staging validation first, then retest against the same attack paths the original finding used to confirm the fix held. Our Security Hardening engagements hand back a reproducible baseline — Ansible, Terraform, or CIS-CAT config — so the same hardened state applies to new infrastructure without a manual checklist repeated by hand every time the estate grows.

Custody and signing-path changes get the most conservative rollback plan in that sequence, independent of where the category sits in the priority order — a staging validation step that breaks a real withdrawal flow is a production incident, not a test failure to shrug off.

Limitations

Priority order doesn't replace finding the gaps in the first place — hardening against a generic order without a prior pentest or vulnerability assessment means guessing at what to fix instead of knowing. It also isn't a detection control: hardening reduces what an attacker can reach, it doesn't watch for the attempt in real time, which is what the Managed SOC detection layers referenced above actually do. And no hardening order, however sequenced, replaces incident response for a confirmed compromise — that needs an Incident Response retainer with containment and forensic authority, not a change-windowed configuration update.

How to decide

Start with whichever category a recent pentest or VA finding already flagged — that overrides the general order every time. Absent a specific finding pointing elsewhere, work cloud configuration and application integrity first, identity second, then the remaining two categories in the order above. Tell us what a recent assessment turned up and we'll build the change-windowed hardening plan around it rather than a generic top-to-bottom checklist.

Sources and review

The casino hardening priority order referenced for contrast is AnySec's own published analysis, linked above rather than restated. The detection-layer priority and wallet-drainer mechanics referenced from the SOC runbook are AnySec's own published operational content, linked rather than restated. Hardening methodology, deliverables, and baseline format are AnySec's own published Security Hardening service terms; no third-party vendor pricing or performance statistic is cited as fact. Author: AnySec Engineering. Published 2026-08-22; last reviewed 2026-08-22.


Related reading

Rather not learn this in production.

Talk to the engineers behind these write-ups — thirty minutes, no sales script, a straight read on where you stand.

Book a call