-
Notifications
You must be signed in to change notification settings - Fork 1
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
[new check] executable files #78
Comments
some references:
Related project (one of many that scans Python packages for know vulnerabilities): https://pypi.org/project/safety/ |
Somewhat related: https://stackoverflow.com/questions/43886777/is-there-a-tool-to-check-python-distribution-sdist-files
|
What should be checked?
By default,
pydistcheck
should warn on the presence of executable files found in Python distributions.I expect most Python distributions to be code that is loaded at runtime in a Python process, and to therefore not need to contain executable files.
This check would probably be most useful as a part of a security-scanning process (to detect downloads of executable files from package repositories).
NOTE: this should use the mode of the files in the distribution (e.g. https://docs.python.org/3/library/tarfile.html#tarfile.TarInfo.mode), not heuristics based on file extensions like
.exe
(that type of heuristic is captured in a separate check, #55 ).What should the name of this check be?
found-executable-files
Will this check introduce any additional configuration?
no
Details on additional configuration required.
No response
Distribution type
.tar.gz
).whl
)Notes
No response
The text was updated successfully, but these errors were encountered: