On April 2014 a Taiwanese Air Force major (Hau Chih-hsiung) was convicted of taking $33,000 to spy for China. He had arranged to pass on technical data for Taiwan’s E-2K AWACS to a bar owner outside his air base, who then passed the data on to a friend in China who arranged to sell it to Chinese intelligence and moved the cash payments to the bar owner and officer in Taiwan. The officer was tossed out of the air force and sent to prison for twenty years. The bar owner got 15 years and the Chinese man is subject to arrest if he ever visits Taiwan. Investigators stumbled across the Hau espionage while investigating another case at the same air base. Cases like this are becoming more common in both countries.
China and Taiwan have been spying on each other for over 60 years and it was most intense in the 1950s. In the 1960s the situation got rather chaotic in China (a major famine, the “Cultural Revolution” and so on). Espionage activity never stopped but it revived again as the Chinese economy shifted to a market model in the 1980a and Taiwan was allowed to invest in China. The Taiwanese thought this would be an intelligence gold mine, but it's hard to say for whom.
In 2006 a confident China released a lot of information about how Taiwan recruits spies inside China, as a warning to potential spies (who are sometimes executed). Taiwan was described as using the Internet, trolling chat rooms and bulletin boards, as well as emailing likely candidates, and even using online ads. Actually, the Taiwanese are simply doing openly what the Chinese have been doing clandestinely for decades. The Taiwanese were often not asking for anything that one would think of as state secrets. Mainly, they asked for unclassified magazines and documents that, because of their specialized nature, are only going to be found in China. But Taiwan always was on the alert to recruit senior, or simply well-placed officials and pay them a lot for services rendered.
This was not always easy because China is still basically a communist police state and bureaucrats can declare as espionage anything they want. As a result, if you are in China you can have the secret police on your case for anything. Chinese bureaucrats do just that and the accused often ends up in prison, or worse. So, while China feels free to collect unclassified material in foreign countries don't try and do it in China.
China has long publicized cases where Taiwanese spies are caught, and usually given long prison terms. This is not as effective a deterrent as it used to be because details of how much money the captured spies had received for their work gets out via the Internet. This makes more Chinese aware of a new way to make money easily, if a bit dangerously. But China has long been a dangerous place. Meanwhile, every few months spies are regularly arrested on both sides of the Taiwan Straits indicating that Chinese and Taiwanese spies are hard at work despite the dangers (long prison terms and, in China, execution for the worst offenders.) All this espionage is mainly a business with cash, or favors exchanged for valuable data. Some spies do it out of altruism (patriotism, anti-communism, whatever) but for most it's just business, a very dangerous business.
The large sums of cash offered for Chinese willing to spy has also attracted a lot of Chinese in the intelligence business. For example, early in 2012 China arrested a senior official of their MSS (Ministry of State Security, similar to the CIA and FBI combined). It's rare for the Chinese to admit that an officer of the MSS was working for the Americans. The last time was in 1985, when a MSS official managed to defect to the United States, making it impossible for the Chinese to cover up the loss. Taiwan has long gone after MSS employees and they taught the Americans much of what they knew and expected the Americans to share choice secrets in return. The U.S. and Taiwan have been cooperating on espionage inside China for over 60 years.
The MSS has very tight control over its key people, having learned many of their strict and harsh methods from the Cold War era Russian KGB. After the Cold War ended it became known how thorough the KGB was in trying to prevent their agents from being recruited by foreign espionage agencies. The KGB methods of monitoring their employees, especially when abroad, may seem obsessive and paranoid, but they did not stop a lot of Russian KGB agents from switching sides. The oppressive scrutiny did make life uncomfortable for many KGB employees but during the Cold War there were a lot of rewards.
The MSS is more vulnerable than the KGB because many of their best people were educated in the West, or worked there for a while. The MSS man arrested in Hong Kong in 2012 had access to most of the secret operations the MSS was involved with. This was very useful to the United States (and Taiwan), because the main job of the MSS is to keep the CCP (Chinese Communist Party) in control of China.
China has a huge global espionage operation and most of its operatives spy on neighboring countries. Taiwan is a favorite target and Taiwan spies right back. But recruiting senior officials of the MSS is considered a major achievement in the murky world of counter-espionage (spying on spies). Then again having your inside guy revealed and arrested is a major loss. Not surprisingly this incident triggered a review of security within the MSS and a closer look at key people.