An adaptive defense mechanism to prevent advanced persistent threats | Synapse