The Justice Department indicted five Chinese military officers, alleging they hacked U.S. companies' computers to steal trade secrets, a major escalation in the fight between the two superpowers over economic espionage.

The indictment, unsealed Monday, marks the first time the U.S. government has publicly accused employees of a foreign power with cybercrimes against American firms. It also marks the most extensive formal allegations...