osquery / osquery/osquery

Add original filename column to file table on Windows

Open
#7,115 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature virtual tables Windows
Dominant language
C++
Stars
23.6k
Forks
2.6k
Avg merge
6d 7h
Merged PRs (30d)
14

Description

Feature request

What new feature do you want?

Windows files can have an original filename property
image

Please add this property as new column (e.g. original_filename) in the file table

How is this new feature useful?

This would allow you could look for files that have been renamed from there originally intended file name

How can this be implemented?

https://docs.microsoft.com/en-us/windows/win32/api/winver/nf-winver-verqueryvaluea
Similar code already exists for reading the file and product version from a file (windowsGetVersionInfo in fileops.cpp)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in fileops.cpp, especially windowsGetVersionInfo, and review the Windows file-table implementation alongside the VerQueryValueA documentation. Add the original filename as an original_filename column for Windows files, then verify that the file table exposes the property correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.