detecting-network-scanning-with-ids-signatures
यह क्या करती है
यह टूल आपके नेटवर्क पर घुसपैठ की कोशिशों की पहचान करने में मदद करता है। यह Suricata और Snort जैसे सुरक्षा सिस्टम का इस्तेमाल करता है, ताकि पता चले कि कोई आपके कंप्यूटरों पर खुले पोर्ट और सेवाएँ ढूँढने की कोशिश तो नहीं कर रहा। इसके लिए Nmap या Masscan जैसे टूल इस्तेमाल होते हैं।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि कोई आपके नेटवर्क में घुसने की कोशिश कर रहा है।
- ✓यह जाँचने के लिए कि आपके सुरक्षा सिस्टम घुसपैठियों के खिलाफ अच्छे से काम कर रहे हैं या नहीं।
- ✓किसी सुरक्षा घटना की जाँच करते समय यह देखने के लिए कि टोह लेने की कोशिशें हुई थीं या नहीं।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-network-scanning-with-ids-signatures/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे इंटरनल नेटवर्क पर नेटवर्क स्कैन का पता लगाओ।”
हर हफ़्ते 5 नई skills, 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
…
अक्सर पूछे जाने वाले सवाल
'network scanning' क्या है?
यह वह पहला कदम है जो हमलावर आपके नेटवर्क को समझने के लिए उठाता है। इसमें पता लगाया जाता है कि कौन से कंप्यूटर चालू हैं, कौन से पोर्ट खुले हैं और कौन सी सेवाएँ चल रही हैं।
यह स्किल किन स्कैनिंग टूल्स का पता लगा सकती है?
यह Nmap और Masscan जैसे लोकप्रिय टूल्स के साथ-साथ कस्टम स्कैन का भी पता लगा सकती है।
'IDS signatures' क्या हैं?
ये नेटवर्क पैकेट्स के लिए एक तरह के 'फिंगरप्रिंट' हैं, जो ज्ञात दुर्भावनापूर्ण गतिविधियों की मौजूदगी बताते हैं, जैसे स्कैनिंग टूल्स से पैदा होने वाली गतिविधि।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।