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

Uploaded Source

Built Distribution

privugger-0.0.9-py3-none-any.whl (43.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: privugger-0.0.9.tar.gz
  • Upload date:
  • Size: 24.6 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.9.tar.gz
Algorithm Hash digest
SHA256 b5ae8d4320391273977da661eabd7c2390a0143d46f807a4775d99229a691288
MD5 05796dc2afbb42bbdef7312e13866551
BLAKE2b-256 29a3ff8752276db31452baca4361af19e5e5405c8cb607f1bd35a69373b3d1c8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: privugger-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 43.6 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c21e56abf871863c65a3b26c0cd717a1c317daac034ce8a3b489998dc0292f1c
MD5 4627286c9ff470fc4f52052d14e39ca4
BLAKE2b-256 ac5c3aacf541d65259925f2fd0b18515e5acb5450e59ab0bc132ea227984b2f0

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