Skip to content

"Usage of hard-coded secret" False Positives #481

Description

@H2Cyber

Description & Reproduction

There are alot of false positives triggered by Rule ID: java_lang_hardcoded_secret.

Actual Behavior

In the regex of java_lang_hardcoded_secret, the rule seems to trigger on the detection of the keyword "des". This matches the word "Description" which is used frequently and has nothing to do with hardcoded secrets.

Image

Possible Fix

Remove "des" from the regex expression.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions