By knowing how to hack, one knows how to defend. But knowing how to defend also imparts the knowledge to hack.