Skip to content

Commit

Permalink
test BM
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Dec 10, 2024
1 parent f75ae6c commit 480be2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: babenek/CredData
ref: esc
ref: 3d

- name: Markup hashing
run: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: babenek/CredData
ref: esc
ref: 3d

- name: Markup hashing
run: |
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: babenek/CredData
ref: esc
ref: 3d

- name: Markup hashing
run: |
Expand Down Expand Up @@ -378,7 +378,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: babenek/CredData
ref: esc
ref: 3d

- name: Markup hashing
run: |
Expand Down
2 changes: 1 addition & 1 deletion credsweeper/filters/value_base64_part_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def run(self, line_data: LineData, target: AnalysisTarget) -> bool:
data = [left_entropy, value_entropy, right_entropy, min_entropy_value]
avg = statistics.mean(data)
stdev = statistics.stdev(data, avg)
avg_min = avg - 1.4 * stdev
avg_min = avg - 1.1 * stdev
if avg_min <= left_entropy and avg_min <= right_entropy:
# high entropy of bound parts looks like a part of base64 long line
return True
Expand Down

0 comments on commit 480be2c

Please sign in to comment.