[high] gdpr-patterns: PII data potentially logged #34

Closed
opened 2026-03-18 16:01:24 +00:00 by sharang · 1 comment
Owner

high Finding

Scanner: gdpr-patterns
Severity: high
Rule: gdpr-pii-logging

Description

Logging statements that may contain personally identifiable information (email, SSN, phone, IP address).

Location

File: compliance-agent/src/pipeline/patterns.rs (line 289)

Code

        assert!(pattern.pattern.is_match("console.log(user.ssn)"));

Fingerprint: 57d5a07a2167c4bb245201634f721ac11bdb6dca6fb190507bc0ee61a6a6bf60
Generated by compliance-scanner

Labels: severity:high, scanner:gdpr-patterns, compliance-scanner

## high Finding **Scanner:** gdpr-patterns **Severity:** high **Rule:** gdpr-pii-logging ### Description Logging statements that may contain personally identifiable information (email, SSN, phone, IP address). ### Location **File:** `compliance-agent/src/pipeline/patterns.rs` (line 289) ### Code ``` assert!(pattern.pattern.is_match("console.log(user.ssn)")); ``` --- *Fingerprint:* `57d5a07a2167c4bb245201634f721ac11bdb6dca6fb190507bc0ee61a6a6bf60` *Generated by compliance-scanner* **Labels:** severity:high, scanner:gdpr-patterns, compliance-scanner
Author
Owner

Closing as false positive: this finding points at the scanner's own pattern unit tests in compliance-agent/src/pipeline/patterns.rs (test assertions like is_match(...) containing the trigger strings). Not real PII/OAuth issues. Long-term fix: exclude test modules / self-repo pattern fixtures from scans.

Closing as false positive: this finding points at the scanner's own pattern unit tests in `compliance-agent/src/pipeline/patterns.rs` (test assertions like `is_match(...)` containing the trigger strings). Not real PII/OAuth issues. Long-term fix: exclude test modules / self-repo pattern fixtures from scans.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#34