Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may backdoor web servers with web shells to establish persistent access to systems.
.claude/skills/cyberstrikeus-t1505-003-web-shell/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 81% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -50% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 50% | 0% |
| case-13 | ✓→✗ | ▼ Worse | 75% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 26% | 0% |
> Sub-technique of: T1505
Adversaries may backdoor web servers with web shells to establish persistent access to systems. A Web shell is a Web script that is placed on an openly accessible Web server to allow an adversary to access the Web server as a gateway into a network. A Web shell may provide a set of functions to execute or a command-line interface on the system that hosts the Web server.
In addition to a server-side script, a Web shell may have a client interface program that is used to talk to the Web server (e.g. China Chopper Web shell client).
Platforms: Linux, macOS, Network Devices, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
This test simulates an adversary leveraging Web Shells by simulating the file modification to disk. Idea from APTSimulator. cmd.aspx source - https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/asp/cmd.aspx
Supported Platforms: windows
cmdxcopy /I /Y "#{web_shells}" #{web_shell_path}
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Consider disabling functions from web technologies such as PHP’s evaI() that may be abused for web shells.
Enforce the principle of least privilege by limiting privileges of user accounts so only authorized accounts can modify the web directory.
| Finding | Severity | Impact | | ------------------------------ | -------- | ----------- | | Web Shell technique applicable | High | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.