A recent hacking incident at a New Jersey law firm has served as a reminder of the risks that cybercrime poses to the legal profession.