Computer Crimes Defense in Massachusetts: Hacking, Identity Fraud, Online Harassment, and Digital Evidence

A person usually learns about a Massachusetts computer crime investigation in one of three ways. A detective calls and asks to talk about an email account, a social media post, or a series of text messages. Police officers arrive with a search warrant and take the person’s phone and laptop. In other cases, the court mails the person a notice of a clerk-magistrate hearing on an application for a criminal complaint.

Massachusetts prosecutes computer crimes, which people also call cybercrimes or internet crimes, under separate statutes in the General Laws. The statutes prohibit hacking into an account or a computer system, identity fraud, harassment and threats sent by text message or social media, sharing intimate images without consent, secret recording, and possessing or sending sexual images of children. A college student, a nurse, or an engineer with no criminal record can face one of these charges because of logins or messages made from a phone.

This page identifies the offenses that commonly involve computers, phones, and the internet, and belongs to the firm’s guide to Massachusetts criminal charges. For each offense, the page states what the Commonwealth must prove, states the sentence a judge can impose on a conviction, and links to the page on this site that explains the offense in detail.

The page then describes the search warrant rules and the evidence rules that the defense uses in these cases. Attorney Joe Serpa has practiced Massachusetts criminal defense since 1995. He defends these charges in the District Courts, the divisions of the Boston Municipal Court, and the Superior Courts.

The Start of a Computer Crime Case

A computer crime case begins with an arrest, with an application for a criminal complaint, or with a grand jury indictment. Many of these cases begin with an application, because the police collect account records for weeks or months before they identify a suspect. A police officer or a private person, such as a former partner or an employer, files the application with the clerk-magistrate’s office of a District Court or a division of the Boston Municipal Court. The firm’s page on how criminal cases begin explains each of the three beginnings.

Under G.L. c. 218, § 35A, a person who was not arrested is entitled to notice and a clerk-magistrate hearing before the clerk-magistrate decides whether to issue a misdemeanor complaint. The clerk-magistrate can issue the complaint without a hearing after finding an imminent threat of bodily injury, of the commission of a crime, or of flight. A clerk-magistrate hearing is a private proceeding held before any arraignment. If the clerk-magistrate denies the application, no complaint issues and no arraignment takes place.

Unauthorized access to a computer system, identity fraud, a first offense of criminal harassment, threats to commit a crime, and secretly photographing a nude person are misdemeanors. Stalking, secretly recording a conversation, and the offenses involving sexual images of children are felonies. For a felony application that a police officer files, the clerk-magistrate holds a hearing when the officer requests a hearing. Defense counsel can present account records, device records, and the accused person’s background to the clerk-magistrate. The firm’s clerk-magistrate hearing FAQs answer common questions about the hearing.

Unauthorized Access to a Computer System

Logging in to another person’s email, social media, cloud storage, or work account without permission can be charged as unauthorized access to a computer system under G.L. c. 266, § 120F. People commonly call the conduct hacking. The Commonwealth must prove that the defendant knowingly accessed a computer system without authorization. In the alternative, the Commonwealth can prove that the defendant gained access, knew that the access was not authorized, and failed to end the access. Under § 120F, a password requirement is notice that access is limited to authorized users.

A judge can sentence a person convicted under § 120F to up to thirty days in a house of correction, a fine of up to $1,000, or both. The Commonwealth does not have to prove that the defendant intended to commit another crime. A complaint application under § 120F can name a former partner who signed in with a remembered password, or a former employee who signed in after the job ended. The firm’s page on larceny and financial crimes covers § 120F together with the fraud statutes.

The defense of an unauthorized access charge usually addresses two questions. The first question is whether the defendant had permission to sign in, for example through a shared password, a joint account, or an employer’s written access policy. The second question is who signed in. An internet protocol address identifies an internet subscription, and several people can use the same subscription or the same device. Defense counsel obtains the login records and the device records to determine whether the Commonwealth can prove that the defendant was the person who signed in.

Two other statutes apply to similar conduct. Under G.L. c. 266, § 33A, the Commonwealth can charge a person who, with intent to defraud, obtains a paid computer service by a false statement or by charging another person’s account. A judge can sentence a person convicted under § 33A to up to two and one half years in a house of correction, a fine of up to $3,000, or both.

Federal prosecutors can also charge unauthorized access to a computer under the Computer Fraud and Abuse Act, 18 U.S.C. § 1030. In Commonwealth v. Hayes, the Appeals Court upheld convictions for unauthorized access to a computer system, identity fraud, and stalking in a case based on emails sent from other people’s accounts.

Identity Fraud and Online Fraud

Using another person’s name, account number, or password to obtain money or to harass someone can be charged as identity fraud under G.L. c. 266, § 37E. Under § 37E(b), the Commonwealth must prove that the defendant, with intent to defraud, posed as another person without that person’s express authorization. The Commonwealth must also prove that the defendant used that person’s personal identifying information to obtain money, credit, goods, services, or anything of value, or to harass another person.

The statute defines personal identifying information to include a name, an address, a telephone number, a Social Security number, a credit card number, and a computer password. Section 37E(c) prohibits obtaining another person’s identifying information, with intent to defraud, in order to pose as that person. A judge can sentence a person convicted under either subsection to up to two and one half years in a house of correction, a fine of up to $5,000, or both. The judge must also order restitution for the victim’s financial loss.

Under § 37E(e), a police officer may arrest a person without a warrant on probable cause that the person committed identity fraud. A fake social media profile in a real person’s name, an account opened with another person’s information, and a scam call made with a cloned voice can each be charged as identity fraud. The firm’s page on AI crimes in Massachusetts explains voice clone cases.

The Commonwealth can charge a person who obtains money through an online deception with larceny by false pretenses under G.L. c. 266, § 30. The cases include online marketplace sales, payment application transfers, and messages that imitate a bank or an employer. Larceny of more than $1,200 is a felony, and a judge can sentence a person convicted of that felony to up to five years in state prison. For larceny of $1,200 or less, a judge can impose up to one year in jail or a fine of up to $1,500.

Online Harassment, Stalking, and Threats

Repeated unwanted texts, emails, direct messages, or posts about a person can be charged as criminal harassment under G.L. c. 265, § 43A(a). The Commonwealth must prove a knowing pattern of conduct or series of acts on at least three separate occasions, directed at a specific person. The Commonwealth must also prove that the conduct seriously alarmed that person, that the conduct would cause a reasonable person substantial emotional distress, and that the defendant acted willfully and maliciously. Section 43A(a) expressly covers conduct by email, internet communications, and instant messages.

A judge can sentence a person convicted of a first offense of criminal harassment to up to two and one half years in a house of correction, a fine of up to $5,000, or both. In Commonwealth v. Johnson, 470 Mass. 300 (2014), the Supreme Judicial Court upheld criminal harassment convictions based on false online advertisements that listed the victims’ address and telephone number and brought strangers to their home. A charge based on online speech is subject to First Amendment limits. The firm’s criminal harassment defense page explains the elements and the defenses.

Stalking under G.L. c. 265, § 43 requires a similar pattern of conduct and adds a threat made with the intent to place the person in imminent fear of death or bodily injury. Stalking is a felony. A judge can sentence a person convicted under § 43(a) to up to five years in state prison or up to two and one half years in a house of correction. For stalking committed in violation of a 209A restraining order or another court order listed in § 43(b), the judge must impose a sentence of at least one year.

A single threatening message can be charged as threats to commit a crime under G.L. c. 275, § 2. A judge can sentence a person convicted of threats to a fine of up to $100 or to imprisonment for up to six months under § 4. Under Commonwealth v. Cruz, 495 Mass. 110 (2024), the Commonwealth must prove that the defendant was at least reckless about the threatening character of the words.

Repeated calls or electronic messages made for the sole purpose of harassing, annoying, or molesting a person can also be charged under G.L. c. 269, § 14A. A judge can sentence a person convicted under § 14A to a fine of up to $500, imprisonment for up to three months, or both.

A text message, an email, a social media tag, or a message passed through a friend can violate the no-contact provision of a court order. Violating a 209A restraining order is a crime under G.L. c. 209A, § 7, and violating a 258E harassment prevention order is a crime under G.L. c. 258E, § 9. A message to a witness in a pending case can be charged as intimidation of a witness under G.L. c. 268, § 13B. A plaintiff can offer the same messages as evidence at a civil hearing on a restraining order or a harassment prevention order.

Intimate Images, Deepfakes, and Artificial Intelligence

Sharing a nude or sexual image of another person without that person’s consent can be charged as criminal harassment under G.L. c. 265, § 43A(b). People call the offense revenge porn. The Commonwealth must prove that the defendant knowingly distributed an image of an identifiable person who is nude, partially nude, or engaged in sexual conduct. The Commonwealth must also prove that the distribution caused that person physical injury, economic injury, or substantial emotional distress.

The Commonwealth must prove the defendant’s state of mind in one of two ways. The Commonwealth can prove that the defendant intended to harm, harass, intimidate, threaten, or coerce the person depicted, or intended to cause that person substantial emotional distress. In the alternative, the Commonwealth can prove that the defendant acted with reckless disregard for the likelihood of harm, for the person’s lack of consent, and for the person’s reasonable expectation that the image would remain private.

A judge can sentence a person convicted of a first offense under § 43A(b) to up to two and one half years in a house of correction, a fine of up to $10,000, or both. For a second or subsequent offense, a judge can impose up to ten years in state prison. Section 43A(b) also applies to a deepfake, which is an image created or altered by computer so that the image falsely appears to a reasonable person to be an authentic image of the person depicted. The offense is distributing the image.

The firm’s page on revenge porn and nonconsensual intimate images explains the elements, the exclusions in the statute, the defenses, and the federal TAKE IT DOWN Act. A separate page addresses deepfake and AI-generated intimate image charges, including the evidence of who created the image and who sent the image. A high school or college student can face school discipline for the same conduct. The page on AI deepfake charges against Massachusetts students describes the criminal case and the school case together.

Hidden Cameras and Secret Recordings

Secretly photographing or recording a person who is nude or partially nude can be charged under G.L. c. 272, § 105(b). The Commonwealth must prove that the defendant willfully photographed, videotaped, or electronically surveilled the person and intended to conduct or hide the activity secretly. The Commonwealth must also prove that the person had a reasonable expectation of privacy, did not know of the recording, and did not consent. A judge can sentence a person convicted of this offense to up to two and one half years in a house of correction, a fine of up to $5,000, or both.

Section 105(b) also prohibits secretly photographing a person’s intimate parts under or around the person’s clothing, which people call upskirting. Sending a secretly recorded image to a third person is a separate felony under § 105(c). A judge can sentence a person convicted under § 105(c) to up to five years in state prison. The firm’s page on hidden camera and secret recording charges explains both offenses and the defenses.

Secretly recording the audio of a conversation or a phone call can be charged as a felony under the wiretap statute, G.L. c. 272, § 99. The statute prohibits secret recording, so the question in a criminal case is whether every participant knew about the recording. A judge can sentence a person convicted of an interception to up to five years in state prison or up to two and one half years in a house of correction, a fine of up to $10,000, or both.

In Commonwealth v. Hyde, 434 Mass. 594 (2001), the Supreme Judicial Court held that § 99 prohibits secret recording by private individuals. The firm’s page on the Massachusetts wiretap statute and secret recordings covers phone calls, home cameras, workplace recordings, and recordings offered at restraining order hearings. The page also explains the separate offense of disclosing or using a secretly recorded conversation.

Online Offenses Involving Children

Possessing or sending a sexual image of a child is a felony in Massachusetts. Enticing a child for a sexual purpose is also a felony. The firm’s sex offense defense page explains these statutes, the sentencing rules, and sex offender registration in detail. This section identifies the offenses that the police investigate through phones, computers, and online accounts.

Knowingly possessing an image of a child under eighteen who is engaged in sexual conduct or posed in a lewd exhibition is a crime under G.L. c. 272, § 29C. Section 29C covers a depiction by computer. For a first conviction under § 29C, a judge can impose up to five years in state prison, up to two and one half years in a house of correction, or a fine of $1,000 to $10,000.

Disseminating an image of a child who is nude or engaged in sexual conduct, with lascivious intent, is a crime under § 29B. Possessing the same kind of image with the intent to disseminate the image is also a crime under § 29B. For a conviction under § 29B, a judge can impose ten to twenty years in state prison or a fine of $10,000 to $50,000.

Under G.L. c. 265, § 26C, the Commonwealth must prove that the defendant enticed a child under sixteen, or a person the defendant believed to be under sixteen, to enter, exit, or remain within a vehicle, dwelling, building, or outdoor space. The Commonwealth must also prove that the defendant intended to commit one of the sex offenses or violent offenses listed in the statute.

A case under § 26C can be based on online chats or text messages, including messages exchanged with a police officer who posed as a child. A judge can sentence a person convicted under § 26C to up to five years in state prison. A separate statute, G.L. c. 265, § 26D, prohibits using electronic communication to entice a child under eighteen into prostitution or commercial sexual activity.

The Commonwealth prosecutes a person under eighteen who possesses or sends a sexual image of another minor under G.L. c. 272, § 29D in the Juvenile Court. An adjudication under § 29D does not require sex offender registration. An adult convicted under § 29B or § 29C must register with the Sex Offender Registry Board. Defense counsel examines the search warrant, the forensic examination of the device, and the evidence that the defendant, and not another user of the device or the network, knowingly possessed the file.

Phone, Computer, and Account Searches

Many computer crime prosecutions depend on what the police find on a phone, on a computer, or in the records of a company such as Google, Apple, Meta, or Snap. Police ordinarily need a search warrant to search a phone, including a phone taken during an arrest. Riley v. California, 573 U.S. 373 (2014). A judge can suppress evidence that the police obtained in violation of the Fourth Amendment or Article 14 of the Massachusetts Declaration of Rights. The firm’s page on phone, computer, and digital device searches explains each step of a search.

The defense can challenge four separate police actions. The four actions are taking the device, holding the device while seeking a warrant, obtaining the warrant, and searching within the limits of the warrant. In Commonwealth v. White, 475 Mass. 583 (2016), the Supreme Judicial Court held that a criminal charge and the defendant’s ownership of a phone did not establish probable cause to seize the phone. The warrant affidavit must state particular facts connecting the device to the alleged crime. The warrant must also describe with particularity what the police may search for.

The firm’s post on digital search warrants explains what the police must show to search a phone or a computer. A second post covers delays between the seizure of a phone and the search warrant. Police also obtain account records from companies with a search warrant under the federal Stored Communications Act, 18 U.S.C. § 2703. The page on motions to suppress describes the hearing at which a judge decides whether to suppress the evidence.

A person has no obligation to give a police officer a passcode. The Commonwealth can ask a judge to order a defendant to unlock a device. In Commonwealth v. Jones, 481 Mass. 540 (2019), the Supreme Judicial Court held that Article 12 of the Massachusetts Declaration of Rights requires the Commonwealth to prove beyond a reasonable doubt that the defendant knows the password before a judge may issue the order. The firm’s post on refusing to give police a phone passcode explains the rules for a police request and for a court order.

A person who learns of an investigation should not delete messages, photographs, or accounts. Under G.L. c. 268, § 13E, the Commonwealth can charge a person who alters, destroys, or conceals a record with intent to impair the record’s use in a court proceeding. The Commonwealth can also argue to a jury that the deletion shows consciousness of guilt. The firm’s phone and computer search FAQs answer common questions about consent, passcodes, and seized devices.

Digital Evidence and the Identity of the Sender

The Commonwealth must offer evidence that the defendant wrote a text message, an email, or a social media post before a jury may consider the message as the defendant’s statement. In Commonwealth v. Purdy, 459 Mass. 442 (2011), the Supreme Judicial Court held that the judge admits a message when the evidence would allow a reasonable jury to find, by a preponderance of the evidence, that the defendant was the author. An account name alone does not establish that the defendant was the author. Another person can create an account in the defendant’s name or use the defendant’s phone.

The defendant can still contest authorship at trial after the judge admits the message. Defense counsel examines who else had the password or the device and whether a screenshot shows the complete conversation. Defense counsel also examines whether the Commonwealth obtained records from the platform or relied on a copy supplied by the complaining witness. The firm’s page on digital evidence in Massachusetts criminal cases explains authentication, hearsay, and screenshots. The text message and phone evidence FAQs cover the same questions at clerk-magistrate hearings and restraining order hearings.

Students, Licensed Professionals, and Noncitizens

A computer crime charge can affect a person’s school enrollment, professional license, or immigration case before the criminal case ends. A college or university can open a disciplinary case against a student based on the same conduct. The firm’s page on college and university student criminal defense explains the criminal case and the school case. A licensing board can require a nurse, a teacher, a physician, or another license holder to disclose a charge or a conviction. The firm’s page on criminal charges and professional licenses explains disclosure and discipline.

A conviction or a continuance without a finding on a fraud, harassment, or stalking charge can result in removal or inadmissibility for a person who is not a United States citizen. Disclosure of the charge, and an officer’s questions at an immigration interview about the arrest or the police report, can create obstacles of their own. An immigration lawyer should review the exact question, the person’s immigration status, and the court record before the person files a petition or sits for an interview. The firm’s guide to immigration consequences of Massachusetts criminal charges explains the federal rules.

A clerk-magistrate’s denial of an application prevents a complaint and an arraignment from that application. After arraignment, a judge may continue many of the misdemeanors on this page without a finding and dismiss the case when the defendant completes the terms of the continuance. The firm’s page on CWOF, pretrial probation, and diversion explains each of those dispositions. A person whose case has ended can petition to seal the court record. The page on sealing and expunging a Massachusetts criminal record explains the waiting periods and the petition.

Attorney Serpa’s Work in Computer Crime Cases

Attorney Serpa represents people charged with unauthorized access, identity fraud, criminal harassment, stalking, threats, intimate image offenses, and recording offenses in courts across Greater Boston. He also represents plaintiffs and defendants in 209A restraining order hearings and 258E harassment prevention order hearings that involve the same messages and accounts. He appears with the client at the clerk-magistrate hearing, reviews the search warrant and the device records, and files the motions to suppress or exclude evidence.

Frequently Asked Questions About Computer Crimes in Massachusetts

What is a computer crime in Massachusetts?

A computer crime in Massachusetts is an offense committed with a computer, a phone, or an online account. The charges include unauthorized access to a computer system under G.L. c. 266, § 120F, identity fraud under G.L. c. 266, § 37E, criminal harassment under G.L. c. 265, § 43A, and secret recording under G.L. c. 272, § 99.

Is it illegal to log in to someone else’s account in Massachusetts?

Logging in to another person’s email or social media account without permission can be charged as unauthorized access to a computer system under G.L. c. 266, § 120F. A judge can sentence a person convicted under § 120F to up to thirty days in a house of correction, a fine of up to $1,000, or both. Under § 120F, a password requirement is notice that access is limited to authorized users.

Can text messages or social media posts be charged as a crime in Massachusetts?

Text messages and social media posts can be charged as criminal harassment, stalking, threats to commit a crime, or a violation of a restraining order. The Commonwealth must offer evidence that the defendant wrote each message before a jury may consider the message as the defendant’s statement.

Does a computer crime charge start with a clerk-magistrate hearing?

A misdemeanor computer crime charge against a person who was not arrested ordinarily starts with a clerk-magistrate hearing under G.L. c. 218, § 35A. Unauthorized access, identity fraud, and a first offense of criminal harassment are misdemeanors. If the clerk-magistrate denies the application, no complaint issues and no arraignment takes place.

Does a person have to give the police a phone passcode in Massachusetts?

A person has no obligation to give a police officer a passcode. A judge may order a defendant to unlock a device only after the Commonwealth proves beyond a reasonable doubt that the defendant knows the password. Commonwealth v. Jones, 481 Mass. 540 (2019).

Can the police search a phone without a warrant in Massachusetts?

Police ordinarily need a search warrant to search a phone, including a phone taken during an arrest. Riley v. California, 573 U.S. 373 (2014). A person may refuse a police request for consent to search a phone. A judge can suppress evidence that the police found in an unlawful search.

Serpa Law Office

Serpa Law Office represents people who are under investigation for a computer crime or charged with a computer crime in Massachusetts. The Boston office is at 20 Park Plaza, Suite 400A, Boston, MA 02116, and the telephone number is 617.936.0201. A person can also send a message to Attorney Serpa through the firm’s contact page.

Client Reviews

He's one of the best people I've met. I'm really appreciative of all the help I received. If you have a serious case, he'll work hard to make sure you have the best outcome. I highly recommend him. You will not be disappointed.

A.J

Mr. Serpa was very helpful with my family member ‘s case. He was able to get it dismissed quickly and easily. He is very professional and very good at what he does. I’m so glad he hired him. You will be glad too if you hire him.

Z.M.

Serpa law office was my attorney of choice for 2 seperate cases I had last year. With both situations, Joseph not only treated me great, delivered the results I was hoping for, and was extremely professional and genuine. I would definitely recommend this law office to anyone in need of legal help.

P.C.

Greater Boston Criminal Law Alerts

Missed the Massachusetts Gun Registration Deadline? What to Do Now

By Attorney Joe Serpa | Georgetown University Law Center | Massachusetts Criminal Defense Since 1995 Section 121B of G.L. c. 140 requires a Massachusetts gun owner to register each firearm through the MIRCS Unified Gun Portal, and § 121B(e) makes failure to register a crime. For guns owned before the portal opened in October 2025,…

Matthew Farwell Convicted in the Death of Sandra Birchmore: The Evidence, the Elements and the Verdict

By Attorney Joe Serpa | Georgetown University Law Center On Tuesday, November 10, 2026, a federal jury in Boston found former Stoughton police officer Matthew Farwell guilty on both counts of the superseding indictment that charged him in the death of Sandra Birchmore, according to WBUR. Count One charged him with killing a witness or…

Judge Denies Lindsay Clancy’s Double Jeopardy Motion: The November 9, 2026 Rulings

By Attorney Joe Serpa | Georgetown University Law Center On Monday, November 9, 2026, Judge William Sullivan denied Lindsay Clancy’s motion to dismiss the murder charges on double jeopardy grounds. He also denied her request for records about the holdout juror and her request to question that juror under oath. He denied the Commonwealth’s request…

Contact Us

  1. 1 Individual, Hands-On Approach
  2. 2 Winning Trial Record
  3. 3 Criminal Defense Since 1995
Fill out the contact form or call us at 617.936.0201 to schedule your free consultation.

Leave Us a Message

We Accept the Following Payment Solutions