This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Values starting with $ are not detected #108
Comments
Oh, also, if you have a value that contains € (i.e. s€cret). The output will be The Euro sign is not displayed properly. |
Hey @erwinc1, that's a good one, thanks for reporting! Which version of whispers are you using? |
Version 2.0.5. @adeptex |
Merged
Hey @erwinc1, this issue is addressed in 2.0.6 - https://github.com/adeptex/whispers $ whispers -v
2.0.6
$ whispers /tmp/test.yml
{"key": "password", "value": "$ecret", "file": "/tmp/test.yml", "line": 1, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}
{"key": "passwd2", "value": "s\u20accret", "file": "/tmp/test.yml", "line": 2, "rule_id": "password", "message": "Password", "severity": "CRITICAL"}
$ whispers -H /tmp/test.yml
[/tmp/test.yml:1:passwords:password:CRITICAL] password = $ecret
[/tmp/test.yml:2:passwords:password:CRITICAL] passwd2 = s€cret Hope this helps.. Cheers |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let's say I have a file that contains:
password: $ecret
And I use the following rule:
Why does it not detect
$secret
? If it'ss$cret
it will be detected.The text was updated successfully, but these errors were encountered: