Giter Site home page Giter Site logo

privet's Introduction

Privet

Privet

privet is a tool to find sensitve information in a file. The tool vets and lists files with confidential information. The tool looks for any personal identifiable information (PII), credit card numbers, government id numbers and so on. The tool supports two formats -

  • Text
  • PDF

Types of information the tool recognizes -

  • Australia
    • Bank Names
    • Drivers License
    • Passport
    • Medicare Card Number
    • Bank Account and BSB Numbers
    • ABN and ACN Numbers
    • TFN Numbers
    • Mobile and Fixedline Numbers
  • Credit Card Numbers (validated using Luhns Algorithm)
  • IBAN
  • Passport Numbers
  • AWS Access Key IDs and Secret Access Key
  • International Bank Names

Installation

I have tested it with Python 3.9. It works well if you have a version >= 3.9.

  1. Clone the repository git clone [email protected]:opcoder0/privet.git
  2. Change directory cd privet
  3. Create a virtual environment python -m venv venv
  4. Activate the virtual environment source venv/bin/activate
  5. Install dependencies pip install -r requirements.txt
  6. Download Spacy's trained model/pipeline. python -m spacy download en_core_web_sm
  7. Run python privet.py --help

Usage

usage: privet.py [-h] [-f FORMAT] [-d /path1,/path2,...] [-n NAMESPACE] [-v] [-z /path/to/file]

Search for confidential data in files

optional arguments:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        Specify file format [txt, pdf]
  -d /path1,/path2,..., --dir /path1,/path2,...
                        search path to find files
  -n NAMESPACE, --namespace NAMESPACE
                        search namespace can indicate region or search domain
  -v, --verbose         verbose output
  -z /path/to/file, --visualize /path/to/file
                        Visualize document entites

privet's People

Contributors

opcoder0 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

privet's Issues

Add support for specifying DLP policy

Add support to specify DLP policy and control searches based on policy.

  • Add ability to specify region(s)
  • Add ability to select specific sensitive information types relevant for the region

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.