# 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

- Skill: `wsh7ash/identifier-predictability-review` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/identifier-predictability-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/identifier-predictability-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/identifier-predictability-review

---


# 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

1. Collect identifiers for objects you own and characterize them: length, alphabet, sequence, timestamp or random.
2. Measure gaps and ordering between your own identifiers to detect an incrementing counter behind the sequence.
3. Check whether identifiers embed metadata such as tenant, timestamp or type, which reveals internals without any guesswork.
4. Assess how much enumeration a prediction would require, and state the assumption honestly in your report.
5. Verify that authorization is enforced independently of identifier secrecy, which is the property that actually protects data.
6. 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**

```text
id=4821, 4822, 4837 -> sequential, gap=small, entropy=low
id=01K3... -> ULID, time-ordered, no cross-tenant info
```

**2. Structure decode**

```text
prefix: tenant ACME | middle: object type | suffix: sequence
-> 3 fields of metadata exposed by the identifier alone
```

**3. Risk statement**

```text
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

- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)
- [CWE - predictable resources](https://cwe.mitre.org/)

