本文へスキップ
Skillpedia
分析とスプレッドシート35k · #7664

analyzing-web-server-logs-for-intrusion

できること

このツールは、Apacheやnginxなどのウェブサーバーのログを分析し、SQLインジェクション、不正なファイルアクセス、パスワードの総当たり攻撃などの攻撃の試みを見つけます。サイトに侵入しようとしているのは誰か、そしてどのような方法を使っているのかを特定するのに役立ちます。

使う場面

  • ✓Webサイトが攻撃されたと疑われるとき。
  • ✓セキュリティ対策が正しく機能しているかを確認したいとき。
  • ✓サーバーログ内の不審なアクティビティを調査するとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-web-server-logs-for-intrusion/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ウェブサーバーのログを分析して、攻撃がないか調べて。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールはサーバーログを読み取り、ルールを使って既知の攻撃パターン(SQLインジェクションの「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

  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
よくある質問

「ウェブサーバーログ」とは何ですか?

誰がアクセスしたか、どのページを開いたか、いつアクセスしたかなど、Webサイトで行われたすべての動きを記録したファイルです。

「SQLインジェクション」とは何ですか?

攻撃者がフォームの入力欄に悪意のあるSQLコマンドを埋め込み、データベースの情報を取得したり書き換えたりしようとする攻撃の一種です。

「GeoIPによる位置情報の付与」とは何ですか?

攻撃者の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.

repo: mukul975/Anthropic-Cybersecurity-Skills

人気

GitHubのスター
35k
ランキング
#7664
ライセンス
Apache-2.0
更新日
2026/8/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル