-
35 votes
-
“Upload moderation” undermines end-to-endencryption: A statement from Meredith Whittaker, Signal president
28 votes -
Signal messenger releases 'usernames' so you no longer need to tell someone your phone number in order for them to message you
59 votes -
Privacy is priceless, but Signal is expensive
74 votes -
No more phone number swaps: Signal messaging app now testing usernames
46 votes -
Is Signal safe and appropriate to use also as way to sync and retain files?
It seems to be very good as an even easier way to send files like AirDrop but also to keep them in one distributed place in a privacy-affirming and respectful way. Is there a catch or is it really...
It seems to be very good as an even easier way to send files like AirDrop but also to keep them in one distributed place in a privacy-affirming and respectful way.
Is there a catch or is it really a free lunch in this regard?
17 votes -
Critical 0day in WebP: Google assigns a CVE for libwebp and gives it a 10.0 base score.
28 votes -
Signal’s Meredith Whittaker: AI is fundamentally ‘a surveillance technology’
24 votes -
Signal adds quantum-resistant encryption to its E2EE messaging protocol
26 votes -
Quantum resistance and the Signal Protocol
23 votes -
Google removes fake Signal and Telegram apps hosted on Play
27 votes -
How Signal walks the line between anarchism and pragmatism
45 votes -
Signal removing support for SMS in Android
20 votes -
Signal’s president Meredith Whittaker on what’s next for the private messaging app
8 votes -
Signal messenger introduces stories
12 votes -
Moxie Marlinspike stepping down as Signal CEO
9 votes -
Element One - All of Matrix, WhatsApp, Signal and Telegram in one place
21 votes -
The Instagram ads Facebook won't show you
26 votes -
In defense of Signal
12 votes -
Encrypted messaging app Signal blocked in China
29 votes -
Signal's server repo hasn't been updated since April 2020
26 votes -
Signal ignores proxy censorship vulnerability, bans researchers
11 votes -
The GameStop game never stops
31 votes -
WhatsApp and the domestication of users
12 votes -
The battle inside Signal - The fast-growing encrypted messaging app is developing features that would make it more vulnerable to abuse. Current and former employees are sounding the alarm.
31 votes -
Taking back our privacy - Profile of Moxie Marlinspike, founder of Signal
9 votes -
Signal app downloads spike as US protesters seek message encryption
16 votes -
Introducing Signal PINs: A method of storing some account data (profile, settings, etc.) securely on Signal servers in case you lose or switch devices
16 votes -
EU Commission to staff: Switch to Signal messaging app
14 votes -
Signal is finally bringing its secure messaging to the masses
28 votes -
Two-factor authentication for home VNC via Signal
For my particular use case I share my home PC with my spouse and since I'm the more tech-savvy of the two I'll need to occasionally remote in and help out with some random task. They know enough...
For my particular use case I share my home PC with my spouse and since I'm the more tech-savvy of the two I'll need to occasionally remote in and help out with some random task. They know enough that the issue will usually be too complex to simply guide over the phone, so remote control it is.
I'm also trying to improve my personal efforts toward privacy and security. To that end I want to avoid closed-source services such as TeamViewer where a breach on their end could compromise my system.
The following is the current state of what I'm now using as I think others may benefit from this as well:
Setup
Web
I use a simple web form as my first authentication. It's just a username and password, but it does require a web host that supports server side code such as PHP. In my case I just created a blank page with nothing other than the form and when successful the page generates a 6 digit PIN and saves it to a text file in a private folder (so no one can simply navigate to it and get the PIN).
I went the text file route because my current hosting plan only allows 1 database and I didn't want to add yet another random table just for this 1 value.
Router
To connect to my home PC I needed to forward a port from my router. I'm going to use VNC as it lets me see what is currently shown on the monitor and work with someone already there so I forward port 5900 as VNC's default port. You can customize this if you want. Some routers allow you to SSH into their system and make changes that way so a step more secure would be to leave the port forward disabled and only enable it once a successful login from the web form is disabled. In my case I'll just leave the port forwarded all the time.
IP Address
To connect to my computer I need to know it's external IP address and for this I use FreeDNS from Afraid.org. My router has dynamic DNS support for them already included so it was easy to plug in my details to generate a URL which will always point to my home PC (well, as long as my router properly sends them my latest IP address). If your router doesn't support the dynamic DNS you choose many also allow either a download or the settings you would need to script your own to keep your IP address up to date with their service.
Signal
Signal is an end-to-end encrypted messenger which supports text, media, phone and video calls. There's also a nifty command line option on Github called Signal-cli which I'm using to provide my second form of authentication. I just downloaded the package, moved to my $PATH (in my case /usr/local/bin) and set it up as described on their README. In my case I have both a normal cell phone number and another number provided by Google Voice. I already use my normal cell phone number with Signal so for this project I used Signal-cli to register a new account using my Google Voice number.
VNC
My home PC runs Ubuntu 18.04 so I'm using x11vnc as my VNC server. Since I'm leaving my port forwarded all the time I most certainly do NOT want to leave VNC also running. That's too large a security risk for me. Instead I've written a short bash script that first checks the web form using curl and https (so it's encrypted) with its own login information to check if any PIN numbers have been saved. If a PIN is found the web server sends that back and then deletes the PIN text file. Meanwhile the bash script uses the PIN to start a VNC session with that PIN as the password and also sends my normal cell the PIN via Signal-cli so that I can login.
I have this script set to run every minute so I'm not waiting long after web login and I also have the x11vnc session set to timeout after a minute so I can quickly connect again should I mess something up. It's also important that x11vnc is set to auto exit after closing the session so that it's not left up for an attacker to attempt to abuse.
System Flow
Once everything is setup and working this is what it's like for me to connect to my home PC:
- Browse to my web form and login
- Close web form and wait for Signal message
- Launch VNC client
- Connect via dynamic DNS address (saved to VNC client)
- Enter PIN code
- Close VNC when done
Code
Here's some snippets to help get you started
PHP for Web Form Processing
<?php // Variables $username = 'your_username'; $password = 'your_password_super_long_and_unique'; $filename = 'path_to_private_folder/vnc/pin.txt'; // Process the login form if($action == 'Login'){ $file = fopen($filename,'w'); $passwd = rand(100000,999999); fwrite($file,$passwd); fclose($file); exit('Success'); } // Process the bash script if($action == 'bash'){ if(file_exists($filename)){ $file = fopen($filename,'r'); $passwd = fread($file,filesize($filename)); fclose($filename); unlink($filename); exit($passwd); } else { exit('No_PIN'); } } ?>
Bash for x11vnc and Signal-cli
# See if x11vnc access has been requested status=$(curl -s -d "u=your_username&p=your_password_super_long_and_unique&a=bash" https://vnc_web_form.com) # Exit if nothing has been requested if [ "$status" = "No_PIN" ]; then # No PIN so exit; log the event if you want exit 0 fi # Strip non-numeric characters num="${status//[!0-9]/}" # See if they still match (prevent error messages from triggering stuff) if [ $status != $num ]; then # They don't match so probably not a PIN - exit; log it if you want exit 1 fi # Validate pin number num=$((num + 0)) if [ $num -lt 100000 ]; then # PIN wasn't 6 digits so something weird is going on - exit; log it if you want exit 1 fi if [ $num -gt 999999 ]; then # Same as before exit 1 fi # Everything is good; start up x11vnc # Log event if you want # Get the current IP address - while dynamic DNS is in place this serves as a backup ip=$(dig +short +timeout=5 myip.opendns.com @resolver1.opendns.com) # Send IP and password via Signal # Note that phone number includes country code # My bash is running as root so I run the command as my local user where I had registered Signal-cli su -c "signal-cli -u +google_voice_number send -m '$num for $ip' +normal_cell_number" s3rvant # Status was requested and variable is now the password # this provides a 1 minute window to connect with 1-time password to control main display # again run as local user su -c "x11vnc -timeout 60 -display :0 -passwd $num" s3rvant
Final Thoughts
There are more secure ways to handle this. Some routers support VPN for the connect along with device certificates which are much stronger than a 6 digit PIN code. Dynamically opening and closing the router port as part of the bash script would also be a nice touch. For me this is enough security and is plenty convenient enough to quickly offer tech support (or nab some bash code for articles like this) on the fly.
I'm pretty happy with how Signal-cli has worked out and plan to use it again with my next project (home automation). I'll be sure to post again once I get that ball rolling.
13 votes -
Signal technology preview: sealed sender
21 votes -
I don't trust Signal
18 votes -
Amazon threatens to suspend Signal's AWS account over censorship circumvention (via "domain fronting")
5 votes