Since 2018, the United States has been tightening its laws to prevent its rivals from buying into its sensitive sectors – blocking investments in everything from semiconductors to telecommunications.

But the rules weren't always so strict.

In 2016, Jeff Stein, a veteran journalist covering the US intelligence community, got a tip-off: a small insurance company that specialised in selling liability insurance to FBI and CIA agents had been sold to a Chinese entity.

Someone with direct knowledge called me up and said, 'Do you know that the insurance company that insures intelligence personnel is owned by the Chinese?' he remembers. I was astonished!

In 2015, the insurer, Wright USA, had been quietly purchased by Fosun Group, a private company believed to have very close connections with China's leadership.

US concerns became immediately clear: Wright USA was privy to the personal details of many of America's top secret service agents and intelligence officials. No one in the US knew who might have access to that information now the insurer and its parent, Ironshore, were Chinese-owned.

Wright USA wasn't an isolated case. The BBC has exclusive early access to brand new data that shows how Chinese state money has been flowing into wealthy countries, buying up assets in the US, Europe, the Middle East and Australia.

In the past couple of decades, China has become the world's biggest overseas investor, giving it the potential to dominate sensitive industries, secrets and key technologies. Beijing considers the details of its foreign spending overseas – how much money it's spending and where - to be a state secret.

But on the terms of the Wright USA sale, Stein says: There was nothing illegal about it; it was in the open, so to speak. But because everything's intertwined so closely in Beijing, you're essentially giving that [information] up to Chinese intelligence.

The Chinese government was involved in the deal: fresh data seen by the BBC reveals that four Chinese state banks had provided a $1.2bn (£912m) loan, routed through the Cayman Islands, to allow Fosun to buy Wright USA.

Stein's story ran in Newsweek magazine. And there was a swift reaction in Washington: triggering an inquiry by the branch of the US Treasury that screens investments, the Committee on Foreign Investment in the United States (CFIUS). Shortly after, the company was sold again - back to Americans. It's unclear who ordered that sale.

High-level US intelligence sources confirm the Wright USA sale was one of the cases that led the first Trump administration to tighten its investment laws in 2018.

Very few could have understood at the time that this Chinese state-backed spending appears to have been part of a much bigger strategy carried out by Beijing to invest and buy assets in every continent.

For many years, we assumed that virtually all of China's money flows were going to developing countries, says Brad Parks, executive director of AidData. And so, it came as a great surprise to us when we realised that actually there were hundreds of billions of dollars going into places like the US, the UK and Germany, happening right underneath our noses.

AidData is a research lab based in Virginia that specialises in tracking how governments spend their money outside their borders. It gets its funding from governments and charitable organisations around the world and has focused on China for the past 12 years.

China's financial system allows for unique investment capabilities, with state banks directed by the government. Some investments target key industries which align with China's strategic objectives outlined in the 'Made in China 2025' initiative.

Concerns regarding Chinese investments are growing, leading to stronger regulations in multiple countries. Many governments now recognize that these investments are part of a coordinated strategy rather than individual initiatives from private companies.