The data is stored in MySQL. How can we comply with SAS‑SM requirements for asset integrity protection? Should validation be performed for every operation such as write, update, query and delete? Shall calculations be done via KMS? Are there any industry‑recommended solutions?
I think noone who hasn’t undergone SAS-SM accreditation will know for sure. But I would expect at the very least that no plaintext keys must be stored in a database or go over any IPC channel. So only encrypted key material stored in a database.
Also, “the data” is highly unspecific. There are different asset classes with different protection requirements outlined tin the GSMA specifications.
I would expect it’s relatively unlikely that people would want ot share much details here openly, as this is very valuable information and normally only disclosed in some kind of consulting or other business engagement.
OK kid, first, don’t do this with MySQL. Think, Postgres or something with strong transactional capability built into the RDBMS.
Next, everything in the DP+ database needs to be encrypted at rest with AES256 and salt, and all of this needs to tie to root keys in the HSM. And you honestly probably need a separate database per MNO (or private network). Your system can be multi-tenant as a whole, and the databases can reside on the same physical storage, but I would create a database instance per customer, each tied to the keys established for that customer during a key ceremony.
And all of this – the servers, the database media, the HSM(s), the software, all has to be in a physical room, monitored 24/7, guarded by people with guns, etc. Basically you need a physical fortress where the only way in or out is ES9+, ES11, and ES2. The only reason actual humans are allowed in there is to perfom a key ceremony to onboard a new tenant, or to service the equipment. Whoever goes in there at all has a background check that would make Agencja Wywiadu blush, and no one ever goes in there alone. Plus cameras are everywhere except 2 spots in the special room you need for key ceremonies.
Note Google has a “virtual HSM” but don’t even think about it. That may be fine for banks with trillions in assets but it can’t be used with GSMA stuff. Google “GSMA HSM” to see what your options are but it’ll be a box you buy and keep on prem. Actually, the Thales guys who sell HSMs are incredibly helpful in setting up a DP+, probably to the annoyance of their co-workers who sell SIMs and profile downloads…
There are ways to administer the system remotely, to upload profile specs, issue commands to generate profiles, etc. But this is very constrained. All datagen happens in the same room as the HSM and the database server, and everything is nailed down to per-customer pre-shared key that live and die in an HSM. The ultimate in on-prem.
You can write a DP+ yourself. It’s basically a 1990’s architecture and not even close in complexity to an simple 2026 era device management platform. But it’s a huge expensive pain nonetheless because of the certs, because of all the ASN1, and because you’ll run into “secret society” problems (buggy EUICCs, buggy devices, buggy "EIM"s now, etc.) and you can’t exactly jump on stackexchange to work this stuff out out. Seriouslty – IMO these SIM guys have created their own “Pythagorean Brotherhood” and it’s enforced by bugs they all know how to navigate but you don’t. Do not underestimate the impact this will have on your schedule. All that being said, there are DP+ production servers out there now where a small group of smart people did the whole thing in one 3-4 month epic.
laforge is right on confidentiality (encrypted at rest, no plaintext keys in DB or over IPC). Your
question is integrity, which is a separate control, so splitting them:
Integrity, not encryption. SAS-SM asset integrity means detecting unauthorised modification, not
just preventing disclosure. So yes — every write/update/delete on protected assets carries a MAC
(HMAC or AES-CMAC / AES-GCM) computed under a key that never leaves the HSM. On read you re-verify;
mismatch = reject and alarm. MySQL stores ciphertext + MAC; MySQL never holds the key and never does
the crypto.
Per-operation: verify on read and before update (so you never modify off an already-tampered
record), re-MAC on write. Query/select is verify-only. Deletes must be authenticated + audit-logged,
since silent deletion is itself an integrity attack under SAS-SM.
KMS vs HSM: for SAS-SM the key-bearing operations belong in a certified HSM, not a plain cloud KMS —
the MAC/encrypt/decrypt happen inside the HSM boundary (PKCS#11), app sends data in, gets
result/verdict out, key material never transits the app or DB. A KMS that only envelope-wraps a DEK
you then use in app memory doesn’t meet the “key never in plaintext outside the secure boundary”
bar. If it’s cloud, it’s CloudHSM-class, not KMS-class.
Don’t roll your own record-integrity scheme — bind the MAC to the record’s primary key / version so
a valid row can’t be copied over another (substitution) or rolled back (replay). That row-binding is
the part homegrown designs miss.
laforge’s point stands: the exact SAS-SM control text is under NDA, so nobody here confirms
pass/fail against the letter of it. But the architecture — HSM-held keys, per-operation MAC verify,
authenticated deletes, row-bound MACs — is the standard shape auditors expect, independent of the
specific accreditation wording.