Chuyển đến nội dung
Skillpedia
Agent35k · #7854

detecting-network-scanning-with-ids-signatures

Skill này làm gì

Công cụ này giúp nhận diện các nỗ lực xâm nhập trên mạng của bạn. Nó dùng các hệ thống bảo mật (như Suricata và Snort) để phát hiện khi ai đó cố tìm cổng và dịch vụ nào đang mở trên máy tính của bạn, bằng các công cụ như Nmap hoặc Masscan.

Khi nào nên dùng

  • ✓Khi bạn nghi ngờ có ai đó đang cố xâm nhập mạng của bạn.
  • ✓Để kiểm tra xem hệ thống bảo mật có hiệu quả trước kẻ xâm nhập không.
  • ✓Khi điều tra một sự cố bảo mật để xem có hoạt động trinh sát xảy ra không.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-network-scanning-with-ids-signatures/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/detecting-network-scanning-with-ids-signatures/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

“Hãy phát hiện các lần quét mạng trong mạng nội bộ của tôi.”

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

Cách hoạt động

Công cụ thiết lập quy tắc trong các hệ thống bảo mật. Những quy tắc này tìm mẫu lưu lượng cho thấy việc dùng công cụ quét như Nmap hoặc Masscan, hoặc đếm nhiều lần thử kết nối trong thời gian ngắn.

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.

Detecting Network Scanning with IDS Signatures

Overview

Network scanning is typically the first phase of an attack, where adversaries enumerate live hosts, open ports, running services, and OS versions using tools like Nmap, Masscan, ZMap, and custom scanners. Detecting this reconnaissance activity provides early warning of potential attacks. IDS/IPS systems like Suricata and Snort can identify scanning through signature-based detection (matching known scanner packet patterns), threshold-based detection (counting connection attempts over time), and anomaly detection (identifying unusual traffic patterns). This skill covers writing and deploying IDS signatures for scan detection, configuring threshold-based alerting, and correlating scan activity with downstream attack indicators.

When to Use

  • When investigating security incidents that require detecting network scanning with ids signatures
  • 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

  • Suricata 7.0+ or Snort 3.0+ deployed in IDS/IPS mode
  • Network TAP or SPAN port for traffic visibility
  • Emerging Threats ruleset enabled
  • Logging infrastructure for alert analysis (ELK Stack, Splunk)
  • Baseline understanding of normal network traffic patterns

Core Concepts

Scanning Techniques and Detection Indicators

Scan Type Nmap Flag Packet Characteristics Detection Method
TCP SYN -sS SYN flag only, no completion SYN without SYN/ACK response pattern
TCP Connect -sT Full 3-way handshake Multiple connections from single source
TCP FIN -sF FIN flag only FIN to closed port (RST response)
TCP Xmas -sX FIN+PSH+URG flags Unusual flag combination
TCP NULL -sN No flags set Zero-flag TCP packet
UDP Scan -sU UDP to many ports ICMP port unreachable responses
ACK Scan -sA ACK flag only (firewall probing) Unsolicited ACK packets
SYN/ACK Scan Custom SYN+ACK without prior SYN State violation
OS Fingerprint -O Unusual TCP options/window sizes Specific option combinations
Version Detect -sV Service probe strings Known probe payloads

Nmap Timing Templates

Template Nmap Flag Speed Detection Difficulty
Paranoid -T0 1 probe/5 min Very difficult
Sneaky -T1 1 probe/15 sec Difficult
Polite -T2 1 probe/0.4 sec Moderate
Normal -T3 Default parallelism Easy
Aggressive -T4 Parallel, 1.25s timeout Very easy
Insane -T5 Maximum parallelism Trivial

Workflow

Step 1: Deploy Suricata Scan Detection Rules

Create /var/lib/suricata/rules/scan-detection.rules:

# === TCP Scan Detection ===

# Detect TCP SYN scan (high volume SYN without completion)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP SYN Scan Detected"; flags:S,12; threshold:type both,track by_src,count 30,seconds 10; classtype:attempted-recon; sid:5000001; rev:2;)

# Detect TCP FIN scan
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP FIN Scan"; flags:F,12; threshold:type both,track by_src,count 20,seconds 60; classtype:attempted-recon; sid:5000002; rev:1;)

# Detect TCP Xmas scan (FIN+PSH+URG)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP Xmas Tree Scan"; flags:FPU,12; classtype:attempted-recon; sid:5000003; rev:1;)

# Detect TCP NULL scan (no flags)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP NULL Scan"; flags:0,12; classtype:attempted-recon; sid:5000004; rev:1;)

# Detect ACK scan (firewall probing)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP ACK Scan"; flags:A,12; flow:stateless; threshold:type both,track by_src,count 50,seconds 30; classtype:attempted-recon; sid:5000005; rev:1;)

# Detect SYN+ACK scan (unusual stateless probe)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"SCAN TCP SYN-ACK Scan"; flags:SA,12; flow:stateless; threshold:type both,track by_src,count 30,seconds 30; classtype:attempted-recon; sid:5000006; rev:1;)

# === UDP Scan Detection ===

# Detect UDP port scan

…
Câu hỏi thường gặp

“Quét mạng” là gì?

Đó là bước đầu tiên của kẻ tấn công để hiểu mạng của bạn: tìm máy tính nào đang trực tuyến, cổng nào đang mở và dịch vụ nào đang chạy.

Skill này phát hiện những công cụ quét nào?

Nó phát hiện các công cụ phổ biến như Nmap và Masscan, cũng như các lần quét tùy chỉnh.

“Chữ ký IDS” là gì?

Đó giống như “dấu vân tay” của các gói tin mạng, cho thấy sự hiện diện của hoạt động độc hại đã biết, chẳng hạn như những hoạt động do công cụ quét tạo ra.

Chi tiết

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

Detect network reconnaissance and port scanning using Suricata and Snort IDS signatures, threshold-based detection rules, and traffic anomaly analysis to identify Nmap, Masscan, and custom scanning activity.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7854
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ự