Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/skamaniak/ssl-decryption

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/skamaniak/ssl-decryption

  • v0.0.0-20200816183922-cc35498125e6
  • Source
  • Go
  • Socket score

Version published
Created
Source

SSL Decryption/Spoofing

The app is able to decrypt SSL and spoof the remote site certificate. It acts as a MITM (sitting between client and remote server) decrypting HTTPS communication on-the-fly without a client spotting any difference.

Disclaimer

This app was build solely for educational purposes. I did that to learn how the SSL encryption can be done. Author doesn't take any responsibility for misuse of this project.

Prerequisites

  • Client must have the self-signed CA cert installed in Chrome/system
  • Client must have set the transparent (system/browser) proxy pointing at this app

Details

  • See conf/configuration.go for configuration options
  • In default the transparent proxy runs on 0.0.0.0:8080
  • In default the internal web server for SSL spoofing runs on 0.0.0.0:8443

Setup

Generate certification authority (https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/)

  1. openssl genrsa -des3 -out myCA.key 2048
  2. openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1825 -out myCA.pem
  3. Configure the app to use these generated key and cert
  4. Run the app
  5. Import the myCA.pem into Chrome under Trusted Root Certification Authorities (windows) or into the key-chain (Mac) - More details can be found here
  6. Setup the HTTPS proxy (e.g. using SwitchyOmega)
  7. Test going to an HTTPS site and check the certificate details. They should resemble what is in crypto/spoof.go#spoofCertificate

How do I find if it's working?

  • HTTPS pages render fine in the chrome browser (no security warning)
  • After clicking the small lock icon next to the domain in the address bar and selecting Certificate option you should see the spoofed cert
  • Logs of the app should show connections going through

Sources used during the implementation

FAQs

Package last updated on 16 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc