An immune response in the brain that can cause damage to neurons and lead to neurodegenerative disorders.