prototype for an auxiliary app that help testing leak detection - #11
Open
WingOfFlame wants to merge 6 commits into
Open
WingOfFlame wants to merge 6 commits into
WingOfFlame wants to merge 6 commits into
Conversation
Intended to be able to generate data leak to be caught by PrivacyGuard
Run server on own machine and let leakSimulator send to our own server. - leaksimulator/src/TCPServer.java is the server code - leaksimulator/src/main/java/com/justinhu/leaksimulator/TCPClient.java is the client code - remember to change the IP in client accordingly
* 'master' of https://github.com/cryspuwaterloo/privacyguard: Setting up framework for app preferences. Removing error prone function until we decide on implementation details. Avoid database reset on new month because this causes leaks to still show in the app summary view but not show in the app leakages details view. Also, fail gracefully in error case to avoid crashing. Renaming for clarity. Removing the loading view and adding a loading indicator so that the app stays interactive while the VPN is starting up. Final UI improvements. Removed the toggle widget and added a Floating Action Button with on/off indicators. Put other features in the options menu to make room for displaying leakage information. Made custom theme to match Privacy Guard app icon colors. Fixed some bugs along the way. Moving buttons to Options Menu Adding location of API key to README.md Taking card of edge case where user closes app while VPN is starting and reopens the app before the VPN is running. Cleaning up a bit. Fixing crashes and unresponsiveness in the MainActivity. Fixing app icon bug where view is reused. Fixing Google Maps API key and adding zoom functionality. additional try-catch block to prevent unexpected crash commented URL recording feature export data feature keywords detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LeakSimulator is a helper app that fetches various sensitive data from device and send to a server that we control. By manually triggering a leak with predetermined contents, we can test the reliability of PrivacyGuard easily, comparing to using other apps that are 'expected' to leak information. I first wanted to send packet to a localhost server but apparently the packet does not go through VPN, so I ended up with sending to a server on a different machine(my laptop) in the LAN.
The code currently only presents a proof of concept and sends out location data.
If this approach is deemed practical, please continue to expand on it.