If you are targeted by an Assassinate action, you can counter-act it if you claim the Contessa.
Note that if your claim is challenged and you lose the challenge (i.e. you don't really have the Contessa), you will lose two cards (one for losing the challenge and one for the Assassinate) and so will definitely be out of the game.