function-level-enforcement-review
/function-level-enforcement-review
Verify each operation knows which caller classes may invoke it, and that the check runs before any business logic or data read. Use when you have classified endpoints into public, authenticated and restricted layers and need proof the layer actually gates execution
- Author
- Wsh7Ash ↗
- Repository
- authzmap ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Verify each operation knows which caller classes may invoke it, and that the check runs before any business logic or data read. Use when you have classified endpoints into public, authenticated and restricted layers and need proof the layer actually gates execution
Original author description
Verify each operation knows which caller classes may invoke it, and that the check runs before any business logic or data read. Use when you have classified endpoints into public, authenticated and restricted layers and need proof the layer actually gates execution
How it works
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
SKILL.md preview
---
name: function-level-enforcement-review
description: "Verify each operation knows which caller classes may invoke it, and that the check runs before any business logic or data read. Use when you have classified endpoints into public, authenticated and restricted layers and need proof the layer actually gates execution"
pack: authzmap
version: 1.0.0
category: api-security
tags: [function-level, bfla, enforcement]
---
# Function-Level Enforcement Review
> Verify each operation knows which caller classes may invoke it, and that the check runs before any business logic or data read
**Use when:** you have classified endpoints into public, authenticated and restricted layers and need proof the layer actually gates execution
**Avoid when:** the endpoint inventory is still missing, since you cannot distinguish intentional from lost authorization without it
## Procedure
1. Pick one operation from each auth layer in your inventory and identify the exact check that should gate it.
2. Call each operation with the lowest-privileged credential you hold and record status, body and side effects.
3. Compare the observed outcome against the permission matrix cell written during the mapping phase.
4. For any mismatch, determine the layer that failed: gateway rule, framework middleware or handler branch.
5. Repeat for write operations separately, because a refused read can hide an accepted write on the same route.
6. Record each verdict in the matrix so the final report distinguishes enforced, missing and inconsistent checks.
## Signals
- A restricted operation returns 200 with data for a low-privileged role, meaning the gate is absent entirely.
- The gate exists but runs after expensive logic, visible as timing or cost differences rather than data leakage.
- The same permission is enforced in one method and skipped in another on the same resource, indicating per-method checks.
- An operation relies on the client sending a role indicator, so roles are asserted rather than verified.
## Patterns
**1. Gate probe**
```text
GET /api/admin/stats as member -> 200 with figures
expected 403 -> function-level gate missing
```
**2. Write probe**
```text
DELETE /api/orders/{own} as peer -> 200
read refused but write accepted -> check is read-only
```
**3. Result row**
```text
op=/api/admin/stats layer=admin member-call=403 enforced=yes side-effect=none
```
## Pitfalls
- Treating an empty response body as a refusal, since 200 with no data still proves the operation ran.
- Testing only the layer you documented as authoritative while a parallel route skips the gate.
- Forgetting background or scheduled paths that invoke the same logic with a synthetic service identity.
## Done when
- Every sampled operation has an observed outcome recorded against its matrix cell for read and write methods.
- Mismatches are attributed to a specific failing layer, each with the request that exposed it.
## References
- [OWASP API Security Top 10 - BFLA](https://owasp.org/www-project-api-security/)
- [OWASP - access control cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing.html)
Versions
The database has no other skills named function-level-enforcement-review.
Database snapshot: 13.11.2026 · package version 27473c311fad (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
No similar skills in the database.