A parental control is only as strong as its bypass surface
Building the control is the easy half. The hard half is that your user is being actively worked around by someone who has unlimited time, physical access to the device, and more patience than you do. Parental controls a
Building the control is the easy half. The hard half is that your user is being actively worked around by someone who has unlimited time, physical access to the device, and more patience than you do.
Parental controls are the rare consumer feature with a real adversary - and the adversary is eight.
Threat model first
Most consumer software assumes a cooperative user. A parental control cannot. The person operating the device wants the restriction gone, and will explore the state space exhaustively to find the gap.
Children are extremely good at this, for structural reasons: they have time, they are not embarrassed to try obviously silly things, and they share findings with each other.
Where restrictions actually leak
The control surface is rarely the weak point. The surrounding state transitions are:
| Vector | What happens |
|---|---|
| Kill the app | Restriction stops with the process |
| Reboot | Does anything re-apply on launch? |
| Delete and reinstall | Settings return to defaults, lock gone |
| Change system settings | Is the restriction reachable from outside the app? |
| Change timezone or clock | Breaks anything scheduled |
| Another path to the same capability | The control covered one route, not the capability |
That last one is the subtle killer. If you restrict a capability in one place but the platform exposes it somewhere else, you have built a speed bump with a signpost pointing around it.
What a platform will and will not let you do
Mobile operating systems deliberately limit how much one app can constrain another. That sandboxing is correct - you would not want arbitrary apps able to override system behaviour - and it sets a hard ceiling on what any third-party control can promise.
Which makes honesty part of the design. There is a meaningful difference between:
- This prevents accidental changes and casual circumvention
- This cannot be bypassed
The first is achievable and genuinely valuable. The second is not something a third-party app can truthfully claim, and claiming it produces parents who stop supervising because they believe the software has it covered. That is a worse outcome than no tool at all.
Design notes that hold up
- Protect configuration, not just the control. A lock whose settings screen is open is not a lock.
- Re-apply on every launch and resume. Assume the process died, because it did.
- Persist state outside the session. Anything held only in memory resets on the first force quit.
- Make tampering visible. A parent who can see the restriction stopped is better served than one who silently loses it.
- Fail toward the restriction. On ambiguous state, re-apply rather than release.
- Keep the PIN flow boring. No hint, no 'forgot PIN' path that a child can complete.
The usability tension
Every hardening step costs the legitimate user something. A parent who cannot quickly change a setting on their own device is being punished by your threat model.
The resolution that works is asymmetry: make the restricted action cheap for whoever holds the PIN, and uniformly expensive for everyone else. Not clever - but most parental controls fail by making it inconvenient for the adult and merely interesting for the child.
These are the constraints behind Volume Lock, which sets a maximum volume ceiling on iOS behind a PIN. It is designed to stop accidental and casual changes, which is what a third-party app can honestly offer. If you have shipped in this category, I would like to know which vector caught you out.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.