CoolFace
Apppublic

mugdhav/security_auditor_orig

sourceHugging Facemitupdated 8mo agoView on Hugging Face
1likes
App README

๐Ÿ”’ Security Auditor

Comprehensive SAST Platform for Vulnerability Detection

Scan your application code for security vulnerabilities with AI-powered analysis and NIST NVD integration.

โœจ Features

๐Ÿ” Detection Capabilities

  • โ€”28+ Vulnerability Types - SQL Injection, XSS, Command Injection, and more
  • โ€”15+ Programming Languages - Python, JavaScript, Java, PHP, Go, Ruby, C/C++, and more
  • โ€”NIST NVD Integration - Enrich findings with real-world CVE data
  • โ€”Multiple Scan Modes - Local files, remote URLs, GitHub repositories

๐ŸŽฏ Analysis Types

  1. 1.Local Directory Scan - Upload source code files for comprehensive analysis
  2. 2.Remote URL Scan - Test live web applications for security misconfigurations
  3. 3.GitHub Repository Scan - Analyze public or private GitHub repositories

๐Ÿ“Š Vulnerability Categories

  • โ€”Injection Flaws - SQL, Command, LDAP, XXE, Path Traversal
  • โ€”Authentication Issues - Hardcoded credentials, weak hashing, JWT validation
  • โ€”Cryptographic Flaws - Weak algorithms, insecure random, hardcoded keys
  • โ€”Deserialization - Pickle, YAML, ObjectInputStream vulnerabilities
  • โ€”Security Misconfigurations - CORS, SSL/TLS, missing headers
  • โ€”Information Disclosure - Debug mode, sensitive logs, stack traces

๐Ÿš€ How to Use

1. Upload Code (Local Scan)

  • โ€”Upload source code files (.py, .js, .java, .php, etc.)
  • โ€”Multiple files and folders supported
  • โ€”Detects vulnerabilities in real-time

2. Scan Repository (GitHub)

  • โ€”Enter GitHub repository URL
  • โ€”Supports public repositories (private with token)
  • โ€”Automatically clones and analyzes code

3. Test Web App (Remote URL)

  • โ€”Enter live application URL
  • โ€”Checks security headers
  • โ€”Scans for exposed sensitive files

๐Ÿ” Privacy & Security

  • โ€”โœ… Temporary Storage Only - All files deleted after 1 hour
  • โ€”โœ… No Permanent Storage - Code is never saved
  • โ€”โœ… Isolated Sessions - Each scan is completely isolated
  • โ€”โœ… No Logging - Source code content is not logged

๐Ÿ“‹ Report Formats

  • โ€”Interactive HTML - Visual dashboard with severity breakdown
  • โ€”JSON Export - Machine-readable format for CI/CD integration
  • โ€”Text Report - Console-friendly output

โš ๏ธ Usage Guidelines

Only scan code and applications that:

  • โ€”You own or created
  • โ€”You have explicit permission to test
  • โ€”Are part of authorized security assessments

Do not:

  • โ€”Scan third-party applications without permission
  • โ€”Use for unauthorized security testing
  • โ€”Scan production systems without approval

๐Ÿ› ๏ธ Technology Stack

  • โ€”Static Analysis - Pattern-based SAST engine with 28+ detection rules
  • โ€”NVD Integration - Real-time CVE enrichment from NIST database
  • โ€”Web Scanning - HTTP security analysis and exposed file detection
  • โ€”UI Framework - Modern Gradio interface with custom theme

๐Ÿ“š Detected Vulnerabilities

Critical Severity

  • โ€”SQL Injection (CWE-89)
  • โ€”Command Injection (CWE-78)
  • โ€”Insecure Deserialization (CWE-502)

High Severity

  • โ€”Cross-Site Scripting (CWE-79)
  • โ€”Hardcoded Credentials (CWE-798)
  • โ€”Weak Cryptography (CWE-327)

Medium Severity

  • โ€”Path Traversal (CWE-22)
  • โ€”LDAP Injection (CWE-90)
  • โ€”CORS Wildcard (CWE-942)

Low Severity

  • โ€”Debug Mode Enabled (CWE-215)
  • โ€”Sensitive Data in Logs (CWE-532)
  • โ€”Missing Security Headers (CWE-693)

๐ŸŽ“ Educational Purpose

This tool is designed for:

  • โ€”Security education and training
  • โ€”DevSecOps integration
  • โ€”Code review assistance
  • โ€”Vulnerability awareness
  • โ€”Secure coding practices

๐Ÿ“– Documentation

API Reference

Remediation Resources

  • โ€”Each finding includes detailed remediation guidance
  • โ€”Code examples for secure implementations
  • โ€”Framework-specific security best practices

๐Ÿ’ก Pro Tips

  1. 1.Enable NVD Enrichment for CVE correlation (slower but more detailed)
  2. 2.Scan early and often - integrate into development workflow
  3. 3.Review remediation guidance - learn from each finding
  4. 4.Export reports for documentation and tracking
  5. 5.Use GitHub mode for repository-wide analysis

๐Ÿค Support

  • โ€”Report issues: GitHub Issues
  • โ€”Contribute: Pull requests welcome
  • โ€”Documentation: Full guide in repository

๐Ÿ“„ License

MIT License - See LICENSE file for details

โšก Performance

  • โ€”Scan Speed - ~1-2 seconds per 1000 files
  • โ€”Language Support - 15+ programming languages
  • โ€”Detection Rules - 28+ vulnerability patterns
  • โ€”Max Upload - 100MB per session

๐Ÿ”„ Updates

Regular updates include:

  • โ€”New vulnerability detection rules
  • โ€”Enhanced false positive reduction
  • โ€”Additional language support
  • โ€”Performance improvements

๐Ÿ›ก๏ธ Secure your code, protect your users.

Built with โค๏ธ for the security community.