A backdoor is a hidden method of accessing a system that bypasses normal authentication. It can be planted by malware, a web shell, a rootkit, a compromised update or a hardcoded credential, and it gives an attacker persistent remote access until it is found and removed.
Key takeaways
- A backdoor bypasses normal login and gives an attacker persistent, hidden access to a system.
- Common types include web shells, remote access trojans, rootkits, firmware implants and hardcoded credentials.
- Removing one means finding every persistence mechanism, not just deleting one file — then rebuilding trust in the system.
Most malware wants something right away: your files, your money, your data. A backdoor wants something quieter — a way back in. Once it is planted, an attacker can return whenever they choose, often for months, while you use the computer as normal.
What is a backdoor?
A backdoor is any hidden method of accessing a system that bypasses normal authentication. A normal user logs in; a backdoor user does not have to. It is defined by that bypass, not by any one piece of code.
Backdoors are designed for persistence: they stay active across restarts, password changes and sign-outs. That is what makes them different from a one-off intrusion. An attacker who breaks in once has access for a day; an attacker who plants a backdoor has access until someone finds it.
A backdoor is usually one stage of a larger attack, not the whole attack. It sits downstream of an initial compromise — phishing, an exploited vulnerability, a stolen credential or a poisoned update — and it exists to guarantee re-entry. In MITRE ATT&CK terms, it serves Persistence (TA0003): the techniques adversaries use to keep access across interruptions.
What are the main types of backdoor?
Backdoors differ by where they live and how deep they sit. The deeper the layer, the harder the backdoor is to see and the longer it tends to survive.
| Type | Where it lives | How hard to remove |
|---|---|---|
| Web shell | A script on a web server | Moderate — remove the file and close the hole |
| Remote access trojan (RAT) | Malware on a workstation or server | Moderate — needs full cleanup |
| Rootkit / bootkit | Operating system or boot process | Hard — may need a rebuild |
| Firmware / hardware | UEFI, BIOS or device firmware | Very hard — reflash or replace |
| Supply-chain implant | Trusted software update | Hard — affects many systems at once |
| Hardcoded credential | Device or application code | Varies — change or patch it |
Web shells
A web shell is a script — PHP, ASP or JSP — planted on a public-facing web server. It gives the attacker command execution through ordinary HTTP requests, so the traffic looks like normal web browsing. MITRE lists web shells as technique T1505.003, a sub-technique of server software component persistence.
Trojans and remote access trojans
A trojan is malware disguised as something benign that opens a backdoor once it runs. A remote access trojan is the full-featured version: it gives the operator a remote control panel over the host, with file transfer, keylogging, screen capture and a shell.
Kaspersky's threat description notes that backdoors in this class make it possible to do anything the author wants on the infected computer, including sending and receiving files and rebooting it.
Rootkits and bootkits
A rootkit hides a backdoor by tampering with the operating system so the implant does not appear in process lists, file listings or network tables. A bootkit goes deeper still, loading before the operating system. These are the backdoors that survive an antivirus scan and a reinstall of the operating system if the boot code is not cleaned.
Firmware and hardware backdoors
Some backdoors live below the software entirely: malicious logic in a chip, a tampered BIOS or UEFI image, or modified network-device firmware. The LoJax UEFI rootkit, discovered in 2018, is a documented example. These are rare for home users but a real concern for high-value targets.
Supply-chain implants
Instead of breaking into the target, the attacker compromises something the target trusts and installs, then lets the victim deploy the backdoor for them. The SolarWinds case below is the best-known example.
Default and hardcoded credentials
The simplest backdoor is a known username and password baked into a device or application, undocumented and often unchangeable. Default credentials on routers, cameras and industrial equipment have been used this way for years. If you have not changed a device's default password, check our guide on how to secure your Wi-Fi and change it now.
How does a backdoor get installed?
Almost every backdoor follows the same path: an initial compromise, then persistence. The initial compromise is the way in; the backdoor is what keeps the door open afterwards.
Common entry points are phishing emails with malicious attachments, unpatched software vulnerabilities, weak or reused passwords, malicious downloads, and poisoned software updates. Once inside, the attacker installs the backdoor, sets up a command-and-control channel, and then often goes quiet — waiting weeks or months before using the access.
That delay is deliberate. A backdoor that immediately steals data or encrypts files gets noticed. A backdoor that waits, and only phones home occasionally, can survive for a long time. This is why dwell time — the gap between compromise and discovery — is measured in days and weeks even in well-defended organizations.
What is a real example? The SolarWinds SUNBURST backdoor
The best-documented backdoor case is SolarWinds. In 2020, attackers compromised the build process for SolarWinds Orion, a network monitoring platform, and inserted a backdoor called SUNBURST into signed software updates released between March and June 2020.
Customers installed the updates through normal channels. SolarWinds estimated that fewer than 18,000 customers installed an affected version. The attackers then chose a much smaller number for follow-on intrusion, including forging SAML tokens to access cloud services.
FireEye, investigating its own breach, found the backdoor in December 2020 and published its analysis on 13 December 2020. CISA issued Emergency Directive 21-01 the same day, ordering federal civilian agencies to disconnect affected devices, and later published the detailed advisory AA20-352A.
The lesson is uncomfortable: code signing and source review did not catch it, because the change happened on the build server during compilation. The backdoor arrived inside software the victims trusted, signed by the vendor, through the vendor's own update channel. SolarWinds' own advisory confirms that the affected releases were Orion Platform 2019.4 HF5, 2020.2 and 2020.2 HF1.
How do you tell if a system has a backdoor?
There is no single symptom that proves a backdoor is present. Look for a pattern of small anomalies, and treat any one of them as a reason to investigate rather than a reason to panic.
- Unknown accounts or programs: new user accounts, services or scheduled tasks you did not create.
- Strange network traffic: connections to unfamiliar addresses, especially at odd hours or in small, regular bursts.
- Settings that change back: security software disabled, firewall rules altered, or passwords that stop working.
- Performance changes: a machine that is slow, hot or busy when it should be idle.
- Files appearing or disappearing: new files in system folders, or logs with gaps in them.
- Antivirus warnings you cannot explain: detections that return after cleaning, or a scanner that will not run.
For a business, the strongest signals come from logs and network data: a server that talks to an address it has never talked to before, a user account logging in at 3 a.m., or a web server receiving requests for files that should not exist. If you suspect a compromise, preserve logs before you start cleaning — they are the evidence.
Backdoor vs RAT vs rootkit vs trojan: what is the difference?
These terms overlap because the techniques appear together in the same intrusions. Purpose is the distinction that matters. A backdoor exists to guarantee re-entry, not to execute, conceal or coordinate.
A trojan is the delivery method: malware disguised as something useful. A RAT is the active tool: it gives live, interactive control of a compromised host. A rootkit is the hiding method: it conceals the implant from the operating system. A backdoor is the quiet entry point that admits the attacker in the first place.
One intrusion can involve all four. A phishing email delivers a trojan, the trojan installs a RAT, the RAT plants a backdoor, and a rootkit hides the whole thing. Naming the parts correctly matters because each one needs a different removal step.
How do you remove a backdoor?
Removing a backdoor is harder than removing ordinary malware, because deleting one file is not enough. Attackers plant multiple persistence mechanisms, so the backdoor can reinstall itself if you miss one.
- Disconnect the affected system from the network: stop the command-and-control channel before you do anything else.
- Preserve evidence: save logs, disk images and a list of what you found, before cleaning changes them.
- Find every persistence mechanism: check scheduled tasks, services, startup entries, new accounts, web shells and browser extensions.
- Remove the implant and close the entry point: delete the malicious files, patch the vulnerability, and revoke the stolen credentials.
- Reset credentials and sessions: change passwords, revoke tokens, and sign out all sessions — the attacker may have harvested them.
- Rebuild if you cannot prove it is clean: for a rootkit, firmware implant or serious server compromise, wipe and rebuild from known-good media.
- Monitor afterwards: watch the system and the network for the same indicators returning.
For a home computer, a full scan with reputable antivirus, followed by a clean reinstall if the detection returns, is a reasonable path. For a business server, assume the worst: if you cannot prove what the attacker did, rebuild it. Our guide to checking whether your phone is hacked covers similar steps for mobile devices.
How do you prevent backdoors?
Prevention is mostly the same work as preventing any intrusion, with a few backdoor-specific controls on top. No single tool stops them; layers do.
- Patch promptly: most backdoors arrive through known vulnerabilities, so keep operating systems, browsers and web servers updated.
- Use phishing-resistant authentication: passkeys and security keys stop stolen passwords from becoming a foothold.
- Limit admin rights: a backdoor planted by a standard user account has less power than one planted by an administrator.
- Monitor outbound traffic: a backdoor must phone home, so unusual outbound connections are often the first visible sign.
- Check for new persistence: regularly review scheduled tasks, services, startup items and new accounts.
- Verify your software supply chain: only install updates from the vendor, and watch for vendor security advisories.
- Change default credentials: every router, camera and device should have a unique password, not the factory default.
- Segment your network: a backdoor on one device should not reach every other device on the network.
For businesses, application allowlisting, endpoint detection and response, and regular log review are the controls that catch backdoors most often. For a home user, updates, a password manager, and a reputable antivirus cover most of the risk.
The bottom line
A backdoor is a hidden entrance that lets an attacker return to a system whenever they want, bypassing normal login. It can be a web shell, a RAT, a rootkit, a firmware implant or a hardcoded credential — and the SolarWinds case shows it can arrive inside trusted, signed software.
Changing your password will not remove one. Find every persistence mechanism, close the entry point, reset credentials, and rebuild the system if you cannot prove it is clean. If you want a wider starting point, our small business cybersecurity checklist covers the controls that stop most intrusions before a backdoor is ever planted.
Frequently asked questions
What is a backdoor in simple terms?
A backdoor is a secret way into a computer or network that skips the normal login. Once it is in place, an attacker can return whenever they want without needing your password.
Is a backdoor a virus?
A backdoor is a type of malware, but it is not a virus in the strict sense because it does not copy itself to other files. It is an access mechanism, often delivered by other malware such as a trojan.
How does a backdoor get installed?
Usually after an initial compromise: a phishing email, an unpatched vulnerability, stolen credentials, a malicious download, or a poisoned software update. Some backdoors are built in by a developer or left as a hardcoded credential.
Can antivirus detect a backdoor?
Sometimes, but not reliably. Well-built backdoors hide from process lists and use legitimate-looking traffic. Detection usually needs a mix of antivirus, network monitoring, log review and checking for unknown accounts and scheduled tasks.
Does changing my password remove a backdoor?
No. That is the point of a backdoor: it survives password changes, restarts and sign-outs. You must find and remove the persistence mechanism itself, and check for other changes the attacker made.
What is the difference between a backdoor and a RAT?
A remote access trojan, or RAT, is malware that gives an attacker live control of a computer. A backdoor is the hidden entry point that lets the attacker get back in. A RAT often installs a backdoor, and a backdoor often delivers a RAT.
Are backdoors always malicious?
No. Developers sometimes leave a maintenance account or a debug access path in software, and administrators use legitimate remote-access tools. The difference is whether the access is documented, controlled and authorized.
How do I know if my computer has a backdoor?
Warning signs include unknown programs or accounts, strange network traffic, settings that change back, antivirus being disabled, and files appearing or disappearing. Any one sign needs investigation, not panic.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA advisory AA20-352A on the SolarWinds compromise, MITRE ATT&CK persistence techniques and vendor threat descriptions.
How we write and fact-check →