Verify protected-key state across iOS lock and app relaunch

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
ios, kotlin

Research direction

Read docs/engineering/ios-device-bound-key-access.md and the synthetic-key harness used in PR #4, then run the listed transitions on a physical iPhone after PR #4 is merged. Record key availability and authentication outcomes separately for each transition, along with the iOS version and build. Done when the acceptance criteria are documented and the synthetic key is deleted.

Written by the indexing model from the issue text.

Description

good first issue help wanted

Evidence

The iOS key-access findings record device lock, app backgrounding, process termination, and relaunch as untested with a real Secure Enclave key. PR #4 demonstrated key creation and signing on a physical iPhone, but did not exercise these transitions.

Reproduction

After PR #4 is merged, use the synthetic-key harness on a physical iPhone:

  1. Create one synthetic key and confirm an authenticated signing succeeds.
  2. Lock and unlock the device, then try signing again.
  3. Background and foreground the app, then try signing again.
  4. Force-quit and relaunch the app, then check the key state and try signing again.
  5. Delete the key.

Record whether the UI reports the key as available and whether system authentication is required after each transition. Record the iOS version/build; do not capture key material or signatures.

Acceptance criteria

  • Outcomes are recorded separately for lock/unlock, background/foreground, and process termination/relaunch.
  • After relaunch, the UI does not claim a usable key when the Keychain item is missing.
  • Any available key signs only after the configured system authentication succeeds.
  • The synthetic key is deleted after the checks; no real account data or TOTP seed is used.
Dominant language
Kotlin
Stars
0
Forks
0
Avg merge
3h 20m
Merged PRs (30d)
59

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsotto/sotto-authenticator

All issues in getsotto/sotto-authenticator

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.