# Mobile API security review — version 1.1

This directory accompanies `/research/mobile-api-security`. The paper separates standards-backed statements, proposed architecture, authored examples and executed reference-model checks. It contains no real-device or production dataset.

## Correction from version 1.0

The earlier cache curve correctly evaluated its chosen formula, but the uniform arrival distribution and time horizon were assumed. The intent-age line was an arithmetic counterexample, and the diagnostic bar chart multiplied arbitrary field, copy and retention counts. These plots did not provide independent evidence of real-world behaviour. They and their quantitative conclusions have been removed from the current publication; the previous revision is recoverable in Git history.

Version 1.1 displays an event timeline, named-case outcomes and proposed data destinations. It also corrects an over-restrictive model rule: expiry of a new-execution deadline does not itself prevent authorised retrieval of an already completed result. Current account, tenant, purpose, session, field and payload-binding checks still precede retrieval. Real APIs must distinguish permission to read a result from permission to perform a new mutation; the model simplifies those into an object-permission flag.

## Reproduce

Use Python 3.9 or later with the versions in `requirements.txt`, preferably in an isolated environment:

```sh
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python mobile_api_security_study.py --output ./reproduced
```

The script performs no network operations. It regenerates the twenty-case output, three event-order traces, illustrative timeline, proposed handling map, assumptions and five SVG/PNG figures. The repository source is `scripts/mobile_api_security_study.py`; the downloadable copy is identical.

## What each artifact means

- `scenario-results.csv`: twenty hand-authored cases and twenty-one calls, including one repeated call. Four new mutation events occur; three cases end in retrieving an existing outcome; fourteen cases end in rejection. The retry case includes a first mutation and a second cached result. Two other retrieval cases start with an already completed ledger entry. These counts have different denominators and are not a detection rate or security score.
- `revocation-traces.csv`: all three event orders with check before write, under two decision rules. The check–revoke–write ordering exposes the stale entry-check decision. Transitions are sequential Python operations, not a database concurrency test. A real implementation requires appropriate transactional/fencing semantics.
- `illustrative-timeline.csv`: selected clock times explaining how an old draft can coexist with a new token. These are not measurements. An older draft may remain authorised under a service's explicit offline policy.
- `proposed-data-handling.csv`: an authored decision map, not observed data or a universal platform requirement. “No” excludes raw data from that destination in this example; identifiers and outcome metadata still require minimisation and access control.
- `claim-audit.csv`: the source or author-analysis basis and important limit of the major claims. Reference numbers match the manuscript; zero denotes author analysis.
- `model-parameters.json`: version, assumptions, exclusions, outputs and plotting dependency versions.

## Implementation limits

The gate is an executable reference model, not a mobile SDK, cryptographic implementation, security benchmark or production API. It trusts the intent and policy inputs, including token-validity booleans. It implements neither OAuth/DPoP/App Attest/Play Integrity verification nor capability issuance, trustworthy user confirmation, transaction isolation, durable ledgers or external-side-effect delivery. The digest routine uses fixed ASCII/integer fixtures and is not RFC 8785 JCS. The in-memory ledger is sequential. A client-supplied digest or timestamp cannot prove intent or authority.

The cover remains generated editorial illustration; `image-provenance.json` records its tool and prompt. The code-generated figures are explanatory or reference outputs. Do not present these artifacts as sampled operational data, a measured efficacy improvement, a product comparison or proof of zero residual risk.
