Skip to main content

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(...)

Metadata

Release files for privugger 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privugger 0.0.10
File Size Uploaded
privugger-0.0.10.tar.gz 24.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for privugger 0.0.10
File Interpreter ABI Platform
privugger-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 68.4 kB

Release files / privugger-0.0.10.tar.gz

Download URL privugger-0.0.10.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c847841f2516fe89e390d7ec2b648511137a0bc83d8cfb409b8395022e53e599
BLAKE2b-256 checksum
How to use checksums
0859d922753ec0e028aa47d45d8f6ec06d1defee632778ad9bb237175e99c3b4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / privugger-0.0.10-py3-none-any.whl

Download URL privugger-0.0.10-py3-none-any.whl
Size 43.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84c4a729a9cf3142613aacd9ae2dfd938f94996f8b5f29b1cb499532c71996e5
BLAKE2b-256 checksum
How to use checksums
d8897a7b49950b690b84f161e09d5155796131c79868bda5d27f240ed9dd303a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page