analyzing-web-server-logs-for-intrusion
यह क्या करती है
यह टूल आपके वेब सर्वर के लॉग (जैसे Apache या Nginx) का विश्लेषण करता है और हमले की कोशिशें ढूंढता है, जैसे SQL injection, बिना अनुमति फाइल एक्सेस, या पासवर्ड अनुमान लगाना। इससे पता चलता है कि आपकी साइट को कौन हैक करने की कोशिश कर रहा है और कैसे।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि आपकी वेबसाइट पर हमला हुआ है।
- ✓यह जांचने के लिए कि आपका सुरक्षा सिस्टम ठीक से काम कर रहा है या नहीं।
- ✓सर्वर लॉग में किसी संदिग्ध गतिविधि की जांच करते समय।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-web-server-logs-for-intrusion/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे वेब सर्वर के लॉग का विश्लेषण करके हमलों का पता लगाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल सर्वर लॉग पढ़ता है, नियमों (जैसे SQL injection के लिए 'UNION SELECT') की मदद से ज्ञात हमले के पैटर्न खोजता है, और देखता है कि एक ही जगह से बहुत ज़्यादा एक्सेस की कोशिशें तो नहीं हुईं। साथ ही हमलों की लोकेशन की जानकारी भी जोड़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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
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
- SQL injection:
- Enrich with GeoIP data and generate a prioritized findings report.
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
अक्सर पूछे जाने वाले सवाल
'वेब सर्वर लॉग' क्या होते हैं?
ये ऐसी फाइलें हैं जिनमें आपकी वेबसाइट पर होने वाली सारी गतिविधि दर्ज रहती है, जैसे कौन आया, किन पेजों पर गया और कब।
'SQL injection' क्या है?
यह एक तरह का हमला है जिसमें हमलावर फॉर्म फील्ड में खतरनाक SQL कमांड डालकर आपके डेटाबेस का डेटा देखने या बदलने की कोशिश करता है।
'GeoIP enrichment' क्या है?
यह हमलावर के IP पते के आधार पर उस देश और शहर की जानकारी जोड़ने की प्रक्रिया है, जहां से हमला आ रहा है।
जानकारी
लेखक का मूल विवरण
Parse Apache and Nginx access logs to detect SQL 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 detection for request frequency and response size outliers.
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7664
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।