Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính35k · #7664

analyzing-web-server-logs-for-intrusion

Skill này làm gì

Công cụ này phân tích nhật ký máy chủ web của bạn (như Apache hoặc Nginx) để tìm các lần tấn công, như SQL injection, truy cập file trái phép hoặc đoán mật khẩu. Nó giúp xác định ai đang cố hack website của bạn và bằng cách nào.

Khi nào nên dùng

  • ✓Khi bạn nghi ngờ website của mình đã bị tấn công.
  • ✓Để kiểm tra xem hệ thống bảo mật của bạn có hoạt động không.
  • ✓Khi điều tra hoạt động đáng ngờ trong nhật ký máy chủ.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-web-server-logs-for-intrusion/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-web-server-logs-for-intrusion/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích nhật ký máy chủ web của tôi để tìm các cuộc tấn công.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ đọc nhật ký máy chủ, tìm các mẫu tấn công đã biết bằng các quy tắc (như “UNION SELECT” cho SQL injection) và kiểm tra số lần truy cập quá nhiều từ cùng một nơi. Nó cũng bổ sung thông tin vị trí cho các cuộc tấn công.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  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
  5. 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
Câu hỏi thường gặp

“Nhật ký máy chủ web” là gì?

Đây là các file ghi lại mọi hoạt động trên website của bạn, như ai đã truy cập, xem trang nào và khi nào.

SQL injection là gì?

Đây là kiểu tấn công mà kẻ xấu cố chèn các lệnh SQL độc hại vào ô nhập liệu để truy cập hoặc sửa đổi dữ liệu trong cơ sở dữ liệu của bạn.

“GeoIP enrichment” là gì?

Đây là việc bổ sung thông tin về vị trí địa lý (quốc gia, thành phố) nơi cuộc tấn công xuất phát, dựa trên địa chỉ IP của kẻ tấn công.

Chi tiết

Mô tả gốc của tác giả

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.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7664
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự