![]() |
|
[MRT-X Academy] FRST Tutorial - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Whitehat โข Blue Team โข Defensive Security (https://hackforums.net/forumdisplay.php?fid=448) +---- Forum: Malware, Rat, and Virus Removal (https://hackforums.net/forumdisplay.php?fid=110) +---- Thread: [MRT-X Academy] FRST Tutorial (/showthread.php?tid=6292228) |
[MRT-X Academy] FRST Tutorial - Tha Sneak - Feb 14, 2025 ![]() ![]() Farbar Recovery Scan Tool (FRST) ![]() What is FRST? FRST is a diagnostic and script execution tool designed for malware-infected machines. It works in normal mode, safe mode, and even in the Windows Recovery Environment (WinRE), making it a powerful tool for troubleshooting boot issues and system errors. ![]() ๐ Table of Contents ๐ 1. Introduction 2. Default Scan Areas 3. Main Scan (FRST.txt)
4. Additional Scan (Addition.txt)
5. Other Optional Scans
6. Directives/Commands
![]() ๐ Introduction ๐ Simplicity of FRST One of FRST's strengths is its simplicity. It is designed to be user-friendlyโallowing infected items to be identified from logs, copied into Notepad, and executed with one click. This enables flexibility, as new infections appear they can be detected and removed. ![]() ๐ฅ๏ธ Tool Compatibility Farbar's Recovery Scan Tool (FRST) is compatible with:
There are two versions: โ 32-bit version โ 64-bit version [highlight]โ ๏ธ Note: FRST64 is NOT designed to run on XP 64-bit systems.[/highlight] ![]() ๐ Diagnosis FRST generates a log covering specific Windows OS areas, which can be used for initial problem analysis and system diagnostics. ๐ Automatic Updates: When FRST starts, it automatically checks for updates if the PC is connected to the internet. If an update is available, users are notified to download the latest version. ![]() ๐ Whitelisting in FRST To avoid overly long logs, FRST applies whitelisting by default. If a full log is needed, the whitelist option should be unchecked. โ What is Whitelisted?
โ What is NOT Whitelisted?
If a full log is required, be prepared for large file sizes, which may need to be uploaded as an attachment. ![]() ๐ Preparation for Use ๐น Run as Administrator Make sure FRST is run with administrator privileges. If not, it will not function properly. โ ๏ธ If the user lacks administrator rights, a warning will appear in the header of FRST.txt. ๐น Security Software Interference Some security programs may prevent FRST from running fully. ๐น While this is uncommon, be aware that security software like Comodo may block FRST. โ Solution: Disable such programs before fixing to ensure FRST works properly. ๐น Rootkit Handling Recommendation ๐ก When dealing with rootkits, it is best to: โ๏ธ Perform one fix at a time โ๏ธ Wait for the outcome before running another tool ๐น Registry Backup โ No need to create a registry backupโFRST automatically backs up registry hives the first time it runs. ๐ The backup is stored at: %SystemDrive%\FRST\Hives (Usually C:\FRST\Hives) ๐น To restore, refer to the RestoreFromBackup: directive. ๐น Using FRST in English FRST supports multiple languages, but helpers prefer English logs for analysis. To run FRST in English, rename the file: โ EnglishFRST.exe โ EnglishFRST64.exe โ FRSTEnglish.exe โ FRSTEnglish64.exe ๐ This ensures the log is generated in English. ![]() ๐ Running FRST ๐ฅ Download FRST to the Desktop and double-click the icon. โ๏ธ Accept the disclaimer โ๏ธ Start the scan ๐ฅ๏ธ The FRST icon looks like this: ![]() โ ๏ธ You must run the correct version for your system. ๐น If unsure, download both (32-bit & 64-bit) and run eachโonly one will work. ๐ The FRST console looks like this when opened: ![]() ![]() ๐ Log Files & Storage ๐ Once FRST completes its scan: โ๏ธ Log files are saved in the same location where FRST was started. โ๏ธ First and subsequent scans outside the Recovery Environment generate: - FRST.txt log - Addition.txt log ๐ Log file storage location: ๐๏ธ %SystemDrive%\FRST\Logs (Usually C:\FRST\Logs) ![]() ๐ Fixing Issues with FRST โ ๏ธ Very Important! Farbar Recovery Scan Tool is non-invasive and in scan mode, it cannot harm a machine. However, FRST is highly effective at executing commands. โ If asked to remove an item, 99% of the time, it will do so. While built-in safeguards exist, they are broad-based to prevent interference with malware removal. โ ๏ธ Incorrect use (e.g., removing essential system files) can render a computer unbootable! ๐ก If unsure about any item in an FRST report, always seek expert help before applying a fix. ![]() ๐ Preparing Fixlist FRST provides multiple methods to prepare a fixlist.txt file for problem resolution. ๐น 1. Fixlist.txt method โ๏ธ Copy and paste identified problems from FRST logs into a new text file. โ๏ธ Save it as fixlist.txt in the same directory as FRST. โ ๏ธ Important: Always use Notepad! The fix will not work if saved in Word or another program. ๐น 2. Ctrl + Y Method โ๏ธ Launch FRST โ๏ธ Press Ctrl + Y to automatically create and open an empty file โ๏ธ Paste the fix & press Ctrl + S to save ๐น 3. Clipboard Method Use Start:: and End:: to encapsulate the fix. Code Start::โ๏ธ Have the user copy the entire block โ๏ธ Click the Fix button in FRST RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 2, 2025 ๐ Handling Unicode Characters To fix an entry containing Unicode characters, the script must be saved in Unicode format. โ Ctrl + Y automatically saves in Unicode. โ If manually creating fixlist.txt, choose UTF-8 encoding in Notepad. ๐น Example Unicode Entries: Quote:S2 ๆฅๆณๆฝ็ฏ็ๆฅณ็ณๆนกt; ใฉๅๆฝฒ็งๆตกไ ๆฑฉ็ฅโ ใกธโคถๅ็ฉๅฑฅๆฅๆณไ ็กโฅใณๅฐตๆฝ็ฏๆฅๆญๆฎๆธ [X] ๐น Correct Saving Method โ๏ธ Copy and paste the entries into Notepad โ๏ธ Click Save As... โ๏ธ Choose UTF-8 Encoding โ๏ธ Save the file as fixlist.txt ๐ If Notepad warns about encoding, confirm and proceed with UTF-8. โ Incorrect Encoding Output (If Notepad is not set to UTF-8): Quote:S2 ????????t; ??????????????????????????? [X] ๐ซ FRST will not be able to process these entries! Always ensure UTF-8 encoding. ![]() ๐ค Manipulated Usernames Some users alter logs by removing or replacing a username. To ensure that correct paths are processed, replace the potentially manipulated username in paths with: โ CurrentUserName (for the logged-in user) โ AllUserName (for all users) FRST will automatically translate these keywords to the correct username. โ ๏ธ Note: CurrentUserName is not supported in the Recovery Environment. ๐ To prevent FRST from hanging for hours due to incorrect scripts, the CMD: and Powershell: directives execution time is limited to 60 minutes. ๐ Items moved by the fix are stored in %SystemDrive%\FRST\Quarantine (In most cases: C:\FRST\Quarantine) until cleanup and deletion of FRST. For detailed information on preparing fixes, see the sections below. ![]() ๐ Removing FRST To automatically remove all files/folders created by FRST and the tool itself: โ๏ธ Rename FRST.exe or FRST64.exe to uninstall.exe โ๏ธ Run it ๐ A reboot is required. ๐ This works only outside the Recovery Environment. ![]() ๐ Default Scan Areas ๐ On the first and subsequent scans outside the Recovery Environment, FRST generates: โ๏ธ FRST.txt log โ๏ธ Addition.txt log ๐ Addition.txt is NOT generated in the Recovery Environment. ![]() โ Scans Run in Normal Mode: ๐น Main Scan: โ๏ธ Processes [Digital Signature Check] โ๏ธ Registry [Digital Signature Check] โ๏ธ Scheduled Tasks [Digital Signature Check] โ๏ธ Internet [Digital Signature Check] โ๏ธ Services [Digital Signature Check] โ๏ธ Drivers [Digital Signature Check] โ๏ธ NetSvcs โ๏ธ One month (Created) [Microsoft Digital Signature Check] โ๏ธ One month (Modified) โ๏ธ Files in the root of some directories โ๏ธ FLock โ๏ธ FCheck โ๏ธ SigCheck [Digital Signature Check] โ๏ธ LastRegBack ๐น Additional Scan: โ๏ธ Accounts โ๏ธ Security Center โ๏ธ Installed Programs โ๏ธ Custom CLSID [Digital Signature Check] โ๏ธ Codecs [Digital Signature Check] โ๏ธ Shortcuts & WMI โ๏ธ Loaded Modules [Digital Signature Check] โ๏ธ Alternate Data Streams โ๏ธ Safe Mode โ๏ธ Association โ๏ธ Internet Explorer [Digital Signature Check] โ๏ธ Hosts content โ๏ธ Other Areas โ๏ธ MSCONFIG/TASK MANAGER disabled items โ๏ธ Firewall Rules [Digital Signature Check] โ๏ธ Restore Points โ๏ธ Faulty Device Manager Devices โ๏ธ Event log errors โ๏ธ Memory info โ๏ธ Drives โ๏ธ MBR & Partition Table ๐น Optional Scans: โ๏ธ List BCD โ๏ธ SigCheckExt [Digital Signature Check] โ๏ธ Shortcut.txt โ๏ธ Addition.txt โ๏ธ 90 Days Files โ๏ธ Search Files [Digital Signature Check] โ๏ธ Search Registry โ ๏ธ Note: [File not signed] will be printed for files without a digital signature or with an unverifiable signature. ![]() ๐ Scans Run in the Recovery Environment: ๐น Main Scan: โ๏ธ Registry โ๏ธ Scheduled Tasks โ๏ธ Services โ๏ธ Drivers โ๏ธ NetSvcs โ๏ธ One month (Created) โ๏ธ One month (Modified) โ๏ธ KnownDLLs โ๏ธ SigCheck โ๏ธ Association โ๏ธ Restore Points โ๏ธ Memory info โ๏ธ Drives โ๏ธ MBR & Partition Table โ๏ธ LastRegBack ๐น Optional Scans: โ๏ธ List BCD โ๏ธ 90 Days Files โ๏ธ Search Files โ ๏ธ Note: The digital signatures check is NOT available in the Recovery Environment. ![]() ๐ Main Scan (FRST.txt) ๐ Header Here is an example header: Quote:Scan result of Farbar Recovery Scan Tool (FRST) (x64) Version: 28-08-2023 ๐ง How to Analyze the Header: ๐ First Line: - Indicates whether FRST 32-bit or 64-bit was run. - Shows FRST version identifier โ โ ๏ธ An old version may lack recent updates. ๐ Second Line: - Displays the user who ran the tool and their permission level (admin or standard). - Shows the computer name, manufacturer, and model (if available). - Records the scan date and time โ Helps determine if a user provided an outdated log. ๐ Third Line: - Shows where FRST was executed from (e.g., Desktop, USB, or another location). - This may be relevant for fix instructions if FRST was run from an unexpected directory. ๐ Fourth Line: - Lists the loaded user profile(s) (i.e., ntuser.dat and UsrClass.dat are loaded). โ ๏ธ Note: If multiple accounts are active (via "Switch User" or "Log Off"), FRST will list all loaded accounts and their registry entries. Accounts not loaded won't appear under "Loaded Profiles," but FRST will still mount their ntuser.dat hive for scanning. ๐ Fifth Line: - Identifies the Windows edition, major updates (Windows 10/11 Version and OS Build), or Service Pack (Windows 7 and older). - Useful for diagnosing update issues if the version is outdated. ๐ Sixth Line: - Indicates the systemโs default browser. ๐ Seventh Line: - Displays the scan mode used (Normal / Safe Mode / Recovery Environment). โ ๏ธ Note: Headers in the Recovery Environment appear similar, but are truncated since user profiles are not loaded. ![]() โ ๏ธ Alerts That May Appear in the Header: โ Boot Problems: ๐จ "ATTENTION: Could not load system hive" โ This indicates a missing system hive. ๐ Solution: Try restoring the hive using LastRegBack:. ๐ Control Set Information: ๐ "Default: Controlset001" โ Indicates which Control Set (CS) is the default. ๐ Why is this important? - Normally, you donโt need this info. - But if you need to modify the CS that will be loaded at boot, this helps identify the correct CS. - Changes to other Control Sets will have no effect on the system. ![]() ๐ฅ๏ธ Processes ๐ Process Listing Example Quote:(cmd.exe ->) (Microsoft Windows -> Microsoft Corporation) C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ๐ Explanation of Process Notation: - (parent process ->) Indicates the process that launched another process. - <number> Indicates multiple instances of the same process. ![]() โ ๏ธ When to Stop a Process โ Stopping a Legitimate Process - If a process interferes with fixing malware, it can be terminated safely. โ Stopping a Malicious Process - If a process is malicious, stop it before removing its associated files or folders. ![]() ๐ง How to Stop a Process Using FRST ๐ ๏ธ Include the process lines from FRST logs in your fixlist. ๐ Fixlog.txt will generate a confirmation message: Quote:Process name => Process closed successfully ๐๏ธ If the process is malicious, also include the associated file/folder for removal. ![]() ๐ ๏ธ Registry Fixing ๐ How FRST Handles Registry Entries ๐ Registry entries (keys or values) included in the fixlist.txt will be deleted or restored by FRST. ๐น If a registry key/value resists deletion, FRST will attempt removal after reboot. ๐น Keys protected by a kernel driver will remain until the driver is removed. ![]() โ ๏ธ Actions Performed on Registry Entries โ FRST can either restore default values or delete entries. โ FRST automatically restores important Windows values, such as: - BootExecute - Winlogon (Userinit, Shell, System) - LSA - AppInit_DLLs (only removes bad paths, not the entire value). ๐ FRST does not remove files executed by registry keys! If a registry key loads a file, list the file separately for removal. ![]() ๐ Example: Removing a Malicious Run Entry To remove both the registry key and its associated file, include them in the fixlist: Quote:HKLM\...\RunOnce: [LT1] => C:\WINDOWS\TEMP\gA652.tmp.exe [216064 2019-04-13] () [File not signed] <==== ATTENTION ๐น First line: Removes the registry entry. ๐น Second line: Deletes the file. ![]() ๐ Removing Startup Entries FRST detects Startup folder shortcuts and their target executables. To remove both the shortcut and its target file, include both in the fixlist. Example: Quote:Startup: C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\helper.lnk [2019-03-25] โ First line removes the shortcut. โ Second line removes the executable. ๐จ If you only remove the executable, the shortcut remains and will cause an error at startup. ![]() ๐ Handling Security Policy Restrictions FRST detects Software Restriction Policies (SRP) and Untrusted Certificates that may be abused by malware. ๐ Example: Removing a Blocked Security Program Quote:HKLM\ DisallowedCertificates: AD4C5429E10F4FF6C01840C20ABA344D7401209F (Avast Antivirus/Software) <==== ATTENTION ๐ Example: Removing a Group Policy Restriction Quote:HKLM Group Policy restriction on software: C:\Program Files\AVAST Software <====== ATTENTION ๐ To unblock security programs, include these entries in the fixlist. ๐ Note: Some legitimate security policies may also be flagged. Review before removal! RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 3, 2025 ๐ Group Policy Fixing FRST detects Group Policy Objects (GPOs), including policies that restrict browsers or Windows Defender. ๐ Example: Resetting Group Policies Quote:GroupPolicy: Restriction - Windows Defender <======= ATTENTION ๐ To reset policies, include these lines in the fixlist. ๐ FRST will prune GroupPolicy folders and require a reboot. ๐ Example: Successful Reset Confirmation Quote:C:\Windows\system32\GroupPolicy\Machine => moved successfully ๐ Note: Legitimate Group Policies configured via gpedit.msc may also be flagged. ![]() ๐ Scheduled Tasks ๐ Fixing Scheduled Tasks โ When an entry is included in the fixlist, the task itself is fixed. โ FRST removes the registry entries and moves the task file. โ FRST does NOT remove the executable associated with the task. (It must be added separately for removal.) ๐ Example: Removing a Malicious Scheduled Task Quote:Task: {A0DC62F9-8007-4B9C-AAA2-0AB779246E27} - System32\Tasks\csrss => C:\Windows\rss\csrss.exe [4925952 2019-03-19] () [File not signed] <==== ATTENTION โ What Happens When You Include It in Fixlist? Quote:"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Plain\{A0DC62F9-8007-4B9C-AAA2-0AB779246E27}" => removed successfully ๐ Important Notes: ๐น FRST only removes the registry task entries and moves the task file. ๐น It does NOT remove the executable! (Example: csrss.exe must be listed separately for deletion.) ![]() โ ๏ธ Checking Executables Before Deletion โ ๏ธ Malware can abuse legitimate Windows executables to run malicious tasks. ๐น Example: Using sc.exe to create and run malicious services. ๐น Always verify the executable's legitimacy before removing it! ๐ Example of a Safe Fixlist Entry for Full Removal Quote:Task: {A0DC62F9-8007-4B9C-AAA2-0AB779246E27} - System32\Tasks\csrss => C:\Windows\rss\csrss.exe [4925952 2019-03-19] () [File not signed] <==== ATTENTION โ First line: Removes the scheduled task from the registry. โ Second line: Removes the malicious executable. ![]() ๐ซ What Should NOT Be Included in Fixlist? ๐จ Do NOT include the following in the fixlist: Quote:"{Random GUID}" => key was unlocked. <==== ATTENTION ๐ What Does This Mean? ๐น FRST detected broken permissions and automatically fixed them during the scan. ๐น A new FRST log should be taken to verify whether the unlocked task is: - Visible โ Custom task (can be included in fixlist if needed). - Hidden (Whitelisted) โ Standard Microsoft entry (should NOT be removed). ![]() ๐ Internet ๐ ๏ธ Fixing Internet-Related Entries โ Most items copied to the fixlist will be removed automatically. โ For registry entries involving files/folders, the files/folders must be listed separately to be moved. โ ๏ธ Exceptions apply to browser entries. (See details below.) ![]() ๐ง Winsock Issues ๐ What Happens When a Catalog5 Entry is Fixed? ๐น If the entry is a hijacked default entry, FRST restores the default. ๐น If the entry is a custom entry, FRST removes it and re-numbers the catalog. ๐ What About Catalog9 Entries? ๐ ๏ธ Recommended Fix: Use the following command to reset Winsock: Code cmd: netsh winsock reset๐น If custom Catalog9 entries remain, they can be manually listed in the fixlist for removal. ๐น FRST will then remove the entries and re-number the catalog. โ ๏ธ Important Warning! ๐จ A broken Winsock chain can prevent internet access. ๐ก If your internet is not working due to Winsock issues, FRST will report it like this: Quote:Winsock: -> Catalog5 - Broken internet access due to missing entry. <===== ATTENTION โ How to Fix: ๐ ๏ธ Include the entries in the fixlist, and FRST will restore them. ![]() ๐ HOSTS File ๐ Custom HOSTS File Entries When custom entries exist in the HOSTS file, youโll see the following line in the Internet section of the FRST.txt log: Quote:Hosts: There are more than one entry in Hosts. See Hosts section of Addition.txt ๐ Missing HOSTS File If the HOSTS file is not detected, FRST will generate a log entry stating that it couldnโt be found. ๐ Resetting HOSTS To reset the HOSTS file, copy and paste the line into the fixlist. After running the fix, Fixlog.txt will confirm the reset. ![]() ๐ TCP/IP and Other Entries โ Entries included in the fixlist will be deleted automatically. ๐ก DNS Servers in the Registry (DhcpNameServer and NameServer) These can be compared with the "DNS servers" section in Addition.txt to determine which configuration is active. โ ๏ธ StartMenuInternet Hijacking - Default entries are whitelisted. - If a non-default path appears in the log, further investigation is needed. - If necessary, adding the entry to the fixlist will restore the default registry entry. โ ๏ธ Extensions Installed Outside Official Repositories Extensions not installed via official repositories (Chrome Web Store, Firefox Add-ons, Microsoft Edge Addons, Opera Add-ons) will have an update URL detected. ![]() ๐ Microsoft Edge ๐น Windows 10+ logs both versions of Microsoft Edge: - Classic Edge: Except for DownloadDir, entries added to the fixlist will be deleted. - Chromium-based Edge: Follows the same rules as Google Chrome (see details below). ![]() ๐ Mozilla Firefox ๐ Firefox Entries in FRST Logs FRST lists Firefox registry keys and profiles (if present) even if Firefox is not installed. - All profiles are scanned for preferences and extensions. - Non-standard profiles (e.g., created by adware) are flagged. ๐ Fixing Firefox Entries โ Everything except FF DefaultProfile and FF DownloadDir can be added to the fixlist for deletion. ๐ Unsigned Firefox Add-ons Are Flagged Example: Quote:FF Extension: (Adblocker for Youtubeโข) - C:\Program Files\Mozilla Firefox\browser\features\{A5FD4672-4D73-4F90-A1C0-2ABD39DB2565}.xpi [2018-01-18] [not signed] ![]() ๐ Google Chrome ๐ Chrome Entries in FRST Logs FRST lists Chrome registry keys and profiles (if present) even if Chrome is not installed. - All profiles are scanned for preferences and extensions. - Non-standard profiles (e.g., created by adware) are flagged. ๐ Chrome Preferences Scan Includes: ๐น Modified HomePage and StartupUrls ๐น Session Restore settings ๐น Custom search provider settings ๐น Allowed notifications Example: Quote:CHR HomePage: Default -> hxxp://www.web-pl.com/ ๐ Chrome Fixes โ Adding HomePage, StartupUrls, and Notifications entries to the fixlist will remove them. โ ๏ธ Processing other entries may cause a partial Chrome reset. A user may see the following message on the Chrome settings page: ๐ ๏ธ "Chrome detected that some of your settings were corrupted by another program and reset them to their original defaults." ๐ New Tab Redirections FRST detects New Tab hijacks controlled by extensions. - Find the matching extension and uninstall it manually via Chrome. Example: Quote:CHR NewTab: Default -> Active:"chrome-extension://algadicmefalojnlclaalabdcjnnmclc/stubby.html" ๐ Removing Chrome Extensions ๐ซ CHR Extension lines are NOT processed by FRST. ๐ก Use Chrome's built-in tools to remove extensions: Quote:1๏ธโฃ Open Chrome and type: chrome://extensions ๐ Exception: Extension Installers in the Registry If an extension is installed via HKLM or HKU, FRST can delete the registry key when included in the fixlist. ![]() ๐ Other Chromium-Based Browsers ๐ฅ๏ธ Supported Browsers: โ Brave, Opera, Vivaldi, Yandex Browser ๐ These browsers follow the same rules as Google Chrome. โ ๏ธ For other browsers not listed in FRST logs: ๐น Uninstall the browser completely ๐น Reboot your system ๐น Reinstall the browser ![]() โ๏ธ Services and Drivers ๐ฅ๏ธ The Services and Drivers are formatted as follows: Quote:๐น RunningState StartType ServiceName; ImagePath or ServiceDll [Size CreationDate] (SignerName โ CompanyName) [๐ Signature Verification] ๐ข RunningState - The letter beside the number represents the Running State: - ๐ข R = Running - ๐ด S = Stopped - ๐ก U = Undetermined ๐ข StartType Numbers: - ๐ข 0 = Boot - ๐ก 1 = System - ๐ต 2 = Auto - ๐ 3 = Demand - ๐ด 4 = Disabled - โช b5 = Assigned by FRST when it is unable to read the start type ๐ Where you see [X] at the end of a listed entry, it indicates that FRST could not find the files associated with the particular Service or Driver and has listed the ImagePath or ServiceDll as it is in the registry instead. ๐ ๏ธ Default Microsoft Services Requiring Repair ๐ Example: Quote:==================== Services (Whitelisted) ================= In this case, the file needs to be replaced with a good copy. To fix, use the Replace: command. โ Removing a Bad Service or Driver ๐ Copy the line from the scan log to fixlist. Any associated file should be included separately. Example: Quote:R1 94BE3917F6DF; C:\Windows\94BE3917F6DF.sys [619880 2019-03-07] (้ต็พฝๅฅๅบท็ฎก็ๅจ่ฏข๏ผไธๆตท๏ผๆ้ๅ ฌๅธ -> VxDriver) <==== ATTENTION The tool closes any service entry included in the fixlist and removes the service key. โ ๏ธ Note: FRST will report success or failure of stopping services that are running. Regardless of whether the service is stopped or not, FRST attempts to delete the service. ๐ If a running service is deleted, FRST will inform the user about completing the fix and the need to restart. Then FRST will restart the system. ๐ If a service is not running, FRST will delete it without forcing a restart. ๐จ Exception: Hijacked Themes Example: Quote:S2 Themes; C:\Windows\system32\themeservice.dll [44544 2009-07-14] (Microsoft Windows -> Microsoft Corporation) [DependOnService: iThemes5] <==== ATTENTION ๐ When included in the fixlist, this entry will be restored to the default state. โ Do Not Include This Line in the Fixlist: Quote:"ServiceName" => service was unlocked. <==== ATTENTION โ ๏ธ This message indicates that FRST detected broken permissions and automatically fixed them during a scan. A new FRST log should be taken to verify the result. If necessary, include the standard service line in the fixlist. ![]() ๐ NetSvcs ๐น NetSvc entries are listed each on a line, like this: Quote:NETSVCx32: HpSvc -> C:\Program Files (x86)\LuDaShi\lpi\HpSvc.dll () ๐ Listing Netsvc only removes the associated value from the registry. The associated service (if present under the Services section) should be listed for deletion separately. ๐ Example: To remove the Netsvc value, the associated service in the registry, and the associated DLL file, the full script would look like this: Quote:S2 HpSvc; C:\Program Files (x86)\LuDaShi\lpi\HpSvc.dll [239016 2016-07-21] (Qihoo 360 Software (Beijing) Company Limited -> ) <==== ATTENTION ๐ One Month (Created/Modified) The "Created" scan reports the file or folder's created date and time followed by the last modified date and time. The "Modified" scan reports the modified date and time first, followed by the created date and time. ๐น Size: The number of bytes contained in the file is displayed. A folder will show 00000000 as it has no bytes. ๐น Scope: The scan is limited to predefined locations to prevent long scan times and large logs. ๐น Contents: FRST only lists custom folders, not their contents. To list the contents, use Folder: directive. ๐ Important Notes: โ Digital signatures check is limited to Microsoft executables (whitelisted by default). โ Other digital signatures are not checked. โ Use SigCheckExt for a list of unsigned executables. ๐ FRST Log Notations: Code [C] - Compressed ๐ Removing Files or Folders from the One Month List Simply copy and paste the entire line into fixlist to remove it. Symbolic links (L attribute) are handled properly. Example: Quote:2018-02-21 21:04 - 2018-02-21 21:04 - 000000000 ___DL C:\WINDOWS\system32\Link When added to fixlist, FRST will only delete the link, keeping the target intact: Quote:Symbolic link found: "C:\WINDOWS\system32\Link" => "C:\Windows\System32\Target" ๐น Alternative: Use DeleteJunctionsInDirectory: directive. ๐ Fixing Files & Folders To remove other files/folders, list their full path in fixlist (no quotes needed, even for paths with spaces). โ Example: Code C:\Windows\System32\Drivers\bad.sys ๐ Using Wildcards (*) for Multiple Files Instead of listing files one by one: Code C:\Windows\Tasks\At1.job Code C:\Windows\Tasks\At*.jobโ Note: The ? character is ignored for safety reasons and wildcards do not work for folders. RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐ FLock - Locked Files This section lists locked files and folders in standard directories. ![]() ๐ FCheck - Bad Files This section detects bad files, such as: โ DLL Hijacking attempts โ Zero-byte executables (.exe and .dll) in standard directories This section appears only when matching items are found. ๐ Fixing Bad Files If an entry appears in fixlist, the file/folder will be moved. ![]() ๐ข KnownDLLs Some items in this section, if missing, patched, or corrupted, could cause boot issues. ๐น This scan only appears when the tool is run in Recovery Environment (RE) mode. ๐น Items are whitelisted unless they require attention. ๐น Caution: Handling these files improperly may cause system instability. It is strongly recommended to seek expert help. ๐ก Replacing a Missing or Corrupt DLL If a problematic file is found, a good replacement may already exist on the system. Use the FRST Search function to locate it. Refer to the Directives section for replacement instructions. ![]() ๐ SigCheck - System File Verification FRST verifies critical system files. If a file is missing or has an invalid digital signature, it will be reported. โ Outside of Recovery Mode, this section is whitelisted unless an issue is detected. โ Modified system files may indicate malware infection. โ Warning: Deleting a system file without replacement could make the system unbootable. ๐ Example from a Hijacker.DNS.Hosts Infection: Quote:C:\WINDOWS\system32\dnsapi.dll ๐ Fix: Replace the file using the Replace: command. ![]() ๐ Safe Mode & Recovery Mode Fixes ๐ก SmartService Infection Detection Some versions of SmartService malware disable Recovery Mode. FRST automatically restores the BCD setting during a scan: Quote:BCD (recoveryenabled=No -> recoveryenabled=Yes) <==== restored successfully ๐ก Fixing Safe Mode Boot Loops If a system is stuck in Safe Mode, users may see this warning: Quote:safeboot: Minimal ==> The system is configured to boot to Safe Mode <===== ATTENTION ๐น To fix this issue: Copy and paste the above line into the fixlist. FRST will reset the system to boot into normal mode. ๐ Applies to: Windows Vista and later. ![]() ๐ Association - EXE File Associations The "Association" section appears in FRST.txt when running from Recovery Environment. Outside of RE, it is logged in Addition.txt. This scan checks .exe file associations to detect malicious hijacking. ๐ Example of a Hijacked EXE File Association: Quote:HKLM\...\exefile\open\command: C:\Windows\svchost.com "%1" %* <===== ATTENTION ๐ Fix: Copy and paste the entry into fixlist, and FRST will restore the correct association. ![]() โณ Restore Points ๐น "Restore Points" appear in FRST.txt when run from Recovery Environment. ๐น When run outside of RE, they are logged in Addition.txt. ๐น Windows XP: Hives can be restored using FRST. ๐น Windows Vista and later: Restore points must be used via Windows System Recovery Options. ๐ Example from a Windows XP machine: Quote:RP: -> 2010-10-26 19:51 - 024576 _restore{3216E3D3-FBC5-40AC-B583-63C1B9EE2B6F}\RP83 ๐ To restore a specific restore point (e.g., RP82): Copy and paste the following into fixlist: Code RP: -> 2010-10-24 13:57 - 024576 _restore{3216E3D3-FBC5-40AC-B583-63C1B9EE2B6F}\RP82![]() ๐ฅ๏ธ Memory Info ๐น The Memory info section appears in FRST.txt when running in Recovery Environment (RE). ๐น Outside of RE, it appears in Addition.txt, containing additional details (BIOS, Motherboard, Processor). ๐ What It Reports: โ Total RAM installed โ Available physical memory โ Percentage of free memory โ Virtual memory & available virtual memory ๐ก Why is this useful? โ Helps diagnose performance issues or hardware problems. โ If reported RAM is less than expected, possible reasons include: - Faulty RAM module - Motherboard slot issues - BIOS not recognizing all installed RAM (BIOS update may be required) โ 32-bit systems will only report up to 4GB RAM, even if more is installed. ![]() ๐พ Drives and MBR & Partition Table ๐น The Drives and MBR & Partition Table sections appear in FRST.txt when running in Recovery Environment (RE). ๐น Outside of RE, they appear in Addition.txt. ๐ What It Does: โ Lists all fixed and removable drives detected at the time of scan. โ Unmounted volumes are identified by GUID paths. ๐ Example Output: Quote:Drive c: (OS) (Fixed) (Total: 223.02 GB) (Free: 173.59 GB) (Model: Force MP500) NTFS ๐ Partitioning Scheme Detection: ๐ UEFI/GPT-based partitions: - Only the basic GPT layout is detected. - A complete list of partitions is not available. ๐ Example Output: Quote:Disk: 0 (Protective MBR) (Size: 223.6 GB) (Disk ID: 00000000) ๐ BIOS/MBR-based partitions: - The MBR code and partition entries are detected. - Logical partitions inside extended partitions are not listed. ๐ Example Output: Quote:Disk: 0 (MBR Code: Windows 7/8/10) (Size: 465.8 GB) (Disk ID: 73FD73FD) ๐ Checking for MBR Issues: If an issue is detected with the MBR, you may need to perform an MBR dump. ๐ To obtain an MBR dump, run this command in FRST: Code SaveMbr: drive=0 (or appropriate drive number)๐ This will generate MBRDUMP.txt in the same location as FRST/FRST64. โ ๏ธ Important: - Some MBR infections can forge the MBR while Windows is running. - It is recommended to run this in Recovery Environment (RE). ![]() ๐ LastRegBack - Last Registry Backup FRST scans the system and lists the last registry backup created by Windows. This backup contains all registry hives and is different from Last Known Good Configuration (LKGC). ๐ก When to Use It? โ If registry corruption or loss has occurred. โ If FRST cannot load the system hive, you may see this error: ๐ Example Output: Quote:ATTENTION: Could not load system hive. ๐ How to Restore the Last Registry Backup: Include the following line in fixlist: Code LastRegBack: >>date<< >>time<<๐ Example: Code LastRegBack: 2013-07-02 15:09๐ก๏ธ Additional Scan Header & Malware Removal Analysis ThenAdditional Scan Header contains a brief summary of system information relevant to malware analysis. Below is an example of how it appears: ๐ Example Header: Quote:Additional scan result of Farbar Recovery Scan Tool (x64) Version: 20-10-2017 ![]() ๐ How to Interpret the Header: โ First line: Indicates whether the FRST 32-bit or 64-bit version was used, along with the version number. โ Second line: Displays the user who ran the tool and the exact date/time of execution. โ Third line: Shows the directory from which FRST was run. โ Fourth line: Lists the Windows version and installation date. โ Fifth line: Identifies whether the scan was performed in Normal Mode or Safe Mode. ![]() ๐ค Accounts Section This section lists standard accounts on the system in the following format: ๐ Local Account Name (SID - Privileges - Enabled/Disabled) => Profile Path ๐น Malicious accounts can be flagged for removal. Example: Quote:WgaUtilAcc (S-1-5-21-1858304819-142153404-3944803098-1002 - Administrator - Enabled) => removed successfully ๐ก Only the account itself is removed. The corresponding user folder in the Users directory must be deleted manually. ![]() ๐ Security Center Entries Sometimes, the scan will detect leftover entries from previously uninstalled security software. These entries can be removed using a fixlist. However, if the software is still partially installed, you may see this message in the Fixlog: Quote:Security Center Entry => The item is protected. Make sure the software is uninstalled and its services are removed. ๐ก If removal fails, manually uninstall the security software before proceeding. ![]() ๐ฆ Installed Programs Lists all installed software, including classic desktop applications and Windows 10/11 UWP apps. โ Pre-installed Microsoft applications are whitelisted. โ Ad-supported applications are flagged with [MS Ad]. โ Potentially unwanted programs (PUPs) are identified for removal. Example: Quote:App Radio -> C:\Program Files\WindowsApps\34628NielsCup.AppRadio_9.1.40.6_x64__kz2v1f325crd8 [2019-06-04] (Niels Cup) [MS Ad] ๐น Startup applications will be marked as [Startup Task]. ๐น Adware programs are recommended for manual removal before using automated tools. ![]() ๐จ Suspicious Registry Entries & ContextMenu Handlers Malicious registry keys and shell extensions can be listed in ContextMenuHandlers or CLSID custom classes. Example: Quote:ContextMenuHandlers1: [SystemHelper] -> {851aab5c-2010-4157-9c5d-a28dfa7b2660} => C:\Windows\ExplorerPlug.dll [2018-03-03] (Unknown Publisher) [File not signed] โ If flagged as malicious, these entries can be removed via a fixlist. โ Legitimate third-party software may also create CLSID entries, so research carefully before deletion. ![]() ๐ Alternate Data Streams (ADS) FRST detects hidden Alternate Data Streams, often used by malware to store malicious executables. Example Output: Quote:==================== Alternate Data Streams (whitelisted) ========== โ If the ADS is attached to a legitimate file, only the ADS should be removed. โ If attached to a malicious file, the entire file should be deleted. RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐ Startup & WMI Hijacks FRST detects hijacked startup items and WMI (Windows Management Instrumentation) abuse, often used by malware to persist after reboot. Example of WMI-Based Malware: Quote:WMI:subscription\__FilterToConsumerBinding->CommandLineEventConsumer.Name="****youmm4",Filter="__EventFilter.Name="****youmm3"" <==== ATTENTION โ Malicious WMI entries can be removed with a fixlist. โ OEM software (such as Dell utilities) may also create custom WMI registrationsโresearch unknown entries before removal. ![]() ๐ผ๏ธ Malicious Wallpapers (Crypto Ransomware Tactics) Ransomware sometimes replaces the desktop wallpaper with a ransom note. FRST detects such changes. Example: Quote:HKU\S-1-5-21-2507207478-166344414-3466567977-1001\Control Panel\Desktop\\Wallpaper -> C:\Documents and Settings\User\My Documents\!Decrypt-All-Files.bmp โ The wallpaper entry should be removed, and the user should manually reset their background. ![]() ๐ Suspicious DNS Hijacks FRST lists the currently used DNS servers to detect hijacked network settings. Example Output: Quote:DNS Servers: 213.46.228.196 - 62.179.104.196 ๐ก Use [Whois Lookup](https://whois.domaintools.com/) to check if these servers are legitimate. If the DNS settings appear compromised, resetting the network adapter is recommended. ๐ก๏ธ UAC (User Account Control) Settings โ Enabled (Default Setting): Quote:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System โ Disabled: Quote:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System ๐ก Note: - UAC being disabled may be a result of user action or malware activity. - Before attempting a fix, verify whether the user has intentionally disabled it. ![]() ๐ก๏ธ SmartScreen (Windows 8+) SmartScreen for Desktop Applications & Files: Quote:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer Supported values: โ Block | Warn | Off (Windows 10 Version 1703+) โ RequireAdmin | Prompt | Off (Older Windows versions) Example of a missing/default value (Windows 10 Version 1703+): Quote:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer ![]() ๐ก Telephony Service Providers (TSP) Default and some legitimate third-party entries are whitelisted. Custom entries are flagged. Example of a Custom TSP Entry: Quote:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Providers ๐ ๏ธ Fixing Malicious/Broken TSP Entries: - Manually remove the matching ProviderIDx and ProviderFileNamex entries. - Renumber the remaining entries accordingly. ![]() โ๏ธ BITS (Background Intelligent Transfer Service) Lists BITS jobs using a notification command line. ๐น Reference: Attacker Use of Windows BITS Example Output: Quote:BITS: {Job ID} - (Job Name) -> [NotifyCmdLine: Command] [files:Remote Path -> Local Path] ๐ ๏ธ To remove all BITS jobs: Use the EmptyTemp: directive. ![]() ๐ฅ Windows Firewall Example: Quote:Windows Firewall is enabled. โ If Windows Firewall is enabled, it's reported in the scan. โ If disabled, this may indicate user modification or malware interference. ๐ ๏ธ If running FRST in Safe Mode, Firewall status may not be reported. ![]() ๐ Network Binding (Windows 8+) Lists network adapters and non-standard components attached to them. Compare the Drivers section to find matching elements. Example: Quote:inspect: COMODO Internet Security Firewall Driver Quote:R1 inspect; C:\Windows\system32\DRIVERS\inspect.sys ๐ ๏ธ If a program uninstall fails to remove these items: - Network binding must be removed first before fixing the driver. - Follow steps in ESET Knowledgebase. ๐ก Note: Make sure the network binding is removed first before including the driver in a fixlist. Removing a driver without unbinding it first may break network connectivity. ๐ MSCONFIG & Task Manager Disabled Items This section is useful when users have disabled malware entries via MSCONFIG or Task Manager instead of properly removing them. Additionally, some users disable too many services, preventing essential programs from functioning correctly. ๐ MSCONFIG (Windows 7 & Older) Example Output: Quote:MSCONFIG\Services: Quotenamron => 2 โ Disabled Services: MSCONFIG\Services: ServiceName => Original Start Type โ Disabled Items in Startup Folder: MSCONFIG\startupfolder: Original Path => Path to Windows Backup โ Disabled Run Entries: MSCONFIG\startupreg: ValueName => Path to File ![]() ๐ Task Manager (Windows 8 & Newer) In Windows 8 and newer, MSCONFIG is used only for services, while startup items are handled by Task Manager. Disabled items are stored in different registry keys. Example Output: Quote:HKLM\...\StartupApproved\Run32: => "win_en_77" ๐ How FRST Handles These Entries: โ Disabled Services โ FRST deletes both the MSCONFIG key & the service itself. โ Disabled Run Items โ FRST removes registry values from MSCONFIG & Task Manager. โ Startup Folder Items โ FRST deletes the entry & moves the backup file (Windows 7) or removes the file (Windows 8+). ๐จ Important: Fix entries from this section only if you are certain they are malware-related! If a legitimate program was disabled, the user should re-enable it via MSCONFIG or Task Manager. ![]() ๐ฅ Windows Firewall Rules FRST lists Firewall Rules, Authorized Applications, and Globally Open Ports. Example (Windows 10): Quote:FirewallRules: [{E3D59A00-E41A-4AE5-AECF-E7AC117FBF83}] => (Allow) C:\Program Files (x86)\Firefox\bin\FirefoxUpdate.exe Example (Windows XP): Quote:StandardProfile\AuthorizedApplications: [C:\Program Files\Firefox\bin\FirefoxUpdate.exe] => Enabled: Update Service ๐ If an entry is included in the fixlist, it will be removed from the registry. ๐ฅ FRST does NOT remove the actual file, only the registry rule. ![]() ๐ Restore Points FRST lists available Restore Points as follows: Example Output: Quote:18-04-2016 14:39:58 Windows Update If System Restore is disabled, FRST will indicate it: Quote:โ ๏ธ ATTENTION: System Restore is disabled (Total: 59.04 GB) (Free: 43.19 GB) (73%) ๐ก System Restore Disabled via Group Policy will be reported under the Registry section in FRST.txt. โ Use CreateRestorePoint: and SystemRestore: directives to enable it. RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐ Faulty Device Manager Entries FRST detects broken or misconfigured devices in Device Manager. Example: Quote:Name: bsdriver ๐ Solution: Remove the device from Device Manager & reinstall drivers if necessary. ![]() ๐ Event Log Errors FRST detects the following event log errors: โ Application Errors โ System Errors โ CodeIntegrity Errors โ Windows Defender Warnings ![]() ๐พ MBR & Partition Table FRST scans the Master Boot Record (MBR) and Partition Table for anomalies. โ A corrupt MBR can cause boot failures, and FRST can help diagnose these issues. ![]() ๐ Search Features โ Search Files: Use the Search Files button to scan for specific files. Wildcards (*) are allowed. Example searches: Code malware.exe;virus.dll โ Search Registry: Use the Search Registry button to find specific registry keys or values. ๐จ Avoid using wildcards (* or ?) as they will be interpreted literally. Example searches: Code Run;WindowsUpdateโ Find Folder: This feature can search for specific folders. โ SearchAll: Finds both files and registry entries matching your search term. ๐ FindFolder & SearchAll Directives These directives allow searching for folders or performing a full system-wide search for files, folders, and registry entries. ![]() ๐ FindFolder: To search for folders on the system drive, enter the following syntax in the Search box and press "Search Files": Code FindFolder: term;termโ Wildcards are supported: Code FindFolder: *term*;*term*![]() ๐ SearchAll: To search for files, folders, and registry entries at once, use: Code SearchAll: term;term๐ซ Do NOT add wildcards โ FRST automatically searches as term for files and folders. ๐ก In Recovery Environment (RE), SearchAll: is limited to files and folders only. ![]() โ๏ธ Directives & Commands ๐ FRST processes scripts line by line. ๐ก All commands should be on a single line. ![]() ๐ Quick Reference (Directives/Commands) โ Case-insensitive โ Applicable modes: - (N) = Normal Mode - (S) = Safe Mode - (RE) = Recovery Environment ๐น For Normal Mode only: Code CreateRestorePoint:๐น For Normal Mode & Safe Mode: Code CloseProcesses:๐น For Normal Mode, Safe Mode, & RE: Code cmd:๐น For Recovery Environment (RE) only: Code LastRegBack:![]() ๐ Usage Examples ๐ CloseProcesses: This directive closes all non-essential processes, speeding up malware removal. โ This directive automatically triggers a rebootโno need to use Reboot:. ![]() ๐ฅ CMD: To execute Command Prompt commands, use the CMD: directive. โ Example Syntax: Quote:CMD: command_here โ Example - Copy Minidump files to a USB drive (E:) Code CMD: copy /y C:\Windows\Minidump\*.dmp E:\๐ก The second command repairs the MBR (Windows Vista & newer). ๐ Alternative: Use StartBatch: โ EndBatch: instead. ![]() ๐ Comment: Adds notes to explain Fixlist actions. โ Example: Quote:Comment: The following command will remove all network proxies ![]() ๐ Copy: Copies files or folders (similar to xcopy). โ Syntax: Quote:Copy: source_path destination_path โ Example - Backup Edge browser data: Code Copy: C:\Users\User\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\DBStore\spartan.edb C:\Users\User\Desktop\EdgeBackupโ Example - Copy Minidump folder to drive F: Code Copy: C:\Windows\Minidump F:\๐ก For replacing files, use Replace: instead of Copy:. ๐ Replace: Unlocks, moves to quarantine, and replaces the file. ๐น CreateDummy Directive Creates a locked dummy folder to prevent the restoration of a malicious file/folder. ๐ Remove the dummy folder after malware neutralization. ๐ก Syntax: Code CreateDummy: pathโ Example Usage: Code CreateDummy: C:\Windows\System32\bad.exe![]() โป๏ธ CreateRestorePoint: Creates a system restore point. โ Note: - Works only in Normal Mode. - Automatically enables System Restoreโno need to use SystemRestore: On. ![]() ๐ DeleteJunctionsInDirectory: Removes junctions (symbolic links) within a directory. ๐ก Syntax: Code DeleteJunctionsInDirectory: pathโ Example Usage: Code DeleteJunctionsInDirectory: C:\Program Files\Windows Defender![]() ๐๏ธ DeleteKey & DeleteValue Directives โก Bypasses deletion restrictions of Reg: and StartRegedit: directives. ๐ 1. Delete a Registry Key: Code DeleteKey: key_path๐ 2. Delete a Registry Value: Code DeleteValue: key_path|value_nameโ Examples: Code DeleteKey: HKLM\SOFTWARE\Microleaves๐ Advanced Deletion: - Can remove locked registry keys/values. - Bypasses permission restrictions & symbolic link issues. - Does NOT require Unlock:. ๐ก If the key is protected by active software, use Safe Mode or remove the software first. ![]() ๐๏ธ DeleteQuarantine: Deletes the C:\FRST\Quarantine folder if malware files are locked. โ Note: - Some manual deletions fail due to locked files. - Use this command after completing malware removal. RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐ซ DisableService: Disables a Windows service or driver service. ๐ก Syntax: Code DisableService: ServiceNameโ Example Usage: Code DisableService: sptd๐ FRST will set the service to "Disabled", preventing execution at next boot. โ Service name must match its registry entry. No quotes needed. ![]() ๐๏ธ EmptyEventLogs: Clears Windows Event Logs. โ Total logs cleared and errors will be displayed. ![]() ๐๏ธ EmptyTemp: Removes temporary files from various locations: โ Deleted Items:
๐ Auto-Reboot Required โ no need for Reboot:. ๐ โ Warning: Files are permanently deleted (not moved to Quarantine). ๐ซ Disabled in Recovery Mode to prevent accidental data loss. ![]() ๐ค ExportKey & ExportValue: Extracts registry information for analysis. ๐ก Syntax: Code ExportKey: key_pathโ Example Usage: Code ExportKey: HKEY_LOCAL_MACHINE\SOFTWARE\SuspiciousKey๐ Output Example: Quote:=================== ExportKey: =================== ๐จ Note: - For research onlyโNOT a backup or restore function. ๐ File Directive Checks file properties, including metadata, MD5 checksum, and digital signature. ๐ก Syntax: Code File: path;pathโ Example Usage: Code File: C:\Users\User\Desktop\amtemu.v0.9.1-painter.exe๐ Output Example: Quote:========================= File: C:\Users\User\Desktop\amtemu.v0.9.1-painter.exe ======================== โ Note: The digital signature check is not available in the Recovery Environment. ![]() ๐ FilesInDirectory & Folder Directives These directives list file contents within a directory. - FilesInDirectory: Lists specific files matching wildcard patterns (`*.exe`, `*.dll`). - Folder: Lists all files within a folder recursively (including subdirectories). ๐ก Syntax: Code FilesInDirectory: path\pattern;patternCode Folder: pathโ Example Usage: Code FilesInDirectory: C:\Windows\desktop-7ec3qg0\*.exe;*.dll โ Warning: Folder: is recursive, and may generate very large logs. ![]() ๐ FindFolder Directive Similar to Search features, but results are recorded in Fixlog.txt. For details, see the [Other Optional Scans](https://www.bleepingcomputer.com/forums/t/781976/frst-tutorial-how-to-use-farbar-recovery-scan-tool/#entry5468083) section. ๐ Hosts Directive Resets the Windows hosts file. See Main scan (FRST.txt) for more details. ![]() ๐ ListPermissions Directive Lists permissions for specific files, directories, or registry keys. ๐ก Syntax: Code ListPermissions: path/keyโ Example Usage: Code ListPermissions: C:\Windows\Explorer.exe ![]() ๐ค Move Directive Moves or renames files, useful for handling locked or system-protected files. ๐ก Syntax: Code Move: source destinationโ Example Usage: Code Move: C:\WINDOWS\system32\drivers\afd.sys C:\WINDOWS\system32\drivers\afd.sys.old โ How It Works: 1. If a file exists in the destination, FRST moves it to Quarantine. 2. Then, the source file is moved to the new location. โ Important Notes: - Renaming is supported within the Move: directive. - If the destination path is missing, you must include the filename in the destination. โก PowerShell Directive Executes PowerShell commands or scripts within FRST. ![]() 1๏ธโฃ Run a Single PowerShell Command ๐ก Syntax: Code Powershell: commandโ Example Usage: Code Powershell: Get-Service๐ Output: Logged in Fixlog.txt. ![]() 2๏ธโฃ Save PowerShell Output to a File Use redirection operators (> or Out-File). ๐ก Syntax: Code Powershell: command > "Path to a text file"Code Powershell: command | Out-File "Path to a text file"โ Example Usage: Code Powershell: Get-Service > C:\log.txt ๐ Note: >> appends to a file instead of overwriting it. ๐ More Info: - ๐ Redirection Operators - ๐ Out-File Cmdlet ![]() 3๏ธโฃ Run a PowerShell Script File (.ps1) ๐ก Syntax: Code Powershell: "Path to a script file"โ Example Usage: Code Powershell: C:\Users\UserName\Desktop\script.ps1 ๐ Note: Use quotes if the path contains spaces. ![]() 4๏ธโฃ Run Multiple PowerShell Commands in One Line Separate commands using a semicolon ( ; ). ๐ก Syntax: Code Powershell: command1; command2; command3โ Example Usage: Code Powershell: $WebClient = New-Object System.Net.WebClient; ![]() ๐ Alternative: StartPowershell & EndPowershell Directives For long scripts, use: Code StartPowershell:(Commands here) Code EndPowershell:![]() ๐ Reboot Directive Forces a restart after the fixlist execution. ๐ก Syntax: Code Reboot:๐ Note: This only works in Normal & Safe Mode, not in Recovery Mode. ![]() ๐ Reg Directive (Registry Manipulation) Runs reg command-line operations for modifying the Windows Registry. ๐ก Syntax: Code Reg: reg commandโ Example Usage: Code Reg: reg add HKLM\SYSTEM\CurrentControlSet\Services\Schedule /v Start /t REG_DWORD /d 0x2 /f ๐ Important Notes: โ Proper syntax required (use quotes " " for paths with spaces). โ This does not handle locked/invalid keys (see DeleteKey: & DeleteValue: for locked keys). RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐๏ธ RemoveDirectory Directive Forces deletion of stubborn or invalid directories. ๐ก Syntax: Code RemoveDirectory: pathโ Example Usage: Code RemoveDirectory: C:\ProgramData\BadSoftware๐ Note: Works best in Safe Mode or Recovery Mode for stubborn files. ![]() ๐ RemoveProxy Directive ๐ Removes: - Internet Explorer policy restrictions - Proxy settings in HKLM & HKCU - Manual Proxies & BITSAdmin proxy settings ๐ก Syntax: Code RemoveProxy:๐ Important: โ Proxy settings may return if another program (e.g., malware) re-applies them. โ If persistent, uninstall the responsible software first. ![]() ๐ Replace Directive (Replace System Files) Moves the destination file to Quarantine and replaces it with the source file. ๐ก Syntax: Code Replace: source destinationโ Example Usage: Code Replace: C:\WINDOWS\WinSxS\amd64_microsoft-windows-dns-client\dnsapi.dll C:\WINDOWS\system32\dnsapi.dll ๐ Key Notes: - The source file remains in its original location. - The destination file (if present) is moved to Quarantine before replacement. - If the destination directory is missing, this command will fail (use Copy: instead). ๐ RestoreFromBackup Directive Restores Windows Registry hives from backups created in %SystemDrive%\FRST\Hives (e.g., C:\FRST\Hives). ๐ Key Notes: - The first run of FRST creates backups of the System Registry Hives. - The backup is not overwritten unless it's older than 2 months. - If issues arise, individual hives can be restored. ๐ก Syntax: Code RestoreFromBackup: HiveNameโ Example Usage: Code RestoreFromBackup: software ![]() ๐พ Restore MBR (RestoreMbr Directive) This directive restores the Master Boot Record (MBR) from a MBR.bin backup file. ๐ Requirements: - MbrFix/MbrFix64 Utility ([๐ Download](https://sysint.no/mbrfix/)). - A valid MBR.bin backup file. - Correct drive number. ๐ก Syntax: Code RestoreMbr: Drive=#โ Example Usage: Code RestoreMbr: Drive=0๐ Important Notes: โ Ensure the MBR.bin file is zipped and attached before execution. ![]() ๐ Restore Quarantine (RestoreQuarantine Directive) FRST allows restoring quarantined files/folders. ๐ก Restore the Entire Quarantine Folder: Code RestoreQuarantine:Code RestoreQuarantine: C:\FRST\Quarantine๐ก Restore a Specific File/Folder: Code RestoreQuarantine: PathInQuarantineโ Example Usage: Code RestoreQuarantine: C:\FRST\Quarantine\C\Program Files\Microsoft Office ๐ Find Quarantined Files: Code Folder: C:\FRST\QuarantineCode CMD: dir /a/b/s C:\FRST\Quarantineโ Files won't be restored if they already exist at the destination. โก๏ธ Rename or remove the existing file before restoring. ![]() ๐ฟ Save MBR (SaveMbr Directive) Creates a backup copy of the Master Boot Record (MBR). ๐ก Syntax: Code SaveMbr: Drive=#โ Example Usage: Code SaveMbr: Drive=0๐ Key Notes: - The MBR dump is saved in MBRDUMP.txt on the flash drive. - Users should attach MBRDUMP.txt when posting for assistance. ๐ SetDefaultFilePermissions Directive ๐น Purpose: Unlocks system files/folders by setting Administrators as the owner. ๐น Note: This does not restore TrustedInstaller as the owner. ๐น Use case: Helpful for removing malware-locked system files/folders. ๐ Syntax: Code SetDefaultFilePermissions: pathโ Example Usage: Code SetDefaultFilePermissions: C:\Windows\System32\drivers\etc\hosts![]() ๐ StartBatch & EndBatch Directives ๐น Purpose: Creates and runs a batch file within FRST. ๐น Output: Redirected to Fixlog.txt. ๐ Syntax: Code StartBatch:โ Example Usage: Code StartBatch:![]() ๐ต StartPowershell & EndPowershell Directives ๐น Purpose: Executes a PowerShell script with multiple lines. ๐น Alternative to: The Powershell: directive. ๐น Output: Redirected to Fixlog.txt. ๐ Syntax: Code StartPowershell:โ Example Usage: Code StartPowershell:![]() ๐ StartRegedit & EndRegedit Directives ๐น Purpose: Creates and imports a Registry (.reg) file. ๐น Output: Confirmation appears in Fixlog.txt. ๐น Windows Registry Editor Version 5.00 header is optional, but REGEDIT4 is required. ๐ Syntax: Code StartRegedit:โ Example Usage: Code StartRegedit:๐ Fixlog Output Example: Code Registry ===> The operation completed successfully.โ Note: Errors in .reg file syntax won't be detected by FRST. ![]() ๐ Symlink Directive ๐น Purpose: Lists symbolic links & junctions in a folder. ๐น Recursive: Yes, it scans all subdirectories. ๐ Syntax: Code Symlink: pathโ Example Usage: Code Symlink: C:\Windowsโ Note: This operation may take time depending on the folder size. ![]() ๐ SystemRestore Directive ๐น Purpose: Enables or disables System Restore. ๐น Prerequisite: Requires sufficient free space to enable. ๐ Syntax: Code SystemRestore: OnCode SystemRestore: Offโ Error occurs if the system does not meet the space requirements. ![]() ๐ TasksDetails Directive ๐น Purpose: Lists additional details about scheduled tasks (execution time, status, schedule). ๐น Supported OS: Windows Vista+ (Not available in Windows XP). โ Example Output: Code ========================= TasksDetails: ========================= RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ๐ฅ testsigning Directive ๐น Purpose: Detects non-default test mode activation in Windows boot settings. ๐น Applies to: Windows Vista and later (Not available on Secure Boot enabled devices). ๐ Syntax: Code testsigning: ==> 'testsigning' is set. Check for possible unsigned driver <===== ATTENTION๐ Action: - Check the Drivers section for unsigned drivers. - If necessary, manually disable test mode. ![]() ๐ Unlock Directive ๐น Purpose: Unlocks files, directories, or registry keys by granting Administrators, Users, and SYSTEM access. ๐น Use case: Removing malware-locked files/folders. ๐น Alternative: Use SetDefaultFilePermissions: for system files. ๐ Syntax: Code Unlock: pathโ Example Usage: Code Unlock: C:\Windows\System32\malware.exeโ Note: No need to unlock before deleting: - Files/Folders โ FRST will reset permissions and move them to Quarantine. - Registry Keys โ Use the DeleteKey: directive. ![]() ๐ฆ Virusscan Directive ๐น Purpose: Checks files against Jotti's malware database. ๐น If not found: The file will be uploaded for analysis. ๐ Syntax: Code Virusscan: path;pathโ Example Usage: Code Virusscan: C:\suspicious.exe;C:\Windows\System32\drivers\unknown.sys![]() ๐ฆ Zip Directive ๐น Purpose: Compresses files/folders into a .zip archive saved as [Date_Time].zip on the desktop. ๐น Useful for: Manual uploads or analysis. ๐ Syntax: Code Zip: path;pathโ Example Usage: Code Zip: C:\malware.exe;C:\Windows\Minidump;C:\Windows\Logs\CBS\CBS.logโ Note: - If multiple files have duplicate names, FRST creates separate archives. - For file replacement, consider using Replace: instead. RE: [MRT-X Academy] FRST Tutorial - Tha Sneak - Mar 4, 2025 ![]() ![]() ![]() ![]() ![]() Clean FRST Log: FRST Log: https://www.mediafire.com/file/4paznxe7jrkv23i/FRST.txt/file Addition Log: https://www.mediafire.com/file/ywvot7jhxbywzv4/Addition.txt/file ![]() Infected FRST Log: FRST Log: https://www.mediafire.com/file/ek81eky4lufz1u0/FRST.txt/file Addition Log: https://www.mediafire.com/file/ba3id1pfcgogbsm/Addition.txt/file |