The attempted multi-million pound theft at Santander involved fitting a keyboard video mouse (KVM) device to a computer within the bank's Surrey Quays branch, the Metropolitan Police has said.
This would allow the suspects to view the desktop contents of the bank computer and take control of it from a remote location.
The Met said: "Yesterday's time-critical, dynamic response was achieved by working in partnership with the banking sector, thwarting a very significant and audacious cyber-enabled offence."
The 12 men arrested are being held at a London police station following searches at a number of addresses across the capital.
More top news
The 'sugar tax' outlined in Chancellor George Osborne's March budget will "hit the poor the hardest", critics claim.
A woman who was "dragged away" by a crocodile as her friend tried in vain to rescue her is reportedly still missing in Australia.
Police say at least one gunman armed with a high-powered rifle, began "shooting randomly" resulting in the death of a man in his 50s.