PowerShell script to search a file share for potential sensitive data patterns
PowerShell script to search a file share for potential sensitive data patterns. Currently searches for patterns of:
- SSN
- Password
- Domain Prefix (Ex. MIDGAR)
- AWS Keys (Access and Secret)
- MachineKey
Find-SensitiveData -SharePath <\\host\share>
Find-SensitiveData -SharePath <\\host\share> -Force
Find-SensitiveData -SharePath <\\host\share> -BaseDirectory <C:\Users\testuser1\Desktop>
Remove-SensitiveData
Remove-SensitiveData -BaseDirectory <C:\Users\testuser1\Desktop>
- Add more patterns
- Add flexibility to multi-threading
- Add ability to find file shares to search through
- Limit searches to maximum file sizes based on extension