A post-exploitation tool designed to scan local database instances for sensitive data patterns including credit card details, SSNs, and other compliance-critical PII data.
- Interface-driven design for consistent behavior across different database backends
- Currently supports:
- MongoDB
- MySQL
- Pattern matching for sensitive data fields including:
- Social Security Numbers
- Credit Card Numbers
- Passwords
- Security/Authentication data
- Address information
- PII data fields
Requires Go 1.23.0 or higher.
Example:
go run ./mongo/main.go localhost
Example:
go run ./mysql/main.go localhost
The project uses a modular architecture based on Go interfaces to ensure consistent behavior across different database implementations:
-
Core Interface (
dbminer.DatabaseMiner
):- Defines common schema inspection methods
- Provides unified search functionality
- Implements regex-based pattern matching
-
Database-Specific Implementations:
- Each database type implements the DatabaseMiner interface
- Handles connection management
- Provides schema extraction logic specific to the database
The scanner looks for common field names that might contain sensitive data:
- Social Security related fields
- Password/security fields
- Credit card related data (numbers, CVV, expiration)
- Address information (city, state, zip)
To add support for a new database type:
- Create a new package for the database
- Implement the DatabaseMiner interface
- Provide database-specific connection and schema extraction logic
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This tool is intended for authorized security testing and educational purposes only. Unauthorized database scanning or data extraction may violate applicable laws and regulations.
This tool is provided for educational and authorized testing purposes only. Users are responsible for ensuring compliance with applicable laws and regulations when using this tool.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.