SALEM — A phishing scheme that successfully compromised 2 million emails from the Oregon Department of Human Services accounts targeted more than 400 accounts at two major state agencies.

Nine employees in four units of Human Services departments inadvertently gave hackers access to their accounts, said agency spokesman Robert Oakes.