← All work

Security · Android · 2025–26

Homelab MFA

Push approval for sign-ins to my self-hosted services, decided on my phone behind a biometric check.

Fig. 03 · Homelab MFA

ScopeThis page describes the design goals. The current build is a working prototype that does not yet have all of the properties listed here; where a property is a goal, it says so.

Problem

My self-hosted services sit behind single sign-on. One-time codes are tedious and still phishable. I wanted to approve a sign-in on my phone, see what it was for, and confirm it with a fingerprint.

Constraints

  • Work with my existing identity provider through its own policy hooks, not a fork of it.
  • No third-party push service in the decision path.
  • A missing, expired or unrecognised request has to end in a denial, never a quiet approval.
  • Losing the phone must not mean losing access, or handing it to whoever found the phone.

What I built

An Android app that receives a sign-in request, shows its context, requires a biometric check and sends the decision back, with a local history of every decision.

A sign-in step on the identity provider that waits for that decision and times out to a denial.

A written threat model of my own design, with the gaps ranked by severity.

Result

  • The prototype handles my own sign-ins today.
  • The threat model became the roadmap. Its ranked gaps set the order of the work below.

Next

  • Goal: number matching, so an approval cannot happen by reflex when a prompt arrives unexpectedly.
  • Goal: tie each approval to a key held in the phone’s hardware keystore, so only an enrolled device can approve.
  • Goal: per-device enrolment and revocation, and a short expiry that is checked again at the moment of approval.