Closed ActualAl closed 8 months ago
What does ls -al /private/tmp/homebrew-unpack20240308-68173-uau877/ngrok
say?
What does
ls -al /private/tmp/homebrew-unpack20240308-68173-uau877/ngrok
say?
Hi @SMillerDev thanks for your reply. There is no such file or directory so I'm wondering if the issue is that the file can't be written
I think this issue is actually caused by a corporate anti virus quarantining the ngrok exe.
Apologies for taking up your time 😞
Just had the exact same problem, been searching for a solution for hours until I found this. Thank you for pointing me in the right direction @ActualAl !
OMG, mentioning that this was a problem caused by antivirus was exactly what I needed, thank you! (It was Avira for me)
I've also faced this problem. Avast put it into quarantine due to the presence of malware. Now I'm afraid to install it)
Thanks for the information.
I couldn't find a good way to add ngrok to antivirus software exception list, so I uninstalled ngrok from brew, then installed it manually (download zip and unzip it into /usr/local/bin
).
=> Well, even if installation was succeeded, executing ngrok
command still causes antivirus software detection, so adding exception list is still necessary...
=> Well, even if installation was succeeded, executing
ngrok
command still causes antivirus software detection, so adding exception list is still necessary...
Yeah, it was ridiculous for me to get this working.
The only way I was able to get it whitelisted from my antivirus software (Avira) was updating the antivirus real-time protection to "let me decide each time" instead of immediately "quarantee threat"; then ran Ngrok again, excluded it, and verified Ngrok was now on the exclusion list. (but... I think I also had to temporarily disable Avira in order for Ngrok to be able to get installed since the install process creates a randomly named temp file that you can't approve in time for install to finish (if you see the prompt and approve it, the install has already failed; and if you try installing it again, same issue with the new randomly named temp file)... but once I got it installed I then re-enabled Avira and changed the real-time protection setting).
Same issue here, but this time Microsoft Defender, I had to add ngrok
as Exclusion
@nachogon1 , how did you add ngrok as an Exclusion in Defender? I added an exclusion for Ngrok in Endpoint Security Policies, but it's still not allowing it to be installed. Seeing how you fixed yours up. We use the admin portal too btw, so if it's a fix on the device itself it won't work as users can't make these adjustments on their devices.
Is there something specific in the changes for 3.9.0 that triggered this?
With other recent supply chain attacks, I want to make sure that this is a legitimate false positive and not the antivirus catching an actual problem.
@CyrusDavis I was able to reproduce it again after uninstalling it and removing the exception. Just in case, try first brew cleanup ngrok/ngrok/ngrok
. Add the exception as a process:
try to install it again brew install ngrok/ngrok/ngrok
@truthdoug I don't know. In my case was the antivirus
I've submitted a support request to ngrok:
I installed ngrok using homebrew, per the instructions on the getting started guide.
With the upgrade from 3.8.0 to 3.9.0, my antivirus caught something that it didn't like. There are others who have reported the same problem – see this discussion https://github.com/Homebrew/homebrew-cask/issues/168593
Can you advise if there's something in this release which might've triggered this antivirus response? Can you verify that the hash associated with the homebrew formula is accurate?
I will respond when I hear anything back.
Good to see we're not the only one with the issue. Weird thing is that it's only happening to one of our users. Maybe the others haven't updated Ngrok yet and we'll run into it more when the updates hit. I'll give the above steps a go next time it pops up. I was able to get it working with an exception Thanks again for helping with this.
On Sat, May 11, 2024 at 8:59 AM Doug Harris @.***> wrote:
I've submitted a support request to ngrok:
I installed ngrok using homebrew, per the instructions on the getting started guide.
With the upgrade from 3.8.0 to 3.9.0, my antivirus caught something that it didn't like. There are others who have reported the same problem – see this discussion #168593 https://github.com/Homebrew/homebrew-cask/issues/168593
Can you advise if there's something in this release which might've triggered this antivirus response? Can you verify that the hash associated with the homebrew formula is accurate?
I will respond when I hear anything back.
— Reply to this email directly, view it on GitHub https://github.com/Homebrew/homebrew-cask/issues/168593#issuecomment-2105940125, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGPJRWO3DLCKOPUIUCZJU2DZBY57PAVCNFSM6AAAAABEM7N4W2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVHE2DAMJSGU . You are receiving this because you were mentioned.Message ID: @.***>
-- Cyrus Davis Security & IT Analyst AstrumU® e-mail: @. @.>
A response from ngrok:
ngrok is beloved for our ease of use and powerful capability. Unfortunately, those same attributes also make us an attractive target for bad actors trying to phish credentials or create back doors into private networks. We proactively monitor and ban any accounts we identify that are involved with these attacks, and also work with 3rd parties that report malware and abuse via abuse@ngrok.com and our abuse APIs. Because ngrok is sometimes used by bad actors for attacks, we are occasionally flagged by some antivirus companies as malware or a potentially unwanted application (PAU). We actively monitor and reach out to these companies and attempt to obtain the correct classification in their system and be added to the allow lists. If you receive a notice from your antivirus software when installing ngrok software, be sure to verify the following:
- Our official binaries can be downloaded from our ngrok Downloads page, and the binaries themselves are hosted at bin.equinox.io. If you installed ngrok from another source, you should be careful.
- There are no open source versions of our ngrok Agent and the source code is not available. If you have downloaded anything claiming to be ngrok agent source code or built our agent from source, it is most likely malicious.
- All of our binaries are signed using ngrok certificates. You can verify the integrity of the application by checking that the binary is signed by an ngrok LLC authority. See these instructions from Microsoft for verifying the digital signatures in Windows binaries.
We can confirm the homebrew download is safe and it should be whitelisted and reported to your antivirus as a false positive.
Thank you for this detailed information. I appreciate the follow through.
On Mon, May 13, 2024 at 5:47 PM Doug Harris @.***> wrote:
A response from ngrok:
ngrok is beloved for our ease of use and powerful capability. Unfortunately, those same attributes also make us an attractive target for bad actors trying to phish credentials or create back doors into private networks. We proactively monitor and ban any accounts we identify that are involved with these attacks, and also work with 3rd parties that report malware and abuse via @.*** and our abuse APIs https://ngrok.com/docs/api/resources/abuse-reports/. Because ngrok is sometimes used by bad actors for attacks, we are occasionally flagged by some antivirus companies as malware or a potentially unwanted application (PAU). We actively monitor and reach out to these companies and attempt to obtain the correct classification in their system and be added to the allow lists. If you receive a notice from your antivirus software when installing ngrok software, be sure to verify the following:
- Our official binaries can be downloaded from our ngrok Downloads https://ngrok.com/download page, and the binaries themselves are hosted at bin.equinox.io. If you installed ngrok from another source, you should be careful.
- There are no open source versions of our ngrok Agent and the source code is not available. If you have downloaded anything claiming to be ngrok agent source code or built our agent from source, it is most likely malicious.
- All of our binaries are signed using ngrok certificates. You can verify the integrity of the application by checking that the binary is signed by an ngrok LLC authority. See these instructions from Microsoft https://support.microsoft.com/en-us/office/view-digital-signature-and-certificate-details-76ba00cb-1e58-42aa-8717-0caee76bb3cf for verifying the digital signatures in Windows binaries.
We can confirm the homebrew download is safe and it should be whitelisted and reported to your antivirus as a false positive.
— Reply to this email directly, view it on GitHub https://github.com/Homebrew/homebrew-cask/issues/168593#issuecomment-2109066567, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGPJRWI4HH6EIHXU4FSPIVTZCFNK5AVCNFSM6AAAAABEM7N4W2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZGA3DMNJWG4 . You are receiving this because you were mentioned.Message ID: @.***>
-- Cyrus Davis Security & IT Analyst AstrumU® e-mail: @. @.>
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
I'm getting an error installing ngrok on my silicon M2 mac book pro.
The error I'm getting is
Error: Operation not permitted @ rb_sysopen - /private/tmp/homebrew-unpack20240308-72463-jgoaoj/ngrok
The file permissions on
/private/tmp
aredrwxrwxrwt
which looking at my other mac seem correct.Command that failed
brew install --force ngrok/ngrok/ngrok
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
brew config