Skip to content

Add PII masking with --show-pii flag (#14) - #35

Merged
C0MPL3XDEV merged 1 commit into
mainfrom
feature/pii-masking
Jun 28, 2026
Merged

Add PII masking with --show-pii flag (#14)#35
C0MPL3XDEV merged 1 commit into
mainfrom
feature/pii-masking

Conversation

@C0MPL3XDEV

Copy link
Copy Markdown
Owner

Summary

  • Add PII masking module that redacts email, phone, IP, and hostname in structured output
  • Output is masked by default; use --show-pii flag to reveal raw data
  • Applied to all CLI commands that support --output

Files changed

  • eagleosint/masking.py — new module with mask functions and regex patterns
  • eagleosint/output.py — integrated masking into write_results()
  • eagleosint/cli.py — added --show-pii flag to all output commands
  • tests/test_masking.py — 23 tests

Test plan

  • All 146 tests pass
  • JSON/CSV output masked by default
  • --show-pii reveals unmasked data
  • Email, phone, IP, hostname masking verified

@C0MPL3XDEV
C0MPL3XDEV merged commit 305537b into main Jun 28, 2026
3 checks passed
@C0MPL3XDEV
C0MPL3XDEV deleted the feature/pii-masking branch June 29, 2026 13:08
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