It is the pathological belief that one is inhabited by an evil spirit.
Cacodemomania refers to an obsession with believing that one is inhabited by an evil spirit. For example, "The psychiatrist diagnosed the patient with cacodemomania after exhibiting extreme fear and paranoia about demonic possession."
cacodemomania