The answer is: skimmer
Skimmer is an additional card reader that is placed on top of the ATM's Card slot. When you put your ATM card into that slot, the skimmer would read the credit card number that exist on the card. The skimmer usually accompanied by a small hidden camera that can capture the movement of your fingers on the ATM keypad. Having both would make it possible for the thieves to take the money from your account.