Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 25, 2021 04:01 pm GMT

How cryptography works to protect ML models

Lets speak about Machine Learning and cryptography. Are they a match? spoiler:

yep

Lets imagine that you are in ML.
You trained fantastic ML models that add cats ears =^..^= (nekomimi) to all people on the video. You decided to make an app for that! Suddenly, your app became popular, and some people wanted to copy it. So, it would be best to protect your ML models from leakage and misuse.

Simplified, it works like this: users upload their videos to your app. Your app takes them to your backend, which generates a video-specific ML model, and then sends it back to the app. Then your application stores and executes it.

Being a security pro, you understand that ML models need protection. But from a data security perspective ML model is a just file with model data and procedure/algorithm. So, youre to adjust your security efforts and protect those tiny ML modelsfrom their generation point to their usage.

IML dataflow, by Anastasiia Voitova, Cossack Labs

You carefully add encryption: the backend will encrypt each ML model per user per video using ephemeral keys and an HPKE-like approach. It means that every ML model will be explicitly encrypted for specific videos by your backend code. This approach is known as application-level encryption (ALE).

Your mobile apps will receive an encrypted model and decrypt it before usage. Each ML model is encrypted by a unique encryption key used only once to make things complicated for attackers.

Encryption layer: solutions, by Anastasiia Voitova, Cossack Labs

Indeed, you dont want to leave encryption alone.

So, you add multiple protection measures: use Keychain/Keystore on a device, add logging and monitoring on a server, and an anti-fraud system that prevents sending ML models to untrusted users.

Anti-fraud system 201, by Anastasiia Voitova, Cossack Labs

Curious to learn details?

Dive into the full videoto learn more about cryptography, cloud storage security, API protection, anti-fraud system, etc.


Sounds too complicated as for protecting =^..^= cat-ears ML model?

Well, imagine a financial analytics ML model instead. We built specific ML-protection technologies several times, as it was exciting every time.

Say hi to @vixentael and follow @cossacklabs for data security updates on Twitter, YouTube, Linkedin, and our website.


Original Link: https://dev.to/cossacklabs/how-cryptography-works-to-protect-ml-models-476o

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To