← ClaudeAtlas

auditing-serverless-event-source-trustlisted

Audit event-driven function handlers that trust the event because it arrived from inside the platform: a handler that treats any delivered event as authentic without verifying its true source or integrity, event fields flowing untrusted into a database write, command, downstream call, or constructed path, a function reachable by several event types or actors that runs privileged logic for one that should not trigger it, and an over-broad execution identity that turns a single spoofed or injected event into wide reach. Covers source authentication, event injection, per-event-type and per-actor authorization, and execution-role blast radius across queues, object-store notifications, schedules, topics, and gateways. Use when functions are triggered by events and the handler trusts the payload or its claimed origin. The event payload is the source, the handler's action is the sink, and the assumed-not-verified trust is the bug.
UnboundCompute/security-agent-skills · ★ 4 · AI & Automation · score 80
Install: claude install-skill UnboundCompute/security-agent-skills
# Auditing serverless event-source trust: when the handler trusts the event because it came from inside Event-driven functions invert the usual request model: instead of a caller reaching an endpoint, a platform delivers an event to a handler. The recurring mistake is treating that delivery as authentication, the handler assumes the event is genuine, well-formed, and authorized simply because it came through the platform's plumbing. But the event source may accept writes from more parties than intended, the payload is attacker-influenceable input, and the same handler may be reachable by triggers it should never honor. The event payload is the source, the handler's action is the sink, and the bug is trust that was assumed rather than verified. You find it by mapping each function to what can trigger it and asking what the handler checks before it acts. ## When to use - Functions are triggered by events from queues, object-store notifications, schedules, topics, or gateways. - A handler trusts the event payload's contents or its claimed source without verifying either. - Per-event-type authorization or source authentication is assumed rather than checked in the handler. ## Scope check Audit functions, event sources, and execution identities you own or are authorized to assess, and inject crafted events only into non-production triggers where a spurious run is safe. A forged event can drive a real privileged action. If you can't name the authorization, stop. ## The loop