Skip to content

Feat/cli web analysis Added#16

Merged
dinexh merged 4 commits intomainfrom
feat/cli-web-analysis
Jan 10, 2026
Merged

Feat/cli web analysis Added#16
dinexh merged 4 commits intomainfrom
feat/cli-web-analysis

Conversation

@dinexh
Copy link
Owner

@dinexh dinexh commented Jan 10, 2026

This pull request introduces a new CLI command for instant web security analysis, improves the threat analysis logic, and enhances both the CLI and web UI to display detected threats. The changes also refactor and centralize threat detection logic for better maintainability and consistency across the project.

New CLI command and documentation:

  • Added a new standalone CLI command monix-web <url> for instant web security analysis, including script entrypoint, documentation, and usage examples. [1] [2] [3] [4] [5]

Threat analysis logic refactor and improvements:

  • Moved and centralized threat analysis logic (suspicious endpoints, header checks, SSL issues, threat scoring) into analyze_web_security in core/scanners/web.py, ensuring both API and CLI use the same logic. [1] [2] [3] [4]
  • Reduced the set of default ports scanned for improved performance.

CLI enhancements:

  • Implemented run_analysis in cli/commands/web.py for compact terminal display of web analysis results, including threat summary, geo intel, hardening, tech stack, DNS, and detected threats.
  • Updated CLI entrypoint to support both monix web <url> and monix-web <url> usage.

Web and API updates:

  • Updated API endpoint to use the new centralized threat analysis logic and simplified the response documentation. [1] [2]
  • Enhanced the web UI to display detected threat vectors in the results section.

- Refactor URL threat scoring logic into core/scanners/web.py
- Implement rich terminal display for web analysis in cli/commands/web.py
- Update monix web command to support URL analysis
- Add monix-web standalone CLI entry point
- Update API and pyproject.toml dependencies
- Refactored URL analysis logic into core/scanners/web.py for reuse
- Implemented rich-based terminal output for web analysis in cli/commands/web.py
- Added monix-web standalone script entry point
- Updated API to use shared analysis logic
- Switched from complex rich panels to a compact, text-based output
- Matched the style of other CLI commands like monix -t and monix -c
- Reduced visual noise and large borders
@dinexh dinexh self-assigned this Jan 10, 2026
@dinexh dinexh merged commit 54f7848 into main Jan 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant