Checking security flags