Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Web shell

From Wikipedia, the free encyclopedia
Interface enabling remote access to a web server

Aweb shell is ashell-like interface that facilitates remote access to aweb server, commonly exploited forcyberattacks.[1] Unlike traditional shells, it is accessed via aweb browser, making it a versatile tool for malicious activities.[2][3]

Web shells can be coded in anyprogramming language supported by a server, withPHP being the most prevalent due to its widespread use inweb applications. Other languages, such asActive Server Pages,ASP.NET,Python,Perl,Ruby, andUnix shell scripts, are also employed.[1][2][3]

Attackers identifyvulnerabilities often in web server application usingnetwork monitoring tools, which can be exploited to deploy a web shell.[2]

Once installed, a web shell allows attackers to execute shell commands, performprivilege escalation, and manage files by uploading, deleting, downloading, or executing them on the server.[2]

General usage

[edit]

Web shells are favored in cyberattacks for their versatility and elusiveness.[4] Common applications include:

Web shells enable hackers to extract data, corrupt systems, and deploy more damagingmalware. The threat intensifies when compromised servers are used to infiltrate additional systems. They are also employed in cyber espionage targeting sectors like government, finance, and defense. A notable example is the "China Chopper" web shell.[6]

Delivery of web shells

[edit]

Web shells are deployed by exploiting vulnerabilities in web applications or weak server configurations, including:[2][4]

Attackers may also spoof theContent-Type header during file uploads to bypass weak file validation, enabling shell deployment.

Example

[edit]

The following is a basic PHP web shell that executes a shell command and displays the output:

<?=`$_GET[x]`?>

With a filename ofexample.php, the command to display the/etc/passwd file could be:

https://example.com/example.php?x=cat%20%2Fetc%2Fpasswd

This executes the commandcat /etc/passwd. Such risks can be mitigated by disabling PHP shell functions to prevent arbitrary command execution.

Prevention and mitigation

[edit]

Preventing web shell installation requires addressing server vulnerabilities. Key measures include:[2][3]

Detection

[edit]

Web shells are challenging to detect due to their modifiability, often evadingantivirus software.[2][9]

Indicators of a web shell include:[2][3]

  • Unusually high web server activity from downloading/uploading[2][9]
  • Files with abnormal timestamps (e.g., newer than last modification)[9]
  • Unknown files on the server
  • Suspicious references (e.g.,cmd.exe oreval)
  • Unusual connections in server logs

For instance, aPNG file withPOST parameters or dubious logins between DMZ servers and internal subnets may signal a web shell.[2][10][11][12]

Web shells may include disguised login forms, such as fakeerror pages.[2][13][14][15]

Attackers can modify the.htaccess file (onApache HTTP Server) to redirectsearch engine queries to malware orspam pages, often tailoring content based onuser-agent detection. Identifying the shell may require altering the crawler's user-agent, after which it can be easily removed.[2]

Analyzing server logs can pinpoint the web shell's location, as legitimate users typically have diverseuser-agents andreferers, while attacker access is more uniform.[2]

See also

[edit]

References

[edit]
  1. ^ab"How can web shells be used to exploit security tools and servers?".SearchSecurity.Archived from the original on 2019-03-28. Retrieved2018-12-21.
  2. ^abcdefghijklmnopqrstuvwxUS Department of Homeland Security (9 August 2017)."Web Shells – Threat Awareness and Guidance".www.us-cert.gov.Archived from the original on 13 January 2019. Retrieved20 December 2018.Public Domain This article incorporates text from this source, which is in thepublic domain.
  3. ^abcdadmin (3 August 2017)."What is a Web shell?".malware.expert.Archived from the original on 13 January 2019. Retrieved20 December 2018.
  4. ^abc"Russian Government Cyber Activity Targeting Energy and Other Critical Infrastructure Sectors – US-CERT".www.us-cert.gov. 16 March 2018.Archived from the original on 20 December 2018. Retrieved20 December 2018.
  5. ^WordPress Security Engineer at FixMyWPWC Athens 2016, Makis Mourelatos; Support, W. P.; Aficionado, Security; Kitesurfer, Wannabe (16 October 2017)."The Definitive Guide about Backdoor Attacks - What are WebShell BackDoors".fixmywp.com.Archived from the original on 13 January 2019. Retrieved20 December 2018.{{cite web}}: CS1 maint: numeric names: authors list (link)
  6. ^Hannousse, Abdelhakim; Yahiouche, Salima (2021-09-01)."Handling webshell attacks: A systematic mapping and survey".Computers & Security.108 102366.doi:10.1016/j.cose.2021.102366.ISSN 0167-4048.
  7. ^"Got WordPress? PHP C99 Webshell Attacks Increasing". 14 April 2016.Archived from the original on 29 December 2018. Retrieved21 December 2018.
  8. ^ab"Equifax breach was 'entirely preventable' had it used basic security measures, says House report". 10 December 2018.Archived from the original on 20 December 2018. Retrieved21 December 2018.
  9. ^abc"Breaking Down the China Chopper Web Shell - Part I".FireEye.Archived from the original on 13 January 2019. Retrieved20 December 2018.
  10. ^"Intrusion Detection and Prevention Systems".Archived from the original on 2019-01-13. Retrieved2018-12-22.
  11. ^Kasey Cross (16 June 2016)."Five signs an attacker is already in your network".Network World.Archived from the original on 13 January 2019. Retrieved22 December 2018.
  12. ^"Traffic Analysis for Network Security: Two Approaches for Going Beyond Network Flow Data". 15 September 2016.Archived from the original on 2016-11-14. Retrieved2018-12-22.
  13. ^"Hackers Hiding Web Shell Logins in Fake HTTP Error Pages".BleepingComputer.Archived from the original on 26 July 2018. Retrieved21 December 2018.
  14. ^"Hackers Hiding Web Shell Logins in Fake HTTP Error Pages".ThreatRavens. 24 July 2018.Archived from the original on 13 January 2019. Retrieved17 February 2019.
  15. ^"Hackers Hiding Web Shell Logins in Fake HTTP Error Pages".cyware.com.Archived from the original on 13 January 2019. Retrieved22 December 2018.
Threats
vectorial version
vectorial version
Defenses
Related
security
topics
Malware topics
Infectious malware
Concealment
Malware for profit
By operating system
Protection
Countermeasures
Retrieved from "https://en.wikipedia.org/w/index.php?title=Web_shell&oldid=1315059835"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp