device security lifecycle