Skip to content

feat: new instance-based attack for data leakage in SVM/kNN models#431

Open
shamykyzer wants to merge 2 commits intomainfrom
new-attack-model
Open

feat: new instance-based attack for data leakage in SVM/kNN models#431
shamykyzer wants to merge 2 commits intomainfrom
new-attack-model

Conversation

@shamykyzer
Copy link
Copy Markdown
Contributor

  • New InstanceBasedAttack that extracts and compares support vectors (SVM) or stored neighbors (kNN) against training data to confirm data leakage
  • Reports first 10 matches, mitigations, and detects DP-safe variants
  • Supports sklearn Pipeline unwrapping

Closes [New Feature Request] New Attack: Model contains training data#59

@shamykyzer shamykyzer self-assigned this Mar 27, 2026
@shamykyzer shamykyzer requested review from jim-smith and rpreen March 27, 2026 02:45
@shamykyzer shamykyzer marked this pull request as ready for review March 27, 2026 02:54
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 94.14894% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.16%. Comparing base (42041fd) to head (da9ed7d).

Files with missing lines Patch % Lines
sacroml/attacks/instance_based_attack.py 94.11% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
- Coverage   99.51%   99.16%   -0.36%     
==========================================
  Files          23       24       +1     
  Lines        2687     2875     +188     
==========================================
+ Hits         2674     2851     +177     
- Misses         13       24      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant