Is It Illegal to Hack Someone? Federal and State Penalties

Yes, it is illegal to hack someone. Accessing another person’s computer, phone, email, or online account without permission is a federal crime under the Computer Fraud and Abuse Act, and every state has its own computer crime statute on top of that.1NCSL. Computer Crime Statutes Penalties run from up to a year in jail for a basic break-in to as much as 20 years in federal prison for the most serious offenses, with fines reaching $250,000. The person you hacked can also sue you in civil court.

What the Law Treats as Hacking

Federal law doesn’t use the word “hacking.” It draws the line around two separate ideas: unauthorized access, and exceeding authorized access.

Unauthorized access is the obvious case. You have no permission to use a system and you get in anyway, whether by guessing a password, exploiting a software flaw, or using malware. Breaking in is the crime. You don’t have to steal anything or cause damage for it to count.

Exceeding authorized access covers people who are allowed into a system but then open files or databases that are off-limits to them. The statute defines it as using authorized access to obtain or alter information the person is not entitled to obtain or alter.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers An employee with sales database access who breaks into HR payroll fits this category.

One important limit: in 2021 the Supreme Court held in Van Buren v. United States that using access you legitimately have for an improper purpose is not “exceeding authorized access” under the CFAA. The provision reaches people who go into areas of a computer that are off-limits to them, not people who look at information they’re allowed to see for the wrong reason.3Supreme Court of the United States. Van Buren v United States A police officer running a license plate check for personal reasons may violate department policy, but that alone isn’t a federal hacking crime if the officer was authorized to use the database.

Prison Time and Fines Under Federal Law

The CFAA is tiered. Where a case lands depends on what was accessed, why, how much harm resulted, and whether the person has a prior conviction. Under the general federal sentencing statute, felony convictions can carry fines up to $250,000 for individuals, and misdemeanors up to $100,000.4Office of the Law Revision Counsel. 18 US Code 3571 – Sentence of Fine

Up to One Year

Breaking into a protected computer and obtaining information, trespassing on a government computer, or trafficking in passwords each carry up to one year in prison for a first offense when no aggravating factors are present.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers This is the floor: get in, look around, don’t take anything valuable, don’t break anything.

Up to Five Years

The maximum jumps to five years when the hacking was done for financial gain, was committed to further another crime, or the information obtained is worth more than $5,000. Computer fraud and extortion involving threats to a computer also sit in the five-year tier for a first offense.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers

Up to Ten Years

Intentional damage to a protected computer carries up to 10 years for a first offense when the attack causes financial losses over $5,000, physical injury, threats to public safety, damage to government systems, or damage affecting 10 or more protected computers. Obtaining national security information also carries up to 10 years for a first offense.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers

Repeat Offenders

A prior CFAA conviction roughly doubles the maximum across every category. Basic unauthorized access goes from one year to 10. Computer fraud and extortion rise from five to 10. Intentional damage and national security offenses both jump to 20 years.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers

Charges Prosecutors Stack on Top

CFAA charges are rarely the only ones filed. What the hacker did with the access they gained usually triggers other federal statutes, and they run alongside the CFAA count.

Aggravated Identity Theft

If the hacking involved stealing someone’s personal identifying information, prosecutors frequently add this charge. It carries a mandatory two-year prison sentence that must run consecutively, tacked on after whatever sentence the underlying CFAA conviction produces. A judge cannot reduce it or let it overlap.5Office of the Law Revision Counsel. 18 USC 1028A Aggravated Identity Theft This is the add-on that lengthens the most actual prison time in many hacking cases.

Stored Communications Act

Breaking into a system that stores electronic communications, such as an email server, a cloud storage account, or a messaging service, is a separate crime. Hacking an email account can be both a CFAA violation and a Stored Communications Act violation at once. First-offense penalties run from up to one year in prison for basic unauthorized access up to five years when the intrusion was for commercial gain, to cause damage, or to further another crime. Repeat offenders face up to 10 years.6Office of the Law Revision Counsel. 18 USC 2701 Unlawful Access to Stored Communications

Wiretap Act

Capturing someone’s communications while they’re moving across a network, rather than reading them off a server after the fact, falls under the federal Wiretap Act instead. The difference is timing: live traffic versus stored data. A packet sniffer intercepting network traffic is Wiretap Act territory; breaking into a mail server to read saved messages is Stored Communications Act territory.

State Charges Are a Separate Problem

Every state, plus Puerto Rico and the U.S. Virgin Islands, has its own computer crime statute.1NCSL. Computer Crime Statutes State laws often address ransomware, phishing, denial-of-service attacks, and spyware more directly than the CFAA does, and state prosecutors can bring charges whether or not federal authorities are involved. Felony-level state penalties typically carry maximum fines in the range of $5,000 to $10,000, though specifics vary. A single act of hacking can violate both federal and state law, and a person can be prosecuted under both without double jeopardy problems, because federal and state governments are treated as separate sovereigns.

Getting Sued by the Victim

Prison and fines aren’t the only exposure. The CFAA lets hacking victims sue in federal court to recover their losses.

To bring a civil claim, the victim has to show at least $5,000 in damage or loss within a one-year period. The statute defines “loss” broadly: the cost of investigating the intrusion, assessing what was compromised, restoring data and systems, and revenue lost to service interruptions all count.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers For most businesses, forensics work and system rebuilding alone clear that threshold. Courts can also order the hacker to stop.

The evidence bar is far lower than in a criminal case. A criminal conviction requires proof beyond a reasonable doubt. A civil plaintiff only has to show it’s more likely than not that the hacking happened and caused the claimed losses. Someone can be acquitted of criminal charges and still lose a civil suit over the same conduct.

The civil clock is short. A victim has two years from either the date of the hacking or the date they discovered the damage, whichever is later.2Office of the Law Revision Counsel. 18 USC 1030 Fraud and Related Activity in Connection With Computers The discovery rule matters because many intrusions go undetected for months. On the criminal side, the government generally has five years from the date of the offense to file charges.7Office of the Law Revision Counsel. 18 US Code 3282 – Offenses Not Capital

Security Research Is a Narrow Exception

Not everyone probing a system is a criminal. Legitimate security researchers test for flaws so they can be fixed, and in 2022 the Department of Justice issued a charging policy telling federal prosecutors not to bring CFAA cases against people doing good-faith security research. The policy defines that as accessing a computer solely to test, investigate, or correct a security flaw, in a way designed to avoid harm, where the findings are used primarily to improve the security of the systems or their users. Federal prosecutors must consult with the Criminal Division’s Computer Crime and Intellectual Property Section before bringing any CFAA case.8United States Department of Justice. Department of Justice Announces New Policy for Charging Cases Under the Computer Fraud and Abuse Act

The limits of that policy matter. It’s a prosecutorial guideline, not a change in the law. It doesn’t block private civil lawsuits, and it doesn’t bind state prosecutors. Calling bad-faith activity “research” doesn’t help either; the DOJ specifically noted that finding vulnerabilities to extort their owners isn’t protected.8United States Department of Justice. Department of Justice Announces New Policy for Charging Cases Under the Computer Fraud and Abuse Act Working inside an authorized bug bounty program with written permission is the safer route.

If You’ve Been Hacked

The FBI is the lead federal agency for cyberattacks. It runs cyber squads out of each of its 56 field offices and operates CyWatch, a 24/7 operations center. For an ongoing attack or threat, file at tips.fbi.gov or contact your local field office directly. For a cybercrime or fraud you’ve already discovered, file with the Internet Crime Complaint Center (IC3), whose Recovery Asset Team can help freeze funds in financial theft cases.9Federal Bureau of Investigation. Cyber Reporting early matters for the investigation and for preserving the two-year window to sue.