New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Hunting For Webshell Activity

Free

Proactively detect web shell threats on servers.

Get this skill

Free · Opens the source repo

What Hunting For Webshell Activity does

The Hunting For Webshell Activity skill is designed for cybersecurity professionals seeking to identify and mitigate web shell threats on internet-facing servers. This skill operates on a hypothesis-driven approach, allowing users to analyze file creation in web directories, suspicious child-process spawning from web server processes, and anomalous HTTP request patterns. It is particularly useful in scenarios following a public-facing application compromise or when alerts are triggered by EDR/SIEM systems regarding web server process anomalies.

Users can leverage this skill during incident response to effectively scope potential compromises related to web shell techniques. The workflow begins with formulating a hypothesis based on threat intelligence or ATT&CK gap analysis, followed by identifying necessary data sources. Users execute queries against their EDR and SIEM platforms to collect relevant events, analyze the results for anomalies, and validate findings through contextual analysis. This systematic approach helps in correlating activities with broader attack chains and threat actor tactics, techniques, and procedures (TTPs).

The skill requires a robust security infrastructure, including an EDR platform with telemetry capabilities, a SIEM for log analysis, and threat intelligence feeds for IOC correlation. It is aimed at security analysts, incident responders, and threat hunters looking to enhance their detection capabilities against web shell threats. By documenting and reporting findings, users can update detection rules and recommend appropriate response actions, ensuring a proactive stance against potential threats.

When to use it

Use this skill when proactively hunting for web shell indicators or during incident response to investigate potential compromises.

When not to use it

This skill may not be suitable for environments without the required EDR or SIEM systems in place, or for users unfamiliar with threat hunting methodologies.

What you can build with it

Proactive Threat Hunting

Utilize the skill to actively search for indicators of web shell activity in your environment.

Incident Response

Deploy the skill during incident response to assess and scope compromises related to web shell techniques.

Security Assessments

Incorporate the skill into periodic security assessments to evaluate the resilience of your web servers against web shell threats.

How to install Hunting For Webshell Activity

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/hunting-for-webshell-activity --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Hunting For Webshell Activity

When to Use

  • When proactively hunting for indicators of hunting for webshell activity in the environment
  • After threat intelligence indicates active campaigns using these techniques
  • During incident response to scope compromise related to these techniques
  • When EDR or SIEM alerts trigger on related indicators
  • During periodic security assessments and purple team exercises

Prerequisites

  • EDR platform with process and network telemetry (CrowdStrike, MDE, SentinelOne)
  • SIEM with relevant log data ingested (Splunk, Elastic, Sentinel)
  • Sysmon deployed with comprehensive configuration
  • Windows Security Event Log forwarding enabled
  • Threat intelligence feeds for IOC correlation

Workflow

  1. Formulate Hypothesis: Define a testable hypothesis based on threat intelligence or ATT&CK gap analysis.
  2. Identify Data Sources: Determine which logs and telemetry are needed to validate or refute the hypothesis.
  3. Execute Queries: Run detection queries against SIEM and EDR platforms to collect relevant events.
  4. Analyze Results: Examine query results for anomalies, correlating across multiple data sources.
  5. Validate Findings: Distinguish true positives from false positives through contextual analysis.
  6. Correlate Activity: Link findings to broader attack chains and threat actor TTPs.
  7. Document and Report: Record findings, update detection rules, and recommend response actions.

Key Concepts

ConceptDescription
T1505.003Web Shell
T1190Exploit Public-Facing Application
T1059.001PowerShell

Tools & Systems

ToolPurpose
CrowdStrike FalconEDR telemetry and threat detection
Microsoft Defender for EndpointAdvanced hunting with KQL
Splunk EnterpriseSIEM log analysis with SPL queries
Elastic SecurityDetection rules and investigation timeline
SysmonDetailed Windows event monitoring
VelociraptorEndpoint artifact collection and hunting
Sigma RulesCross-platform detection rule format

Common Scenarios

  1. Scenario 1: China Chopper web shell via IIS vulnerability
  2. Scenario 2: ASPXSpy through vulnerable upload
  3. Scenario 3: PHP shell hidden in image file
  4. Scenario 4: JSP shell via Tomcat manager console

Output Format

Hunt ID: TH-HUNTIN-[DATE]-[SEQ]
Technique: T1505.003
Host: [Hostname]
User: [Account context]
Evidence: [Log entries, process trees, network data]
Risk Level: [Critical/High/Medium/Low]
Confidence: [High/Medium/Low]
Recommended Action: [Containment, investigation, monitoring]

Frequently asked questions about Hunting For Webshell Activity

Similar skills