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

[request] Add detector for credentials in .pypirc file #951

Open
bugbaba opened this issue Dec 2, 2022 · 1 comment
Open

[request] Add detector for credentials in .pypirc file #951

bugbaba opened this issue Dec 2, 2022 · 1 comment

Comments

@bugbaba
Copy link

bugbaba commented Dec 2, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Hello Team :)

Currently the truffleHog is not having any detector for credentials and API token hardcoded inside the .pypirc file. It allows authenticated access to pypi.org

Problem to be Addressed

Credentials and API token hardcoded inside the .pypirc file not detected by trufflehog.

Description of the Preferred Solution

Add a detector to detect Credentials and API token in the .pypirc file.

References

https://packaging.python.org/en/latest/specifications/pypirc/

--
Regards,
@bugbaba

@tbenthompson
Copy link

tbenthompson commented Dec 16, 2022

This is partially related to #716

The password format for a pypirc file would be caught by that generic scanner:

[distutils]
index-servers =
    pypi
    testpypi

[pypi]
username = ...
password = ...

But it would be great to also verify these credentials!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants