procedure
One callable server function in a tRPC router, declared as a query (read) or a mutation (write), with a validated input.
In more detail
Procedures are built from a base plus middleware, so a protectedProcedure adds an authentication check once. Every procedure built from it inherits the check.
Example
One technique has many procedures: a scheduled task can be created with schtasks, PowerShell or a raw API call.Related terms
- tRPC — A TypeScript framework that lets a frontend call backend procedures with full type safety by sharing the server’s types, with no code generation.
- middleware — Code that sits between an incoming request and the handler that answers it, doing a shared job such as logging, authentication or rate limiting.
- tRPC router — The object that groups a server’s tRPC procedures by name; its type, usually exported as AppRouter, is all the client needs.
- TTP — Tactics, techniques and procedures: how an attacker behaves, from their goals down to the exact commands they run.
- ATT&CK technique — How an attacker achieves a tactic, such as Scheduled Task/Job, identified in ATT&CK by an ID like T1053, with sub-techniques after a dot.
Taught in
- Type-Safe RPC Architectures: tRPC & Procedures — Production Full-Stack Engineering
- Cyber Kill Chain vs MITRE ATT&CK Framework — Security Operations & Threat Hunting (SOC)
- Adversary Tactics, Techniques & Procedures (TTP) Mapping — Security Operations & Threat Hunting (SOC)
- Forensics Principles, Custody & Imaging — Security Operations & Threat Hunting (SOC)