A system and method for tracking an object through a three dimensional space is provided that uses the generation and detection of various magnetic fields to provide three-dimensional location data. The integrity of the generated magnetic fields are monitored against a baseline in order to detect compromise by the unintentional introduction of a foreign metallic or magnetic object in the procedural space.