Moral hazard: After a certain contract, the agent conducts activities under the condition that the principal cannot supervise or the supervision cost exceeds the supervision benefit, and this kind of activity will bring losses to the principal.
The behavior of people who have bought property insurance not wanting to spend money to reinforce the door lock is not a moral hazard according to the above definition.