Skip to content

Commit d85a799

Browse files
author
Mariia Krasnorutska/Security Services /SRUKR/Engineer/삼성전자
committed
Added salseforce f_org_id items
1 parent 1c3d72d commit d85a799

File tree

7 files changed

+452
-11
lines changed

7 files changed

+452
-11
lines changed

tests/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
NEGLIGIBLE_ML_THRESHOLD = 0.0001
88

99
# with option --doc & NEGLIGIBLE_ML_THRESHOLD
10-
SAMPLES_IN_DOC = 861
10+
SAMPLES_IN_DOC = 865
1111

1212
# credentials count after scan without filters and ML validations
13-
SAMPLES_REGEX_COUNT = 704
13+
SAMPLES_REGEX_COUNT = 709
1414

1515
# credentials count after scan with filters and without ML validation
16-
SAMPLES_FILTERED_COUNT = 514
16+
SAMPLES_FILTERED_COUNT = 518
1717

1818
# credentials count after default post-processing
19-
SAMPLES_POST_CRED_COUNT = 487
19+
SAMPLES_POST_CRED_COUNT = 491
2020

2121
# archived credentials that are not found without --depth
2222
SAMPLES_IN_DEEP_1 = SAMPLES_POST_CRED_COUNT + 128

tests/data/depth_3.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10331,6 +10331,90 @@
1033110331
}
1033210332
]
1033310333
},
10334+
{
10335+
"rule": "Salesforce Credentials",
10336+
"severity": "medium",
10337+
"confidence": "weak",
10338+
"ml_probability": null,
10339+
"line_data_list": [
10340+
{
10341+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
10342+
"line_num": 1,
10343+
"path": "./tests/samples/salesfoce",
10344+
"info": "FILE:./tests/samples/salesfoce|RAW",
10345+
"variable": null,
10346+
"variable_start": -2,
10347+
"variable_end": -2,
10348+
"value": "00DFT5H59PHLAN0IA",
10349+
"value_start": 47,
10350+
"value_end": 64,
10351+
"entropy": 3.45482
10352+
}
10353+
]
10354+
},
10355+
{
10356+
"rule": "Salesforce Credentials",
10357+
"severity": "medium",
10358+
"confidence": "weak",
10359+
"ml_probability": null,
10360+
"line_data_list": [
10361+
{
10362+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
10363+
"line_num": 1,
10364+
"path": "./tests/samples/salesfoce",
10365+
"info": "FILE:./tests/samples/salesfoce|RAW",
10366+
"variable": null,
10367+
"variable_start": -2,
10368+
"variable_end": -2,
10369+
"value": "00DG9UE38D6ELk5l",
10370+
"value_start": 65,
10371+
"value_end": 81,
10372+
"entropy": 3.625
10373+
}
10374+
]
10375+
},
10376+
{
10377+
"rule": "Salesforce Credentials",
10378+
"severity": "medium",
10379+
"confidence": "weak",
10380+
"ml_probability": null,
10381+
"line_data_list": [
10382+
{
10383+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
10384+
"line_num": 1,
10385+
"path": "./tests/samples/salesfoce",
10386+
"info": "FILE:./tests/samples/salesfoce|RAW",
10387+
"variable": null,
10388+
"variable_start": -2,
10389+
"variable_end": -2,
10390+
"value": "00Dh68fkeHGbDk92k",
10391+
"value_start": 99,
10392+
"value_end": 116,
10393+
"entropy": 3.57247
10394+
}
10395+
]
10396+
},
10397+
{
10398+
"rule": "Salesforce Credentials",
10399+
"severity": "medium",
10400+
"confidence": "weak",
10401+
"ml_probability": null,
10402+
"line_data_list": [
10403+
{
10404+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
10405+
"line_num": 1,
10406+
"path": "./tests/samples/salesfoce",
10407+
"info": "FILE:./tests/samples/salesfoce|RAW",
10408+
"variable": null,
10409+
"variable_start": -2,
10410+
"variable_end": -2,
10411+
"value": "00DyXD47kKDny11j",
10412+
"value_start": 82,
10413+
"value_end": 98,
10414+
"entropy": 3.32782
10415+
}
10416+
]
10417+
},
1033410418
{
1033510419
"rule": "Salesforce Credentials",
1033610420
"severity": "medium",

tests/data/doc.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16653,6 +16653,90 @@
1665316653
}
1665416654
]
1665516655
},
16656+
{
16657+
"rule": "Salesforce Credentials",
16658+
"severity": "medium",
16659+
"confidence": "weak",
16660+
"ml_probability": null,
16661+
"line_data_list": [
16662+
{
16663+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
16664+
"line_num": 1,
16665+
"path": "./tests/samples/salesfoce",
16666+
"info": "FILE:./tests/samples/salesfoce|RAW",
16667+
"variable": null,
16668+
"variable_start": -2,
16669+
"variable_end": -2,
16670+
"value": "00DFT5H59PHLAN0IA",
16671+
"value_start": 47,
16672+
"value_end": 64,
16673+
"entropy": 3.45482
16674+
}
16675+
]
16676+
},
16677+
{
16678+
"rule": "Salesforce Credentials",
16679+
"severity": "medium",
16680+
"confidence": "weak",
16681+
"ml_probability": null,
16682+
"line_data_list": [
16683+
{
16684+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
16685+
"line_num": 1,
16686+
"path": "./tests/samples/salesfoce",
16687+
"info": "FILE:./tests/samples/salesfoce|RAW",
16688+
"variable": null,
16689+
"variable_start": -2,
16690+
"variable_end": -2,
16691+
"value": "00DG9UE38D6ELk5l",
16692+
"value_start": 65,
16693+
"value_end": 81,
16694+
"entropy": 3.625
16695+
}
16696+
]
16697+
},
16698+
{
16699+
"rule": "Salesforce Credentials",
16700+
"severity": "medium",
16701+
"confidence": "weak",
16702+
"ml_probability": null,
16703+
"line_data_list": [
16704+
{
16705+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
16706+
"line_num": 1,
16707+
"path": "./tests/samples/salesfoce",
16708+
"info": "FILE:./tests/samples/salesfoce|RAW",
16709+
"variable": null,
16710+
"variable_start": -2,
16711+
"variable_end": -2,
16712+
"value": "00Dh68fkeHGbDk92k",
16713+
"value_start": 99,
16714+
"value_end": 116,
16715+
"entropy": 3.57247
16716+
}
16717+
]
16718+
},
16719+
{
16720+
"rule": "Salesforce Credentials",
16721+
"severity": "medium",
16722+
"confidence": "weak",
16723+
"ml_probability": null,
16724+
"line_data_list": [
16725+
{
16726+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
16727+
"line_num": 1,
16728+
"path": "./tests/samples/salesfoce",
16729+
"info": "FILE:./tests/samples/salesfoce|RAW",
16730+
"variable": null,
16731+
"variable_start": -2,
16732+
"variable_end": -2,
16733+
"value": "00DyXD47kKDny11j",
16734+
"value_start": 82,
16735+
"value_end": 98,
16736+
"entropy": 3.32782
16737+
}
16738+
]
16739+
},
1665616740
{
1665716741
"rule": "Salesforce Credentials",
1665816742
"severity": "medium",

tests/data/no_filters_no_ml.json

Lines changed: 111 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11152,24 +11152,87 @@
1115211152
}
1115311153
]
1115411154
},
11155+
{
11156+
"rule": "Bitbucket Client ID",
11157+
"severity": "info",
11158+
"confidence": "weak",
11159+
"ml_probability": null,
11160+
"line_data_list": [
11161+
{
11162+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
11163+
"line_num": 1,
11164+
"path": "./tests/samples/salesfoce",
11165+
"info": "",
11166+
"variable": null,
11167+
"variable_start": -2,
11168+
"variable_end": -2,
11169+
"value": "00D0A53429897F6EA5",
11170+
"value_start": 28,
11171+
"value_end": 46,
11172+
"entropy": 3.57243
11173+
}
11174+
]
11175+
},
1115511176
{
1115611177
"rule": "Salesforce Credentials",
1115711178
"severity": "medium",
1115811179
"confidence": "weak",
1115911180
"ml_probability": null,
1116011181
"line_data_list": [
1116111182
{
11162-
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6E",
11183+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
1116311184
"line_num": 1,
1116411185
"path": "./tests/samples/salesfoce",
1116511186
"info": "",
1116611187
"variable": null,
1116711188
"variable_start": -2,
1116811189
"variable_end": -2,
11169-
"value": "00D0A53429897F6E",
11190+
"value": "00D0A53429897F6EA5",
1117011191
"value_start": 28,
11171-
"value_end": 44,
11172-
"entropy": 3.57782
11192+
"value_end": 46,
11193+
"entropy": 3.57243
11194+
}
11195+
]
11196+
},
11197+
{
11198+
"rule": "Salesforce Credentials",
11199+
"severity": "medium",
11200+
"confidence": "weak",
11201+
"ml_probability": null,
11202+
"line_data_list": [
11203+
{
11204+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
11205+
"line_num": 1,
11206+
"path": "./tests/samples/salesfoce",
11207+
"info": "",
11208+
"variable": null,
11209+
"variable_start": -2,
11210+
"variable_end": -2,
11211+
"value": "00DFT5H59PHLAN0IA",
11212+
"value_start": 47,
11213+
"value_end": 64,
11214+
"entropy": 3.45482
11215+
}
11216+
]
11217+
},
11218+
{
11219+
"rule": "Salesforce Credentials",
11220+
"severity": "medium",
11221+
"confidence": "weak",
11222+
"ml_probability": null,
11223+
"line_data_list": [
11224+
{
11225+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
11226+
"line_num": 1,
11227+
"path": "./tests/samples/salesfoce",
11228+
"info": "",
11229+
"variable": null,
11230+
"variable_start": -2,
11231+
"variable_end": -2,
11232+
"value": "00DG9UE38D6ELk5l",
11233+
"value_start": 65,
11234+
"value_end": 81,
11235+
"entropy": 3.625
1117311236
}
1117411237
]
1117511238
},
@@ -11180,7 +11243,7 @@
1118011243
"ml_probability": null,
1118111244
"line_data_list": [
1118211245
{
11183-
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6E",
11246+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
1118411247
"line_num": 1,
1118511248
"path": "./tests/samples/salesfoce",
1118611249
"info": "",
@@ -11201,7 +11264,7 @@
1120111264
"ml_probability": null,
1120211265
"line_data_list": [
1120311266
{
11204-
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6E",
11267+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
1120511268
"line_num": 1,
1120611269
"path": "./tests/samples/salesfoce",
1120711270
"info": "",
@@ -11215,6 +11278,48 @@
1121511278
}
1121611279
]
1121711280
},
11281+
{
11282+
"rule": "Salesforce Credentials",
11283+
"severity": "medium",
11284+
"confidence": "weak",
11285+
"ml_probability": null,
11286+
"line_data_list": [
11287+
{
11288+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
11289+
"line_num": 1,
11290+
"path": "./tests/samples/salesfoce",
11291+
"info": "",
11292+
"variable": null,
11293+
"variable_start": -2,
11294+
"variable_end": -2,
11295+
"value": "00Dh68fkeHGbDk92k",
11296+
"value_start": 99,
11297+
"value_end": 116,
11298+
"entropy": 3.57247
11299+
}
11300+
]
11301+
},
11302+
{
11303+
"rule": "Salesforce Credentials",
11304+
"severity": "medium",
11305+
"confidence": "weak",
11306+
"ml_probability": null,
11307+
"line_data_list": [
11308+
{
11309+
"line": "f_org_id 00Dee00000000000A5 00D0A53429897F6EA5 00DFT5H59PHLAN0IA 00DG9UE38D6ELk5l 00DyXD47kKDny11j 00Dh68fkeHGbDk92k",
11310+
"line_num": 1,
11311+
"path": "./tests/samples/salesfoce",
11312+
"info": "",
11313+
"variable": null,
11314+
"variable_start": -2,
11315+
"variable_end": -2,
11316+
"value": "00DyXD47kKDny11j",
11317+
"value_start": 82,
11318+
"value_end": 98,
11319+
"entropy": 3.32782
11320+
}
11321+
]
11322+
},
1121811323
{
1121911324
"rule": "Salesforce Credentials",
1122011325
"severity": "medium",

0 commit comments

Comments
 (0)