An ICD is a small device used to treat certain dangerous heart rhythm problems. It has a generator with 1 or more wires (leads) that go into the heart.