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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
인기도
- GitHub 스타
- 35k
- 순위
- #7854
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.