Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính35k · #7948

hunting-for-anomalous-powershell-execution

Skill này làm gì

Công cụ này tìm hoạt động PowerShell độc hại trong nhật ký sự kiện Windows. Nó phân tích các script đã thực thi để tìm nỗ lực ngụy trang lệnh, vượt qua bảo mật (AMSI), tải về mã đáng ngờ hoặc đánh cắp thông tin đăng nhập.

Khi nào nên dùng

  • ✓Khi điều tra một sự cố bảo mật liên quan đến PowerShell.
  • ✓Khi tạo quy tắc để phát hiện hoạt động PowerShell đáng ngờ.
  • ✓Khi kiểm tra xem hệ thống giám sát có phát hiện các cuộc tấn công PowerShell phổ biến không.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm hoạt động PowerShell đáng ngờ trong nhật ký sự kiện của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ đọc các tệp nhật ký sự kiện Windows (.evtx) ghi lại những gì PowerShell đã thực thi. Nó tìm các mẫu tấn công đã biết, chẳng hạn lệnh được mã hóa hoặc nỗ lực vượt qua bảo mật.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
}
Câu hỏi thường gặp

“Script Block Logging” là gì?

Đây là nhật ký chi tiết cho thấy chính xác các lệnh và script mà PowerShell đã thực thi, ngay cả khi kẻ tấn công cố che giấu chúng.

AMSI là gì?

AMSI (Antimalware Scan Interface) là lớp bảo mật của Windows giúp phát hiện và chặn phần mềm độc hại. Công cụ tìm các nỗ lực tắt hoặc đánh lừa AMSI.

“Download cradle” là gì?

Đó là các đoạn mã dùng để tải về và thực thi chương trình độc hại khác trực tiếp từ internet, mà không lưu tệp xuống ổ đĩa.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7948
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự