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

analyzing-mft-for-deleted-file-recovery

하는 일

이 도구는 Windows 컴퓨터에서 삭제된 파일을 찾도록 돕습니다. 시스템의 파일 기록을 살펴 삭제된 파일에 대한 정보를 복구합니다.

사용하는 경우

  • ✓실수로 삭제한 파일을 복구해야 할 때.
  • ✓보안 사고를 조사하면서 어떤 파일이 제거되었는지 확인할 때.
  • ✓컴퓨터에서 파일이 어떻게 사용되었는지 시간 순서로 재구성하고 싶을 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-mft-for-deleted-file-recovery/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“C: 드라이브에서 삭제된 파일을 찾아 주세요.”

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

작동 방식

이 도구는 디스크의 특별한 영역인 MFT를 분석합니다. MFT에는 모든 파일에 대한 정보가 저장되어 있습니다. 파일이 삭제되어도 MFT의 정보는 남아 있을 수 있어 복구가 가능합니다.

기술 내용 (원본 SKILL.md)

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

Analyzing MFT for Deleted File Recovery

Overview

The NTFS Master File Table ($MFT) is the central metadata repository for every file and directory on an NTFS volume. Each file is represented by at least one 1024-byte MFT record containing attributes such as $STANDARD_INFORMATION (timestamps, permissions), $FILE_NAME (name, parent directory, timestamps), and $DATA (file content or cluster run pointers). When a file is deleted, its MFT record is marked as inactive (InUse flag cleared) but the metadata remains until the entry is reallocated by a new file. This persistence makes MFT analysis a primary technique for recovering deleted file evidence, reconstructing file system timelines, and detecting anti-forensic activity such as timestomping.

When to Use

  • When investigating security incidents that require analyzing mft for deleted file recovery
  • 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

  • Forensic disk image (E01, raw/dd, VMDK, or VHDX format)
  • MFTECmd (Eric Zimmerman) or analyzeMFT (Python-based)
  • FTK Imager, Arsenal Image Mounter, or similar for image mounting
  • Timeline Explorer or Excel for CSV analysis
  • Python 3.8+ for custom analysis scripts
  • Understanding of NTFS file system internals

MFT Structure and Record Layout

MFT Record Header

Each MFT record begins with the signature "FILE" (0x46494C45) and contains:

Offset Size Field
0x00 4 bytes Signature ("FILE")
0x04 2 bytes Offset to update sequence
0x06 2 bytes Size of update sequence
0x08 8 bytes $LogFile sequence number
0x10 2 bytes Sequence number
0x12 2 bytes Hard link count
0x14 2 bytes Offset to first attribute
0x16 2 bytes Flags (0x01 = InUse, 0x02 = Directory)
0x18 4 bytes Used size of MFT record
0x1C 4 bytes Allocated size of MFT record
0x20 8 bytes Base file record reference
0x28 2 bytes Next attribute ID

Key MFT Attributes

Type ID Name Description
0x10 $STANDARD_INFORMATION Timestamps, flags, owner ID, security ID
0x30 $FILE_NAME Filename, parent MFT reference, timestamps
0x40 $OBJECT_ID Unique GUID for the file
0x50 $SECURITY_DESCRIPTOR ACL permissions
0x60 $VOLUME_NAME Volume label (volume metadata files only)
0x80 $DATA File content (resident if <700 bytes) or cluster run list
0x90 $INDEX_ROOT B-tree index root for directories
0xA0 $INDEX_ALLOCATION B-tree index entries for large directories
0xB0 $BITMAP Allocation bitmap for index or MFT

Deleted File Recovery Techniques

Technique 1: MFT Record Analysis with MFTECmd

# Extract $MFT from forensic image using KAPE or FTK Imager
# Parse the $MFT with MFTECmd
MFTECmd.exe -f "C:\Evidence\$MFT" --csv C:\Output --csvf mft_full.csv

# Filter for deleted files (InUse = FALSE) in Timeline Explorer
# Look for entries where InUse column is False

Identifying Deleted Files in CSV Output:

  • InUse = False indicates a deleted or reallocated record
  • ParentPath shows original file location before deletion
  • FileSize shows the original size (may still be recoverable)
  • Timestamps in $STANDARD_INFORMATION and $FILE_NAME attributes persist

Technique 2: USN Journal ($UsnJrnl:$J) Analysis

The USN Journal records all changes to files on an NTFS volume, including creation, deletion, rename, and data modification events.

# Parse USN Journal with MFTECmd
MFTECmd.exe -f "C:\Evidence\$J" --csv C:\Output --csvf usn_journal.csv

# Key USN reason codes for deletion evidence:
# USN_REASON_FILE_DELETE     = 0x00000200
# USN_REASON_CLOSE           = 0x80000000
# USN_REASON_RENAME_OLD_NAME = 0x00001000
# USN_REASON_RENAME_NEW_NAME = 0x00002000

Technique 3: $LogFile Transaction Analysis

The $LogFile stores NTFS transaction records that can reveal file operations even after the USN Journal has been cycled.

# Parse $LogFile with LogFileParser
LogFileParser.exe -l "C:\Evidence\$LogFile" -o C:\Output

# Look for REDO and UNDO operations indicating file deletion:
# - DeallocateFileRecordSegment
# - DeleteAttribute
# - UpdateResidentValue (clearing InUse flag)

…

자주 묻는 질문

MFT란 무엇인가요?

MFT(Master File Table)는 NTFS(Windows에서 가장 흔한 파일 시스템)로 포맷된 디스크의 모든 파일과 폴더를 위한 마스터 색인과 같습니다. 각 파일의 이름, 날짜, 크기 같은 메타데이터를 담고 있습니다.

삭제된 파일은 왜 복구할 수 있나요?

파일을 삭제하면 Windows는 그 공간을 비어 있다고 표시만 합니다. MFT의 정보와 실제 데이터는 새 파일이 그 공간을 다시 쓸 때에야 완전히 지워집니다. 이 도구는 이런 특성을 활용합니다.

복구하려면 컴퓨터 전문가여야 하나요?

도구는 강력하지만, 삭제된 파일을 찾는 기본 사용은 간단한 명령으로 할 수 있습니다. 다만 기술적인 내용을 이해하면 더 좋은 결과를 얻을 수 있습니다.

상세 정보

작성자의 원본 설명

Analyze the NTFS Master File Table ($MFT) with MFTECmd, analyzeMFT, and X-Ways Forensics to recover metadata and content of deleted files by examining MFT record entries, $LogFile, $UsnJrnl, and MFT slack space. Use when recovering evidence of deleted files, reconstructing NTFS file-system timelines, or detecting anti-forensic timestomping during a Windows forensic examination.

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬