CPSA ยท Windows passwords, vulnerabilities and hardening
Post-exploitation on Windows: credentials, patch level, clean-up
SAM and cached credentials, locally stored clear-text passwords, patch level checks and returning a system to its prior state.
Key points
- Credentials: local account hashes in the SAM, cached domain logon verifiers, service and LSA secrets, clear-text passwords in scripts, config files, autologon registry values.
- Patch level: the installed update list (e.g. Get-HotFix) shows what else is exposed.
- Logging: everything done is recorded.
- Clean-up: remove or revert tools, accounts, files, changes to the prior state; report what cannot be reverted.
Practice questions
Where does a standalone Windows machine keep the password hashes of its local accounts?
- The Security Accounts Manager (SAM) database
- The Windows Event Log
- The Windows Update history
- The Recycle Bin
Show answer
Answer: A. The Security Accounts Manager (SAM) database
The Security Accounts Manager (SAM) database holds local account hashes. Active Directory's database holds domain accounts on domain controllers, and the Event Log holds audit records, not credentials.
Which are common sources of credentials on a compromised Windows host?
- The SAM database of local accounts
- Cached domain logon verifiers
- Clear-text passwords in scripts and config files
- Display resolution settings
- The desktop wallpaper path
Show answer
Answer: A. The SAM database of local accounts, B. Cached domain logon verifiers, C. Clear-text passwords in scripts and config files
The SAM, cached domain logon data and clear-text passwords in scripts or configuration are all classic sources. Screen resolution and wallpaper settings hold no credentials.
True or false: a local administrator account created during testing can stay on the system if its password is strong.
Show answer
Answer: False
False. Anything the tester adds must be removed or reported at the end. A strong password does not justify leaving an unrecorded privileged account behind.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
