From f31f2bb6ee54baff0208d400df0c4d0b2207f65f Mon Sep 17 00:00:00 2001 From: Vladyslav Poliukh Date: Fri, 20 Oct 2023 04:09:23 +0300 Subject: [PATCH] Update found cred response example (#443) Co-authored-by: Vladyslav Poliukh --- README.md | 2 ++ docs/source/guide.rst | 21 ++++++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 83a5af02f..f11ba708a 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,8 @@ cat output.json "path": "tests/samples/password.gradle", "info": "", "value": "cackle!", + "value_start": 12, + "value_end": 19, "variable": "password", "entropy_validation": { "iterator": "BASE64_CHARS", diff --git a/docs/source/guide.rst b/docs/source/guide.rst index 31702f77d..01e9d34b1 100644 --- a/docs/source/guide.rst +++ b/docs/source/guide.rst @@ -98,18 +98,29 @@ To check JSON file run: [ { + "api_validation": "NOT_AVAILABLE", + "ml_validation": "VALIDATED_KEY", + "ml_probability": 0.99755, "rule": "Password", "severity": "medium", "line_data_list": [ { "line": "password = \"cackle!\"", "line_num": 1, - "path": "tests/samples/password", - "entropy_validation": false + "path": "tests/samples/password.gradle", + "info": "", + "value": "cackle!", + "value_start": 12, + "value_end": 19, + "variable": "password", + "entropy_validation": + { + "iterator": "BASE64_CHARS", + "entropy": 2.120589933192232, + "valid": false + } } - ], - "api_validation": "NOT_AVAILABLE", - "ml_validation": "VALIDATED_KEY" + ] } ]