You can require a password in order to create or to change IDB masks. Make this selection from the IDB Settings screen.

Click to enlarge.