The consensus was reached during a visit by President Xi Jinping's special envoy Meng Jianzhu, a Politburo member of the ruling-Communist Party of China, to Washington, state-run Xinhua news agency reported today.
Meng visit took place ahead of Chinese President Xi's first state visit to the US later this month, dates for which are yet to be announced.
During the visit from Wednesday to Saturday, Meng exchanged in-depth views on tackling outstanding issues of law enforcement and security, including cyber crimes, with US Secretary of State John Kerry, Secretary of the Department of Homeland Security Jeh Johnson and US National Security Advisor Susan Rice.
Stressing China's firm stand against cyber attacks and commercial cyber espionage, Meng said anyone who conducts such acts in the Chinese territory violates the laws of China and will be subject to legal liability.
China-US dialogue and cooperation on combating cybercrime serve the common interest of both countries and the international community, he said.
His comments came as reports from Washington quoted Obama as saying during the weekend that cyber attacks from China were "not acceptable", a message which he was expected to deliver to Xi during the Chinese President's visit.
"There comes a point at which we consider this a core national security threat and will treat it as such," he said.
"We have been very clear to the Chinese that there are certain practices that they are engaging in, that we know are emanating from China and are not acceptable," he said.
In the toughest message so far, Obama said states could "chose to make this [cyberattacks] an area of competition".
But, he warned, if that path was chosen, it would be a competition that "I guarantee you, we will win if we have to," media reports here quoted the US President as saying.
