Listen to this Post
Of course not. But recently, TCM Security shared something even more concerning. The latest versions of Windows store anything you type in Notepad, even if you donāt save it. Even worse, these changes persist through shutdowns and reboots. Thatās insane! Think about how often we use Notepad for quick notesāsometimes even for sensitive information like credentials. Itās a useful tip for digital forensics and pentesting but a huge security risk for everyone else.
You Should Know:
1. How to Check Notepadās Unsaved Data:
- Navigate to
C:\Users\<YourUsername>\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState
. - Look for files named `TabState` or
SessionData
. These files may contain unsaved Notepad data.
2. Clearing Notepadās Unsaved Data:
- Open Command Prompt as Administrator.
- Run the following command to delete Notepadās cached data:
del /f /s /q %LocalAppData%\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState*
3. Using Alternative Secure Text Editors:
- Consider using more secure text editors like Notepad++ or VS Code for sensitive information.
- Install Notepad++ via PowerShell:
winget install Notepad++.Notepad++
4. Disabling Notepadās Auto-Save Feature (if possible):
- Currently, thereās no official way to disable this feature, but you can use Group Policy Editor to restrict Notepadās functionality:
- Press
Win + R
, typegpedit.msc
, and navigate toUser Configuration > Administrative Templates > System > Files
. - Enable the policy “Do not preserve zone information in file attachments”.
5. Digital Forensics Tip:
- For penetration testers, this feature can be useful to recover unsaved data during investigations. Use the following command to search for Notepad artifacts:
dir /s /b C:\Users\ | findstr /i "Notepad"
6. Secure Deletion of Sensitive Data:
- Use tools like SDelete from Sysinternals to securely delete files:
sdelete -p 3 C:\path\to\file.txt
What Undercode Say:
Notepadās auto-save feature, while convenient, poses a significant security risk for users handling sensitive information. Always opt for more secure text editors and regularly clear cached data. For IT professionals and cybersecurity enthusiasts, this feature can be a goldmine during forensic investigations. However, for everyday users, itās a reminder to be cautious about where and how sensitive data is stored.
Additional Resources:
References:
Reported By: Flarexes Is – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ā