harden-api-securitylisted
Install: claude install-skill umbrasec-labs/umbra-blue
# API Abuse (REST, gRPC, WebSocket) - Defensive Methodology
> **Tier 2 - methodology skill.** No bespoke UMBRASEC detection rule ships with this skill yet. It gives the defender's method, the log sources and signals, the hunt, and the hardening, and points to public rule sources. Promotion to Tier 1 (a sourced, tuned UMBRASEC rule) is tracked in [COVERAGE.md](https://github.com/umbrasec-labs/umbra-blue/blob/main/COVERAGE.md). Do not treat the content below as citing a UMBRASEC rule; there is none for this threat yet.
## TL;DR
The most damaging API attacks are authorization failures, not memory-corruption exploits: an authenticated, in-scope caller asks for an object or a function that is not theirs, and the backend hands it over. HTTP status alone will not catch this, because a successful BOLA returns `200`, not `403`. The highest-value defensive move is to log the authorization decision as a structured event (who asked, which object, who owns it, allow or deny) so that "User A read User B's record" becomes one legible line instead of an invisible `200`. Layer that with per-principal access-breadth monitoring on the gateway, schema validation that rejects unexpected fields at the edge (closing mass assignment), and allowlist-based egress for any URL-accepting parameter (closing SSRF to cloud metadata). Enforce the same authorization at the gRPC interceptor and the WebSocket upgrade, not only on REST.
## What it looks like, defender view
In gateway and proxy logs the camp