Security measures in migration