Buttercup Passwd Manager fails to connect

Hey, I just tried to get buttercup running on whonix. It starts fine but the connection between TorBrowser and the application doesn’t work.

“Failed starting connection: Background task failed: NetworkError when attempting to fetch resource.”

Similar answer as for: Keepassxc key exchange not succesful

Seems it’s actually apparmor blocking it. I was succesfull with following solution using keepassxc. Might be able to apply on buttercup too:

Find the name paths using:
sudo apparmor-info --boot | grep DENIED:

AVC apparmor=“DENIED” operation=“open” profile=“//*-browser/Browser/firefox" name=“/home/user/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json” comm=[redacted] AVC apparmor=“DENIED” operation=“exec” profile="//*-browser/Browser/firefox” name=“/usr/bin/keepassxc-proxy” comm=[redacted] requested_mask=“x” denied_mask=“x”

Open the Tor Browser AppArmor profile:

sudo nano /etc/apparmor.d/home.tor-browser.firefox

Add the following lines

After /**/*-browser/Browser/firefox flags=(attach_disconnected) {:
Note the two spaces before them both:

  /home/user/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json rix,
  /usr/bin/keepassxc-proxy rix,

Restart AppArmor:

sudo service apparmor reload*

1 Like