CoolFace
Apppublic

Deeps-2005/java-ssl-scanner

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ” SSL/HTTPS Vulnerability Scanner & Auto-Patcher

๐Ÿ“˜ Project Overview

This application is a comprehensive tool designed to enhance the security of Java applications by identifying and automatically patching common SSL/HTTPS vulnerabilities. It provides a user-friendly web interface for developers to analyze their code and apply security fixes effortlessly.

Key Features

  • โ€”Multiple Input Methods: Analyze code by uploading single .java files, pasting code directly into a text area, or uploading a .zip archive containing multiple Java files.
  • โ€”Vulnerability Detection: Scans for a wide range of insecure practices, including:
  • โ€”Improperly configured X509TrustManager and HostnameVerifier.
  • โ€”Use of weak or outdated TLS/SSL protocols (e.g., SSLv3, TLSv1.0).
  • โ€”Inclusion of weak cipher suites.
  • โ€”Hardcoded passwords and sensitive credentials.
  • โ€”Insecure SecureRandom instantiation.
  • โ€”Automated Patching: Offers an "Auto-Patch" feature that modifies the source code to apply security best practices, replacing insecure implementations with robust alternatives.
  • โ€”Detailed Reporting: Provides clear, actionable reports for each detected vulnerability, including severity levels, detailed suggestions, and secure code examples.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Frontend: A responsive web interface built with Streamlit.
  • โ€”Backend: A robust API powered by FastAPI.
  • โ€”Core Analyzer: A static analysis engine written in Java, utilizing the JavaParser library to inspect the Abstract Syntax Tree (AST) of the source code.
  • โ€”Deployment: Containerized with Docker and designed for easy deployment on platforms like Hugging Face Spaces.

This project is intended for educational and illustrative purposes to demonstrate best practices in secure coding and automated code analysis.