Self-erecting boxes often incorporate locking mechanisms or tabs that keep the box securely closed once it is assembled.
https://www.dc-package.com/product/packaging-boxes/self-erecting-boxes/