Skip to content

Commit

Permalink
Merge branch 'main' into optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek authored Jul 20, 2023
2 parents 45540ca + e440908 commit bdbc573
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
1 change: 1 addition & 0 deletions credsweeper/rules/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@
required_substrings:
- //
min_line_len: 10
doc_available: false

- name: Auth
severity: medium
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SAMPLES_POST_CRED_COUNT: int = 97

# with option --doc
SAMPLES_IN_DOC = 87
SAMPLES_IN_DOC = 86

# archived credentials that are not found without --depth
SAMPLES_IN_DEEP_1 = SAMPLES_POST_CRED_COUNT + 17
Expand Down
24 changes: 1 addition & 23 deletions tests/data/doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1990,28 +1990,6 @@
}
]
},
{
"api_validation": "NOT_AVAILABLE",
"ml_validation": "VALIDATED_KEY",
"ml_probability": 0.99672,
"rule": "URL Credentials",
"severity": "high",
"line_data_list": [
{
"line": "url: mongodb://jrfdeg:[email protected]:32768/architecture",
"line_num": 1,
"path": "tests/samples/url.groovy",
"info": "tests/samples/url.groovy|RAW",
"value": "dh3sjr8b",
"variable": null,
"entropy_validation": {
"iterator": "BASE64_CHARS",
"entropy": 3.0,
"valid": false
}
}
]
},
{
"api_validation": "NOT_AVAILABLE",
"ml_validation": "VALIDATED_KEY",
Expand Down Expand Up @@ -2056,4 +2034,4 @@
}
]
}
]
]

0 comments on commit bdbc573

Please sign in to comment.