The Desk · The Wire · Hacked Today? · Data Center RSS
The Perimeter Site

The problem with database encryption

The Perimeter Desk
2026-09-03
# The problem with database encryption The news out of South Korea this evening is grim. Tving, one of the region's biggest streaming services, has leaked approximately 39.54 million user accounts. It fits into a wider, noisier week where we've seen 429 data breach stories, 110 of which hit just today. Along with Tving, we have Aesto Health exposing Social Security numbers for 9.5 million patients and Baylor Genetics losing the data of 2.8 million people. When these numbers hit the wire, the immediate reaction from the "security-as-a-product" crowd is always the same: we need better encryption at rest. The narrative suggests that if Tving or Aesto had simply used more robust, perhaps 'military-grade' encryption, those millions of records would be useless gibberish to any attacker. The logic seems sound. If the data is encrypted on the disk and the attacker steals a snapshot of the database, they have nothing but high-entropy noise. In this view, the breach is a failure of cryptography—or a lack thereof. We're told that adopting a more modern cipher or a more aggressive hashing salt would have neutralized the impact. It's a comforting thought because it suggests there is a technical tool we can buy to make the data "safe" even when the perimeter fails. But this isn't a crypto flaw. It's a key-management flaw, and the obsession with "encryption at rest" as a primary defense is largely a distraction. To understand why, we have to look at how these systems actually work. Most modern enterprises use something called Envelope Encryption. For a sysadmin, the easiest way to visualize this is as a set of nested boxes. You don't encrypt 40 million rows of data with one master key; that would be a catastrophic risk and computationally expensive for large datasets. Instead, you generate a Data Encryption Key (DEK)—a symmetric key used to encrypt the actual plaintext of the user record. Then, you take that DEK and encrypt it using a Key Encryption Key (KEK), which is stored in a separate, hardened location like a Hardware Security Module (HSM) or a cloud-based Key Management Service (KMS). You store the encrypted DEK right alongside the encrypted data. When the application needs to read a user's profile, it sends the encrypted DEK to the KMS, the KMS decrypts it using the KEK and sends the plaintext DEK back, and the application then decrypts the user data. Here is where the hype falls apart. For an attacker to exfiltrate 39.54 million records in a usable format, they don't need to "break" AES-256. They just need the identity of the application server. If the attacker has compromised the application layer or stolen a service account token with the permissions to call the `Decrypt` API on the KMS, the encryption is transparent. The KMS sees a legitimate request from a trusted server and happily hands over the keys. Claude Shannon, the father of information theory, understood that secrecy isn't just about the algorithm but about the uncertainty of the key. If the attacker controls the environment where the key is requested, there is no uncertainty left. Encryption at rest protects you from someone stealing a physical hard drive out of a rack in a data center. It does almost nothing against an attacker who has already achieved remote code execution on your app server. When we see 9.5 million Social Security numbers leaked from Aesto Health, it's rarely because the attackers performed a brute-force attack on a cipher. It's because the keys were sitting in an environment variable or a configuration file, or the service account had overly permissive access to the vault. We keep calling these "encryption failures" when they are actually identity and access management (IAM) failures. The second-order effect here is where the real damage happens. For Tving's users, the risk isn't just a leaked email address; it's the inevitable wave of credential stuffing. Because people reuse passwords across services, an attacker with 39.54 million sets of credentials will now pivot to South Korean banking portals and government IDs. The streaming service is the entry point, but the financial sector is the target. This creates a downstream liability for insurers who underwrote these firms based on "compliance checkboxes" (like having encryption enabled) rather than actual architectural resilience. Who benefits if we keep believing that better encryption is the answer? The vendors selling "Transparent Data Encryption" (TDE) modules and automated vaulting software. They can sell you a tool that checks a box for an auditor without ever forcing you to solve the harder problem: reducing the blast radius of your service accounts. The hype benefits the people who want to treat security as a series of plugins rather than a set of constraints. If you believe a "military-grade" cipher is a shield, you stop worrying about why your application server has the permission to decrypt 40 million records in a single session without triggering a single alert. The fix for this doesn't involve changing your hashing algorithm or upgrading your AES implementation. It involves implementing strict rate-limiting on your KMS and tying decryption rights to specific, short-lived execution contexts. You should not be able to call the `Decrypt` function 40 million times in an hour using a single token without the system automatically killing that token and screaming into every available channel. The cost to deploy this is surprisingly low in terms of licensing—most cloud KMS providers already have these features built-in. The actual cost is engineering time: the hours spent auditing IAM roles, removing "AdministratorAccess" from service accounts, and configuring the alerts that should have stopped the Tving breach at record 1,000 rather than record 39 million. It's a boring fix. It doesn't come with a flashy marketing brochure or a new product category. But until we stop confusing key management with cryptography, we'll keep seeing these eight-figure breaches every other Tuesday.
◼

Sources

The reporting this analysis was built from. Follow the originals before acting on anything here.

  1. Data breach at South Korean streaming service Tving affects 39 million accounts - MLex Google News Security
  2. (LEAD) Nearly 40 mln Tving accounts compromised in massive data breach: probe - Yonhap News Agency Google News Security
  3. Manchester Airports Group Data on 8.8 Million People Leaked After Ransom Refusal SecurityWeek
  4. SonicWall SMA 1000 Zero-Days Enable Unauthenticated RCE Dark Reading
  5. Data breach at South Korean streaming service Tving affects 39 million accounts - MLex Google News Security
  6. Tving Data Breach Exposes 39.54 Million Accounts and Technical Assets - 조선일보 Google News Security
  7. Nearly 40m Tving accounts compromised in massive data breach: probe - The Korea Herald Google News Security
  8. Aesto Health data breach exposed Social Security numbers of 9.5 million patients - Startup Fortune Google News Security

How stories are selected and rated

← More from the Desk Live Wire →

About · Methodology · Contact · Privacy

Tracking a CVE from this story? Hazard shows which vulnerabilities are confirmed exploited in the wild — and what the resulting breaches have cost UK organisations.

DISCLAIMER: Articles on this site are generated automatically from public security news feeds for educational and informational purposes. They may contain errors, and nothing here constitutes security, legal, or compliance advice. Verify details against original advisories and vendor bulletins before acting on them.