This application allows monitoring outgoing requests over a wireless network in browser in near real-time showing a threat type for each request.
The requests are checked with Google web-risk api for several threat types:
SOCIAL_ENGINEERING- Social engineering targeting any platformMALWARE- Malware targeting any platformUNWANTED_SOFTWARE- Unwanted software targeting any platform
sudo tsharkis used for traffic capture, hence tshark has to be locally installed and given permission to run without requiring a password (e.g. by adding a rule to sudoers):
# /etc/sudoers.d/tshark-no-pass
%admin ALL=(ALL) NOPASSWD: <path-to-tshark-bin>
- Web-risk is set up and the
GOOGLE_APPLICATION_CREDENTIALSenv. variable that points to the json file with the configuration is available - Java(11+)
sbt runwill start the application without packaging- If packaged with
stage: run the startup script in$ ./taget/universal/stage/bin/server - Open
localhost:8080in a browser
- Install Java(11+) and Scala(3.x), e.g. through cs setup
- With
sbtinstalled run in the project root:sbt "clean;fullLinkJS;stage"- this creates the package with all app mappings and executablebash/batscript - Build artifacts are located in
/taget/universal/stage/:
bin/
server <- startup bash script
server.bat <- cmd.exe script
static/ <- static files
lib/
<Dependencies jar files>It's possible to package the app in other formats, e.g.:
sbt "clean;fullLinkJS;packageOsxDmg" - creates /target/universal/monitor-0.1.0.dmg file
Package structure is the same as stage.
See Universal Packager docs for other possible formats.
- To run all the tests:
sbt test - To run only server or client tests:
sbt server/test, orsbt client/test
PhishTank lists verified phishing urls
which can be used to check threat monitoring.
Note that WebRisk might still consider some verified phishing urls as harmless.
- Web-risk is free to use for up to 100k calls per month with the request quota of 6k per minute for
SearchUrisrequests. Please check the links for the up-to-date information on pricing and quotas:
Built with fs2, http4s, cats-effect, and laminar