Skip to content

prototype for an auxiliary app that help testing leak detection - #11

Open
WingOfFlame wants to merge 6 commits into
cryspuwaterloo:masterfrom
WingOfFlame:master
Open

WingOfFlame wants to merge 6 commits into
cryspuwaterloo:masterfrom
WingOfFlame:master

Conversation

@WingOfFlame

Copy link
Copy Markdown

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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant