Morley Companies said 521,046 people were affected by a data breach that resulted from a ransomware attack.