The City of Durham and Durham County governments were victims of a cyber ransomware attack, officials said Sunday.