Identifier Predictability Review
Assess whether object identifiers leak structure or sequence, and what that means when paired with an authorization weakness
Use when: identifiers are integers, counters, or structured values and you want to know how much they reveal
Avoid when: identifiers are random tokens with high entropy where prediction risk is negligible
Procedure
- Collect identifiers for objects you own and characterize them: length, alphabet, sequence, timestamp or random.
- Measure gaps and ordering between your own identifiers to detect an incrementing counter behind the sequence.
- Check whether identifiers embed metadata such as tenant, timestamp or type, which reveals internals without any guesswork.
- Assess how much enumeration a prediction would require, and state the assumption honestly in your report.
- Verify that authorization is enforced independently of identifier secrecy, which is the property that actually protects data.
- Document recommendations: random identifiers, server-side ownership checks and rate limiting as defence in depth.
Signals
- Identifiers increment by small steps between objects you created moments apart.
- A structured identifier decodes into tenant and creation date information.
- The API accepts a wide range of identifiers without rate limiting, making sequential guessing practical.
- Authorization behaves correctly even for sequential identifiers, which means the design compensates for predictability.
Patterns
1. Characterization
id=4821, 4822, 4837 -> sequential, gap=small, entropy=low
id=01K3... -> ULID, time-ordered, no cross-tenant info
2. Structure decode
prefix: tenant ACME | middle: object type | suffix: sequence
-> 3 fields of metadata exposed by the identifier alone
3. Risk statement
predictable id + missing ownership check = enumerable data
predictable id + enforced ownership check = low impact
Pitfalls
- Calling predictable identifiers a vulnerability on their own, when enforced authorization makes them harmless.
- Guessing identifiers belonging to other users to prove sequence, which crosses the data boundary you were asked to avoid.
- Recommending random identifiers while ignoring that the real fix is the ownership predicate in the query.
Done when
- Identifier structure, sequence and entropy are documented with examples from your own objects.
- The report separates identifier exposure from authorization impact, and recommends the ownership check as the primary fix.
References
1---2name: identifier-predictability-review3description: "Assess whether object identifiers leak structure or sequence, and what that means when paired with an authorization weakness. Use when identifiers are integers, counters, or structured values and you want to know how much they reveal"4pack: authzmap5version: 1.0.06category: api-security7tags: [identifiers, predictability, design]8metadata:9 source: https://skillmd.com/skills/wsh7ash/identifier-predictability-review10---1112# Identifier Predictability Review1314> Assess whether object identifiers leak structure or sequence, and what that means when paired with an authorization weakness1516**Use when:** identifiers are integers, counters, or structured values and you want to know how much they reveal1718**Avoid when:** identifiers are random tokens with high entropy where prediction risk is negligible1920## Procedure21221. Collect identifiers for objects you own and characterize them: length, alphabet, sequence, timestamp or random.232. Measure gaps and ordering between your own identifiers to detect an incrementing counter behind the sequence.243. Check whether identifiers embed metadata such as tenant, timestamp or type, which reveals internals without any guesswork.254. Assess how much enumeration a prediction would require, and state the assumption honestly in your report.265. Verify that authorization is enforced independently of identifier secrecy, which is the property that actually protects data.276. Document recommendations: random identifiers, server-side ownership checks and rate limiting as defence in depth.2829## Signals3031- Identifiers increment by small steps between objects you created moments apart.32- A structured identifier decodes into tenant and creation date information.33- The API accepts a wide range of identifiers without rate limiting, making sequential guessing practical.34- Authorization behaves correctly even for sequential identifiers, which means the design compensates for predictability.3536## Patterns3738**1. Characterization**3940```text41id=4821, 4822, 4837 -> sequential, gap=small, entropy=low42id=01K3... -> ULID, time-ordered, no cross-tenant info43```4445**2. Structure decode**4647```text48prefix: tenant ACME | middle: object type | suffix: sequence49-> 3 fields of metadata exposed by the identifier alone50```5152**3. Risk statement**5354```text55predictable id + missing ownership check = enumerable data56predictable id + enforced ownership check = low impact57```5859## Pitfalls6061- Calling predictable identifiers a vulnerability on their own, when enforced authorization makes them harmless.62- Guessing identifiers belonging to other users to prove sequence, which crosses the data boundary you were asked to avoid.63- Recommending random identifiers while ignoring that the real fix is the ownership predicate in the query.6465## Done when6667- Identifier structure, sequence and entropy are documented with examples from your own objects.68- The report separates identifier exposure from authorization impact, and recommends the ownership check as the primary fix.6970## References7172- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)73- [CWE - predictable resources](https://cwe.mitre.org/)