Even Hobbes, the most notoriously pro authoritarian government philosopher in history, who thought you had to obey even the worst government because it was better than no government, said that if your government just starts killing you, you don't have a social contact.

You don't have a government.

@existentialcomics Yes. It's the one natural right you can't contract away.

If the sovereign can't, or won't, protect you, the sovereign is illegitimate and can be overthrown.

In Leviathan, the contract isn't between us and the sovereign; it's a contract only between us and each and all. If an immigrant joins, he's party to the contract with you, me and everyone else. They are, in a word, citizens.

And as citizens, will agree to the terms of the contract. They must be protected by the sovereign.