Corrosion sensors are of critical importance for monitoring the destructive potential of a corrosive environment. Due to their large surface-to-volume area, nanowires react with a remarkably high speed, rendering them attractive corrosion-sensing elements. To avoid the difficulties related to contacting nanowires, we present a magnetic approach, exploiting the fast reaction of nanowires to the environment. Iron nanowires have a high magnetization value, which decreases upon nanowire corrosion. Due to shape anisotropy, they also possess a large remnant magnetization, which is detectable by a magnetic tunnel junction sensor. Iron nanowires were fabricated by electrochemical deposition, placed on top of the magnetic tunnel junction and aligned using a magnetic field. The nanowires provide a bias field causing a change of the characteristic curve of the tunnel junction. The corrosion sensor was tested in