sohan-a11y/ageis-ai-pentester/analyzing-web-server-logs-for-intrusion
Claude Code and agent skill by sohan-a11y/ageis-ai-pentester
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Parse Apache and Nginx access logs to detect SQL injection attempts, local file inclusion, directory traversal,
Install
npx vskill@latest install sohan-a11y/ageis-ai-pentester/analyzing-web-server-logs-for-intrusionSKILL.md
The same SKILL.md was published earlier as sohan-a11y/ageis-ai-pentester/analyzing-web-server-logs-for-intrusion.
Analyzing Web Server Logs for Intrusion
When to Use
- When investigating security incidents that require analyzing web server logs for intrusion
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Detection Gaps & Validation
- Regex misses encoded SQLi:
UNION SELECTandOR 1=1are easy, but URL-encoding (%55NION), inline comments (UNI/**/ON SE/**/LECT), case mixing, and double-encoding bypass naive signatures. Normalize (URL-decode twice, strip comments, lowercase) before matching, and prefer libinjection-style tokenization over literal strings. - POST bodies and headers are invisible in access logs: Apache/Nginx access logs record only the request line and query string — SQLi/XSS/LFI in POST bodies, cookies, or custom headers won't appear unless mod_security audit logging or body capture is enabled. State this coverage gap explicitly; an empty result over
access.logis not proof of no attack. - Scanner UA spoofing: sophisticated actors set a Chrome User-Agent, so
nikto|sqlmap|gobusterUA matching only catches lazy scans. Add request-rate, 404-ratio, and path-fuzzing-burst heuristics independent of UA. - LFI/traversal evasion: beyond
../etc/passwd, test..%2f,..%252f(double-encode),....//, and absolute/etc/passwdwith no traversal — matchroot:.*:0:0:in responses, not just the request. - Validate the rules fire: replay a labeled attack log (sqlmap run, dirbuster sweep, a brute-force burst >50 POSTs/5min to
/login) through the parser and confirm each rule and the GeoIP enrichment populate. FP tuning: WAF health checks, search-engine bots, and legitimate apps passing SQL keywords in search fields cause false hits — baseline trusted IPs/paths.
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
- Install dependencies:
pip install geoip2 user-agents - Collect web server access logs in Combined Log Format (Apache) or Nginx default format.
- Parse each log entry extracting: IP, timestamp, method, URI, status code, response size, user-agent, referer.
- Apply detection 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
- Enrich with GeoIP data and generate a prioritized findings report.
Examples
Detect SQLi in URI
Scanner User-Agent Detection
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingxalgorix-main/internal/tools/skills/data/security-operations/analyzing-web-server-logs-for-intrusion/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sohan-a11y/ageis-ai-pentester/analyzing-web-server-logs-for-intrusion)