Skip to content
AS
Alonso Sala
CRIMINAL LAWYERS
ES

Sexual Deepfakes Lawyer (AI & Sexual Offences)

Criminal defense against charges of creating or distributing pornographic montages generated with artificial intelligence.

Last updated:

Sexual deepfakes are pornographic montages generated or manipulated with artificial intelligence that superimpose a real person's face or identity onto bodies or scenes with sexual content. The spread of generative models accessible to the public has multiplied this type of content, raising significant legal challenges affecting privacy, honour, one's own image, moral integrity and, where the victims are minors, sexual indemnity. Spanish law contains no specific "sexual deepfake" offence, so prosecution is channelled through several pre-existing offences that may concur: offences against moral integrity (Art. 173 CP) for degrading treatment; offences against privacy and one's own image (Arts. 197 and 197.7 CP) where real intimate images are used or manipulated content affecting privacy is distributed; offences against honour (Arts. 205, 208 and 211 CP); child pornography (Art. 189 CP) where the victim is a minor; and threats and extortion where they are used as instruments of coercion.

Deepfakes with Minors: Virtual Pornography

Article 189 CP punishes, among other conducts, the production, distribution, display or possession of pornographic material featuring minors or persons with a disability in need of special protection, even where the material is virtual or apparent. Doctrine and case law have extended this concept to deepfakes superimposing a minor's face onto generated or adult bodies. The penalties may reach several years' imprisonment and carry all the ancillary consequences proper to offences against the sexual indemnity of minors.

Deepfakes with Adults

With adult victims, the classification is more complex and circumstance-dependent. The moral integrity offence of Article 173 CP may apply where the deepfake amounts to degrading treatment (public humiliation of sufficient gravity). Article 197.7 CP is difficult to apply directly because it requires images obtained with the affected person's consent; doctrine nonetheless debates its application where real photographs are used as a base. Offences against honour may apply where there is effective damage to reputation or standing.

Authorship, Distribution and Evidence

Authorship and distribution raise specific technical challenges. Authorship of the deepfake may be hard to establish: the creator (the person who used the tool), the distributor (the person who shared the content without necessarily creating it) and the re-poster may bear different liabilities. The defense must analyse: file metadata, the tools and AI models used, the source account, the IP address, forensic computer expert evidence and the chain of distribution.

Specific Defenses

The most relevant lines of defense include: no material authorship of the deepfake (the accused did not create the content, only received it); mistake as to the nature of the material (a belief that it was lawful content involving consenting adults); a satirical or parodic context protected by freedom of expression, where the case-law conditions are met (an evident parodic character, the absence of defamatory intent); the absence of effective distribution (mere private possession); and challenging the digital evidence and the chain of custody. We act before the Investigating Courts, the Criminal Courts, the Provincial Courts and, where complex cross-border or cyber offences are charged, the Central Investigating Courts and the National Court.

How a sexual deepfake is classified: the offence depends on the content

The legal classification shifts decisively with the nature of the image, and that distinction is the first axis of any defence. The non-consensual dissemination of a real intimate image of an adult —photographs or video that actually existed and are then revealed or passed to third parties— falls under Article 197.7 of the Criminal Code, punishable with imprisonment of three months to one year or a fine of six to twelve months, with aggravations where the victim is a partner or former partner, a minor or a person with a disability requiring special protection, or where there is a profit motive.

A different scenario is pornographic content depicting an adult that is generated entirely by artificial intelligence. Because it is not an image actually obtained from the person, its wording does not sit comfortably within Article 197.7, which is designed for real material. The conduct then tends to be channelled towards criminal insult (Articles 208 to 210), potentially the offences against moral integrity (Article 173), and, in the civil sphere, the protection of one's own image, honour and privacy under Organic Law 1/1982.

There is one area where the answer is unequivocal: where the material, even if virtual, technical or AI-generated, realistically depicts a minor in a pornographic context, Article 189 applies, and no identified real victim is required. Pinning down which category a specific item falls into determines the penalty, the competent court and the evidentiary strategy itself, which is why it is the first technical question to settle in any defence.

The consent framework after LO 10/2022 and current penalties (post LO 4/2023)

Organic Law 10/2022 merged the former abuse and assault offences into a single offence of sexual assault built on the absence of consent (Article 178): consent exists only when it is freely expressed through acts that, in the circumstances, clearly convey the person's will. Organic Law 4/2023 subsequently adjusted the penalty regime. The basic offence under Article 178.1 carries imprisonment of one to four years; where there is violence or intimidation, or the conduct is particularly degrading, Article 178.3 raises the penalty to one to five years.

Where the assault consists of carnal access by vaginal, anal or oral route, or the introduction of body parts or objects, Article 179 (rape) applies, with imprisonment of four to twelve years; where violence or intimidation is present, Article 179.2 sets the penalty at six to twelve years. The aggravating circumstances of Article 180.1 raise these ranges —for example, up to seven to fifteen years over the rape offence. These figures should always be checked against the wording in force, as this area has undergone successive reforms.

Chemical submission deserves specific mention. Article 178.2 treats as sexual assault any act carried out on a person deprived of their senses or whose will is annulled for any cause, which covers someone under the effect of drugs or substances. Where, in addition, the perpetrator deliberately administers drugs, medication or substances to annul the victim's will, the specific aggravating circumstance of Article 180.1.7 comes into play, with the corresponding increase in penalty.

Procedure, competent court and evidence

The trial court depends on the penalty in the abstract: the Criminal Court (Juzgado de lo Penal) hears cases where the penalty does not exceed five years, and the Provincial Court (Audiencia Provincial) where it does, as with rape under Article 179. Where the facts arise within a partner or former-partner relationship, the investigation falls to the Court for Violence against Women (Article 87 ter of the Organic Law on the Judiciary). In practice this conditions time limits, precautionary measures and, where appropriate, protection orders from the outset.

Evidence in these cases is demanding and multidisciplinary. The victim's testimony can sustain a conviction, but case law requires it to be assessed against the criteria of absence of subjective implausibility, credibility and persistence, and to be supported by peripheral corroboration. To this are added forensic-medical evidence, toxicology —decisive in chemical-submission cases, where prompt sampling is critical because of detection windows— and digital forensics where the conduct was committed or disseminated online, including the traceability and authenticity of the audiovisual material and possible AI manipulation.

A technical defence works on the chain of custody, the integrity of devices and metadata, the reliability of expert reports and respect for procedural safeguards in obtaining the source of evidence —without ever calling into question the dignity of the complainant. The argument focuses on facts, attribution and proof, which is where the criminal process admits adversarial debate.

Article 132.1 prescription, ancillary consequences and ways of concluding the case

Limitation periods follow Article 131 according to the penalty (five, ten, fifteen or twenty years, with no intermediate three-year tier). But for offences against sexual freedom and indemnity committed against minors, the special rule of Article 132.1 applies: the clock does not start on completion of the offence, but on the day the victim turns thirty-five, and, if they die before that age, from the date of death. This rule substantially extends the window in which the facts can be prosecuted and must be verified case by case.

A conviction for these offences carries consequences that go beyond imprisonment. Article 192 provides for supervised release after the sentence is served —five to ten years for serious offences and one to five for less serious ones—, special disqualification from professions or activities involving regular contact with minors, and entry in the Central Registry of Sex Offenders, which has long-lasting effects. Anticipating this set of consequences is part of a realistic assessment of the case.

Finally, there are ways of concluding and mitigating the case that should be weighed carefully. Reparation of the harm and confession can operate as mitigating circumstances; a guilty-plea agreement (conformidad) allows, in defined situations, an early resolution with effects on the penalty. It is also important to delimit the boundary with neighbouring offences —criminal insult, moral integrity, breach of secrecy— and with the civil and administrative planes, including possible data-protection liability where images are disseminated. Each option calls for individualised analysis verified against the rules in force.

balance

Penalties & Consequences: Sexual Deepfakes Lawyer (AI & Sexual Offences)

Type / ScenarioCriminal Penalty
Moral integrityArt. 173 CP: 6 months to 2 years' imprisonment for degrading treatment.
PrivacyArt. 197 CP: possible concurrence where private images were used.
MinorsWhere the deepfake victim is a minor: child pornography (Art. 189 CP).

* Penalties shown are indicative. The actual penalty depends on case circumstances, applicable mitigating and aggravating factors.

Sexual Offenses and Gender Violence in Spain: Legal Defense Guide

Sexual offenses in Spain are governed by Art. 178-194 of the Criminal Code, significantly reformed by Organic Law 10/2022 (the "Only Yes Means Yes" law) and its subsequent correction by LO 4/2023. Gender violence offenses — one of Spain's most prosecuted areas — are found in Art. 153-173 CP, with special aggravated penalties when the victim is an intimate partner.

Penalty Table: Sexual Offenses (Post-2023 Reform)

OffenseArticlePenalty
Sexual assault (basic)Art. 1781 – 4 years
Sexual assault with penetrationArt. 1794 – 12 years
Aggravated sexual assaultArt. 1807 – 15 years
Child sexual abuse (under 16)Art. 1832 – 15 years
Child pornography (holding)Art. 189.53 months – 1 year
Gender violence (minor assault)Art. 153.16 months – 1 year
Stalking / HarassmentArt. 172 ter3 months – 2 years

Critical Defense Strategies

Consent Analysis (Only Yes Means Yes)

Post-reform, consent must be explicit and ongoing. Defense focuses on context, prior relationship history, and how withdrawal of consent was expressed.

False Allegations Defense

False accusations are frequent in custody disputes. Challenge credibility with inconsistencies between statements, phone/message evidence, and expert psychological assessment.

Digital Evidence Review

WhatsApp messages, social media interactions, and digital footprint often contradict prosecution narratives. Comprehensive digital forensics analysis is essential.

Challenging the Expertise Reports

Psychological victim assessments used in court are frequently challenged on methodological grounds. Expert counter-reports are a cornerstone of defense.

gavel

Why Choose Us?

Need a criminal defense lawyer for this type of offense? Here's how we work:

check
No AuthorshipThe accused was not the person who created or distributed the deepfake.
check
Satire/ParodyThe content was evidently parodic, with no intent to harm.
check
Forensic Computer EvidenceForensic analysis of metadata and of the AI tools used.
workspace_premium
+15 Years of ExperienceTeam dedicated exclusively to criminal law before Spanish courts and tribunals.
support_agent
Direct AttentionYour case is handled directly by a senior lawyer of the firm.
Consult My Casearrow_forward

Do you need specialised legal assistance?

The judicial system is complex. We have the criminal-law specialisation and technical resources required to take on the defence.

call