Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
THREAT ATLAS · DEFENSIVE

Web Shell, Backdoor, Hacked-Link and Malicious Code Types: 2026 Technical Guide

Web shells are not limited to old family names. Modern incidents can involve dormant cookie-controlled loaders, backdoors embedded in legitimate files, cron-based recreation, database-injected SEO links and crawler-specific cloaking. This guide focuses on detection and defense rather than distributing attack code.

Eka Sunucu web shell backdoor and malicious PHP code analysis workspace
Technical investigation image
Classic PHP web shellA web-accessible PHP backdoor that can expose file operations or process execution.
Embedded backdoorPersistence logic inserted into a legitimate index.php, plugin, theme or helper class.
Cookie-controlled loaderA loader that stays dormant in ordinary traffic and activates only when a trigger condition is present.
Header/User-Agent-controlled codeConditional behavior based on an HTTP header, client profile or crawler identity.
Obfuscated PHPCode that conceals strings or calls through encoding, compression, concatenation or runtime reconstruction.
Cron-recreated shellA scheduled task that recreates a malicious file after it is removed.
.user.ini / auto_prepend persistenceAbuse of PHP configuration to load another file before normal PHP requests.
Hacked-link injectionUnauthorized outbound SEO links inserted where users may not notice them.
CloakingDifferent content or redirects based on crawler, referrer, device or other request context.
Database-stored payloadMalicious markup or script served from options, widgets, content or metadata rather than a visible file.

Contents

01

What is a web shell and why is it used for persistence?

CISA and MITRE ATT&CK track web shells as T1505.003. Because the web server is already internet-facing, a malicious server-side component can blend into normal application traffic and preserve access after the initial compromise.

Do not identify a shell by filename alone. Attackers can use ordinary names or insert a few malicious lines into legitimate code. Compare file integrity, modification time, URL access and runtime behavior.

02

Why cookie-controlled PHP webshells matter in 2026

Microsoft Defender Security Research documented PHP webshells in Linux hosting environments that stayed dormant during routine traffic and activated only when specific cookie conditions were present. Some reconstructed sensitive function names at runtime.

Defenders should therefore combine file signatures with behavior: web processes spawning shells, scheduled jobs writing PHP into web directories, unusual control-panel tasks and request patterns.

03

When does obfuscation become suspicious?

base64_decode, gzinflate or dynamic calls are not malware by themselves. Risk rises when heavy concealment is paired with untrusted input, execution sinks, recent unexpected changes and unusual file paths.

Inspect hashes and data flow without executing unknown payloads on production. Trace which superglobals or external inputs reach file, include or process-execution operations.

DEFENSIVE CHECK
sha256sum public_html/supheli.php
DEFENSIVE CHECK
grep -nE "\$_(GET|POST|COOKIE|REQUEST|SERVER)|eval|base64_decode|gzinflate|shell_exec|system|exec|passthru|proc_open" public_html/supheli.php
DEFENSIVE CHECK
php -l public_html/supheli.php
05

How to recognize malicious redirects and cloaking

Google notes that hacked redirects can depend on referrer, user agent or device. A direct browser visit can look normal while a click from search redirects elsewhere.

Compare responses under controlled request contexts and consider CDN cache differences. The goal is to verify response consistency, not to reproduce harmful activity.

06

Cron, .user.ini and secondary-backdoor persistence

If the visible shell is removed but another mechanism survives, it can return. Review cron jobs, .user.ini auto_prepend_file, rewrite rules, plugins, bootstrap files and hosting-panel scheduled tasks.

Frequent jobs that write into webroot or invoke decoding/download utilities deserve review, but context matters because legitimate maintenance tasks can use the same tools.

DEFENSIVE CHECK
crontab -l
DEFENSIVE CHECK
grep -RIn "auto_prepend_file\|auto_append_file" /home /var/www 2>/dev/null
DEFENSIVE CHECK
find public_html -type f -mmin -60 -print
07

Use a behavior matrix, not a single signature

Combine file, request, process and persistence signals. A suspicious function plus a related POST request, a web process spawning a shell and a new cron job in the same time window is far stronger evidence than one encoded string.

When possible, compare against official package checksums or a known-clean repository before declaring a file malicious.

08

Controls that make web-shell deployment harder

Disable script execution in upload areas, store uploads outside webroot where possible, use least filesystem privilege, MFA for administrative access, current PHP/framework versions, WAF controls and secure upload validation.

OWASP recommends layered file-upload controls: allowlisted extensions, server-side file type/signature checks, generated filenames, size limits, authorization and safer storage.

09

What EKA delivers in a malicious-code review

The report can include suspicious files and hashes, modified files, persistence points, hacked-link/cloaking findings, log timelines, application risks and remediation guidance.

Unknown payloads are not executed on production. Dynamic validation, when needed, is limited to an explicitly authorized isolated copy and is used to verify defensive controls.

Local suspicious-code indicator check

Paste a PHP fragment below to look for basic defensive indicators only in this browser tab. The code is not uploaded and the result is not a malware verdict.

No scan has been run yet.
EKA Web Security Review

Ask the technical team to review

Standard cases are usually scheduled for a 24–72 hour analysis window after pre-assessment. Timing varies with file count, log access, malware spread and application architecture.

Important note: Only test systems you own or are explicitly authorized to assess.

Microsoft 2026 PHP webshell researchwww.microsoft.comCISA Web Shell Guidancewww.cisa.govGoogle Spam Policiesdevelopers.google.comOWASP File Upload Cheat Sheetcheatsheetseries.owasp.org

Frequently asked questions

Are c99 and r57 still the main issue?

Historical names still appear, but custom loaders and embedded or conditionally activated backdoors can be more relevant today.

Should I delete every file containing base64_decode?

No. Verify context, origin, version and input-to-execution data flow first.

Must a shell be under uploads?

No. It may exist in root, plugin, theme, cache, vendor or inside a legitimate file.

Is hacked-link cleanup different from shell cleanup?

Yes. Link sources can be files, databases, JavaScript or cloaking, and search-index cleanup is separate.

Can a cookie-controlled shell be quiet during normal checks?

Yes. The file exists but malicious behavior may require a trigger, so behavior and logs matter.

What happens if cron is not removed?

A scheduled task can recreate a deleted malicious file.

Top