Executive Summary
In September 2024, cybersecurity researchers observed a surge in malicious actors targeting the .well-known directory on web servers to deploy PHP-based webshells. Attackers exploited this typically-overlooked directory, intended for status and authentication files, as it remains web-accessible but hidden within the Unix filesystem. Logs and honeypot data detailed repeated attempts to probe and establish footholds via .well-known and its subdirectories, such as acme-challenge and pki-validation, with the clear goal of persistent, covert remote control.
This technique illustrates an evolving trend in web application attacks, where multistage threats exploit common web standards and overlooked controls. Organizations face heightened risk from such stealthy compromises, underscoring the need for continuous monitoring and adaptive defense in the current threat landscape.
Why This Matters Now
Attackers are increasingly exploiting trusted web infrastructure like .well-known directories to evade detection and gain stealthy access. With heightened digital transformation and reliance on automated domain validation, the urgency to secure these entry points—and to monitor for hidden webshells—has never been greater.
Attack Path Analysis
Attackers scanned for publicly exposed .well-known directories and uploaded PHP-based webshells to gain initial foothold on web servers. Once present, the webshells enabled illicit remote access and the potential elevation of privileges within the target environment. If controls were weak, attackers then used the webshell to pivot laterally inside the cloud network, seeking additional assets. The webshell facilitated interactive command and control, allowing for persistent access. Attackers likely attempted to exfiltrate sensitive data or credentials using covert outbound channels. In final stages, impact could include further malware deployment or disruption of web application availability.
Kill Chain Progression
Initial Compromise
Description
Attackers leveraged unauthenticated access to publicly exposed .well-known directories to deploy PHP webshells on the web application.
Related CVEs
CVE-2022-29464
CVSS 9.8Unrestricted file upload vulnerability in certain WSO2 products allows remote code execution via crafted requests to the /fileupload endpoint.
Affected Products:
WSO2 API Manager – 2.2.0 up to 4.0.0
WSO2 Identity Server – 5.2.0 up to 5.11.0
WSO2 Enterprise Integrator – 6.2.0 up to 6.6.0
Exploit Status:
exploited in the wildCVE-2014-2217
CVSS 9.8Weak encryption keys in Telerik UI for ASP.NET AJAX allow arbitrary file upload and potential remote code execution.
Affected Products:
Telerik UI for ASP.NET AJAX – prior to 2014 Q1 SP1
Exploit Status:
exploited in the wildCVE-2014-9619
CVSS 8.8Unrestricted file upload vulnerability in Netsweeper allows remote authenticated users to execute arbitrary PHP code.
Affected Products:
Netsweeper Netsweeper – up to 3.1.9, 4.0.x up to 4.0.8, 4.1.x up to 4.1.1
Exploit Status:
exploited in the wild
MITRE ATT&CK® Techniques
Exploit Public-Facing Application
Server Software Component: Web Shell
Command and Scripting Interpreter: Windows Command Shell
Application Layer Protocol: Web Protocols
Masquerading: Match Legitimate Name or Location
Ingress Tool Transfer
Obfuscated Files or Information
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Public-Facing Application Security
Control ID: 6.4.2
NYDFS 23 NYCRR 500 – Cybersecurity Policy
Control ID: 500.03
DORA – ICT Risk Management Requirements
Control ID: Article 8(1)
CISA ZTMM 2.0 – Prevent and Detect Malicious Code Execution
Control ID: Application and Workload Security
NIS2 Directive – Incident Handling and Response
Control ID: Article 21(2)(d)
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
Web application attacks targeting .well-known directories threaten software platforms requiring robust egress security, zero trust segmentation, and multicloud visibility controls.
Internet
Webshell attacks in .well-known directories exploit web infrastructure vulnerabilities, demanding enhanced threat detection, anomaly response, and cloud firewall protection mechanisms.
Information Technology/IT
Hidden webshell placement attacks compromise IT service delivery, requiring comprehensive east-west traffic security, inline IPS inspection, and kubernetes security implementations.
Financial Services
Web application attacks on .well-known directories threaten PCI compliance requiring encrypted traffic protection, policy enforcement, and secure hybrid connectivity solutions.
Sources
- Webshells Hiding in .well-known Places, (Thu, Sep 25th)https://isc.sans.edu/diary/rss/32320Verified
- Webshells in Well-Known Paths: A Stealthy Persistence Vectorhttps://redsec.ninja/2025/09/26/webshells-in-well-known-path/Verified
- Webshell Attacks Explained: How SiteWALL WAF Detects and Blocks Hidden Threatshttps://www.sitewall.net/webshell-threats-detection-and-prevention/Verified
- NVD - CVE-2022-29464https://nvd.nist.gov/vuln/detail/CVE-2022-29464Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Zero Trust segmentation, east-west controls, and egress enforcement would have limited attacker access, contained lateral movement from the infected web server, and prevented unauthorized outbound communications or data exfiltration. CNSF visibility and inline IPS would provide rapid detection and block malicious webshell activity in real time.
Control: Cloud Firewall (ACF)
Mitigation: Detection or prevention of unauthorized webshell upload attempts.
Control: Threat Detection & Anomaly Response
Mitigation: Rapid detection of anomalous privilege escalation behavior.
Control: Zero Trust Segmentation
Mitigation: Containment of compromise to the initial web server, stopping lateral spread.
Control: Inline IPS (Suricata)
Mitigation: Detection and blocking of known webshell C2 traffic.
Control: Egress Security & Policy Enforcement
Mitigation: Prevention of unauthorized data exfiltration to untrusted destinations.
Real-time alerting and intervention on destructive actions.
Impact at a Glance
Affected Business Functions
- Web Services
- Customer Portals
- E-commerce Platforms
Estimated downtime: 3 days
Estimated loss: $50,000
Potential exposure of sensitive customer data, including personal information and payment details, due to unauthorized access via webshells.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce strict cloud firewall rules and web application access controls for .well-known and related directories.
- • Deploy Zero Trust segmentation to control and limit communication between web workloads and sensitive resources.
- • Implement east-west and egress filtering to contain lateral movement and data leaks from compromised applications.
- • Leverage inline IPS and threat detection for real-time identification of webshell and C2 activity.
- • Centralize multicloud visibility and automate anomaly response for faster incident detection and remediation.



