본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트35k · #7948

hunting-for-anomalous-powershell-execution

하는 일

이 도구는 Windows 이벤트 로그에서 악성 PowerShell 활동을 검색합니다. 실행된 스크립트를 분석해 명령을 위장하거나, 보안(AMSI)을 우회하거나, 의심스러운 코드를 내려받거나, 자격 증명을 훔치려는 시도를 찾습니다.

사용하는 경우

  • ✓PowerShell과 관련된 보안 사고를 조사할 때.
  • ✓의심스러운 PowerShell 활동을 탐지하는 규칙을 만들 때.
  • ✓모니터링 시스템이 일반적인 PowerShell 공격을 탐지하는지 확인하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 이벤트 로그에서 의심스러운 PowerShell 활동을 검색해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 PowerShell이 실행한 내용을 담은 Windows 이벤트 로그 파일(.evtx)을 읽습니다. 인코딩된 명령이나 보안 우회 시도처럼 알려진 공격 패턴을 찾습니다.

기술 내용 (원본 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
}
자주 묻는 질문

‘스크립트 블록 로깅’이란 무엇인가요?

PowerShell이 실행한 명령과 스크립트를 정확히 보여 주는 자세한 로그입니다. 공격자가 숨기려 했더라도 확인할 수 있습니다.

AMSI란 무엇인가요?

AMSI(Antimalware Scan Interface)는 악성 소프트웨어를 탐지하고 차단하도록 돕는 Windows 보안 계층입니다. 이 도구는 AMSI를 끄거나 속이려는 시도를 찾습니다.

‘다운로드 크래들’이란 무엇인가요?

파일을 디스크에 저장하지 않고, 인터넷에서 다른 악성 프로그램을 내려받아 바로 실행하는 짧은 코드입니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬