Cyber-security was one of the key topics at four days of meetings between senior Chinese and US officials that concluded on Saturday.
A statement from the White House said US national security adviser Susan Rice had a "frank and open exchange about cyber issues" in her meeting this week with Meng Jianzhu, secretary of the Central Political and Legal Affairs Commission of the Chinese Communist Party.
The US has accused Chinese hackers of attacks on U.S. computers, a charge China denies, and President Barack Obama said last month he would raise concerns about China's cyber behaviour when he meets with President Xi Jinping in Washington later in September
The Chinese delegation also had meetings with Federal Bureau of Investigation Director James Comey and representatives from the Justice, State and Treasury departments and the intelligence community, the statement said.
Meng, who is the country's domestic security chief, had reached "important consensus" with the US during his visit, according to China's official Xinhua news agency, which quoted Meng as saying the two both countries agreed it was "vital" they cooperate on fighting hacking, adding that China will punish anyone who hacks from within China's borders or steals corporate secrets.
"China's position on opposing hacking and stealing commercial secrets online is resolute," Xinhua cited Meng as saying.
The US says that Chinese hackers were involved in two breaches of security clearance applications at the government's personnel office, which exposed the personal data of more than 20 million federal employees.
The Obama administration is also considering targeted sanctions against Chinese individuals and companies for cyber-attacks against US commercial targets, according to several US officials have said.