Canister Security

IC-specific security patterns for canister development in Motoko and Rust. Covers access control, anonymous principal rejection, reentrancy prevention (CallerGuard pattern), async safety (saga pattern), callback trap handling, cycle drain protection, and safe upgrade patterns. Use when writing or modifying any canister that modifies state, handles tokens, makes inter-canister calls, or implements access control.

dfinity Updated 39 repo stars

File contents

dfinity/icskills commit cf75b85721

Frequently asked questions

npx get-skill add dfinity/canister-security