hunting-for-lateral-movement-via-wmi
यह क्या करती है
यह टूल ऐसी संदिग्ध गतिविधि खोजता है जिससे पता चले कि किसी ने WMI का इस्तेमाल करके नेटवर्क के दूसरे कंप्यूटरों तक पहुंचने की कोशिश की है। यह event logs का विश्लेषण करके remote command execution के संकेत ढूंढता है।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि कोई घुसपैठिया नेटवर्क में घुस चुका है और फैल रहा है।
- ✓किसी security incident की जांच करते समय यह समझने के लिए कि यह कैसे हुआ।
- ✓यह जांचने के लिए कि आपके security systems इस तरह के हमले को पकड़ पा रहे हैं या नहीं।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-lateral-movement-via-wmi/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“event logs में WMI का इस्तेमाल करके lateral movement खोजो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल Windows और Sysmon के event records को देखता है, और ऐसे WmiPrvSE.exe प्रोग्राम को ढूंढता है जो cmd.exe या powershell.exe जैसे खतरनाक प्रोग्राम शुरू कर रहा हो। यह ऐसी संदिग्ध सेटिंग्स की भी जांच करता है जिनसे हमलावर अपनी पहुंच बनाए रख सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Hunting for Lateral Movement via WMI
Overview
Windows Management Instrumentation (WMI) is commonly abused for lateral movement via wmic process call create or Win32_Process.Create() to execute commands on remote hosts. Detection focuses on identifying WmiPrvSE.exe spawning child processes (cmd.exe, powershell.exe) in Windows Security Event ID 4688 and Sysmon Event ID 1 logs, along with WMI-Activity/Operational events (5857, 5860, 5861) for event subscription persistence.
When to Use
- When investigating security incidents that require hunting for lateral movement via wmi
- 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
- Windows Security Event Logs with Process Creation auditing enabled (Event 4688 with command line)
- Sysmon installed with Event ID 1 (Process Creation) configured
- Python 3.9+ with
python-evtx,lxmllibraries - Understanding of WMI architecture and WmiPrvSE.exe behavior
Steps
Step 1: Parse Process Creation Events
Extract Event ID 4688 and Sysmon Event 1 entries from EVTX files.
Step 2: Detect WmiPrvSE Child Processes
Flag processes where ParentImage/ParentProcessName is WmiPrvSE.exe, indicating remote WMI execution.
Step 3: Analyze Command Line Patterns
Identify suspicious command lines matching WMI lateral movement patterns (cmd.exe /q /c, output redirection to admin$ share).
Step 4: Check WMI Event Subscriptions
Parse WMI-Activity/Operational log for event consumer creation indicating persistence.
Expected Output
JSON report with WMI-spawned processes, suspicious command lines, WMI event subscription alerts, and timeline of lateral movement activity.
अक्सर पूछे जाने वाले सवाल
WMI क्या है?
WMI एक Windows टूल है जिससे कंप्यूटरों को मैनेज किया जाता है। हमलावर इसका इस्तेमाल करके दूसरे कंप्यूटरों पर बिना आसानी से पकड़े गए commands चला सकते हैं।
'event logs' क्या होते हैं?
ये कंप्यूटर की डायरी जैसे होते हैं जिनमें दर्ज रहता है कि क्या हुआ, किसने क्या किया और कब। यह टूल इन डायरियों को पढ़कर संदिग्ध गतिविधियां ढूंढता है।
'lateral movement' क्या है?
जब कोई हमलावर एक कंप्यूटर में घुसने के बाद उसी नेटवर्क के दूसरे कंप्यूटरों तक पहुंचने की कोशिश करता है, ताकि और कंट्रोल पा सके या ज़्यादा जानकारी चुरा सके।
जानकारी
लेखक का मूल विवरण
Detects WMI-based lateral movement (e.g. wmic process call create, Win32_Process.Create()) by analyzing Windows Event ID 4688 and Sysmon Event ID 1 for WmiPrvSE.exe spawning suspicious child processes like cmd.exe or powershell.exe, plus WMI-Activity/Operational events 5857/5860/5861 for subscription-based persistence. Use when hunting for remote code execution via WMI or investigating lateral mov
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7960
- लाइसेंस
- 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
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।