-
Notifications
You must be signed in to change notification settings - Fork 32
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
ML rules fixes, new rule for msgpack-numpy #39
Conversation
Lucas Bourtoule seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Thanks! Will review soon. Seems like you have to sign the CLA? |
Hi! I did sign twice but this doesn't seem to be reflected here... Any idea? |
I added two new rules to detect the use of Keras and Tensorflow loading functions. We reject all calls except those with a string literal (or constant) as file path. I also added a warning rule to deprecate the usage of pickle and hdf5 for Keras. The preferred format is now .keras which comes with checks that mitigate the risk of arbitrary code execution. |
Overall looks good. Need @suhacker1 to review these (or somebody from ML). Then I can review from the semgrep/cq perspective. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the ML-perspective, everything looks good to me!
python/pandas-eval.yaml
Outdated
- audit | ||
confidence: LOW | ||
likelihood: LOW | ||
impact: HIGH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running python ./validate-metadata.py -s ./metadata-schema.yaml.schm -f .
shows that technology
and references
metadata fields are missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I left a few minor comments 👍
This PR contains: