Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Application Security

12:10 PM

Web Shells Continue to Threaten

A decade after their first use, Web shells remain a common tool for all stripes of attackers, from common cybercriminals to sophisticated state actors.

In recent months, attackers have increased their use of programs that run on Internet-facing servers as a way to remotely control compromised systems and networks, according to security firms and government security agencies. 

Known as Web shells, the attack tools allow their operators to retain flexible access to compromised assets while avoiding detection by firewalls, intrusion detection systems, and host-based anti-malware tools. While their use is more than decade old, Web shells remain a stealthy way for attackers to continue to issue commands to compromised networks because the technique utilizes ubiquitous Web traffic. They have become the de facto approach to establishing a beachhead for many cybercriminal and cyber-espionage groups, says Wade Woolwine, principal security researcher at security-management firm Rapid7.

"Putting Web shells on a Web server is a really easy way to evade traditional detections that we see on the endpoint," he says. "Attackers were using [Web shells] pretty regularly as a secondary, tertiary, or redundant backdoor, and we still see those today because it is a way of evading detection, and a number of the modern Web frameworks allow you a direct pipeline to the operating system for scripting."

Last week the US National Security Agency and the Australian Signal Directorate stated in a joint advisory that Web shell use has increased in recent months and poses an ongoing risk to government systems. 

In February Microsoft warned that an undisclosed public-sector organization had, through misconfiguring a Web server, "allowed attackers to upload a web shell, which let the adversaries gain a foothold for further compromise." The North Korea-linked Lazarus Group — which Microsoft refers to as ZINC, CrowdStrike as Hidden Cobra, and FireEye as APT38 — have used Web shells in their campaigns, as have Russian and Chinese groups.

Roughly every month, Microsoft detects an average of 77,000 Web shell and related artifacts on some 46,000 machines, the company said.

"Web shell attacks have affected a wide range of industries," Microsoft stated in the advisory issued by its Detection and Response Team (DART). "The organization in the public sector [that the company warned about] represents one of the most common targeted sectors."

While some attack techniques peak and then fade away, Web shells have become a staple of attackers. For example, first appearing almost a decade ago, China Chopper is a Web shell that works on both Linux and Windows servers and remains in active use. In 2018, attackers targeting telecommunications firms in Operation Soft Cell used China Chopper for persistance and control of the target network. The campaign was linked to Chinese-affiliated actors, dubbed Gallium by Microsoft, and lasted until mid-2019.

Yet China Chopper is not just used by China-linked attack groups but by many other threat actors as well, according to Cisco's Talos intelligence group

"I see adversaries of all different types and all different skill levels using Web shells," says Nick Biasini, a threat researcher at Cisco Talos. "Even with China Chopper, it was used for everything from Web defacement to cyber espionage."

The increase in Web shell use appears to be slight but noticeable. The number of Web shells ecountered by Microsoft doubled last summer but ended the year with a modest increase, according to its advisory. Rapid7 estimates that about 10% of the attacks it investigates use a Web shell for access and persistance.

More recently, the use of Web shells for compromising and controlling internal servers has increased, says Tod Beardsley, director of research at Rapid7.

"The Web is not just on the Internet," he says. "All this stuff that is applicable to your edge, it is also applicable to your internal network. Any Web app is just as vulnerable on the inside of your network, and often it has less security around it." 

For that reason, companies should not just focus on Web servers. The term "Web shell" is also generically used for any remote access program that allows commands over HTTP or HTTPS. Both Outlook and Sharepoint servers have Web-based interfaces and so are targeted by attackers with Web shell installation. 

Companies should use network segmentation to prevent Internet-facing Web servers from being used as a beachhead into the rest of the network, Cisco's Biasini says. "If you have a Web server with access to the Internet, it should not have internal access, he says.

In addition, regular scans should be done for common vulnerability types.

"From a prevention perspective, businesses should be scanning their Web applications from the outside, and anything that is touching the Internet should be patched," Biasini says.

Related Content:

A listing of free products and services compiled for Dark Reading by Omdia analysts to help meet the challenges of COVID-19. 

Check out The Edge, Dark Reading's new section for features, threat data, and in-depth perspectives. Today's top story: "5 Ways to Prove Security's Worth in the Age of COVID-19."

Veteran technology journalist of more than 20 years. Former research engineer. Written for more than two dozen publications, including CNET News.com, Dark Reading, MIT's Technology Review, Popular Science, and Wired News. Five awards for journalism, including Best Deadline ... View Full Bio

Recommended Reading:

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
User Rank: Apprentice
5/6/2020 | 9:58:37 AM
Re: Web traffic
COVID-19: Latest Security News & Commentary
Dark Reading Staff 7/6/2020
Ripple20 Threatens Increasingly Connected Medical Devices
Kelly Sheridan, Staff Editor, Dark Reading,  6/30/2020
DDoS Attacks Jump 542% from Q4 2019 to Q1 2020
Dark Reading Staff 6/30/2020
Register for Dark Reading Newsletters
White Papers
Current Issue
How Cybersecurity Incident Response Programs Work (and Why Some Don't)
This Tech Digest takes a look at the vital role cybersecurity incident response (IR) plays in managing cyber-risk within organizations. Download the Tech Digest today to find out how well-planned IR programs can detect intrusions, contain breaches, and help an organization restore normal operations.
Flash Poll
The Threat from the Internetand What Your Organization Can Do About It
The Threat from the Internetand What Your Organization Can Do About It
This report describes some of the latest attacks and threats emanating from the Internet, as well as advice and tips on how your organization can mitigate those threats before they affect your business. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
PUBLISHED: 2020-07-07
An issue was discovered in Xen through 4.13.x, allowing Arm guest OS users to cause a hypervisor crash because of a missing alignment check in VCPUOP_register_vcpu_info. The hypercall VCPUOP_register_vcpu_info is used by a guest to register a shared region with the hypervisor. The region will be map...
PUBLISHED: 2020-07-07
An issue was discovered in Xen through 4.13.x, allowing x86 Intel HVM guest OS users to cause a host OS denial of service or possibly gain privileges because of insufficient cache write-back under VT-d. When page tables are shared between IOMMU and CPU, changes to them require flushing of both TLBs....
PUBLISHED: 2020-07-07
An issue was discovered in Xen through 4.13.x, allowing guest OS users to cause a host OS crash because of incorrect error handling in event-channel port allocation. The allocation of an event-channel port may fail for multiple reasons: (1) port is already in use, (2) the memory allocation failed, o...
PUBLISHED: 2020-07-07
An issue was discovered in Xen through 4.13.x, allowing Intel guest OS users to gain privileges or cause a denial of service because of non-atomic modification of a live EPT PTE. When mapping guest EPT (nested paging) tables, Xen would in some circumstances use a series of non-atomic bitfield writes...
PUBLISHED: 2020-07-07
An issue was discovered in Xen through 4.13.x, allowing x86 HVM guest OS users to cause a hypervisor crash. An inverted conditional in x86 HVM guests' dirty video RAM tracking code allows such guests to make Xen de-reference a pointer guaranteed to point at unmapped space. A malicious or buggy HVM g...