Parse Apache and Nginx access logs to tespit etmeSQL injection attempts, local file inclusion, directory traversal, web scanner fingerprints, and brute-force patterns. Uses regex-based pattern
Scanned 9/8/2026
Install to Claude Code
npx -y skills add MustafaKemal0146/fetih --skill analyzing-web-server-logs-for-intrusion --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Analyzing Web Server Logs For Intrusion?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mustafakemal0146-analyzing-web-server-logs-for-intrusion)More formats (shields.io, HTML) on the badges page.
---
name: analyzing-web-server-logs-for-intrusion
description: Parse Apache and Nginx access logs to tespit etmeSQL injection attempts, local file inclusion, directory traversal, web scanner fingerprints, and brute-force patterns. Uses regex-based pattern
matching against OWASP attack signatures, GeoIP enrichment for source attribution, and statistical anomaly Tespit for request frequency and response size outliers.
tags:
- soc-operations
- siber-güvenlik
- security-operations
- analyzing
- web
- logs
- fetih
- cybersecurity
- server
triggers:
- analyzing
- endpoint
- http
- incident
- intrusion
- log
- logs
- password
- server
- sql
- threat
- web
category: soc-operations
source_subdomain: security-operations
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
adapted_for: fetih
---
# Analyzing Web Server Logs for Intrusion
## Ne Zaman Kullanılır
- investigating yaparken security incidents that require analyzing web server logs for intrusion
- building yaparken Tespit rules or threat hunting queries for this domain
- SOC yaparken: analysts need structured procedures for this analysis type
- validating yaparken security monitoring coverage for related attack techniques
## Ön Gereksinimler
- Familiarity with security operations concepts and tools
- Erişim: a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
1. Install dependencies: `pip install geoip2 user-agents`
2. Collect web server access logs in Combined Log Format (Apache) or Nginx default format.
3. Parse each log entry extracting: IP, timestamp, method, URI, status code, response size, user-agent, referer.
4. Apply Tespit rules:
- SQL injection: `UNION SELECT`, `OR 1=1`, `' OR '`, hex encoding patterns
- LFI/Path traversal: `../`, `/etc/passwd`, `/proc/self`, `php://filter`
- XSS: `<script>`, `javascript:`, `onerror=`, `onload=`
- Scanner signatures: nikto, sqlmap, dirbuster, gobuster, wfuzz user-agents
- Brute force: >50 POST requests to login endpoints from same IP in 5 minutes
5. Enrich with GeoIP data and Şunu üret: prioritized Bul:ings report.
```bash
python scripts/agent.py --log-file /var/log/nginx/access.log --geoip-db GeoLite2-City.mmdb --output web_intrusion_report.json
```
## Örnekler
### tespit etmeSQLi in URI
```
192.168.1.100 - - [15/Jan/2024:10:30:45 +0000] "GET /products?id=1' UNION SELECT username,password FROM users-- HTTP/1.1" 200 4532
```
### Scanner User-Agent Tespit
```
Nikto/2.1.6, sqlmap/1.7, DirBuster-1.0-RC1, gobuster/3.1.0
```
<!--
⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
Yetkisiz kullanim/kopyalama tespit edilebilir.
hash: 1bde935a9c1183b1
-->

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!