Skip to content

SecureCodeAnalyzer is a Python tool designed to analyze source code for the OWASP Top 10 vulnerabilities in PHP, Python, Java, and Ruby. It detects common security flaws, such as SQL Injection, XSS, and Broken Authentication, providing solutions and recommendations to improve your code security.

License

Notifications You must be signed in to change notification settings

r3ds3ctor/SecureCodeAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecureCodeAnalyzer

SecureCodeAnalyzer is a Python tool designed to analyze source code for the OWASP Top 10 vulnerabilities in PHP, Python, Java, and Ruby.


Features

✅ Detects OWASP Top 10 vulnerabilities:

  • SQL Injection
  • Cross-Site Scripting (XSS)
  • Insecure Deserialization
  • Broken Authentication
  • Sensitive Data Exposure
  • Security Misconfiguration
  • XML External Entities (XXE)
  • Broken Access Control
  • Using Components with Known Vulnerabilities
  • Insufficient Logging & Monitoring

✅ Supports analysis of:

  • Individual files
  • Entire directories
  • Public GitHub repositories

✅ Generates a detailed HTML report with a full vulnerability summary.


Installation

Clone the repository:

git clone https://github.com/yourusername/SecureCodeAnalyzer.git
cd SecureCodeAnalyzer

Install dependencies:

pip install -r requirements.txt

Usage

Analyze a single file:

python SecureCodeAnalyzer.py --file test.py --language python

Analyze a directory:

python SecureCodeAnalyzer.py --dir /path/to/code --language php

Analyze a public GitHub repository:

python SecureCodeAnalyzer.py --github https://github.com/r3ds3ctor/dict-maker --language python

Generate an HTML report:

python SecureCodeAnalyzer.py --file test.py --language python --output report.html

Display help:

python SecureCodeAnalyzer.py --help

output

Screenshot 2025-03-18 at 8 35 36 PM

Report

Screenshot 2025-03-18 at 8 38 27 PM

Contributing to SecureCodeAnalyzer

We welcome contributions from the community! Here's how you can help:

Reporting Issues

  • If you encounter a bug, please create an issue with a detailed description.
  • Include any error messages and steps to reproduce the issue.

Submitting a Pull Request

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes and test thoroughly.
  4. Create a pull request describing your changes.

Code Style

  • Follow PEP8 for Python code.
  • Ensure proper comments and clear documentation.

Support Development
If you find this tool helpful and would like to support its development:
👉 Buy me a coffee

License

This project is licensed under the MIT License - see the LICENSE file for details.

🔥 Developed by Alexander

About

SecureCodeAnalyzer is a Python tool designed to analyze source code for the OWASP Top 10 vulnerabilities in PHP, Python, Java, and Ruby. It detects common security flaws, such as SQL Injection, XSS, and Broken Authentication, providing solutions and recommendations to improve your code security.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages