Hackers stole more than $12 million worth of cryptocurrency from the decentralized finance (DeFi) platform Cork Protocol in a Wednesday morning attack.