Infection can be detected by removing CSF fluid via a special procedure called a “shunt tap” and testing the fluid for infection.