Skip to main content

Privacy risk analysis library for Python programs.

Project description

Privugger: Data Privacy Debugger

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.8.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

privugger-0.0.8-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: privugger-0.0.8.tar.gz
  • Upload date:
  • Size: 24.3 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.8.tar.gz
Algorithm Hash digest
SHA256 b19e0c9d68eef1a44843f614c0d093dd13c52b6a3a7a4afb4952010b1948c38c
MD5 7d4cda110ab015f3605baf0dd6467f50
BLAKE2b-256 669bc9aaaf724be4784c3ee449b598dc694083c43fae6a49876aaa65aee3bac0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: privugger-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 43.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 350ed01bb62a6b795f095c976f70943ec89de3fcfcc4fbb969e65db0f1722d35
MD5 20313a99cdaa3326e807449d6981f238
BLAKE2b-256 0b38ff99a196ca9d216cf11abe071b75807988ad894c2565dd8ce3807394b24f

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