본문으로 건너뛰기
Skillpedia
에이전트35k · #7854

detecting-network-scanning-with-ids-signatures

하는 일

이 도구는 네트워크에 대한 침입 시도를 식별하도록 돕습니다. 누군가 Nmap이나 Masscan 같은 도구를 사용해 컴퓨터의 열린 포트와 서비스를 찾으려는 것을 탐지하도록 Suricata나 Snort 같은 보안 시스템을 사용합니다.

사용하는 경우

  • ✓누군가 네트워크를 뚫으려 한다고 의심될 때.
  • ✓보안 시스템이 침입자에 대해 잘 작동하는지 확인할 때.
  • ✓보안 사고를 조사해 정찰 시도가 있었는지 알아보는 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-network-scanning-with-ids-signatures/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-network-scanning-with-ids-signatures/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내부 네트워크에서 네트워크 스캔을 탐지해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 보안 시스템에 규칙을 설정하는 방식으로 작동합니다. 이 규칙은 Nmap이나 Masscan 같은 스캔 도구의 사용을 나타내는 트래픽 패턴을 찾거나, 짧은 시간에 많은 연결 시도를 셉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

…
자주 묻는 질문

'네트워크 스캔'이란 무엇인가요?

공격자가 네트워크를 이해하기 위해 가장 먼저 하는 단계로, 온라인인 컴퓨터, 열린 포트, 실행 중인 서비스를 찾는 것입니다.

이 기술은 어떤 스캔 도구를 탐지하나요?

Nmap과 Masscan 같은 널리 쓰이는 도구와 맞춤형 스캔을 탐지합니다.

'IDS 시그니처'란 무엇인가요?

스캔 도구가 만든 것 같은 알려진 악의적 활동을 나타내는 네트워크 패킷의 '지문'과 같습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
35k
순위
#7854
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬