☼
⌃
☰

Regshot

Table of Contents

Regshot

Description

Regshot is a vital tool for malware analysts and system administrators engaged in dynamic analysis. It operates on the principle of state change monitoring to track the footprint of a program or activity. Since registry modifications and file changes are the two primary ways malware establishes persistence, hides data, or alters system behavior, comparing system states is a highly effective way to uncover malicious actions.

How Regshot Works

  1. First Shot: The analyst takes the first snapshot of the system state before executing the suspicious file. Regshot records the structure and content of selected registry keys and directories.
  2. Execution: The analyst executes the malware in a controlled environment (like a virtual machine).
  3. Second Shot: The analyst takes the second snapshot after the malware has run for a period or has completed its primary actions.
  4. Comparison: Regshot compares the two snapshots and generates a comprehensive report listing all differences.

The report typically breaks down changes into categories such as: Keys Added, Keys Deleted, Values Added, Values Modified, Files Added, and Files Deleted. This approach is much simpler and often more effective than sifting through the thousands of real-time events generated by a tool like ProcMon.

Examples

  • Identifying Hidden Persistence: An analyst runs a suspicious file. After taking the second shot, the Regshot report reveals:
    • Keys Added: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\MalwareName
    • Value Modified: A string value pointing to a hidden executable in the user's local AppData folder.
    • Conclusion: This directly reveals the malware's persistence mechanism (auto-start on login) and the location of the malicious payload.
  • Tracking Dropped Files: The report shows Files Added in the %APPDATA% or %TEMP% directory, often with random or misleading names (e.g., svch0st.exe). The analyst now knows which files to analyze further or extract from the virtual machine.
  • Non-Malware Troubleshooting: A software installation fails or behaves unexpectedly. Running Regshot before and after the installation can immediately identify which configuration files or registry keys were modified, helping developers and administrators debug the problem.