Question: why are npcs attacking me skyrim?
Answer: You are a Starving Vampire, vampirism is split into four stages of hunger. By the time you reach the last stage and is starving for blood normally friendly NPCs will attack you on sight. This can be cleared by fleeing out of sight of NPCs and feeding.