The two sides are talking because companies are increasingly being hacked for their corporate secrets. Last year the U.S. Department of Justice indicted five Chinese military hackers for attacking U.S. companies and earlier this week National Security Advisor Susan Rice warned the hacking "has to stop." China has denied involvement and President Xi said this week that Chinese companies are also coming under attack.
Rice will be in attendance on Thursday night with other senior U.S. government figures when Presidents Xi and Obama hold a working dinner at the White House at which hacking is likely to be high on the agenda.
"The overriding thing during the discussion will be that the exfiltration and theft of U.S. private sector IP has to stop and the U.S. government will hold the government of China responsible," said James Barnett, head of the cybersecurity practice at Washington law firm Venable and a former security chief at the Federal Communications Commission.
"Whether it is discussed or not, the veiled threat will be the possibility of bringing some type of pressure to bear, be it economic or otherwise, while at the same time dangling some carrots," he said.
Barnett said he expects the agreement to be a "statement of principles" rather than a more concrete deal that gets into the nuts and bolts of the issue, but more important is that the world's two biggest economies are starting to talk about the issue.
One of the challenges to any agreement will be attribution. Figuring out who is behind a cyberattack is notoriously difficult and governments have historically been reluctant to publicly blame another country. The DOJ indictment of the Chinese hackers last year and the laying of blame for the Sony Pictures cyberattack on North Korea represent a couple of rare examples.
Sometimes investigators do get lucky through a careless slip or find a clue in software code, but often it's difficult to distinguish between a state-sponsored attack and something else, said Terrence Gareau, chief scientist at Nexusguard, a San Francisco-based DDOS protection company.
"It's not like building nuclear weapons or launching missiles," he said. "A lot of the attacks come from the universities. When that happens, [the Chinese government] is going to point their hand and say 'it's not us'."
Attribution is further complicated by the complex nature of some attacks, which might have several groups working together or separately to target a company.
"I’ve worked on dozens of takedowns of significant systems," said Tom Patterson, vice president of global security solutions at Unisys. "The attribution game is a fool’s game. There is almost never a single group behind it."
But for all its flaws, attribution remains an important part of international law and any reaction to cyberespionage or attacks will have to rely on it to some extent.
For the time being, industry watchers expect any agreement won't lead to immediate change but they do represent a positive step forward. Companies shouldn't let their guard down, said Patterson.
"Our strong recommendation is that companies that make up the world’s critical infrastructure do not look at these talks as protecting them," he said.
Any agreement between the two is expected to be announced on Friday.