A modular reconnaissance and security auditing framework.
Project description
ModuSec v1.0
ModuSec is a lightweight, plugin-based reconnaissance and security auditing framework. Written in Python, it allows developers, security enthusiasts, and students to perform fast, modular scanning on target domains to assess security headers, clickjacking protections, subdomain exposures, Google dork vectors, and IP metadata.
Designed to be beginner-friendly yet highly extensible, ModuSec separates scanning logic into independent plugins managed by an execution engine.
Key Features
- Pluggable Architecture: Completely modular scan design. Adding a new scanning capability is as simple as dropping a Python plugin into the
src/modusec/modules/folder. - Security Headers Audit: Evaluates standard security headers (
HSTS,CSP,X-Frame-Options,X-Content-Type-Options,Referrer-Policy, andPermissions-Policy) with severity recommendations. - Clickjacking Checker: Probes target URLs for frame resistance using both HTTP headers and custom Content-Security-Policy directive parsers.
- Google Dorks Generator: Automatically constructs targeted Google Dork queries across files, administration panels, errors, and indexing directories for deep passive reconnaissance.
- Subdomain Enumeration: Discovers active subdomains using multi-threaded DNS brute force resolving against custom wordlists.
- IP Metadata Resolver: Collects forward and reverse DNS entries, flagging direct server origin exposures.
- Security Hygiene Prober: Audits basic P5 exposures such as robots.txt and security.txt, and validates Secure/HttpOnly flags on cookies.
- CORS/Access-Control Auditor: Evaluates Cross-Origin Resource Sharing rules.
- GraphQL Introspection Scanner: Detects enabled introspection endpoints at /graphql.
- Open Redirect Finder: Probes path-based redirect parameters.
- CRLF Injection Finder: Scans for HTTP response splitting vulnerabilities.
- IDOR Vulnerability Scanner: Probes endpoints for Insecure Direct Object Reference vulnerabilities using parameter tampering, Base64 ID detection, and unauthenticated/cross-user differential check baselines.
- Unified Multi-Format Reporting: Saves scan reports automatically in standard JSON, clean TXT, and professional Markdown (
.md) formats.
Screenshots & UI
(Screenshots will be uploaded here on release)
Interactive Console Mode
ModuSec v1 Main Menu
1. New Scan
2. View Scan Queue
3. Run All Scans
4. View Past Reports
5. List Available Modules
6. Exit
Installation
From PyPI (Recommended)
You can install ModuSec directly from PyPI:
pip install modusec
From Source (For Development)
-
Clone the repository:
git clone https://github.com/idevsec/ModuSec.git cd ModuSec
-
Install in editable mode: Ensure you have Python 3.8+ installed, then run:
pip install -e .
Usage Guide
ModuSec can be executed in three modes: Desktop GUI Application (highly visual), Interactive Terminal Wizard (ideal for terminal users), or Non-Interactive CLI (ideal for scripting and automation).
1. Desktop GUI Application
Launch the visual dark-themed desktop app to configure and run scans graphically:
python -m modusec --gui
(Alternatively, you can run python src/modusec/cli.py --gui)
2. Interactive Terminal Wizard
Run the tool using the package entry point to start the interactive wizard:
python -m modusec --interactive
(Alternatively, you can run python src/modusec/cli.py --interactive)
The wizard will guide you through target entry, module toggles, individual check selections, scope restriction file loading, and scan execution.
3. CLI Automation Mode
Perform rapid single-target or batch file scans directly from your terminal:
- Scan a single domain:
python -m modusec --url example.com
- Scan using selective modules (e.g., security headers and IP exposure only):
python -m modusec --target example.com --modules headers,ip
- Scan multiple targets using a text file:
python -m modusec --file domains.txt
- Specify a custom subdomain wordlist:
python -m modusec -t example.com -m subdomains -w wordlists/custom.txt
- Auto-propagate discovered subdomains:
python -m modusec -t example.com --propagate-subdomains
Architecture Diagram
The diagram below outlines the plugin lifecycle, showing how the ExecutionEngine pulls plugins from the Registry to execute tasks and outputs reports.
graph TD
CLI[User/CLI Input] -->|Target & Module Config| EE[ExecutionEngine]
EE -->|Queries| REG[Module Registry]
REG -->|Dispatches Plugins| H[Headers Plugin]
REG -->|Dispatches Plugins| C[Clickjacking Plugin]
REG -->|Dispatches Plugins| D[Dorks Plugin]
REG -->|Dispatches Plugins| S[Subdomains Plugin]
REG -->|Dispatches Plugins| IP[IP Exposure Plugin]
REG -->|Dispatches Plugins| HYG[Hygiene Plugin]
REG -->|Dispatches Plugins| CORS[CORS Plugin]
REG -->|Dispatches Plugins| GQ[GraphQL Plugin]
REG -->|Dispatches Plugins| OR[Open Redirect Plugin]
REG -->|Dispatches Plugins| CRLF[CRLF Injection Plugin]
H & C & D & S & IP & HYG & CORS & GQ & OR & CRLF -->|Structured Dict Output| EE
EE -->|Aggregated Results| CORR[Correlation Engine]
CORR -->|Computes Risk Rating| EE
EE -->|Dispatches Final Job| REP[Reporter]
REP -->|Generates JSON| R1[Downloads/modusec/output/scan_*.json]
REP -->|Generates TEXT| R2[Downloads/modusec/output/scan_*.txt]
REP -->|Generates Markdown| R3[Downloads/modusec/output/scan_*.md]
Report Examples
All scans generate comprehensive reports saved to the Downloads/modusec/output/ folder by default (or a custom output directory if specified). Below is an example of the newly generated Markdown Report (.md) format:
# ModuSec Scan Report `RF-BB451F`
## Scan Metadata
| Parameter | Details |
|---|---|
| **Scan ID** | `RF-BB451F` |
| **Targets** | httpbin.org |
| **Modules Run** | cors, graphql, open_redirect, crlf_injection |
| **Status** | DONE |
## Overall Risk Rating
**Risk Score:** `2.5 / 10`
**Risk Level:** `MEDIUM`
### Key Findings
- [CORS] Permissive CORS allows arbitrary Origin: https://evil.com
Roadmap & Future Enhancements
- Port Scanning Plugin: Introduce basic TCP/UDP port scanner.
- SSL/TLS Auditing: Add support for cipher suite strength checking and SSL certificate expiration parsing.
- API Endpoint Expose: Enable a web UI/dashboard and REST API client wrapper.
- Concurrent Sub-scanning: Implement fully async operations using
asynciofor DNS bruteforce resolution speedups.
Contributing
Contributions are welcome! If you find bugs, security concerns, or have architectural suggestions:
- Fork this repository.
- Create a feature branch (
git checkout -b feature/amazing-feature). - Commit your changes (
git commit -m 'Add amazing feature'). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
Publishing to PyPI
This project is configured to publish automatically to PyPI via GitHub Actions on new release creation.
One-Time Setup (Trusted Publishing)
- Go to your project's publishing settings on PyPI: pypi.org/manage/account/publishing/
- Register a new pending publisher for the repository:
- PyPI Project Name:
modusec - Owner:
idevsec(or your GitHub organization/username) - Repository Name:
ModuSec - Workflow Name:
publish.yml - Environment Name:
pypi
- PyPI Project Name:
- Save the publisher configuration.
How to Release
- Update the version in
pyproject.toml(e.g.version = "1.0.2") andsrc/modusec/__init__.py. - Commit and push the changes to
main. - Create a new Tag and GitHub Release on the repository.
- The
.github/workflows/publish.ymlGitHub Action will run, build the project, and securely upload the package distributions to PyPI.
Educational Disclaimer
[!WARNING] ModuSec is created strictly for educational, learning, and academic research purposes. Do not use this tool on any networks, domains, or web applications without the explicit authorization of the owner. Unauthorized scanning constitutes a violation of international hacking laws. The developers assume no liability and are not responsible for any misuse, damage, or legal issues caused by this framework.
Credits & Authors
Developed by the R&D Interns at IDevSec:
Maintainers:
- IDevSec
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modusec-1.0.1.tar.gz.
File metadata
- Download URL: modusec-1.0.1.tar.gz
- Upload date:
- Size: 64.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d042acac091e8702068d275082c0d8b4437f3e22bce155a3d5f80497d21a8cd
|
|
| MD5 |
191e32a2eaf381a0083a0f2c8370e9c0
|
|
| BLAKE2b-256 |
73aaa50838fa0722fab65d013559dcb9e118b79374cacc926534bd892ca007ae
|
File details
Details for the file modusec-1.0.1-py3-none-any.whl.
File metadata
- Download URL: modusec-1.0.1-py3-none-any.whl
- Upload date:
- Size: 70.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6dc988be06fb505a667cd0980c584289acede3acde54202278d39336bd12b4
|
|
| MD5 |
9f8949c8f87824c4a3a8814b8049e1d8
|
|
| BLAKE2b-256 |
b4dc875a6ed7e864d12064b66ba54cbacc1078978f6abf90bf0613b31f6977ee
|