Security and privacy
Documentation
On this page
Okivo is built so that your users' data stays with you: in your Keycloak and on your users' phones. Only what is needed to deliver a notification goes through Okivo's servers.
Which data is stored where
| Location | What is stored there |
|---|---|
| Your Keycloak | Users, the mapping user ↔ device, the devices' public keys, open sign-in requests with their details (application, browser, IP address, location), the history for risk detection, the denial counters, the events. |
| The user's phone | The private key per account (in the Secure Enclave or Android Keystore, not exportable), the secret for the codes without a connection, the app's settings. |
Okivo push service (gateway.okivo.app) |
Per device a random device ID, the push token for Apple or Google, the platform, the mapping to your realm and a pseudonym of the user. No names, no email addresses, no sign-in contents. |
Okivo portal (okivo.app) |
Your customer account (email, company, country), plan and subscription, your realms with name and tenant ID, uploaded logos. API keys only as a checksum. |
The pseudonym is a checksum (HMAC-SHA256) of the Keycloak user ID with a secret key that only exists in
your realm. Okivo can't infer the user from it; the push service only uses it to count registered users for
the plan limit. Don't delete or change this key (realm attribute push-mfa.subjectSalt), otherwise the push
service counts all users anew.
What Okivo itself processes as a provider is described in the privacy policy at okivo.app/en/privacy. You can export your data from the portal at any time, see Export your data and switch.
How a sign-in works
- The user enters their password. The Okivo plugin in your Keycloak creates a request with a random ID, a nonce, the details of the sign-in and – with number matching – three numbers.
- The plugin asks the push service to wake the device. For this it only sends the device ID and request ID.
- Through Apple or Google, the push service sends a wake-up signal without content to the app.
- The app fetches the details directly from your Keycloak and shows them.
- The user approves with fingerprint or face. The app signs its response with the device's private key and sends it directly to your Keycloak. The plugin checks signature and number against the public key stored at setup.
The push service is not involved in steps 4 and 5.
At setup the app creates its own key pair (ECDSA P-256) in the phone's protected storage and proves to Keycloak that it holds the private key. The QR code only contains a one-time setup code valid for five minutes. The invitation email contains no code, only a link.
Protection against attacks
- No shared secret. Approvals are digitally signed (ES256). The private key never leaves the phone – not even when moving to a new device; there the new device creates its own.
- Number matching against MFA fatigue. Someone bombarded with requests can't approve by accident: the right number is only on the sign-in page.
- Details before approving. Application, browser and – with location and risk – the approximate location help to recognise foreign sign-ins.
- Replay protection. Every request has a one-time random value and is valid for about 90 seconds; every response is bound to device and request and works once. Codes without a connection also work once; after five wrong entries the sign-in ends.
- Biometrics in the app. The app requires fingerprint or face when opening and for every approval.
- Intercepted invitations are useless. If an account already has a device, the invitation link requires the password and approval with the existing device.
- App links without data leaks. The setup code in the link “Open in the Okivo app” sits in the part of the address that is never sent to a server, and only the Okivo app may open these links.
- Separate tenants. Each realm has its own credentials; with every wake-up signal the push service checks that the device belongs to that realm.
- An attack on the push service would only reveal device IDs and push tokens, no user data and no way to approve sign-ins.
- RADIUS fail-closed. For VPN and Wi-Fi, every sign-in that isn't explicitly approved is rejected. The RADIUS server only gets a key that can trigger pushes, no admin rights.
Risk detection
With the plan feature location and risk.
The plugin rates every sign-in in your Keycloak as low, elevated or high and passes the reasons to the app. At high risk the app warns before the user can approve. No third-party services are queried; the push service sees neither IP addresses nor ratings.
| Signal | Weight |
|---|---|
| Impossible travel (too far in too little time since the last sign-in, minus the inaccuracy of the locations) | high |
| New country, new browser or new device | elevated |
| Browser location doesn't match the location of the IP (only if switched on) | elevated |
| New city (not from a known network), new network, unusual time of day | low; several together elevated |
- Location from the IP address via a GeoIP database stored on your server (included: DB-IP City Lite; more precise with your own purchased database).
- History: the last 20 approved sign-ins per user, IP address and network only as a checksum with a secret key of the realm. Blocked sign-ins don't go into the history, so an attacker can't make their network “known”.
- Phone location: if a user switches on the location check in the app, the app compares itself. The phone's location never leaves the device.
- Browser location: only if you switch it on; rounded to about 1 km, stored only with the running request, not in the history.
Details and settings: Location and risk.
The app shows the reasons in its own language (German or English).
Outages and plans
- Push service unreachable: new devices can't be set up then. Users who are set up sign in with the code from the app, unless you switched off the code fallback. The plugin keeps the plan data for up to 24 hours.
- Plans never block existing logins. If the user limit is reached, only setting up new users is prevented. See Plans and user limit.
- Cancellation: your account continues on the free plan; downloads and updates remain available.
Plugin updates
- You decide. An installed plugin is never changed, switched off or forced to update remotely. The Okivo updater also only runs if you include it.
- No code loaded at runtime. The plugin doesn't load any code from the network; updates only take effect with a Keycloak restart.
- Signed. Every version is signed with Okivo's release key (Ed25519). The updater installs nothing whose checksum or signature doesn't match. See Verify the signature.
- Openly available, protected by the signature. Plugin, updater and images are public, without credentials. The plugin only becomes effective with your realm's credentials (tenant ID and API key). Only what is signed with the Okivo release key is genuine.
- Backwards compatible. Older plugin versions keep working with the push service.
What you should take care of
- Store the tenant API key in the Keycloak vault, not in plain text.
- Never put “Push MFA” on the top level of the flow and not in the realm master, and test new flows in a second browser.
- Behind a reverse proxy: set
KC_PROXY_HEADERScorrectly, otherwise locations and risk ratings are wrong. - Offer your users a way back if their phone is lost (recovery codes or invitation).
- Enable events in the realm if you want to analyse denials.
- If you ask for the browser's location, mention it in your privacy policy.
- For RADIUS: a separate inbound API key, HTTPS between the RADIUS server and Keycloak.