brave-browser: IPFS and Tor components "can't be opened because Apple cannot check it for malicious software"

Description

In the past few days, some users on Twitter have been reporting the following error message on macOS for the Tor and IPFS components:

"tor-0.4.8.9-darwin-brave-0" can't be opened because Apple cannot check it for malicious software.
"go-ipfs_v0.24.0_darwin-amd64" can't be opened because Apple cannot check it for malicious software

Sources:

  1. https://twitter.com/redneckbwana/status/1728382675310780828
  2. https://twitter.com/amiris_brown/status/1729170717915390279

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Just adding some more context, user confirmed that disabling/re-enabling Tor via brave://settings/privacy fixed the issue. That basically removes the current component and re-downloads when a Tor window is opened. But it’s still a good idea if we can figure out why this happens to some users when pushing out Tor updates.

I am also experiencing this issue:

Brave: v1.60.125 MacOs: Sonoma v14.1.2

Having tried disabling/re-enabling Tor per above, I am still experiencing the issue.

Edit: When trying the above fix, delete the tor file manually before re-enabling and it works.

Can’t seem to reproduce it either on macOS 14.1.1 x64. Installed 1.60.118 Chromium 119.0.6045.163 and launched a new Tor window which worked/connected without any issues:

Nov 28 23:44:23.532 [notice] Tor 0.4.8.9 running on Darwin with Libevent 2.1.12-stable, OpenSSL 1.1.1w, Zlib 1.3, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Nov 28 23:44:23.532 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Nov 28 23:44:23.533 [notice] Read configuration file "/Users/kjozwiak/Library/Application Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-torrc".
Nov 28 23:44:23.533 [notice] Read configuration file "/Users/kjozwiak/Library/Application Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-torrc".
Nov 28 23:44:23.535 [notice] Opening Socks listener on 127.0.0.1:0
Nov 28 23:44:23.535 [notice] Socks listener listening on port 49630.
Nov 28 23:44:23.535 [notice] Opened Socks listener connection (ready) on 127.0.0.1:49630
Nov 28 23:44:23.535 [notice] Opening Control listener on 127.0.0.1:0
Nov 28 23:44:23.535 [notice] Control listener listening on port 49631.
Nov 28 23:44:23.535 [notice] Opened Control listener connection (ready) on 127.0.0.1:49631
[1164:41731:1128/234423.536043:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[1164:41731:1128/234423.536194:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[1164:41731:1128/234423.537831:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[1164:41731:1128/234423.538071:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
Nov 28 23:44:23.000 [notice] Bootstrapped 0% (starting): Starting
Nov 28 23:44:23.000 [notice] Starting with guard context "default"
Nov 28 23:44:23.000 [notice] New control connection opened from 127.0.0.1.
Nov 28 23:44:23.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Nov 28 23:44:23.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Nov 28 23:44:23.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Nov 28 23:44:24.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Nov 28 23:44:24.000 [notice] Bootstrapped 20% (onehop_create): Establishing an encrypted directory connection
Nov 28 23:44:24.000 [notice] Bootstrapped 25% (requesting_status): Asking for networkstatus consensus
Nov 28 23:44:24.000 [notice] Bootstrapped 30% (loading_status): Loading networkstatus consensus
Nov 28 23:44:25.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
Nov 28 23:44:26.000 [notice] Bootstrapped 40% (loading_keys): Loading authority key certs
Nov 28 23:44:26.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
Nov 28 23:44:26.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
Nov 28 23:44:26.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/7798, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.)
Nov 28 23:44:27.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors
Nov 28 23:44:34.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
Nov 28 23:44:48.000 [notice] Bootstrapped 56% (loading_descriptors): Loading relay descriptors
Nov 28 23:44:48.000 [notice] Bootstrapped 62% (loading_descriptors): Loading relay descriptors
Nov 28 23:44:48.000 [notice] Bootstrapped 71% (loading_descriptors): Loading relay descriptors
Nov 28 23:44:48.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Nov 28 23:44:49.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Nov 28 23:44:49.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Nov 28 23:44:50.000 [notice] Bootstrapped 100% (done): Done

Screenshot 2023-11-28 at 11 45 00 PM

I also tried checking the the codesign and Notarization and didn’t see any issues/errors:

kjozwiak@Kamils-MBP-2 ~ % spctl -a -vv -t install ~/Library/Application\ Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-0.4.8.9-darwin-brave-0
/Users/kjozwiak/Library/Application Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-0.4.8.9-darwin-brave-0: accepted
source=Notarized Developer ID
origin=Developer ID Application: Brave Software, Inc. (KL8N8XSYF4)
kjozwiak@Kamils-MBP-2 ~ % codesign -vvvv ~/Library/Application\ Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-0.4.8.9-darwin-brave-0
/Users/kjozwiak/Library/Application Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-0.4.8.9-darwin-brave-0: valid on disk
/Users/kjozwiak/Library/Application Support/BraveSoftware/Brave-Browser/cldoidikboihgcjfkhdeidbpclkineef/1.0.34/tor-0.4.8.9-darwin-brave-0: satisfies its Designated Requirement

Double clicking on tor-0.4.8.9-darwin-brave-0 opened the macOS finder which requested/asked which application to open the executable in. Didn’t get any error re: not being able to check for malicious software".

Screenshot 2023-11-29 at 12 06 14 AM

Asked @LaurenWags & @stephendonner if they can take a look/reproduce the issue on the various macOS versions we have available. I also asked the user to see if disabling/re-enabling Tor windows via brave://settings/privacy fixes the issue as that removes the current component as per https://x.com/KamilJozwiak/status/1729725798150484196?s=20.