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

4/29/2020
12:10 PM
50%
50%

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
Comments
Newest First  |  Oldest First  |  Threaded View
aidancheney
50%
50%
aidancheney,
User Rank: Apprentice
5/6/2020 | 9:58:37 AM
Re: Web traffic
Agree
RyanSepe
50%
50%
RyanSepe,
User Rank: Ninja
4/30/2020 | 12:46:22 PM
Re: Web traffic
Most definitely. It is sad to see that even in times of crisis, people still have a sense of depravity. It never ceases to amaze.
Dr.T
50%
50%
Dr.T,
User Rank: Ninja
4/29/2020 | 8:25:54 PM
Segmentation
Companies should use network segmentation to prevent Internet-facing Web servers from being used as a beachhead into the rest of the network Network segmentation will help many different ways in this situation.
Dr.T
50%
50%
Dr.T,
User Rank: Ninja
4/29/2020 | 8:24:25 PM
Web apps
The Web is not just on the Internet, Good point to make. Web apps would have the same vulnerabilities.
Dr.T
50%
50%
Dr.T,
User Rank: Ninja
4/29/2020 | 8:21:40 PM
10%
Rapid7 estimates that about 10% of the attacks it investigates use a Web shell for access and persistance. 10% is a big number to deal with, additional prevention measures are needed.
Dr.T
50%
50%
Dr.T,
User Rank: Ninja
4/29/2020 | 8:19:07 PM
Big number
Roughly every month, Microsoft detects an average of 77,000 Web shell and related artifacts on some 46,000 machines, the company said. That is a big number. Detection and prevention is critical obviously.
Dr.T
50%
50%
Dr.T,
User Rank: Ninja
4/29/2020 | 8:15:26 PM
Web traffic
Web shells remain a stealthy way for attackers to continue to issue commands to compromised networks because the technique utilizes ubiquitous Web traffic. Especially these days having high web traffic would make the situation worse.
COVID-19: Latest Security News & Commentary
Dark Reading Staff 6/3/2020
Stay-at-Home Orders Coincide With Massive DNS Surge
Robert Lemos, Contributing Writer,  5/27/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
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
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-20811
PUBLISHED: 2020-06-03
An issue was discovered in the Linux kernel before 5.0.6. In rx_queue_add_kobject() and netdev_queue_add_kobject() in net/core/net-sysfs.c, a reference count is mishandled, aka CID-a3e23f719f5c.
CVE-2019-20812
PUBLISHED: 2020-06-03
An issue was discovered in the Linux kernel before 5.4.7. The prb_calc_retire_blk_tmo() function in net/packet/af_packet.c can result in a denial of service (CPU consumption and soft lockup) in a certain failure case involving TPACKET_V3, aka CID-b43d1f9f7067.
CVE-2020-13776
PUBLISHED: 2020-06-03
systemd through v245 mishandles numerical usernames such as ones composed of decimal digits or 0x followed by hex digits, as demonstrated by use of root privileges when privileges of the 0x0 user account were intended. NOTE: this issue exists because of an incomplete fix for CVE-2017-1000082.
CVE-2019-20810
PUBLISHED: 2020-06-03
go7007_snd_init in drivers/media/usb/go7007/snd-go7007.c in the Linux kernel before 5.6 does not call snd_card_free for a failure path, which causes a memory leak, aka CID-9453264ef586.
CVE-2020-4026
PUBLISHED: 2020-06-03
The CustomAppsRestResource list resource in Atlassian Navigator Links before version 3.3.23, from version 4.0.0 before version 4.3.7, from version 5.0.0 before 5.0.1, and from version 5.1.0 before 5.1.1 allows remote attackers to enumerate all linked applications, including those that are restricted...