Correct me if I'm wrong, but I doubt ATMs are connected directly to the internet.
A lot of the machines I worked on in remote locations (in highrise offices away from bank locations) were hooked up through the building's wifi via a wireless router sitting unsecured on top of the machine, just out of sight. I mean, you have easy physical access to the connections in that case.