Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pgedge-anonymizer — An anonymizer tool for replacing PII and similar data in dev/test databases copied from production | Kitploit
Tools/GitHubGitHub/pgedge/pgedge-anonymizer
General Purpose UtilitiesData ExfiltrationDevSecOpsPrivacyMisconfigurationDatabase Security
GitHubpgedge/pgedge-anonymizer

pgedge-anonymizer

An anonymizer tool for replacing PII and similar data in dev/test databases copied from production

View Repository
30516 days agoReviewed by Kitploit
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

pgEdge Anonymizer

CI Release

Documentation:

  • Introduction
  • Best Practices
  • Installation
  • Configuration
  • Quickstart
  • Usage
  • Custom Patterns
  • Built-in Patterns
  • Example Configuration
  • Troubleshooting
  • Release Notes
  • Licence
  • pgEdge Anonymizer is a command-line tool for anonymizing personally identifiable information (PII) in PostgreSQL databases. The tool replaces sensitive data with realistic fake values that you can use for development and testing, while maintaining data consistency and referential integrity.

    Features

    • 100+ built-in patterns for common PII types across 19 countries
    • Consistent replacement - same input produces same output within a run
    • Foreign key awareness - automatically handles CASCADE relationships
    • Large database support - efficient batch processing with server-side cursors
    • Format preservation - maintains original data formatting where possible
    • Single transaction - all changes committed atomically or rolled back
    • Extensible - define custom patterns using date, number, or mask formats

    Quick Start

    Anonymizer lets you create an experimental data set that preserves the shape and integrity of a Postgres database in just three steps:

    1. Create a configuration file that specifies the replacement patterns for your columns.
    2. Build and run the pgedge-anonymizer to convert your columns.
    3. Review the results.

    Before running pgedge-anonymizer, you need to create a configuration file named pgedge-anonymizer.yaml; the file should contain:

    • a database section, with connection details for your database.
    • a columns section, listing the fully-qualified columns that you wish to anonymize (in schema_name.table_name.column_name format).
    • patterns properties for each column that specifies the form that replacement content will take.

    For example:

    root@kitploit:~
    database:
      host: localhost
      port: 5432
      database: myapp
      user: anonymizer
    
    columns:
      - column: public.users.email
        pattern: EMAIL
    
      - column: public.users.phone
        pattern: US_PHONE
    
      - column: public.users.ssn
        pattern: US_SSN
    

    After creating a configuration file, run the anonymizer:

    root@kitploit:~
    pgedge-anonymizer run
    

    Review the list of changes as pgedge-anonymizer runs, displaying statistics:

    root@kitploit:~
    Processing public.users.email (est. 50000 rows)...
      10000 rows processed
      20000 rows processed
      30000 rows processed
      40000 rows processed
      50000 rows processed
      Completed: 50000 rows, 48234 values anonymized
    
    === Anonymization Statistics ===
    Total columns processed: 1
    Total rows processed:    50000
    Total values anonymized: 48234
    Total duration:          2.34s
    Throughput:              21367 rows/sec
    

    Developer Notes

    Prerequisites

    • Go 1.24 or later
    • PostgreSQL (for integration tests)
    • Python 3.12+ (for documentation)

    Use the following command to build pgedge-anonymizer:

    root@kitploit:~
    make build        # Build binary
    

    Use the following command to run the Anonymizer test suite:

    root@kitploit:~
    make test
    

    Use the following command to run the Go Linter:

    root@kitploit:~
    make lint
    

    Use the following command to format the code:

    root@kitploit:~
    make fmt
    

    Support

    • GitHub Issues
    • Full documentation is available at the pgEdge website.

    License

    This project is licensed under the PostgreSQL License.

    Download Tool