BEIJING — China accused the United States of making "groundless accusations" and being "irresponsible" Friday in blaming Chinese hackers for a vast data breach that could be the biggest cyberattack in U.S. history.

Four million federal workers may have had their personal information compromised in the attack, which officials said could affect every agency of the U.S. government.