All but four school districts in South Carolina were affected by a security breach, according to the South Carolina Department of Education.