Understanding & Preventing Advanced Persistent Threats (APTs)