Skip to content

Commit

Permalink
Shimcache: Only check CurrentControlSet (#7832)
Browse files Browse the repository at this point in the history
Only check CurrentControlSet, since the others are clones/backups.
  • Loading branch information
defensivedepth authored Dec 1, 2022
1 parent a17655e commit bb716df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osquery/tables/system/windows/shimcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ const std::string kWin10CreatorStart = "34";
const std::string kWin8110ShimcacheDelimiter = "31307473";

// Shimcache can be in multiple ControlSets (ControlSet001, ControlSet002, etc)
// We are only going to check CurrentControlSet, which is symlinked to the
// active ControlSet

const std::string kShimcacheControlset =
"HKEY_LOCAL_MACHINE\\SYSTEM\\%ControlSet%\\Control\\Session "
"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session "
"Manager\\AppCompatCache";

struct ShimcacheData {
Expand Down

0 comments on commit bb716df

Please sign in to comment.