Honestly, that’s a very uninteresting way of doing it - punishment is far too severe, and it’s far to easy to avoid it. Outside novelty, being undead meant nothing once you put first bucket on your head.

I would rather have individual NPCs refuse to deal with us, have negative interactions modifier, or unique dialogue choices, rather then this systemic hostility.