正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Exposure of confidential secret or token PyPi upload token

Description

The response body contains content that matches the pattern of a PyPi upload token was identified. Upload tokens are used for uploading packages for publishing Python packages. A malicious actor with access to this token can upload potentially malicious artifacts. Exposing this value could allow attackers to gain access to all resources granted by this token.

Remediation

For general guidance on handling security incidents with regards to leaked keys, please see the GitLab documentation on Credential exposure to the internet. It is strongly recommended to switch to OIDC Connect instead of using PyPi upload tokens. Please see PyPi’s documentation on trusted publishers.

To delete a PyPi upload token:

  • Sign in to your PyPi account and visit https://pypi.org/manage/account/
  • Scroll down to the “API tokens” section
  • Find the identified token and select the “Options” dropdown list
  • Select “Remove token”
  • When prompted, enter your password and select “Remove API Token”

For more information, please see PyPi’s documentation on upload tokens.

Details

IDAggregatedCWETypeRisk
798.96false798PassiveHigh