Skip to content
LawMatch

Is it illegal to get into someone's social media, email or phone without permission?

Yes. Since 1 December 2021, intentionally getting into someone else's phone, email or social media account without lawful authority has been the crime of unlawful access under section 2 of the Cybercrimes Act, with up to five years' imprisonment. Using their password to do it, installing spyware, reading their messages in transit, or changing or deleting their data are further offences with up to ten years. Knowing the password, or being married to the person, is not the same as permission.

By Shephard Dube, LLB · 8 min read ·

Why trust us?

LawMatch guides are written in plain English by Shephard Dube, who holds an LLB degree. Every legal point is checked against the Act, regulation or court judgment it comes from, and the guide is reviewed when the law changes.

This is legal information, not legal advice. No attorney has reviewed this guide unless the byline says so.

How we write our guides
Checked against the law

The sources for this guide are South African Acts and regulations, court judgments and official government and regulator websites.

Last checked 16 November 2026.

Key points

  • Section 2 of the Cybercrimes Act 19 of 2020 makes it an offence to unlawfully and intentionally access a computer system, which includes a phone, or a data storage medium. The maximum sentence is a fine, five years' imprisonment, or both (section 19(1)).
  • Access includes using data or a program held on the device, such as opening messages or an app. You do not have to change or steal anything to commit the offence.
  • Using a password, PIN, fingerprint or similar code to commit the offence is a separate offence under section 7, and intercepting messages, for example with spyware, is an offence under section 3. Both carry up to ten years (section 19(2)).
  • Intercepting a communication in the course of its transmission without being a party to it is also an offence under section 49 of RICA, with a fine of up to R2 000 000 or up to ten years' imprisonment.
  • Spouses, partners and parents have no blanket exception. A person whose accounts are accessed can lay a charge, sue for invasion of privacy, and in a domestic relationship apply for a protection order.

A wife suspects an affair and unlocks her husband's phone while he sleeps. A man still knows his ex-girlfriend's Instagram password and logs in to read her messages. A parent installs an app that copies a teenager's chats. An employee who has left the company keeps using a colleague's email login. Each of them may feel justified. Each of them may also be committing a crime.

This guide explains when getting into someone else's phone, email or social media account is a crime in South Africa, what the different offences are and what they carry, why knowing a password is not the same as having permission, how the rules apply between spouses, parents and children, and employers and staff, and what to do if someone has got into your accounts. For the wider picture of the Act, read our plain guide to the Cybercrimes Act.

The short answer

Section 2(2) of the Cybercrimes Act 19 of 2020, in force since 1 December 2021, makes it an offence to unlawfully and intentionally access a computer system or a computer data storage medium. A phone, tablet or laptop is a computer for this purpose, and an online account is data held on a computer system. The maximum sentence is a fine, five years' imprisonment, or both (section 19(1)).

Before the Act, the main offence was in section 86 of the Electronic Communications and Transactions Act 25 of 2002. The Cybercrimes Act repealed that section and replaced it with a more detailed set of offences.

What counts as access

The Act defines access broadly. Under section 2(2)(b), accessing a computer system includes using data or a program held in it, storing data on it, and instructing, communicating with or otherwise using it. "Using" data includes copying it, moving it or obtaining its output.

That means you do not have to break anything, change anything or steal anything to commit the offence. Opening someone's WhatsApp on their phone and scrolling through their chats is using data held on the device. Logging in to their email from your own laptop is using data held on the email provider's system. Opening an app that is still logged in on a shared tablet can be access too, if you have no right to use that account.

There is a second, separate offence in section 2(1): doing something to a computer system to enable you or someone else to commit one of the other offences, such as interception or interference. It carries the same maximum sentence.

Knowing the password is not permission

The offence turns on the word "unlawfully". The Act does not define it, but the basic idea is access without consent or other lawful authority. Permission matters; knowing the password does not create it.

  • A shared password. Partners often share passwords. That may be evidence of permission to use the account for a particular purpose, but it is not a general licence to read everything forever. If the owner changes the password, says no, or the relationship ends, continuing to log in is very hard to defend.
  • A saved login. Finding a device still logged in is not permission to use the account.
  • A former job. Access that was authorised while you worked somewhere ends when your authority ends.

The password itself is also regulated. Section 7(1) makes it an offence to acquire, possess, give to someone else or use a password, access code, PIN, image, security token, access card, device or biometric data, such as a fingerprint or face, in order to commit unlawful access or certain other offences. Pressing a sleeping person's finger to their phone to unlock it fits that description. The maximum sentence is ten years (section 19(2)).

We could not find a reported South African judgment that has yet decided where the line falls between shared passwords and unlawful access in a relationship. That uncertainty is a reason for caution, not comfort.

Reading, copying, changing and threatening

Getting in is only the first offence. What you do once inside can add more serious ones.

  • Intercepting messages (section 3). Intercepting data in transit, including by viewing, recording or redirecting it, is an offence carrying up to ten years. Spyware or "stalkerware" that forwards someone's messages to you is the obvious example. Keeping data you know was unlawfully intercepted is also an offence.
  • RICA. Section 49 of the Regulation of Interception of Communications and Provision of Communication-related Information Act 70 of 2002 makes it an offence to intentionally intercept a communication in the course of its transmission. The penalty is a fine of up to R2 000 000 or up to ten years' imprisonment (section 51(1)(b)). A party to a conversation may record it (section 4), which is why recording your own call is usually lawful, but secretly capturing other people's calls or messages is not.
  • Changing or deleting (section 5). Changing someone's password to lock them out, deleting their posts or wiping their messages is interference with data, carrying up to ten years.
  • Pretending to be them. Posting from their account to deceive others can be cyber fraud under section 8 if it is done to defraud and causes actual or potential prejudice, and the ordinary crimes of fraud or crimen injuria may also apply.
  • Demanding something. Threatening to lock someone out, delete their data or keep spying on them unless they pay or do something is cyber extortion under section 10.

Spouses, partners, parents and employers

Spouses and partners. The Act has no exception for marriage. A spouse's phone and accounts are still that spouse's. Evidence obtained this way may also cause problems in a divorce: a court has a discretion whether to admit unlawfully obtained evidence, and the person who obtained it risks a criminal charge. Our guide to secretly recording a spouse explains how courts approach that evidence. Between partners, persistently monitoring someone's phone and accounts can also be part of a pattern of controlling behaviour that supports a domestic violence protection order.

Parents. Parents have responsibilities to guide and protect their children under the Children's Act, and a parent supervising a young child's device, especially one the parent owns and manages, is unlikely to be acting "unlawfully". The position is less clear for a teenager's private messages, particularly where spyware is installed secretly, and we found no court decision on it. Openly agreed rules and parental-control settings are safer than covert monitoring.

Employers. An employer may monitor its own systems within the limits of RICA and its policies, but an employer or colleague who gets into an employee's personal accounts faces the same offences as anyone else. Our guide to employer monitoring explains the workplace rules.

If someone got into your accounts

Secure the account first, then preserve the evidence, then decide which legal route to take.

  1. Lock it down. Change the password from a device you trust, switch on two-step verification, log out all other sessions, and check the recovery email and phone number. Look for forwarding rules in your email and unknown linked devices.
  2. Check your phone. If you suspect spyware, check installed apps and device administrator settings, and consider a factory reset after backing up evidence. A phone shop or IT professional can help.
  3. Keep the evidence. Screenshot login alerts, "new device" emails, security logs showing dates, times and locations, and anything posted or sent from your account.
  4. Warn people. If the person sent messages as you, tell your contacts. If money or banking details are involved, call your bank immediately. Our guides to identity theft and fraud on your bank account explain those steps.
  5. Report it. Lay a charge at a police station under section 2 of the Cybercrimes Act, and section 3, 5 or 7 where they apply, and get a case number.

You can also sue the person for infringing your privacy under the actio iniuriarum, the common-law action for injury to personality rights, generally within three years under the Prescription Act. If the person keeps doing it, a protection order is available: under the Domestic Violence Act for a partner, former partner or relative, and otherwise under the Protection from Harassment Act, as our guide to protection orders for online harassment explains.

Worked example

This example is illustrative. Lindiwe and Bongani, from Pretoria, separated in January. In April, Lindiwe notices that WhatsApp messages she never opened are showing as read, and her Gmail account shows a login from a laptop in Centurion, where Bongani lives. When she checks her Facebook settings, the recovery phone number has been changed to his. She remembers that she gave him her Gmail password in 2022 to download a document.

The 2022 permission was for one task and ended long before the separation. Logging in to her email is unlawful access under section 2. Using her old password to do it is an offence under section 7. Changing her recovery number is interference with data under section 5. If he linked her WhatsApp to his laptop to read her messages as they arrive, that may also be interception under section 3 and RICA.

Lindiwe changes her passwords, removes the linked devices, screenshots the login alerts and lays a charge. Because they were partners, she also applies for a protection order under the Domestic Violence Act prohibiting him from accessing her accounts or devices.

Change the facts: if Lindiwe had asked Bongani in March to check her email for a flight booking while she was in hospital, a single login for that purpose would not be unlawful. Reading her other mail while he was there would be much harder to defend.

What to do

  1. If you want to see someone else's messages, do not get into their phone or accounts without clear permission. Get advice on lawful routes instead, such as discovery in litigation.
  2. If someone got into your accounts, change passwords, enable two-step verification and log out unknown sessions.
  3. Keep login alerts, security logs and screenshots, with dates and times.
  4. Lay a charge under section 2 of the Cybercrimes Act and the other sections that fit, and get a case number.
  5. If it continues, apply for a protection order, and speak to an attorney about a privacy claim.

What it typically costs

Updated Nov 2026
Item Typical range
Initial consultation An estimate. Some firms give a short free first meeting. Bring screenshots with dates and links. It should end with a view on your options and a written fee estimate. R0 – R3 000
Letter of demand asking for removal, a retraction and an apology An estimate. A short letter about one post at the bottom, a detailed letter covering several posts and a damages demand at the top. R2 500 – R12 000
Reply to a defamation letter of demand An estimate. Includes assessing whether you can prove a defence. A short removal and apology costs less than a reply that disputes the claim. R3 000 – R15 000
Attorney help with a protection order, including an opposed return date An estimate. The application itself is free and most people bring it without an attorney. This is for drafting help or representation at a contested hearing. R5 000 – R30 000
Watching brief in a criminal case about threats, images or hacking An estimate. An attorney follows the prosecution for you as the complainant and liaises with the investigating officer and prosecutor. Laying the charge is free. R5 000 – R30 000
Urgent High Court application to remove a post, unopposed An estimate, with an attorney and an advocate. Covers the founding affidavit, the court papers and one hearing. Sheriff's fees are on top. R25 000 – R60 000
Urgent High Court application to remove a post, opposed An estimate. Answering and replying affidavits and a contested hearing with counsel. A complex matter can cost more. R80 000 – R250 000
Defamation damages claim in the magistrates' court, through to trial An estimate, per side, whether you sue or defend. Settled after pleadings at the bottom, a defended trial with witnesses at the top. R40 000 – R150 000
Defamation action in the High Court, through to trial An estimate, per side. Includes counsel, discovery, expert or witness costs and a trial of several days. Appeals cost more again. R150 000 – R600 000
Full cost breakdown →

Estimates only. Actual fees vary by attorney and complexity.

When you need an attorney

You should speak to an attorney if:

  • someone has accessed your accounts and is using what they found against you
  • you have been accused of accessing a partner's, former partner's or employer's accounts
  • you want to use messages or emails in a divorce or dispute and are unsure how they were obtained
  • a former employee or partner is still using passwords to get into your systems
  • you need a protection order to stop someone monitoring your phone or accounts
Match with an attorney

Frequently asked questions

Is it a crime to read my partner's messages on their phone?
It can be. Opening and reading messages on someone else's phone without permission is using data held on a computer system, which is unlawful access under section 2 of the Cybercrimes Act. Being married or in a relationship is not an exception.
What if they gave me their password?
A password shared for a particular purpose is not permission to use the account for anything, forever. If the person withdrew permission, changed the password or the relationship ended, continuing to log in is very hard to defend.
What is the sentence for hacking an account?
Unlawful access carries a fine or up to five years' imprisonment. Misusing a password, intercepting messages or changing and deleting data carry up to ten years each under the Cybercrimes Act.
Can I use messages I got from my spouse's phone in my divorce?
A court has a discretion whether to admit unlawfully obtained evidence, and getting it may expose you to a criminal charge. Speak to an attorney about lawful ways to obtain the evidence first.
Is spyware on someone's phone illegal?
Installing spyware to intercept someone's messages without consent is an offence under section 3 of the Cybercrimes Act and can also be an offence under section 49 of RICA. Each carries up to ten years' imprisonment.

Laws and court decisions referred to

Legislation

  • Cybercrimes Act 19 of 2020
  • Electronic Communications and Transactions Act 25 of 2002
  • Interception of Communications and Provision of Communication-related Information Act 70 of 2002

Cite this page: LawMatch, "Is it illegal to get into someone's social media, email or phone without permission?", https://lawmatch.co.za/guides/defamation-and-online-harm/is-it-illegal-to-hack-someones-social-media-or-email, last reviewed 16 November 2026.

Not legal advice. LawMatch is not a law firm and does not provide legal advice. Information is general and may not apply to your situation.

Get plain-English legal updates

One email a fortnight. Your rights, what things cost, and how to avoid common traps. Unsubscribe any time.

Related topics

Related guides

  • Can a business or company sue for defamation?

    Yes. A company, close corporation or other trading business can sue for defamation that harms its business reputation, and can ask for an order to remove the statement. Since Reddell v Mineral Sands (2022), a trading company can claim general damages only at the court's discretion, and not where the statement was part of public debate on a matter of public interest. A company cannot claim for hurt feelings, and a business that sues mainly to silence a critic risks having the case thrown out.

  • Can you be sued for a Google review or a Hellopeter complaint?

    Yes, but an honest review of a real experience is usually safe. The risk comes from statements of fact you cannot prove, such as calling a business a scam or saying it stole your money, and from leaving out facts that would change the picture. A business can sue for defamation and ask a court to order a review removed.

  • Can you be sued for sharing, retweeting or liking a defamatory post?

    Yes, for sharing, retweeting, forwarding or screenshotting. In South African law every repetition of a defamatory statement is a fresh publication, and "I only shared it" is not a defence. Whether a like alone is publication has not been decided by a South African court, but tagging, endorsing comments and leaving abusive comments under your own post have all led to liability or court orders.

  • Can you name and shame someone online without being sued?

    Sometimes, but it is riskier than most people think. A post naming someone as a thief, abuser or scammer is defamatory, and you must then prove that it is substantially true and that publishing it was in the public interest, with evidence a court will accept. Reporting the person to the police, a regulator or their employer is usually safer and more effective than a public post.

Match with a defamation & online harm attorney