Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Backdoor

Direct answer

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.

When to use this

Use this when hunting for hidden remote access left by attackers, such as web shells or planted keys.

First 30 seconds

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.

Operational verification

attacker → backdoor → persistent access

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics
Scope / prerequisiteUse this when hunting for hidden remote access left by attackers, such as web shells or planted keys.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Backdoors survive password resets.
  • Look for new accounts, keys, services and scheduled tasks.
  • Web shells hide in upload and web directories.
Key checks
  • 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:

LocationCheck
Accounts and keysNew local/domain accounts, authorized_keys, API tokens
PersistenceServices, scheduled tasks, cron, startup items, WMI subscriptions
Web serversRecently modified scripts in web directories (web shells)
NetworkUnusual listening ports, outbound connections
Supply chainIntegrity 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)

LocationCheck
Run keysHKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run
ServicesGet-Service, new 7045 events
Scheduled tasksschtasks /query /fo LIST /v, event 4698
WMI subscriptionsGet-WmiObject -Namespace root\subscription -Class __EventConsumer
Startup foldershell:startup

Sysinternals Autoruns shows them all in one view.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

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%
Confirmation

Confirm action

Continue?