Open cardosec

Case C98F79 · Cloud · L2 Practitioner

Securing Serverless Functions

Practise as: Deep dive · Explain itLevel: L2 Practitioner
  1. 01 Context
  2. 02 Mechanism
  3. 03 Lessons
What a strong answer covers

Try it out loud first. Then check yourself:

  1. The provider patches the servers; you still own the code, its dependencies, its permissions and its configuration.
  2. Give each function its own role with only what it needs; a shared, broad role turns one bug into account-wide access.
  3. Every trigger is input: queue messages, file uploads and HTTP events can all carry injection payloads.
  4. Keep secrets in a secrets manager, set timeouts and concurrency limits, and send logs somewhere you actually watch.

If the interviewer pushes back

  • A function has a command injection bug. What can an attacker reach, and how do you limit it?

Go deeper

More Cloud cards

All Cloud cards →

cardosec draws a security topic and gives you a clock: explain it out loud with no notes, then see what you covered and what you missed. Free during early access.

Reviewed 2026-10-09