Skip to content

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

@H2Cyber

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.

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