Skip to content

FileExts

Evidence: FileExts
Description: Enumerate FileExts
Category: System
Platform: windows
Short Name: fileexts
Is Parsed: Yes
Sent to Investigation Hub: Yes
Collect File(s): No

Windows maintains per-user file extension associations that track which programs are used to open specific file types. This includes the OpenWithList (programs used to open the extension), OpenWithProgids (program identifiers), and UserChoice (user-selected default program).

Changes to file associations can indicate user preference changes or potential malware that associates itself with specific file types for persistence or execution.

This collector gathers structured data about fileexts.

FieldDescriptionExample
KeyPathRegistry key pathSoftware\Microsoft\Windows\CurrentVersion\Explorer\FileExts.docx
LastWriteTimeRegistry key last write time2023-10-15T14:30:00
UsernameUser account nameuser
ExtensionFile extension.docx
OpenWithListComma-separated list of programsWINWORD.EXE,notepad.exe
OpenWithProgIDsComma-separated program IDsWord.Document.12,txtfile
UserChoiceUser-selected default programWord.Document.12
RegPathPath to registry hiveRegistry/ntuser.dat

This collector:

  • Collects user registry hives (ntuser.dat)
  • Searches for: Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\*
  • For each extension, reads:
    • OpenWithList MRU
    • OpenWithProgids value names
    • UserChoice ProgId
  • Filters out non-extension keys (must start with ”.”)

File extension associations can reveal user preferences and detect malicious associations. Investigators use this data to identify suspicious program associations, detect malware hijacking file extensions, track user’s preferred applications, identify attempts to open malicious file types, detect persistence via file association, and analyze user behavior with specific file types.