The Network Security. Org

RSS Feed

Detecting Credit Card Numbers in Network Traffic

January 4th, 2008 · No Comments


The Payment Card Industry Data Security Standard (PCI-DSS for short) requires that credit card numbers are not transmitted in clear and are not presented to users unmasked. Naturally a network monitoring systems such as an IDS or an IPS seems like a natural enforcement system to ensure that such information is not sent against the regulation over a network but a closer examination shows that a correct implementation is far from trivial.

This writeup discusses several aspects of implementing a network monitoring system to detect leakage of credit card numbers:
* Matching a credit card number sequence
* Handling false positives using exceptions
* Additional considerations, including evasion, logging, performance and other sensitive patterns.
2. Matching a Credit Card Number
2.1 Matching a Credit Card Number Sequence
A credit card number includes 13 to 16 digits. In addition, real world presentation of a credit card number often include delimiters such as dashes or spaces, usually in specific positions. The following regular expression can be used to match credit card number sequences: Web Security Blog: Detecting Credit Card Numbers in Network Traffic

From around the Web

  • Advertisments