Use this when hunting for hidden remote access left by attackers, such as web shells or planted keys.
Backdoor
A backdoor is malware or a hidden mechanism that gives an attacker persistent remote access while bypassing normal authentication, such as a web shell or a planted SSH key.
1. Backdoors give persistent remote access (accounts, web shells, implants).
2. Hunt after incidents.
3. File integrity monitoring on web roots.
4. Review authorized_keys and accounts.
5. Rebuild compromised systems.
attacker → backdoor → persistent access
Context & applicabilityCommon mistakes · platform/version boundaries
- Removing the visible malware but not the persistence mechanism.
- Not checking for new local accounts and SSH keys (
authorized_keys). - Forgetting web shells on internet-facing servers.
- Rebuilding systems from images that already contain the backdoor.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Detection Verify boundary
- Unknown services, scheduled tasks or startup entries.
- Web shells: new or changed files in web directories (file integrity monitoring).
- Unexpected listening ports or outbound connections.
- New local accounts or SSH keys.
After finding a backdoor, assume other persistence exists and investigate the whole system.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Backdoors survive password resets.
- Look for new accounts, keys, services and scheduled tasks.
- Web shells hide in upload and web directories.
ss -tnp state established— unexpected connections- New local accounts/SSH keys — backdoor accounts
- Web shell scans on web servers — web backdoors
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A backdoor provides hidden, persistent remote access that bypasses normal authentication — a malicious service, a web shell, an added SSH key, an implant in firmware or a compromised software update. Attackers install backdoors to return after the initial vulnerability is fixed.
Finding backdoors during incident response:
| Location | Check |
|---|---|
| Accounts and keys | New local/domain accounts, authorized_keys, API tokens |
| Persistence | Services, scheduled tasks, cron, startup items, WMI subscriptions |
| Web servers | Recently modified scripts in web directories (web shells) |
| Network | Unusual listening ports, outbound connections |
| Supply chain | Integrity of software and updates |
Because backdoors can be subtle, rebuilding compromised systems from trusted sources is safer than trying to clean them.
Common persistence locations (Windows)
| Location | Check |
|---|---|
| Run keys | HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run |
| Services | Get-Service, new 7045 events |
| Scheduled tasks | schtasks /query /fo LIST /v, event 4698 |
| WMI subscriptions | Get-WmiObject -Namespace root\subscription -Class __EventConsumer |
| Startup folder | shell:startup |
Sysinternals Autoruns shows them all in one view.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Malware → Backdoor. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%