Skip to content

PII email scan flags RFC 2606 placeholder domains such as example.invalid and example.net #244

Closed

Description

@AgrantNV

Problem

validate_pii_only flags synthetic email addresses on reserved placeholder domains as HIGH non-placeholder email addresses. The existing pattern recognizes some example domains but misses .invalid and example.net.

Reproduction

Reproduced against c9d170e77bdef0b32a4811fb9b14484578559b2e (reports version 0.6.0), Python 3.12.14, Windows. Also checked against main d9fa4b4041b31f417f02ed145999ecf1f0c11fcd.

from pathlib import Path
from tempfile import TemporaryDirectory
from skillevaluator.validators.security import SecurityValidator

with TemporaryDirectory() as temporary:
    document = Path(temporary) / 'guide.md'
    document.write_text('Fixture identity: [email protected]\n', encoding='utf-8')
    result = SecurityValidator().validate_pii_only(document)
    print([(f.check_name, f.severity.value, f.metadata.get('matched_value'))
           for f in result.findings if f.check_name == 'emails'])

Actual: an emails finding for [email protected]. Replacing the domain with example.net also produces a finding.

Expected: addresses on reserved documentation/testing domains should not be classified as personal email data merely because the fixture contains an address-shaped string.

Reference: RFC 2606 reserves .test, .example, .invalid, .localhost, and example.com/net/org.

Verification criteria

  • Exercise the public validate_pii_only behavior on reserved domains, subdomains, mixed case and trailing dots.
  • Preserve detection of ordinary non-placeholder addresses, including another address on the same line as a fixture address.
  • Use behavioral tests instead of asserting the exact spelling/structure of the configured regex.

This report contains only synthetic placeholder false-positive examples. No private skill corpus, patch, authentication material or internal scan report is attached.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions