magnetic mine

noun

1.
(nautical) a marine mine that is detonated by a mechanism that responds to magnetic material (as the steel hull of a ship)