Magnitude Score Weights
Phinder calculates a Magnitude Score for each file and an aggregate score for the entire scan. By default, every PII occurrence has a weight of 1.0.
Custom Weights
You can specify custom weights for different PII types using a weights.json file. This allows you to prioritize certain types of PII over others (e.g., a SSN might have a higher magnitude than an email address).
weights.json Format
The file should be a JSON object mapping PII types (as identified by Phileas) to numeric weights.
Using Weights
Specify the weights file with the -w or --weights option:
Calculation
The Magnitude Score is calculated as:
Sum(PII Type Count * PII Type Weight)
Density Score
Phinder also calculates a Density Score, which is the Magnitude Score divided by the word count of the document:
Density Score = Magnitude Score / Word Count
This score helps identify documents with a high concentration of PII relative to their size.