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. - Responsive Desktop GUI: Fully adaptive Tkinter-based dark-themed desktop interface that scales to any screen size, with automatic side-by-side to stacked layout switching at narrow widths, scrollable config panels, and screen-proportional window sizing.
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)
The GUI features a fully responsive layout that adapts to any screen size:
- Wide screens (≥700px): Side-by-side layout with config panel on the left and live console on the right.
- Narrow screens (<700px): Automatically stacks panels vertically for comfortable use.
- Scrollable panels: Both the Welcome screen and the config panel are scrollable, ensuring all controls are accessible on any display.
- Screen-proportional sizing: The window opens at 85% of your screen size with enforced minimum dimensions.
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
Credits & Authors
Developed by the R&D Interns at IDevSec:
Mentor:
Maintainers:
Metadata
Release files for modusec 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modusec-1.0.6.tar.gz | 65.9 kB | With provenance | Details for modusec-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modusec-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for modusec-1.0.6-py3-none-any.whl |
Total release size: 137.7 kB
Release files / modusec-1.0.6.tar.gz
| Download URL | modusec-1.0.6.tar.gz |
|---|---|
| Size | 65.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4c9485cbafe72c2d835665b301ea616644aba54ca361b32f8d1e8fc0f4424bd
|
|
BLAKE2b-256 checksum How to use checksums |
d38cd37c52c7f93335a82117c038f7b8190d1c1ca39eb391b936e9df22a9edab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logRelease files / modusec-1.0.6-py3-none-any.whl
| Download URL | modusec-1.0.6-py3-none-any.whl |
|---|---|
| Size | 71.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dac994af555dbc86ba82746cd5a7122047ee7b6ffe34e0f420382f0c5c6a593
|
|
BLAKE2b-256 checksum How to use checksums |
b115f2f016a5a67d5db5bdb2f3872cc3be2ea96e231ae66cc816c65db3edfdbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logSecurity for modusec 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for modusec-1.0.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.