Ex-CIA officer Kevin Mallory was convicted Friday of selling U.S. government secrets to China, a major win for a Justice Department as it combats what it says are evolving Chinese espionage threats.

A federal jury in Virginia convicted Mr. Mallory, after less than eight hours of deliberation, on all four counts he faced, including delivering defense information to aid a foreign government and lying to investigators.

“It’s...