This is yet another skimming attack for ATM’s. The weaknesses of logical security in these devices (no card encryption prior to transmission) are being exploited by the weaknesses in physical security. A basic daily inspection of these ATM’s could remedy this problem, but employees are not trained or simply do not care.
http://krebsonsecurity.com/2016/02/skimmers-hijack-atm-network-cables/