Companies have long played defense against cyber attacks. With the help of ethical hackers, they're taking more proactive measures.