razor25000/cybersecurityskills/analyzing-web-server-logs-for-intrusion

Claude Code and agent skill by razor25000/cybersecurityskills

Trust tier 2
  • community
LLM review pending
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,

Install

npx vskill@latest install razor25000/cybersecurityskills/analyzing-web-server-logs-for-intrusion

SKILL.md

The same SKILL.md was published earlier as razor25000/cybersecurityskills/analyzing-web-server-logs-for-intrusion.

Analyzing Web Server Logs for Intrusion

When to Use

  • When a SIEM alert fires and you need a structured triage procedure to avoid false positive fatigue
  • When building new detection content and need reference queries for this technique
  • When security operations need to reduce mean-time-to-detect (MTTD) on a specific attack pattern
  • When a new log source is onboarded and needs baseline correlation rules
  • When reviewing SOC metrics and identifying detection gaps by ATT&CK tactic coverage
  • When a purple team exercise reveals detection blind spots that require new rule development

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

  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 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
  1. Enrich with GeoIP data and generate a prioritized findings report.
bash
python scripts/agent.py --log-file /var/log/nginx/access.log --geoip-db GeoLite2-City.mmdb --output web_intrusion_report.json

Examples

Detect SQLi 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 Detection
Nikto/2.1.6, sqlmap/1.7, DirBuster-1.0-RC1, gobuster/3.1.0

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/razor25000/cybersecurityskills/analyzing-web-server-logs-for-intrusion/badge)](https://verified-skill.com/skills/razor25000/cybersecurityskills/analyzing-web-server-logs-for-intrusion)

Something wrong with this skill or its page? Tell us.