侵入テスターが保護されていないソース コード リポジトリ内のファイルにハードコードされた資格情報を発見した場合、次の手順では、追加のセキュリティ問題を特定するために、ドキュメント化とさらなる調査に重点を置く必要があります。 スクリーンキャプチャの取得(オプション B): 文書化:最終報告書には、発見事項を文書化することが不可欠です。スクリーンキャプチャは、発見されたハードコードされた認証情報の具体的な証拠となります。 監査証跡: これにより、脆弱性の記録が確保され、開発チームやクライアントなどの関係者に問題を伝えるために使用できるようになります。 その他の埋め込まれたパスワードの調査(オプション C): 徹底的な調査:ハードコードされたパスワードが1つ見つかった場合、他にもパスワードが存在する可能性が示唆されます。徹底的な調査により、追加の認証情報が発見され、システムのセキュリティがさらに侵害される可能性があります。 自動化ツール: truffleHog、git-secrets、grep などのツールを使用して、リポジトリをスキャンし、ハードコードされたシークレットの他のインスタンスを探すことができます。 ペンテストの参考資料: 初期検出: ハードコードされた資格情報の検出は、ソース コードのレビュー中やリポジトリの自動スキャン中によく発生します。 ドキュメント: すべての発見事項の詳細な記録を保持することは、侵入テスト プロセスの重要な部分です。 This ensures that all discovered vulnerabilities are reported accurately and comprehensively. Further Investigation: After finding a hard-coded credential, it is best practice to look for other security issues within the same repository. This might include other credentials, API keys, or sensitive information. Steps to Perform: Take a Screen Capture: Use a screenshot tool to capture the evidence of the hard-coded credentials. Ensure the capture includes the context, such as the file path and relevant code lines. Investigate Further: Use tools and manual inspection to search for other embedded passwords. Commands such as grep can be helpful: grep -r 'password' /path/to/repository Tools like truffleHog can search for high entropy strings indicative of secrets: trufflehog --regex --entropy=True /path/to/repository By documenting the finding and investigating further, the penetration tester ensures a comprehensive assessment of the repository, identifying and mitigating potential security risks effectively.