DeepSeek-R1 AI Model Generates Insecure Code on Sensitive CCP Topics
Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Nov 28, 2025

Recent research by CrowdStrike has revealed that the Chinese-developed DeepSeek-R1 large language model (LLM) is more likely to generate insecure code when prompted with topics considered sensitive to the Chinese Communist Party (CCP). In controlled tests, DeepSeek-R1 produced code with vulnerabilities in 19% of baseline prompts, a rate comparable to Western open source models. However, when prompts included contextual modifiers or geopolitical triggers—such as references to the Falun Gong, Uyghurs, or industrial control systems in Tibet—the rate of insecure code generation increased to 27%. The model also exhibited a high refusal rate, declining to assist with requests involving sensitive groups up to 45% of the time, and sometimes expressed ethical concerns about such requests.
These findings highlight a potential security risk in using AI models that may be influenced by political or ethical constraints, especially in contexts involving sensitive geopolitical issues. The research underscores the importance of thoroughly evaluating AI-generated code, particularly when using models developed in environments with strict information controls, as these models may inadvertently introduce vulnerabilities or refuse to provide assistance based on the subject matter of the prompt.
Why it matters
Impact assessment
CrowdStrike's findings indicate a software supply-chain and secure development risk for organizations using DeepSeek-R1 to generate code, especially government, critical infrastructure, and engineering teams that may prompt on geopolitically sensitive topics. The immediate impact is increased likelihood of vulnerable code and inconsistent model behavior rather than direct compromise; exposure appears broad for users of this model but there is no reported in-the-wild exploitation tied to this issue.
Supporting details
- Affected product: DeepSeek-R1 large language model used for code generation.
- Affected users: developers, security engineering teams, government users, and organizations using AI-assisted coding workflows.
- Higher-risk contexts mentioned: prompts involving CCP-sensitive topics such as Falun Gong, Uyghurs, Tibet, and industrial control systems in Tibet.
- Business impact: increased probability of introducing insecure code into applications, delayed development due to refusals, and governance/compliance concerns for public-sector use.
- Scope: potentially widespread wherever DeepSeek-R1 is used for coding assistance; not described as a targeted intrusion campaign.
- Exploitation status: no known incidents of active exploitation or compromise were reported in the referenced material.
- Policy impact: Australia, South Korea, and Taiwan have already banned DeepSeek models from government use; U.S. political scrutiny is increasing.


