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
Built Distribution
File details
Details for the file privugger-0.0.7.tar.gz
.
File metadata
- Download URL: privugger-0.0.7.tar.gz
- Upload date:
- Size: 23.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d9932b9aee83856a3dc064ead705fe452874c543377d70af4980357a5db3db |
|
MD5 | 987159249dc7ddc8fe5357857f559f77 |
|
BLAKE2b-256 | eb3b8b989caa1c6040ae93a8baaaa742469035c16fc3b617be13e844942d16c6 |
Provenance
File details
Details for the file privugger-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: privugger-0.0.7-py3-none-any.whl
- Upload date:
- Size: 42.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c3d174e5fb54c65b6ce1037fe66ab3b40db3d0b527d50b26ba70a9cd1dba5fb |
|
MD5 | cac0eed546643dcc1cc8cf053842af3f |
|
BLAKE2b-256 | be6a01d847ca45f89ae34b7df23b442aa8c3ffdfb8763b3fe7bc8bd557781673 |