Skillpedia
التحليل وجداول البيانات35k · #7948

hunting-for-anomalous-powershell-execution

ما الذي تفعله

تبحث هذه المهارة عن أنشطة PowerShell الخبيثة في سجلات أحداث Windows. تحلل السكربتات المنفّذة لإيجاد محاولات إخفاء الأوامر، أو تجاوز الأمان (AMSI)، أو تنزيل كود مشبوه، أو سرقة بيانات الاعتماد.

متى تستخدمها

  • ✓عندما تحقق في حادث أمني يتضمن PowerShell.
  • ✓عندما تنشئ قواعد لكشف نشاط PowerShell المشبوه.
  • ✓عندما تتحقق مما إذا كان نظام المراقبة يكشف الهجمات الشائعة عبر PowerShell.

رابط المهارة

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ابحث عن نشاط PowerShell مشبوه في سجلات الأحداث الخاصة بي.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقرأ المهارة ملفات سجلات أحداث Windows (.evtx) التي تحتوي على معلومات عما نفّذه PowerShell. وتبحث عن أنماط هجوم معروفة، مثل الأوامر المشفّرة أو محاولات تجاوز الأمان.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Hunting for Anomalous PowerShell Execution

Overview

PowerShell Script Block Logging (Event ID 4104) records the full deobfuscated script text executed on a Windows endpoint, making it the primary data source for hunting malicious PowerShell. Combined with Module Logging (4103) and process creation events, analysts can detect encoded commands, AMSI bypass patterns, download cradles, credential theft tools, and fileless attack techniques even when the attacker uses obfuscation layers.

When to Use

  • When investigating security incidents that require hunting for anomalous powershell execution
  • 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 Event Log exports (.evtx) from Microsoft-Windows-PowerShell/Operational
  • Python 3.8+ with python-evtx and lxml libraries
  • Script Block Logging enabled via Group Policy
  • Understanding of common PowerShell attack techniques

Steps

  1. Parse EVTX files extracting Event 4104 script block text and metadata
  2. Reassemble multi-part script blocks using ScriptBlock ID correlation
  3. Scan script text for AMSI bypass indicators and obfuscation patterns
  4. Detect encoded command execution and base64 payloads
  5. Identify download cradles, credential dumping, and lateral movement commands
  6. Score and prioritize findings by threat severity

Expected Output

{
  "total_events": 1247,
  "suspicious_events": 23,
  "amsi_bypass_attempts": 2,
  "encoded_commands": 8,
  "download_cradles": 5,
  "credential_access": 3
}
الأسئلة الشائعة

ما هو «تسجيل كتلة السكربت» (Script Block Logging)؟

هي سجلات مفصلة تُظهر بالضبط الأوامر والسكربتات التي نفّذها PowerShell، حتى لو حاول المهاجم إخفاءها.

ما هو AMSI؟

AMSI اختصار Antimalware Scan Interface، وهي طبقة أمان في Windows تساعد على كشف البرمجيات الخبيثة وحجبها. وتبحث المهارة عن محاولات تعطيل AMSI أو خداعه.

ما هي «أكواد التنزيل» (download cradles)؟

هي مقاطع كود تُستخدم لتنزيل برمجيات خبيثة أخرى وتشغيلها مباشرة من الإنترنت، دون حفظ ملف على القرص.

التفاصيل

الوصف الأصلي من المؤلف

Hunt for malicious PowerShell activity by analyzing Script Block Logging (Event 4104), Module Logging (Event 4103), and process creation events. The analyst parses Windows Event Log EVTX files to detect obfuscated commands, AMSI bypass attempts, encoded payloads, credential dumping keywords, and suspicious download cradles. Activates for requests involving PowerShell threat hunting, script block a

repo: mukul975/Anthropic-Cybersecurity-Skills

الشعبية

نجوم GitHub
35k
الترتيب
#7948
الترخيص
Apache-2.0
آخر تحديث
31‏/8‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة