Canister Security What This Is Security patterns for IC canisters in Motoko and Rust. The async messaging model creates TOCTOU (time-of-check-time-of-use) vulnerabilities where state changes between calls. is NOT a reliable security boundary. Anyone on the internet can burn your cycles by sending update calls. This skill provides copy-paste correct patterns for access control, reentrancy prevention, async safety, and callback trap handling. Prerequisites - For Motoko: package manager, in mops.toml - For Rust: , Security Pitfalls 1. Relying on for access control. This hook runs on a single rep…