Skip to main content

Privacy risk analysis library for Python programs.

Project description

Privugger: Data Privacy Debugger

Docs and tutorials: https://itu-square.github.io/privugger/

Privugger (/prɪvʌɡə(r)/) is a privacy risk analysis library for python programs. Privugger, takes as input a python program and a specification of the adversary's knowledge about the input of the program (the prior knowledge), and it returns a wide variety of privacy risk analyses, including the following leakage measures:

  • Knowledge-based probability queries
  • Entropy
  • Mutual Information
  • KL-divergence
  • min-entropy
  • Bayes risk
  • ...

Furthermore, Privugger is equipped with a module to perform automatic attacker synthesis. That is, given a program and a leakage measure, it finds the adversary's prior knowledge that maximizes the leakage. In other words, it tells us what is the minimum amount of information that the adversary must know in order for the program to exhibit privacy risks. If this knowledge is publicly available, then the program does not effectively protect users' privacy.

Installation

Privugger is a tool written entirely in Python and can be installed using the pip packet manager.

To install write following in command line:

pip install privugger

Usage:

import privugger as pv

x = pv.Normal(...)

ds = pv.Dataset(...)

program = pv.Program(...)

trace = pv.infer(...)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

privugger-0.0.10.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

privugger-0.0.10-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file privugger-0.0.10.tar.gz.

File metadata

  • Download URL: privugger-0.0.10.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for privugger-0.0.10.tar.gz
Algorithm Hash digest
SHA256 c847841f2516fe89e390d7ec2b648511137a0bc83d8cfb409b8395022e53e599
MD5 999613ad9119041df9124745a4b3c029
BLAKE2b-256 0859d922753ec0e028aa47d45d8f6ec06d1defee632778ad9bb237175e99c3b4

See more details on using hashes here.

Provenance

File details

Details for the file privugger-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: privugger-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for privugger-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 84c4a729a9cf3142613aacd9ae2dfd938f94996f8b5f29b1cb499532c71996e5
MD5 169956786472c0b7c5650c1cd26775cf
BLAKE2b-256 d8897a7b49950b690b84f161e09d5155796131c79868bda5d27f240ed9dd303a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page