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

hunting-evtx-with-chainsaw

하는 일

이 도구는 Windows 이벤트 로그 파일(.evtx) 안에서 의심스러운 활동을 찾는 데 도움을 줍니다. 보안 규칙을 사용해 위협을 찾고, 특정 시스템 정보를 분석할 수도 있습니다.

사용하는 경우

  • ✓인터넷에 연결되지 않은 컴퓨터에서 보안 사고를 조사할 때.
  • ✓로그 파일로 공격의 증거를 빠르게 찾아야 할 때.
  • ✓로그에서 특정 패턴이나 의심스러운 명령을 검색하는 경우.

스킬 링크

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

AI에게 요청하는 예시

“수집한 로그 파일에서 의심스러운 활동을 검색해 주세요.”

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

작동 방식

이 도구는 Windows 로그 파일을 읽고 보안 규칙 세트와 비교합니다. 또한 사용자가 정의한 특정 키워드나 패턴을 검색할 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Hunting EVTX with Chainsaw

Overview

Chainsaw is a fast, Rust-based forensic artifact search and hunting tool from WithSecure Labs. It provides first-response capability to rapidly identify threats within Windows Event Logs (.evtx) and other artifacts. Chainsaw can hunt with the full SigmaHQ rule corpus (translating Sigma to its internal Tau engine), run its own built-in detection rules, perform high-speed keyword/regex search across logs, and analyse specialized artifacts such as the AppCompatCache (shimcache), SRUM database, and event-log gaps. Output can be a colorized table, CSV, or JSON for downstream tooling.

Chainsaw's strength is speed and flexibility during initial triage: an analyst can drop a folder of collected EVTX onto the tool and get back a prioritized set of detections in seconds, then pivot with targeted search queries to confirm a hypothesis. Unlike a SIEM, it needs no ingestion pipeline, runs as a single binary, and works fully offline against acquired evidence — ideal for the field or an air-gapped analysis VM. The --mapping file tells Chainsaw how Sigma fields translate to Windows event fields, which is what enables broad Sigma coverage over EVTX.

A common hunt outcome is detecting suspicious PowerShell — MITRE ATT&CK T1059.001 (Command and Scripting Interpreter: PowerShell) — by running Sigma rules against PowerShell operational logs (Event ID 4104 script-block logging) or searching for encoded-command patterns. This skill maps to NIST CSF DE.AE-02 (potentially adverse events are analyzed to better understand associated activities).

When to Use

  • During first-response triage to rapidly hunt threats across collected Windows event logs.
  • When you need offline Sigma-based detection over .evtx without standing up a SIEM.
  • To run fast keyword/regex searches confirming or refuting a hunt hypothesis.
  • To analyse shimcache, SRUM, or event-log time gaps for execution evidence and tampering.
  • To produce CSV/JSON detection output for reporting or pipeline ingestion.

Prerequisites

  • Chainsaw binary. Download a release from GitHub or build from source:
    # Build from source (Rust toolchain required)
    git clone https://github.com/WithSecureLabs/chainsaw.git
    cd chainsaw && cargo build --release
    ./target/release/chainsaw --version
    # or: nix profile install github:WithSecureLabs/chainsaw
    
  • The Chainsaw repo ships mappings/ (Sigma field mappings) and rules/ (Chainsaw rules).
  • A copy of the SigmaHQ rules for full Sigma coverage:
    git clone https://github.com/SigmaHQ/sigma.git
    
  • Collected Windows .evtx files (and registry hives like SYSTEM/Amcache.hve for shimcache analysis).

Objectives

  • Hunt collected EVTX with Sigma rules using the correct mapping file.
  • Filter detections by rule level, status, and kind to reduce noise.
  • Search logs by keyword, regex, and Tau expression for targeted confirmation.
  • Output detections as table, CSV, and JSON.
  • Analyse shimcache (with Amcache timestamp pairing), SRUM, and event-log gaps.

MITRE ATT&CK Mapping

Technique ID Official Name Why Chainsaw Detects It
T1059.001 Command and Scripting Interpreter: PowerShell Sigma rules over EID 4104/4103 and search flag malicious PowerShell
T1059.003 Command and Scripting Interpreter: Windows Command Shell Process-creation Sigma rules surface suspicious cmd usage
T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder Sigma rules over registry events flag persistence
T1053.005 Scheduled Task/Job: Scheduled Task Rules over EID 4698/106 detect task creation
T1070.006 Indicator Removal: Timestomp analyse gaps and shimcache analysis reveal tampering/time gaps
T1204.002 User Execution: Malicious File Shimcache analysis shows executed binaries

Workflow

1. Hunt EVTX with Sigma rules

Run the SigmaHQ corpus against collected logs using the bundled mapping file. The mapping translates Sigma fields to EVTX fields.

chainsaw hunt ./collected_evtx \
  -s ./sigma/rules \
  --mapping ./mappings/sigma-event-logs-all.yml

2. Hunt with Chainsaw built-in rules plus Sigma

Combine Chainsaw's own rules (-r) with Sigma (-s) for broader coverage.

chainsaw hunt ./collected_evtx \
  -r ./rules \
  -s ./sigma/rules \
  --mapping ./mappings/sigma-event-logs-all.yml

…

자주 묻는 질문

.evtx 파일이란 무엇인가요?

로그인, 프로그램 실행, 오류 같은 Windows 컴퓨터의 중요한 이벤트를 기록하는 파일입니다.

Sigma 규칙이란 무엇인가요?

알려진 악성 활동을 설명하는 패턴 세트로, 로그에서 위협을 탐지하는 데 사용합니다.

이것을 사용하려면 특별한 소프트웨어가 필요한가요?

네, ‘Chainsaw’ 도구를 내려받아 설치하고, 분석할 Windows 로그 파일(.evtx)을 준비해야 합니다.

상세 정보

작성자의 원본 설명

Run Chainsaw against collected Windows EVTX files to hunt with the SigmaHQ rule corpus, built-in detection rules, and high-speed keyword/regex search, plus analyze shimcache, SRUM, and event-log gaps, outputting colorized tables, CSV, or JSON. Use during first-response triage for offline, SIEM-free detection over Windows event logs, or to quickly confirm a hunt hypothesis and produce reporting out

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7947
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬