Encrypting All Outgoing Traffic - Security Discussion

Hey there XDA
So I was reading this article the other day that pertains to security and encryption on the Android Operating System
http://www.bibliotecapleyades.net/sociopolitica/sociopol_cia38.htm
Basically what is says is that even if you use encryption in apps there's nothing preventing people from accessing your devices mic or camera
But I was thinking what if you encrypt ALL outgoing traffic? Now I'm not the most well versed guy when it comes to technology but I've heard about for example SSH tunnels
So I found this guide on how to setup one on Android: https://www.howtogeek.com/121698/how-to-route-all-your-android-traffic-through-a-secure-tunnel/
Would this effectively encrypt all outgoing data?

Eklondh said:
Hey there XDA
So I was reading this article the other day that pertains to security and encryption on the Android Operating System
http://www.bibliotecapleyades.net/sociopolitica/sociopol_cia38.htm
Basically what is says is that even if you use encryption in apps there's nothing preventing people from accessing your devices mic or camera
But I was thinking what if you encrypt ALL outgoing traffic? Now I'm not the most well versed guy when it comes to technology but I've heard about for example SSH tunnels
So I found this guide on how to setup one on Android: https://www.howtogeek.com/121698/how-to-route-all-your-android-traffic-through-a-secure-tunnel/
Would this effectively encrypt all outgoing data?
Click to expand...
Click to collapse
Not really, setting up an SSH tunnel will only encrypt your traffic between your device and your server, at some point most traffic will have to enter the internet in just as secure manner as it does now so that you can view a website for example, it will add another layer of security, but really only useful for privacy from those on your local network or (if your server is outside your ISP network) from your ISP also (but you'd have to change your DNS servers also or they can get info from there about sites you visit)
Also non of that will stop the issue you mention above about gaining access to your camera, mic, files etc that to beat encryption they just have to gain access to your phone, that could be as simple as sending you a malware link to your email, Whatsapp or whatever, which you visit. Which seems to be what my mum did 2 days ago, there was a well crafted email that appeared to be from Genes Reunited making specific reference to her personal private data & contacts in her account so she clicked the link, now she has no internet access & other issues on tablet, but of course I can't log in to fix from here & she can't follow my instructions over the phone properly! The email password she gave me doesn't work (I wanted to examine the file she clicked on), though there was no confirmation via txt of password changed. So right now I'm not sure as could be related to the TalkTalk hacks.... Or just my mum! Rant over!
So in short no, ssl is not a simple solution

this might help. https://www.torproject.org/
"err on the side of kindness"

IronRoo said:
Not really, setting up an SSH tunnel will only encrypt your traffic between your device and your server, at some point most traffic will have to enter the internet in just as secure manner as it does now so that you can view a website for example, it will add another layer of security, but really only useful for privacy from those on your local network or (if your server is outside your ISP network) from your ISP also (but you'd have to change your DNS servers also or they can get info from there about sites you visit)
Also non of that will stop the issue you mention above about gaining access to your camera, mic, files etc that to beat encryption they just have to gain access to your phone, that could be as simple as sending you a malware link to your email, Whatsapp or whatever, which you visit. Which seems to be what my mum did 2 days ago, there was a well crafted email that appeared to be from Genes Reunited making specific reference to her personal private data & contacts in her account so she clicked the link, now she has no internet access & other issues on tablet, but of course I can't log in to fix from here & she can't follow my instructions over the phone properly! The email password she gave me doesn't work (I wanted to examine the file she clicked on), though there was no confirmation via txt of password changed. So right now I'm not sure as could be related to the TalkTalk hacks.... Or just my mum! Rant over!
So in short no, ssl is not a simple solution
Click to expand...
Click to collapse
Heh, **** man.. Hope she sorts it out
Now I think I've decided to use an SSH tunnel paried with RSA authentication for the time being, it seems good enough for me
mrrocketdog said:
this might help. https://www.torproject.org/
"err on the side of kindness"
Click to expand...
Click to collapse
Tor seems awesome

The proper way to achieve this is using a vpn which permits flexibility on the networking side. I use openvpn server on my home computer and i connect my phones to it. It is set to redirect all traffic through the encrypted tunnel which is forwarded to the internet through my home computer.
Now as noted before the information still goes out to the net at some point and comes back. Encrypting traffic does not help if you click on something malicious out there.
It does help to prevent the directly connected network to snoop on your actual traffic though. Handy when you connect to free wifi etc. Also you can filter traffic by application on the phone or by destination on the other side on the server.

Related

Fitbit/Jawbone/... hack

Hi,
With our smartphones and apps we already send quite a lot of data to third parties.
I am interested by a wearable device such as a Fitbit or Jawbone (to mention only popular ones) to track my daily activities but I don't want to send more data to more third parties. In addition, if one of these companies decides to stop some products or shut down their servers, these devices would probably stop working.
As they all provide an Android app to sync the smartphone and the device to fetch the data and display it, I am wondering why it would be requested to send data to their servers. Does anyone know if these app is working properly without an active connection to these servers? Is there any way to block these connections without a rooted phone? If rooted, do you think updating the hosts file would be enough to block connection?
Aside it, I am wondering if it would be possible to redirect this traffic to a personal server to fill a personal database? Is the traffic secured, via SSL for example, between the app and the server? We can imagine creating an open source project to be installed on our personal RaspberryPi (for example) to display data in a more friendly way on desktop without giving access to private data to big companies.

i need an app

I need and app that allows me to see web connections on phones on my network like what a certain IP"connected to my WiFi" is browsing
App that allow you to see web connection
Not only an app, you are supposed to be having a paid firewall. It is having a network flow panel which will let you know how many devices are connected with your IP address and what http packets they are accessing.
Or if you are having a client server topology, then server logs can easily tell you which user is viewing what.
Even there are free tool for checking ip address-
1) Microsoft Network Monitor
2) Nagios
3) OpenNMS
4) Advance IP Scanner
you can also try "Norton Family" when you first register you have 30 days of trial for free.
Csploit does achieve this I believe, and you can also intercept other people's browsing.Though, you should be really careful when using it and you should really know what all the functions do. I do not recommend you using it, but if it is a one time quicky then sure.

[APP][6.0+] Remote Fingerprint Unlock - unlock your Windows PC with your fingerprint

Hello guys!
Tired of typing your password each time you want to unlock your computer?
After months of work, I have finally launched my project, Remote Fingerprint Unlock, which allows you to remotely wake up and unlock your Windows computer with a single fingerprint tap!
Features:
• Simple, user-friendly UI
• Secure
• Local/Microsoft/Domain** accounts supported
• 3 app themes - Light, Dark, Black (AMOLED)
• Wi-Fi/Bluetooth/Wi-Fi Tethering support
**1.2.0 version of the Windows module required. Usage: when adding an account using the Android app, simply add the full name of the account, including the domain, separated by a slash ( ‘\’ ). For example: test\account.name
PRO features:
• Ads removal
• Unlimited computers and account per computer
• Wake-On-Lan
• Unlock widgets - can be linked to any account, useful if you have more computers that you want to unlock
• Launcher shortcuts - same as widgets, can be used by long-tapping the app icon or can be pinned like any other launcher shortcut
• More planned features
With that being said, here is the link to the app: Google Play or XDA Labs
The Windows module, found at http://bit.ly/2Q4YoUP is required for the app to work. Please be sure to check for updates from time to time as they can contain fixes and add new features. The changelog can be found at the same link.
The app was featured on XDA News, thanks to the guys at XDA! :highfive: So, if you think that you need such a tool, be sure to give it a try!
Lastly, any question that you may have, be it about how the app works, how to use it or if you are just leaving feedback, don't hesitate posting it here! Thanks for taking the time to check the app!
Security
The communication between modules is secured using TLS (SSL). The accounts are stored on your computer as they are required when unlocking. However, they are encrypted using a key that is generated based on your fingerprint. As per this article, the generated key is backed by a Trusted Execution Environment, which prevents an attacker from gaining access to the key even if he had compromised the kernel. In other words, only the enrolled fingerprints on your phone can access the key. If you do uninstall, reset your app or even if you change one of your registered fingerprints, the file where the accounts are stored is lost forever and you will need to reconfigure your accounts.
Lastly, research has been done to ensure that, even locally, your accounts are as safe as possible. No password is stored in-app and everything is done locally (between the app and the Windows module) and I'm not, in any way, shape or form, sending through the Internet or seeing anything that you type in-app.
Basic troubleshooting
If you cannot find you computer in the Scan menu, please check the following:
Be sure that the module is present on your logon screen. For example, on Windows 10, you should see it on the lower left corner of the screen. If you installed the program and it still isn’t present, please leave a reply, send me a PM or an email.
If you have a different firewall than Windows Firewall, please be sure that you have allowed all incoming and outgoing traffic on both TCP and UDP for LogonUI.exe process, found in C:\Windows\System32.
Be sure that both your computer and your smartphone are connected to the same network which assigns IP addresses on the same subnet. For example, both devices should have an IP starting with the same subnet prefix: 192.168.1.
If you have blocked ports on your network, be sure to allow port 4009 on both TCP and UDP for the app to function correctly.
If you added an account but unlocking does not work, please check the following:
If you are using a Microsoft account: if you tried adding an account, used your email address and it does not work, please update the Windows module to at least 1.0.2, which supports logging in a user using the displayed account name on the lockscreen. When adding an account in-app, try again by using the displayed name of that Microsoft account (the First and Last names).
If you are using a local account on Windows Vista or 7, you may have changed your account name in the past. Internally, Windows does not change the username so you need to type in the original username.
If you can’t remember it, just open a Command Prompt and type 'whoami’. The username that will be displayed is the one that the app will need.
You can also check how your personal user folder is called. It can be found in C:\Users.
On Windows 8 and 10, have at least the 1.0.2 version installed and simply add an account using the displayed name on the lockscreen.
Setting up/Testing Wake On Lan (PRO feature)
To enable WoL on your computer, you can follow the steps here. To enable WoL on your computer, follow the first part. After that, you can continue with the same tutorial if you have another computer available, or you can download this app on your Android phone to test it.
To send the WoL signal using the app, simply go to the saved computers, tap on the desired computer, tick Send WoL-Packet and Save. There is no need to configure anything as your MAC address is automatically detected when you add your computer. The wake-up signal will now be sent each time you unlock one of the accounts on that PC.
Take into consideration that on some computers, you may also need to enable WoL in your BIOS settings and that it may work only on certain states like being fully shut down, hibernated or sleeping. There is nothing I can do about it, unfortunately, as it depends on your PC. Thanks for understanding!
So the fingerprint is saved on your server? How can we make sure that it will not be exploited?
scissorscrush said:
So the fingerprint is saved on your server? How can we make sure that it will not be exploited?
Click to expand...
Click to collapse
No! Actually it is not! The fingerprint verification is only done locally using only your phone's secure hardware. This is all that Android Fingerprint API's allow a developer to do: they just report back if a scanned fingerprint is found on a phone's system or not and the unique key that is generated when you first scan your fingerprint can be accessed only if there was a successful fingerprint scan.
So all of this part is done using Android's Fingerprint API. There is no back-end involved in any of this. With the exception of crash logs and ads, the Android app and the Windows module only communicate with each other.
Hope that it clarifies some of the aspects! Feel free to reply back if you have any other questions.
Andrew-X said:
No! Actually it is not! The fingerprint verification is only done locally using only your phone's secure hardware. This is all that Android Fingerprint API's allow a developer to do: they just report back if a scanned fingerprint is found on a phone's system or not and the unique key that is generated when you first scan your fingerprint can be accessed only if there was a successful fingerprint scan.
So all of this part is done using Android's Fingerprint API. There is no back-end involved in any of this. With the exception of crash logs and ads, the Android app and the Windows module only communicate with each other.
Hope that it clarifies some of the aspects! Feel free to reply back if you have any other questions.
Click to expand...
Click to collapse
Good dude. Gonna try it now and will report back ?
Unsuccessful. Could not add the account. Tried both pin and password.
scissorscrush said:
Unsuccessful. Could not add the account. Tried both pin and password.
Click to expand...
Click to collapse
Sorry to hear that. You can't add an account in-app or you can add it but it does not unlock your computer? Also, are you using a Microsoft account or have you changed you account username sometime in the past?
Andrew-X said:
Sorry to hear that. You can't add an account in-app or you can add it but it does not unlock your computer? Also, are you using a Microsoft account or have you changed you account username sometime in the past?
Click to expand...
Click to collapse
Can't add the account in the app. When I fill the details (account and password) it disappears and I get a notification up top that the command is sent, waiting for computer to reply. But nothing appears in the account list within the app. Using a local account (admin) and no changes in the past 2 years.
scissorscrush said:
Can't add the account in the app. When I fill the details (account and password) it disappears and I get a notification up top that the command is sent, waiting for computer to reply. But nothing appears in the account list within the app. Using a local account (admin) and no changes in the past 2 years.
Click to expand...
Click to collapse
Ok, just to be sure. Is your computer locked (not on the desktop, but on the login screen) when you are trying to add an account?
Edit: oh, yeah. That notification does not affect the adding operation, but it should not appear when adding an account. Thanks for helping me discover a little bug, lol
Andrew-X said:
Ok, just to be sure. Is your computer locked (not on the desktop, but on the login screen) when you are trying to add an account?
Edit: oh, yeah. That notification does not affect the adding operation, but it should not appear when adding an account. Thanks for helping me discover a little bug, lol
Click to expand...
Click to collapse
Lol looks like you got some work to do ?
scissorscrush said:
Lol looks like you got some work to do
Click to expand...
Click to collapse
Already solved it But have you managed to add your account? If not, have you added the firewall exceptions for the LogonUI.exe process? (If you are using something else than Windows Firewall)
Andrew-X said:
Already solved it But have you managed to add your account? If not, have you added the firewall exceptions for the LogonUI.exe process? (If you are using something else than Windows Firewall)
Click to expand...
Click to collapse
Sadly no. The firewall exceptions were created properly. The lock screen was on. No Antivirus on either devices. It might not be a firewall issue because the app was able to communicate with the computer.
Can't find my PC windows 10 in scan. No firewall in the computer, should i enable bluetooth in both devices or what??
spring80 said:
Can't find my PC windows 10 in scan. No firewall in the computer, should i enable bluetooth in both devices or what??
Click to expand...
Click to collapse
It only works on local networks (Wi-Fi/Wired) at the moment, so both your Android device and your computer should be on the same network to communicate with each other.
Also, do you have your computer on it's lockscreen when scanning? (not on dekstop)
Andrew-X said:
It only works on local networks (Wi-Fi/Wired) at the moment, so both your Android device and your computer should be on the same network to communicate with each other.
Also, do you have your computer on it's lockscreen when scanning? (not on dekstop)
Click to expand...
Click to collapse
Yes it is on lockscreen when scanning, i have main firewall in our network, so which port should i open in this firewall??
spring80 said:
Yes it is on lockscreen when scanning, i have main firewall in our network, so which port should i open in this firewall??
Click to expand...
Click to collapse
Open up 4009 on both TCP and UDP and also allow both incoming and outgoing traffic. Tell me if it worked.
When i use home wireless network (no main firewall), it is working, but inside my work network which have main firewall, it is not working. I already open port 4009 (tcp/udp),same result
spring80 said:
When i use home wireless network (no main firewall), it is working, but inside my work network which have main firewall, it is not working. I already open port 4009 (tcp/udp),same result
Click to expand...
Click to collapse
Can you please check what IP's are your computer and your given when connected to your work network?
Glad to see this thread here, OP. Will try this out and cover on XDA ?
working here flawlessly ..
For a first version finding an option to activate the dark mode surprised me. Thank you
Andrew-X said:
Can you please check what IP's are your computer and your given when connected to your work network?
Click to expand...
Click to collapse
The both IPs are in same network, my mobile and my pc, problem from my main network firewall, if i use different network (without firewall), it is working. By the way i am using Kerio control as my main network firewall

Can the work profile have access to my browsing history, device files, etc.?

I was recently admitted to a company, and as an ease of accessing my e-mails and work schedule, the android "work profile" was made available so that I could have access to company information (such as e-mails, calendar, information and others) without having to receive a corporate cell phone.
However, my biggest concern is with the organization's access to my data. My organization that created the work profile, can have access to my browsing history, data on the device (such as photos, application files, etc.), time I spend using my cell phone, contacts, call logs, and other data personal profile?
I have already visited the google instructions page, but I was still unsure because my organization installed some network certificates and the warning "Your organization can monitor network traffic ..."
Another question:
If I leave a work profile app open in the background, and use my personal profile at the same time, can my organization have access to network traffic and consequently my personal information?
All questions, however redundant, are intended to clarify the details of the organization's access to my personal information
From now on, I am immensely grateful for the help and time you spent reading my questions.
You are holding a phone in your hands for which an organization has concluded a data plan contract and is paying for it. They therefore will have a legitimate interest in the network traffic on this device, unless it is a contract for unlimted bandwidth. Network traffic is triggered by apps / services , which can actually be read out: they simply have to install a HTTP/S proxy what is intercepting the HTTP/S traffic on any app housed on the phone.
jwoegerbauer said:
You are holding a phone in your hands for which an organization has concluded a data plan contract and is paying for it. They therefore will have a legitimate interest in the network traffic on this device, unless it is a contract for unlimted bandwidth. Network traffic is triggered by apps / services , which can actually be read out: they simply have to install a HTTP/S proxy what is intercepting the HTTP/S traffic on any app housed on the phone.
Click to expand...
Click to collapse
The phone is mine, and there is no plan
of internet hired by the company.
It's my personal cell phone, and for me to get
view emails and talk to people from
within the organization, I had to enable
the "work profile".
So I had my personal and work profile
on my personal device.
My question is: my company can see
my personal files and my online activity
in the "PERSONAL PROFILE"?
Fred964 said:
The phone is mine, and there is no plan
of internet hired by the company.
It's my personal cell phone, and for me to get
view emails and talk to people from
within the organization, I had to enable
the "work profile".
So I had my personal and work profile
on my personal device.
My question is: my company can see
my personal files and my online activity
in the "PERSONAL PROFILE"?
Click to expand...
Click to collapse
I created a second user on my phone named "Company".
If I do this it asks me if I wan't to turn on phone calls and SMS and then warns that
Call and SMS history will be shared with this user.
Click to expand...
Click to collapse
That makes sense, since I (as the owner) can decide whether or not other users of my phone can access that data.
I tried to access owners files via filemanager from "Company" account. I couldn't see anything.
I tried the same but via adb using a root shell -> I had full access to owners files.
Owner has a VPN active. I tried to access that VPN from within "Company". Didn't work.
Tried to access apps from within "Company" -> no luck.
Checked settings -> some are gone, some aren't. E.g. I can see my paired devices (paired from owner) when I'm in "Company" account.
Soo, to answer your question:
Fred964 said:
My organization that created the work profile, can have access to my browsing history, data on the device (such as photos, application files, etc.), time I spend using my cell phone, contacts, call logs, and other data personal profile?
I have already visited the google instructions page, but I was still unsure because my organization installed some network certificates and the warning "Your organization can monitor network traffic ..."
Click to expand...
Click to collapse
Access to browsing history, data, contacts? No.
Time spend? I don't know but in battery usage settings I can see how much battery has been used by the owner account.
Call logs? Yes, If you accepted that.
Your language? Yes.
About certificates: I don't know excactly what they do (I figured if you turn them off your device cannot connect to the internet anymore if that certificate is needed for that connection attempt) but you can go to Security -> Encryption & credentials -> Trusted credentials and turn them off while your in your personal account.
However: One questions remains: Does the profile your company created somehow differ from the one you can create manually via settings? I don't think so, so above things should be valid.
If that's an option you could also ask your company directly (even though I can understand if you might not want to trust them).

Best way(s) to enable MMS but lock down web (HTTP) over data?

Hello. This is a very naive question, and I wouldn't be surprised if anyone answers "You don't understand (fill-in-the-blank)" (I probably don't!).
We currently have our son on a plan with no mobile data but with SMS. He really wants MMS, but we don't want him to have all-day internet access, no matter where he his. Currently a tool like Family Link can help (I think, but not sure even it can solve the problem), only until he's 13.
Are there any ways, including when rooted, to disable general web access (HTTP) while allowing MMS over a data connection? From what I've gathered, this can't be controlled via APN settings, as general is necessary for data to work at all, and provides web access. I'm pretty sure I could disable MMS and allow web access via APN settings, but what I'd like to do is the opposite.
Note that I'm not trying to block access to the web entirely. I'd still expect it to work over WiFi, and if I wanted to somehow restrict content, that's an entirely other can of worms.
Thanks for any thoughts.
JimDandy68 said:
Hello. This is a very naive question, and I wouldn't be surprised if anyone answers "You don't understand (fill-in-the-blank)" (I probably don't!).
We currently have our son on a plan with no mobile data but with SMS. He really wants MMS, but we don't want him to have all-day internet access, no matter where he his. Currently a tool like Family Link can help (I think, but not sure even it can solve the problem), only until he's 13.
Are there any ways, including when rooted, to disable general web access (HTTP) while allowing MMS over a data connection? From what I've gathered, this can't be controlled via APN settings, as general is necessary for data to work at all, and provides web access. I'm pretty sure I could disable MMS and allow web access via APN settings, but what I'd like to do is the opposite.
Note that I'm not trying to block access to the web entirely. I'd still expect it to work over WiFi, and if I wanted to somehow restrict content, that's an entirely other can of worms.
Thanks for any thoughts.
Click to expand...
Click to collapse
Have a look at AFWall+ firewall. It is basically an iptables front-end for rooted Androids. It is very flexible regarding per app and per access network permissions. Might be what you are looking for. Newly installed apps are also blocked access by default.

Categories

Resources