It was almost a perfect getaway, but a former Apple employee was captured at the airport just before boarding a flight to China, after apparently stealing some of the tech giant's secret plans for self-driving cars.
The ex-employee, Xiaolang Zhang, had been a person of interest, already interviewed several times by Apple, and also by the Federal Bureau of Investigation.
When he booked a last-minute flight to China on July 7, Zhang was arrested at the San Jose International Airport by FBI agents. He has been charged with theft of trade secrets, according to a criminal complaint filed Monday in federal court in San Jose.
The intrigue began months ago. Hired in December 2015 to work on Apple's project to develop hardware and software for self-driving or autonomous vehicles, Zhang took paternity leave during April and traveled with his family to China, according to the complaint.
Upon his return on April 30, Zhang told his immediate superior he was resigning to move back to China to be closer to his mother, who was in poor health. Zhang also said he planned to work for XMotors, a Chinese autonomous and electric vehicle startup, which has offices in Silicon Valley.
That set off some alarm bells at Apple, which asked Zhang to turn in two iPhones and a MacBook and then the security team began reviewing his network activity, the filing says.
Apple's investigation found that Zhang on April 28 and 29 had downloaded confidential technical documents about self driving car prototypes, which were subsequently downloaded onto his wife's laptop, authorities say.
Surveillance footage and badge swipe records also found that Zhang had entered Apple's autonomous vehicle labs on April 28 and left with a keyboard, some cables and a large box, the complaint charges. This activity took place at a time when he was on paternity leave, which is against company policy.
During another interview at Apple on May 2, Zhang admitted to seeking a job with XMotors while on staff at Apple. Zhang said he had downloaded the data to study it on his own and admitted to being shown a proprietary chip by Apple colleagues during his April 28 visit.
After the interview, Zhang retrieved and brought to Apple a Linux server and circuit boards he had taken from the lab, and his wife’s laptop, which he denied forwarding any data from.
Apple informed the FBI about the data taken, which included a 25-page document containing electrical schematics for a circuit board used in Apple’s proprietary self-driving project.
During an interview with the FBI on June 27, Zhang admitted to everything he had told Apple. When the agency learned that Zhang planned to fly to Beijing, with a final destination of Hangzhou, China on Hainan Airlines, the FBI apprehended him at the airport as he passed through a security checkpoint, the complaint says.
In a statement to USA TODAY, Apple said the company "takes confidentiality and the protection of our intellectual property very seriously. We’re working with authorities on this matter and will do everything possible to make sure this individual and any other individuals involved are held accountable for their actions.”
XMotors said it has not gotten any trade secrets Zhang may have taken from Apple and follows the laws of both countries, taking the protection of intellectual property rights seriously, company spokeswoman Isabel Jiang told Bloomberg.
Follow USA TODAY reporter Mike Snider on Twitter: @MikeSnider.