The Better way to reduce this Crime is to shift all ATM machines inside the Bank premises, rather than having an independent stand alone outlet.

Those needing money at odd hours, can always visit Malls for withdrawals.
Being in the public stare, hackers will be wary of the consequences and desist from such criminal acts.