Least privilege and privilege deprivation: towards tolerating mobile sink compromises in wireless sensor networks