Bitzu

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.

Source: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/network-security-do-not-store-lan-manager-hash-value-on-next-password-change

Practice questions

Single choice

Where does a standalone Windows machine keep the password hashes of its local accounts?

  1. The Security Accounts Manager (SAM) database
  2. The Windows Event Log
  3. The Windows Update history
  4. 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.

Select all that apply

Which are common sources of credentials on a compromised Windows host?

  1. The SAM database of local accounts
  2. Cached domain logon verifiers
  3. Clear-text passwords in scripts and config files
  4. Display resolution settings
  5. 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

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.

Download on the App StoreGet it on Google Play

More CPSA topics in this module