Quick summary
California Penal Code 502, the Comprehensive Computer Data Access and Fraud Act, makes it a crime to knowingly access a computer, computer system, network or data without permission, or to alter, copy, damage, delete or misuse data you get that way.
- Penalties: Depending on what you did, it can be an infraction, a misdemeanor (up to 1 year in county jail) or a felony (16 months, 2 or 3 years in county jail).
- What the prosecutor must prove: That you acted knowingly and without permission, and did one of the acts the statute lists.
- Defenses: Common defenses include consent, lack of knowledge, no intent to defraud, and acts done within the scope of your job.
- Example: Marsha guesses her husband’s work email password and reads his messages. That is unauthorized access under PC 502, even though she didn’t change anything.
Some of the acts that violate PC 502(c) include:
- taking or copying data from a computer, computer system or network without permission,
- introducing a computer virus or other “computer contaminant” into a computer or network, and
- altering or damaging data or a computer system to carry out a scheme to defraud or to wrongfully get money, property or data.1
The full list of acts in subdivision (c) is quoted in the legal references at the end of this page.
Defenses
You can fight a charge under this statute with a legal defense. Common defenses include:
- no knowledge,
- consent to access,
- acting within the scope of your job, and/or
- no fraud.
Penalties
The penalties depend on which part of PC 502(c) you are accused of violating and whether anyone was harmed. Many violations are wobblers, meaning they can be charged as either:
- a misdemeanor, punishable by up to 1 year in county jail, or
- a felony, punishable by 16 months, 2 or 3 years in county jail.
Some first offenses that cause no injury, such as simply accessing a computer without permission, are only infractions with a fine of up to $1,000.2
Instead of jail, a judge can grant either:
In this article, our California criminal defense lawyers answer 7 common questions about Penal Code 502:
- 1. Elements of the Crime
- 2. Defenses
- 3. Penalties
- 4. Deportation
- 5. Expungements
- 6. Gun Rights
- 7. Related Offenses
1. Elements of the Crime
In California, “unauthorized computer access” under PC 502 means knowingly accessing a computer, computer system, network, data or software without permission. The law also punishes knowingly using that access to:
- alter, damage, delete or destroy data or programs,
- take or copy data,
- carry out a scheme to defraud, deceive or extort, or
- wrongfully get money, property or data.3
PC 502 also makes it a crime to knowingly help someone else get access to a computer, computer system or network in violation of the statute.4 In each case, you are guilty only if you acted knowingly and without permission.
Example: Marsha suspects her husband Dave is having an affair and is emailing the other woman from his work account. After a few tries, she guesses his password, logs in and reads his emails. Marsha knowingly accessed his employer’s network without permission, so she can be charged under PC 502.
Civil Lawsuits
Unauthorized computer access is not only a crime in California. It can also lead to a civil lawsuit by the owner or lessee of the computer, network, program or data. To win, the plaintiff must prove:
- The plaintiff owned or leased the computer, network, program or data.
- You knowingly accessed it without the plaintiff’s permission and did one of the acts listed in PC 502(c).
- The plaintiff was harmed.
- Your conduct was a substantial factor in causing the harm.5
If you lose, you may have to pay the plaintiff’s compensatory damages (including the cost of checking whether data was altered or deleted) and reasonable attorney’s fees. Punitive damages are possible for a willful violation if the plaintiff proves oppression, fraud or malice by clear and convincing evidence. A civil suit must generally be filed within 3 years of the act or of the discovery of the damage, whichever is later.6
2. Defenses
In our experience defending people charged with computer crimes, the following defenses can be effective with prosecutors, judges and juries in getting PC 502 charges reduced or dismissed.
You Had No Knowledge of What You Were Doing
You are guilty under this statute only if you acted knowingly. So a defense is to show that you didn’t know you were getting into a computer or network you weren’t allowed to use. For example, you may have connected to an open network or account by mistake.
You Had Consent to Access the Computer
You are guilty only if you acted without permission. So it is a defense to show you had consent to access the computer or data. The consent must come from someone with authority to give it.
You Were Doing Your Job
California law says PC 502(c) doesn’t apply to acts done within the scope of lawful employment, meaning acts reasonably necessary to do your work assignment.7
You Did Not Act Fraudulently
Some parts of PC 502 require that you accessed a computer to defraud, deceive or extort someone, or to wrongfully get money, property or data. “To defraud” means to deceive or trick someone to gain something. If you are charged under one of those parts, it is a defense to show that:
- you may have accessed a computer without permission, but
- you did so without any intent to defraud.
For example, you may have been playing a prank with no intent to gain anything.
3. Penalties
In California, the penalties for PC 502 depend on which act you are convicted of:8
- Fraud, taking data, damaging data or disrupting service (PC 502(c)(1), (2), (4), (5), (10), (11) and (12)): a wobbler. As a misdemeanor, up to 1 year in county jail and/or a fine of up to $5,000. As a felony, 16 months, 2 or 3 years in county jail and a fine of up to $10,000.
- Using computer services without permission (PC 502(c)(3)): a first violation with no injury and services worth $950 or less is a misdemeanor (up to 1 year and/or $5,000). Larger losses, injury or repeat offenses can be charged as a felony.
- Unauthorized access or helping someone get access (PC 502(c)(6), (7) and (13)): a first violation with no injury is an infraction with a fine of up to $1,000. Repeat offenses or losses of $5,000 or less are misdemeanors; losses over $5,000 can be charged as a felony.
- Introducing a virus or other contaminant (PC 502(c)(8) and (14)): a first violation with no injury is a misdemeanor (up to 1 year and/or $5,000). Injury or a repeat offense can bring a fine of up to $10,000 and felony jail time.
- Misusing someone’s domain name or profile in emails or posts (PC 502(c)(9)): a first violation with no injury is an infraction with a fine of up to $1,000.
4. Deportation
Many PC 502 convictions don’t cause immigration problems on their own. But some California crimes can lead to a non-citizen being:
- deported, or
- marked as inadmissible.
Examples are crimes involving moral turpitude and aggravated felonies. A PC 502 conviction that involves fraud or theft is more likely to be treated as one of these, so a non-citizen should talk to a lawyer before taking any plea.
5. Expungements
You may be able to get an expungement of a PC 502 conviction in California. If you were granted probation, you can usually apply once you complete it. A judge may grant relief even if you violated a probation term, if it is in the interests of justice. If you served a felony sentence in county jail, a separate law lets you apply after you complete your sentence.9
6. Gun Rights
A felony conviction under PC 502 means you can no longer own or possess a gun in California.10 A misdemeanor PC 502 conviction is not on the state’s list of misdemeanors that carry a 10-year firearm ban.11
7. Related Offenses
- Penal Code 484e-484j PC – Credit card fraud
- Penal Code 487 PC – Grand Theft
- Penal Code 530.5 PC – Identity Theft
If you are under investigation or charged with a computer crime, our California criminal defense lawyers can review how the access happened and whether you had permission. Call or contact us for a free consultation.
Legal references:
- California Penal Code 502(c) PC. Text of subdivision (c) (as of November 2026; section last amended by Stats. 2019, ch. 16): “(c) Except as provided in subdivision (h), any person who commits any of the following acts is guilty of a public offense: (1) Knowingly accesses and without permission alters, damages, deletes, destroys, or otherwise uses any data, computer, computer system, or computer network in order to either (A) devise or execute any scheme or artifice to defraud, deceive, or extort, or (B) wrongfully control or obtain money, property, or data. (2) Knowingly accesses and without permission takes, copies, or makes use of any data from a computer, computer system, or computer network, or takes or copies any supporting documentation, whether existing or residing internal or external to a computer, computer system, or computer network. (3) Knowingly and without permission uses or causes to be used computer services. (4) Knowingly accesses and without permission adds, alters, damages, deletes, or destroys any data, computer software, or computer programs which reside or exist internal or external to a computer, computer system, or computer network. (5) Knowingly and without permission disrupts or causes the disruption of computer services or denies or causes the denial of computer services to an authorized user of a computer, computer system, or computer network. (6) Knowingly and without permission provides or assists in providing a means of accessing a computer, computer system, or computer network in violation of this section. (7) Knowingly and without permission accesses or causes to be accessed any computer, computer system, or computer network. (8) Knowingly introduces any computer contaminant into any computer, computer system, or computer network. (9) Knowingly and without permission uses the internet domain name or profile of another individual, corporation, or entity in connection with the sending of one or more electronic mail messages or posts and thereby damages or causes damage to a computer, computer data, computer system, or computer network. (10) Knowingly and without permission disrupts or causes the disruption of government computer services or denies or causes the denial of government computer services to an authorized user of a government computer, computer system, or computer network. (11) Knowingly accesses and without permission adds, alters, damages, deletes, or destroys any data, computer software, or computer programs which reside or exist internal or external to a public safety infrastructure computer system computer, computer system, or computer network. (12) Knowingly and without permission disrupts or causes the disruption of public safety infrastructure computer system computer services or denies or causes the denial of computer services to an authorized user of a public safety infrastructure computer system computer, computer system, or computer network. (13) Knowingly and without permission provides or assists in providing a means of accessing a computer, computer system, or public safety infrastructure computer system computer, computer system, or computer network in violation of this section. (14) Knowingly introduces any computer contaminant into any public safety infrastructure computer system computer, computer system, or computer network.”
- California Penal Code 502(d) PC; Penal Code 1170(h) PC.
- California Penal Code 502(c)(1), (2), (4) and (7) PC (see note 1 above).
- California Penal Code 502(c)(6) PC (see note 1 above).
- CACI No. 1812, Comprehensive Computer Data Access and Fraud Act – Essential Factual Elements (Pen. Code, § 502); Penal Code 502(e)(1) PC.
- California Penal Code 502(e)(1), (2), (4) and (5) PC.
- California Penal Code 502(h)(1) PC: “Subdivision (c) does not apply to punish any acts which are committed by a person within the scope of lawful employment. For purposes of this section, a person acts within the scope of employment when the person performs acts which are reasonably necessary to the performance of their work assignment.”
- California Penal Code 502(d)(1)-(5) PC.
- California Penal Code 1203.4 PC; Penal Code 1203.41 PC.
- California Penal Code 29800 PC.
- California Penal Code 29805 PC.