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

Updating pip-audit parser to handle new JSON file format #9696

Merged
merged 10 commits into from
Mar 11, 2024

Conversation

grendel513
Copy link
Contributor

Updating pip-audit parser to handle new JSON file format [sc-3854]

Copy link

dryrunsecurity bot commented Mar 7, 2024

Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.

DryRun Security Status Findings
Sensitive Functions Analyzer 1 findings
Configured Sensitive Files Analyzer 0 findings
Sensitive Files Analyzer 1 findings

Note

🟢 Risk threshold not exceeded.

Tip

Get answers to your security questions. Add a comment in this PR starting with @DryRunSecurity. For example...

@dryrunsecurity What are common security issues with web application cookies?

Powered by DryRun Security

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link
Contributor

@cneill cneill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple comments here...

Comment on lines 48 to 49
logger.debug("**-**")
logger.debug(dependency)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these log statements necessary?

Suggested change
logger.debug("**-**")
logger.debug(dependency)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, resolved with 8fdf3fa

finding = Finding(
test=test,
title=title,
cwe=1352,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like MITRE prefers not to use this CWE. Searching through the Dojo codebase, it appears that we tend to use CWE-1035, which MITRE also discourages.

We might want to start defaulting to CWE-1395 for these SCA issues, though I realize it would be somewhat disruptive to modify the default CWEs in all these different tools...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated to default to 1395: 0820dc9

Copy link
Contributor

@cneill cneill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing the unit tests

grendel513 and others added 3 commits March 9, 2024 06:47
Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com>
Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com>
Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com>
@grendel513 grendel513 requested a review from cneill March 9, 2024 14:06
@mtesauro mtesauro merged commit a45d6f4 into DefectDojo:dev Mar 11, 2024
122 checks passed
@grendel513 grendel513 deleted the pip-audit-parser branch March 14, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants