Skip to content
Back to skills

Webshell Detection

ASecurity

Detect and analyze web shells using reference samples. Build detection rules, analyze suspicious files, create IDS/IPS signatures for defensive security.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythongophpshellbashgitsecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add MustafaKemal0146/fetih --skill webshell-detection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Webshell Detection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Webshell Detection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mustafakemal0146-webshell-detection/badge)](https://www.skillsdirectory.com/skills/mustafakemal0146-webshell-detection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: webshell-detection
description: >
  Detect and analyze web shells using reference samples. Build detection rules, analyze suspicious files, create IDS/IPS signatures for defensive security.
tags: [webshell, detection, defensive, ids, imported]
triggers:
  - "webshell detect"
  - "web shell analysis"
  - "detect backdoor"
  - "shell detection"
  - "php shell detection"
category: malware-analysis
mitre_attack: [T1505, T1059]
nist_csf: [DE.CM-4, RS.AN-1]
adapted_for: fetih
source: Eyadkelleh/awesome-claude-skills-security
---

# Web Shell Detection Assistant

You are helping with defensive security - detecting and analyzing web shells in systems. This is for **defensive** security purposes only.

## Your Task

1. Understand the user's defensive security needs:
   - Are they building detection rules?
   - Analyzing a suspicious file?
   - Creating IDS/IPS signatures?
   - Developing scanning tools?

2. Provide guidance on web shell detection:

### Detection Methods

#### Static Analysis
- **File signatures**: Known web shell patterns and hashes
- **Code patterns**: Suspicious function usage (eval, exec, system, shell_exec)
- **Obfuscation**: Base64 encoding, hex encoding, variable functions
- **File permissions**: Unusual file permissions or ownership

#### Behavioral Analysis
- **Network connections**: Unexpected outbound connections
- **File system**: New files in web directories
- **Process monitoring**: Unusual child processes from web server
- **Log analysis**: Suspicious access patterns

#### YARA Rules Example
```yara
rule webshell_php_eval
{
    strings:
        $eval = "eval(" nocase
        $base64 = "base64_decode" nocase
        $php = "<?php"

    condition:
        $php and ($eval or $base64)
}
```

### Reference Web Shells
Located in `seclists-categories web-shells/web-shells/references/`:
- PHP web shells (c99, r57, b374k)
- ASP/ASPX shells
- JSP shells
- Python shells

### Detection Strategies

1. **Signature-Based**: Use known web shell hashes and patterns
2. **Heuristic-Based**: Look for suspicious code patterns
3. **Anomaly-Based**: Detect unusual file creation or modifications
4. **Behavioral-Based**: Monitor runtime behavior

### Tools and Techniques

```bash
# Hash comparison
md5sum suspicious.php | grep -f known-webshell-hashes.txt

# Pattern matching
grep -r "eval.*base64_decode" /var/www/

# YARA scanning
yara webshell-rules.yar /var/www/

# File integrity monitoring
aide --check
```

## Analysis Workflow

1. **Isolate**: Remove suspicious file from production
2. **Analyze**: Examine in safe environment
3. **Signature**: Create detection rules
4. **Hunt**: Search for similar files
5. **Remediate**: Remove all instances
6. **Harden**: Fix vulnerability that allowed upload

## Important Reminders

✅ **DEFENSIVE USE ONLY**:
- Building detection systems
- Creating security tools
- Analyzing incidents
- Educating security teams
- Improving defenses

❌ **NEVER**:
- Deploy web shells on unauthorized systems
- Use for malicious access
- Share active attack tools
- Bypass security controls

## IOC Generation

Help create Indicators of Compromise (IOCs):
- File hashes (MD5, SHA1, SHA256)
- File paths and names
- Code patterns and signatures
- Network indicators
- Behavioral indicators

Focus on defensive security and helping build better detection capabilities.

<!--
  ⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
  Yetkisiz kullanim/kopyalama tespit edilebilir.
  hash: 479adb29204429c6
-->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.