Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive Checkov Error CKV_SECRET_3 in Nuget-generated File: .../project.assets.json. #6984

Closed
llourensenvision opened this issue Jan 30, 2025 · 2 comments
Labels
checks Check additions or changes

Comments

@llourensenvision
Copy link

llourensenvision commented Jan 30, 2025

Describe the issue
Two days ago every project in our company got flagged with Checkov Error CKV_SECRET_3 project.assets.json. We also got flagged with Checkov Error CKV_SECRET_3 on *..deps.json files. We haven't changed anything, and these files were passing before.

The line in both file types is a sha512 hash, a checksum for a package dependency. The line in *.deps.json files is

Examples
These lines should pass when encountered:
"sha512": "sha512-o2dLnQ8cMw5p7KAtxAPukkk4Mhs4tu96nUyFee4lvfLZEkuyTLhLGT2D5o5bagCwHVxqzt+w4Eb4YOl/pLq6Cw==",
and
"sha512": "Wm5+RY6hNoIPVLPwmr3T1ijVm5GdLVZBij93c4Brwe9iB3X8nlUYNjlnQVVJqK4QLs85nGwqBGUpB4BfYdGXVQ==",

Error message:
##[error]1. Checkov Error CKV_SECRET_3 - File: src/*******/obj/project.assets.json. Line: 5742. Column 0.
Signature: 051de2be42e099515828de3e9ee70a91152b3e1c08131d2f9492da7b752d6a99
Tool: Checkov: Rule: CKV_SECRET_3 (Azure Storage Account access key). https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-3
Azure Storage Account access key

Version (please complete the following information):

  • Can be replicated in 3.2.358

Additional context
Add any other context about the problem here.

@llourensenvision llourensenvision added the checks Check additions or changes label Jan 30, 2025
@tsmithv11
Copy link
Collaborator

Hey @llourensenvision we pushed a fix for a similar issue in a more recent version. Can you try updating Checkov and scanning again? If you still see these FPs, can you provide a more complete file to replicate the issue? I can't replicate this with 3.2.360 and the SHAs you provided.

@tsmithv11
Copy link
Collaborator

It looks like based on your comment in the other issue that it is resolved in a later version. Since it's not a Checkov issue, then I'll close this. If you do run into this in the latest version of Checkov, please reopen this issue or open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checks Check additions or changes
Projects
None yet
Development

No branches or pull requests

2 participants