From 331e96356056434a9ac42e4394c0d797192319a8 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Tue, 28 Nov 2023 13:40:45 +0200 Subject: [PATCH] remove lite_obfuscation (#466) * Update benchmark.yml * Update benchmark.yml * Update benchmark.txt * Apply suggestions from code review * [no ci] Update README.md * Update benchmark.txt * Update README.md --- .github/workflows/benchmark.yml | 2 +- README.md | 2 +- cicd/benchmark.txt | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 43827e013..f56a57afa 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -46,7 +46,7 @@ jobs: - name: Generate Data Asset if: steps.cache-data.outputs.cache-hit != 'true' - run: python download_data.py --data_dir data --lite_obfuscation + run: python download_data.py --data_dir data # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/README.md b/README.md index 5dce629f5..9f917c3dd 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ CredSweeper is a tool to detect credentials in any directories or files. CredSweeper could help users to detect unwanted exposure of credentials -(such as token, passwords, api keys etc.) in advance. +(such as tokens, passwords, api keys etc.) in advance. By scanning lines, filtering, and using AI model as option, CredSweeper reports lines with possible credentials, where the line is, and expected type of the credential as a result. diff --git a/cicd/benchmark.txt b/cicd/benchmark.txt index 1fc5be54c..ee3b3ef68 100644 --- a/cicd/benchmark.txt +++ b/cicd/benchmark.txt @@ -10,8 +10,8 @@ Predefined Pattern 326 2 40 Private Key 1001 1 3 Seed, Salt, Nonce 40 4 4 TOTAL: 5307 63688 5644 -Detected Credentials: 5737 -credsweeper result_cnt : 5104, lost_cnt : 0, true_cnt : 4209, false_cnt : 895 +Detected Credentials: 5730 +credsweeper result_cnt : 5102, lost_cnt : 0, true_cnt : 4207, false_cnt : 895 Category TP FP TN FN FPR FNR ACC PRC RCL F1 -------------------------- ---- ---- -------- ---- --------- --------- -------- -------- -------- -------- Authentication Key & Token 54 4 28 16 0.125 0.228571 0.803922 0.931034 0.771429 0.84375 @@ -20,6 +20,6 @@ Generic Token 289 7 596 44 0.0116086 0.132132 0. Other 584 747 63398 492 0.0116455 0.457249 0.981003 0.438768 0.542751 0.485251 Password 995 130 4150 410 0.0303738 0.291815 0.905013 0.884444 0.708185 0.786561 Predefined Pattern 309 2 40 17 0.0476191 0.0521472 0.94837 0.993569 0.947853 0.970173 -Private Key 969 0 4 32 0.031968 0.968159 1 0.968032 0.983756 +Private Key 967 0 4 34 0.033966 0.966169 1 0.966034 0.982724 Seed, Salt, Nonce 36 2 6 4 0.25 0.1 0.875 0.947368 0.9 0.923077 - 4209 895 19428256 1098 4.606e-05 0.206897 0.999897 0.824647 0.793103 0.808568 + 4207 895 19428256 1100 4.606e-05 0.207273 0.999897 0.824579 0.792727 0.808339