Skip to content
Back to skills

Privacy Tests

ASecurity

"Routes TensorFlow Privacy users who want membership inference

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
dataapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill privacy-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Privacy Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Privacy Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-privacy-tests/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-privacy-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: privacy-tests
description: "Routes TensorFlow Privacy users who want membership inference
  analysis, privacy reports, membership inference callbacks, or secret-sharer
  exposure checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Privacy tests

Use this sub-skill when the user wants to measure memorization or privacy risk from model outputs.

## Trigger phrases

- "membership inference"
- "privacy report"
- "attack results"
- "epsilon lower bound"
- "privacy callback"
- "secret sharer"
- "exposure"
- "memorization"

## What this sub-skill covers

- `AttackInputData`, `SlicingSpec`, and `AttackType`
- `run_attacks()`, `run_membership_probability_analysis()`, and `run_attack_on_keras_model()`
- `MembershipInferenceCallback` and the `keras_evaluation` callback path
- `AttackResults`, privacy-report metadata, and pandas summaries
- `privacy_report` plotting/report helpers
- secret-sharer secret generation and exposure computation

## What it does not cover

- DP training or optimizer selection -> `../training/`
- privacy budget and epsilon/noise search -> `../privacy-accounting/`
- `DPQuery` internals -> `../queries/`
- fast clipping internals -> `../fast-clipping/`

## Read this before you act

- `references/api-reference.md` for attack inputs, outputs, and the bundled smoke pattern.
- `references/troubleshooting.md` for tiny-data, shape, and dependency failures.
- `../../references/install-and-scope.md` for the minimum CPU runtime.

## Typical workflow

1. Decide whether the user wants membership inference or secret-sharer exposure analysis.
2. Build the smallest valid `AttackInputData` or secret-sharer fixture.
3. Use the bundled smoke helper before trying a larger analysis.
4. If the user is asking for training guidance rather than analysis, route to `training`.

## Bundled helpers

- `scripts/tiny_mia_smoke.py` runs a threshold membership-inference attack on synthetic losses.
- `scripts/tiny_secret_sharer_smoke.py` generates a toy secret set and computes exposure on synthetic perplexities.

Files in this skill

  • SKILL.md2 KB
  • references/api-reference.md3.6 KB
  • references/troubleshooting.md2.5 KB
  • scripts/tiny_mia_smoke.py1.2 KB
  • scripts/tiny_secret_sharer_smoke.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.