How Do Centralized Exchanges Differ from Decentralized Exchanges in Terms of Security Risks?
Centralized Exchanges (CEXs) hold user funds in custodial wallets, making them a single, high-value target for hackers (the 'honeypot' risk). Decentralized Exchanges (DEXs) operate via smart contracts and users retain control of their private keys, mitigating the honeypot risk.
However, DEXs are vulnerable to smart contract exploits, front-running, and impermanent loss, which are different security and financial risks than those faced by CEXs.