# Session Credential Boundary Check

> Record exactly when the server rejects an expired, truncated, reused or tampered credential, then verify the rejection shape matches its promises. Use when you must characterize the whole credential boundary: expiry, truncation, replay, tampering and rejection behavior

- Skill: `wsh7ash/session-credential-boundary-check` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/session-credential-boundary-check`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/session-credential-boundary-check/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/session-credential-boundary-check

---


# Session Credential Boundary Check

> Record exactly when the server rejects an expired, truncated, reused or tampered credential, then verify the rejection shape matches its promises

**Use when:** you must characterize the whole credential boundary: expiry, truncation, replay, tampering and rejection behavior

**Avoid when:** you have only one test credential and only ambient session behavior can be observed, not repeated full sessions

## Procedure

1. Establish baseline sessions for each identity you own and record issuance, expiry, refresh and grace behavior.
2. Send identical requests with the session slightly truncated and then token-tampered, waiting until after each request to restore.
3. Repeat each tamper at least twice and once a second time after renewal so burst single-shot reports are not fatal.
4. Check response shape for expired versus malformed versus revoked versus throttled, then confirm the server's promise map.
5. Inspect whether a 401 response for an expired session is identical to a 403 for a caller with no right to the object.
6. Record the boundary in a table: which signal comes from timing, which from shape, and which from explicit permission state.

## Signals

- A truncated or malformed token behaves identically to a valid one inside some ttl window.
- Tampering a stateless token changes only a claim, but the server never notices because the signature is skipped.
- Revolving an expired session still flows through caches or resumes without re-checking the account state underneath.
- An expired session response carries additive data such as roles or claims the caller should never keep.

## Patterns

**1. Baseline**

```text
sess expires=3600s rotation=on-refresh
replay same token after renewal -> old-token(valid)=200
```

**2. Token tamper**

```text
signed JWT tamper role=member -> revoked-recognition=server-side sweep (verify if claims-only)
```

**3. Result row**

```text
boundary: expiry=on truncation=401 tamper=401 replay=401 throttle=429 re-envelope=yes
```

## Pitfalls

- Testing expiration while ignoring renewals, which is where extension grants accidentally outlive their intending event.
- Assuming signature verification because the operation recommends it instead of actually retrying across tampered payloads.
- Ignoring the double-request question and publishing a finding that collapses under burst semantics.

## Done when

- Every credential boundary condition is tested at least twice, with a renewal-covered second attempt where one exists.
- The rejection surface is fully characterized, from status and body to whether each signal truly traveled server-side.

## References

- [RFC 6750 - bearer tokens](https://www.rfc-editor.org/rfc/rfc6750)
- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)

