Closed himynamesdave closed 1 month ago
@fqrious it the same test now extracts 0 results
it's failing luhn test, I added luhn validation
@fqrious the test
python3 txt2stix.py \
--relationship_mode standard \
--input_file tests/inputs/extraction_types/generic_bank_card_mastercard.txt \
--name 'Test 3.1.34 pattern_bank_card_mastercard' \
--tlp_level clear \
--confidence 100 \
--use_extractions pattern_bank_card_mastercard
still fails with no extractions, expecting 1 extraction
it's invalid
Produces
bundle--ce871ba3-3850-4840-b24d-4abbdd03504a.json
You can see 2 dupe indicator are created for bank-card (5588601012060076)
The test file
Has the same card number (one with spaces, one without).
I suspect the 2 indicators are being created because the creation is done before normalisation (remove spaces) of these two cards into one.
Expected result is 1 indicator, 1 bank card for each unique card number (once spaces removed).