The Linwei Ding case: what catching a departing engineer takes
Read from DOJ records, the Google AI trade secrets case shows why departing-employee theft is caught in sequence and context, not by one DLP rule.
On this page7 sections
A departing employee’s data theft is caught before the last day by reading months of ordinary activity in sequence, joined to business context: the person’s role, their outside affiliations, their travel and the moment they resign. No single upload, download or file conversion establishes intent on its own. The case against former Google engineer Linwei Ding shows the pattern: according to the Department of Justice, the uploads ran for about a year across everyday tools, and they read as theft only alongside the resignation, a badge scan that allegedly placed him in the office while he was abroad, and, as the indictment alleged, a role at a second company kept secret from Google.
What the court record shows
In January 2026, a federal jury in San Francisco convicted Linwei Ding on seven counts of economic espionage and seven counts of theft of trade secrets (opens in a new tab), after an 11-day trial. According to the evidence presented at trial, between approximately May 2022 and April 2023, while a Google employee, Ding took more than two thousand pages of confidential information containing Google’s AI trade secrets from Google’s network and uploaded them to his personal Google Cloud account. In December 2023, less than two weeks before he resigned, he downloaded the stolen trade secrets to his own personal computer.
The material, the jury found (opens in a new tab), covered the hardware and software that let Google’s supercomputing data centers train and serve large AI models, including its Tensor Processing Unit chips and systems, its GPU systems and its custom SmartNIC.
The case did not end at the verdict. KQED reported that the judge vacated the espionage conviction in August 2026 (opens in a new tab), leaving the trade-secret counts, and that Ding was sentenced to just under a year in prison, with two years of supervised release, more than $189,000 in restitution and a $25,000 fine. According to the same report, the judge called the theft a “systematic, brazen effort to steal Google’s property.” The case, with every source, is in the Insider Risk case tracker beside other public insider cases.
How the files left, as alleged
The March 2024 indictment described the method. These are allegations from the Justice Department’s announcement of the charges (opens in a new tab), not findings:
- Google hired Ding as a software engineer in 2019, and his work on the software in its supercomputing data centers gave him access to the confidential information at issue.
- On May 21, 2022, he allegedly began uploading trade secrets to a personal Google Cloud account, and continued periodic uploads until May 2, 2023, by which time he had allegedly uploaded more than 500 unique files.
- He allegedly copied data from Google source files into the Apple Notes application on his Google-issued MacBook, converted the notes into PDF files and uploaded them from the Google network to a separate account. By doing so, the indictment alleged, he evaded detection by Google’s data loss prevention systems.
A superseding indictment in February 2025 (opens in a new tab) raised the count, alleging more than 1,000 unique files uploaded between approximately May 2022 and May 2023. The figures differ by charging document and by what was counted (files or pages), so each is reported here with its source.
Every tool in that chain is ordinary. A note-taking app on a company laptop, a PDF export and a cloud storage account are used by engineers every day. The alleged evasion worked because each step, taken alone, looked like normal work.
What the employer could see, and what was hidden
The case rests on two kinds of evidence, and the difference matters for detection. Some signals sat in the employer’s own systems. Others were concealed, and surfaced only when investigators built the case.
Signals in the employer’s own systems, according to the Justice Department:
- A software engineer with access to confidential data center hardware and software information, hired in 2019 (opens in a new tab).
- Uploads from the corporate network to a personal Google Cloud account over about a year, and the alleged conversion of copied notes to PDFs, described above.
- In December 2023, the indictment alleged, another Google employee scanned his access badge at a Google building, so that he appeared to be working from his U.S. office when he was in China (opens in a new tab).
- Also in December 2023, according to trial evidence, a download of the stolen files to his personal computer, less than two weeks before he resigned (opens in a new tab).
Context that was hidden from Google. The indictment alleged (opens in a new tab) that Ding was secretly affiliating himself with companies based in China:
- On or about June 13, 2022, about three weeks after the uploads allegedly began, he received emails from the CEO of an early-stage technology company based in China indicating he had been offered the role of Chief Technology Officer.
- He traveled to China on October 29, 2022, and stayed until March 25, 2023, taking part in investor meetings where potential investors were told he was the company’s CTO and owned 20% of its stock.
- By no later than May 30, 2023, unknown to Google, he had founded his own AI and machine learning company and was acting as its CEO.
- He traveled to Beijing to present that company at an investor conference on November 24, 2023.
The verdict release (opens in a new tab) adds that in statements to potential investors, Ding claimed he could build an AI supercomputer by copying and modifying Google’s technology.
The hidden context explains the case, but an employer cannot count on seeing it. What the employer can act on is the visible pattern: a year of uploads to a personal account, content changed in format on the way out, a presence record that does not match other activity, and a large download to a personal machine shortly before a resignation. Taken one at a time, none of those is proof. Read together, in order, they are a case to open before the last day.
Why one alert would not have established intent
Detection built around single events fails in this case at every step:
- The uploads were spread out. Periodic uploads over roughly a year look like a working pattern, not a spike. A volume threshold set for one day or one week would see nothing unusual.
- The content was transformed. Pasting into a notes app and exporting to PDF changes what a content inspection engine sees. According to the indictment, that is how the DLP systems were evaded.
- The destination was familiar. A Google Cloud account at Google is not an exotic exfiltration channel. What matters is whose account it is, and that question needs identity context, not a domain blocklist.
- The strongest context was hidden. According to the indictment, the CTO offer, the equity stake, the investor meetings and the new company were all kept from Google. The visible pattern has to carry the case without them.
- The presence record was manipulated. The alleged badge scan made the physical access log say the opposite of the truth. Only a reading that compares physical access with other activity can surface that contradiction.
An alert on any one of these points would have produced an ambiguous signal for an analyst to triage against everything else in the queue. Intent appears when the events are read together, in order, with the business context alongside. Why rule-based and anomaly tools struggle with this kind of sequence is the subject of the eBook What DLP and UEBA can’t see.
What catching it before the last day takes
The lesson for a departing employee data theft program is about scope and time, not one more rule:
- Start before the resignation. Trial evidence (opens in a new tab) put the end of the uploads about eight months before the final download. A program that reviews only the notice period starts too late. Treat a resignation as a reason to reread the months before it.
- Join business context to activity. Role, access level, the resignation, leave and travel records and any declared outside work turn neutral actions into a story. A malicious insider rarely declares a second employer, so the context an organization does hold has to be read alongside every action.
- Follow the data through transformations. Watch for content moving from sensitive repositories into personal tools, changing format and then leaving for personal destinations, rather than matching a file against a pattern at one point.
- Reconcile presence with activity. Badge records, network locations and working hours that disagree with each other are worth an investigator’s time.
- Preserve evidence and bring in HR and Legal early. If the sequence holds up, the case has to be ready before access ends, not reconstructed after.
This is what an Insider Risk management program is for: turning many weak, ordinary signals into a judgment about one person’s intent, early enough to act. For standing one up, see Phil Venables’s guide on how to build an Insider Risk program.
Where Above fits
Above investigates people and AI agents. Its AI investigators work every insider and AI-agent risk to a verdict and hand the security team a finished case, with false positives below 5%.
Frequently asked questions
How do you detect a departing employee taking data before they leave?
Read the person's activity over months, not just the notice period, and join it to business context: role, outside affiliations, travel and the resignation itself. Uploads to personal cloud accounts, files converted to new formats and downloads to personal devices matter most in sequence. One alert rarely shows intent; the order of events usually does.
How did Linwei Ding steal trade secrets from Google?
According to trial evidence, the former Google engineer uploaded more than two thousand pages of confidential AI material to a personal Google Cloud account between May 2022 and April 2023. The indictment alleged he copied data from source files into Apple Notes and converted the notes to PDFs, evading Google's data loss prevention, then downloaded the files before resigning.
What sentence did Linwei Ding get?
KQED reported in September 2026 that Linwei Ding was sentenced to just under a year in prison, two years of supervised release, more than $189,000 in restitution and a $25,000 fine. A jury had convicted him of theft of trade secrets and economic espionage, but the judge later vacated the espionage counts.
Can DLP stop employees from stealing data before they leave?
DLP stops what its rules recognize, and a careful insider changes the data until no rule matches. In the Linwei Ding case, the indictment alleged that converting copied notes to PDFs evaded Google's data loss prevention. Catching that takes reading behavior over time, in context, rather than waiting for one rule to fire.
How do companies catch a departing engineer uploading source code?
They look at uploads to personal accounts over months, not days, and read them with the engineer's role and resignation. In the Linwei Ding case, trial evidence placed uploads to a personal cloud account between May 2022 and April 2023, and a final download under two weeks before he resigned. Reviewing only the notice period misses most of it.
About the author

The Above team
The Above team builds Insider Risk management for humans and AI agents. Its AI investigators work every insider and AI-agent risk to a verdict and hand the security team a finished case.







