Detecting Race Conditions

Find concurrency and time-of-check/time-of-use bugs - TOCTOU, unsynchronized shared state, check-then-act, and atomicity violations - by reasoning about what state is shared, what can interleave, and where a window opens between a check and its use. Use on an authorized source target when the risk is ordering, not a single tainted value; when reviewing multithreaded code, shared caches/counters, filesystem checks, or "verify then act" sequences (balance checks, auth-then-use, dedup guards). Confirms each as an interleaving witness and emits the shared finding schema.

UnboundCompute Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/detecting-race-conditions commit f1dd8179dd

Frequently asked questions

npx skillmds@latest add unboundcompute/detecting-race-conditions