A modular cybersecurity CLI framework written in Python designed for reconnaissance, scanning, vulnerability analysis, and automated attack chains.
The framework provides:
- π’ Beginner Mode (menu-based)
- π» Advanced Console Mode
- βοΈ Automated Attack Chain Engine
- π§ Intelligence & attack graph generation
- β¨οΈ Professional interactive console
Inspired by penetration testing frameworks such as Metasploit.
Most cybersecurity tools focus on a single capability such as scanning, exploitation, or reconnaissance.
Cyber Framework integrates multiple phases of a penetration testing workflow into a single modular CLI environment, enabling security researchers to simulate realistic attack pipelines.
Key objectives of the framework:
β’ Provide a Metasploit-style learning platform
β’ Demonstrate attack chain automation
β’ Enable modular security tool development
β’ Provide an interactive penetration testing console
This project is designed for:
- Cybersecurity students
- Ethical hackers
- Security researchers
- Developers building offensive security tools
β
Beginner Mode
β
Advanced Console Mode
β
Automatic Module Discovery
β
Automated Attack Chain Engine
β
Real-time Scan Progress
β¨οΈ TAB command auto-completion
π§ Syntax highlighted commands
π Persistent command history
π― Dynamic module prompt
π Reconnaissance modules
π Network scanning modules
πΈ Web vulnerability scanning
β‘ Exploit phase integration
The Intelligence Engine correlates reconnaissance and scanning results to build a structured target profile.
Capabilities include:
β’ Domain information analysis
β’ DNS record intelligence
β’ IP reputation correlation
β’ Attack surface mapping
The intelligence module can be extended to integrate with:
- Threat intelligence feeds
- OSINT databases
- Vulnerability databases
π Attack Graph Generation
π§ Intelligence Engine
π SQLite Scan Database
β± Scan Scheduler
π Distributed scanning support
Cyber Framework follows a modular architecture.
+-------------------+
| main.py |
+---------+---------+
|
v
+--------------+
| Console |
+--------------+
|
v
+-----------+
| Command |
| Parser |
+-----------+
|
+------------+-------------+
| |
v v
+---------------+ +---------------+
| Core Engine | | Modules |
+---------------+ +---------------+
| | | |
| Attack Chain | | Recon |
| Intelligence | | Scan |
| Scheduler | | Web Scan |
| Database | | Exploit |
| Attack Graph | | Discovery |
| Intelligence | | Enumeration |
+---------------+ +---------------+
Detailed architecture available in:
π docs/architecture.md
cyber-framework/
β
|ββ README.md
βββ main.py
βββ requirements.txt
βββ config.json
β
βββ core/
β βββ console.py
β βββ command_parser.py
β βββ module_loader.py
β βββ attack_chain.py
β βββ progress_engine.py
β βββ session_manager.py
β βββ intelligence_engine.py
β βββ attack_graph.py
β βββ database.py
β βββ scheduler.py
| |ββ advanced_console.py
| |ββ console_style.py
| |ββ logger.py
| |ββ man_viewer.py
| |ββ module_info.py
| |ββ os_detection.py
| |ββ output.py
| |ββ pipeline.py
| |ββ report.py
| |ββ syntax_highligher.py
| |ββ tool_detection.py
| |ββ utils.py
β βββ distributed_controller.py
β
βββ modules/
β βββ recon.py
β βββ scan.py
β βββ web_scan.py
β βββ exploit.py
β βββ intelligence.py
β
|ββman/
| |ββ recon.man
| |ββ scan.man
| |ββ web_scan.man
| βββ exploit.man
βββ ui/
β βββ banner.py
β
βββ data/
β βββ scan.db
β βββ command_history.txt
β
βββ docs/
βββ architecture.md
βββ usage.md
Clone repository:
git clone https://github.com/Bhuvaneshkumar1/cyber-framework.git
cd cyber-framework
create virtual environment
python -m venv venv
Install dependencies:
pip install -r requirements.txt
Major dependencies used in this project:
- Python 3.10+
- requests
- rich
- prompt_toolkit
- sqlite3
python main.py
Select mode:
Beginner Mode
Advanced Console
Menu-driven operation.
Example:
Select Mode β Beginner Mode
Target β example.com
Select Operation β Recon / Scan / Web Scan / Exploit / Attack Chain
Cyber Framework can be used for:
- Learning penetration testing workflows
- Practicing reconnaissance and scanning techniques
- Building custom cybersecurity modules
- Demonstrating attack chain automation
- Security research and experimentation
Professional CLI console.
Example:
cyber> show modules
Available Modules
recon
scan
web_scan
exploit
discovery
enumeration
intelligence
Select module:
cyber> use recon
Set target:
cyber(recon)> set target example.com
Run module:
cyber(recon)> run
Cyber Framework follows a modular offensive security philosophy:
- Discover the target surface
- Enumerate services
- Analyze vulnerabilities
- Build an attack path
- Execute exploitation chain
- This approach mirrors real-world penetration testing methodologies.
Runs a full automated pipeline:
Recon
β
Scan
β
Web Scan
β
Exploit
Command:
cyber> set target example.com
cyber> run attack_chain
Cyber Framework generates a logical attack graph representing relationships between discovered assets and vulnerabilities.
Example flow:
Target Domain β Resolved IP β Open Ports β Detected Services β Potential Exploits
This allows researchers to understand:
- Attack paths
- Service exposure
- Exploitation opportunities
| Feature | Description |
|---|---|
| TAB completion | Auto-complete commands |
| Syntax highlighting | Colored commands |
| History persistence | Arrow key navigation |
| Dynamic prompts | cyber(recon)> style |
Example:
cyber(recon)> set target google.com
cyber(recon)> run
Example penetration testing workflow using Cyber Framework.
Step 1 β Start the framework
cyber> show modules
Step 2 β Select reconnaissance module
cyber> use recon
Step 3 β Set target
cyber(recon)> set target example.com
Step 4 β Execute module
cyber(recon)> run
Step 5 β Run full attack chain
cyber> set target example.com
cyber> run attack_chain
| Module | Purpose |
|---|---|
| recon | DNS & domain reconnaissance |
| scan | Network port scanning |
| web_scan | Web vulnerability scanning |
| exploit | Exploitation phase |
| intelligence | Target intelligence gathering |
Framework stores persistent data:
data/scan.db
data/command_history.txt
Additional documentation:
π docs/architecture.md
π docs/usage.md
Common issues and solutions.
Issue: Modules not loading
Solution: Check the modules directory and ensure Python files follow the module structure.
Issue: Command history not saved
Developed as a modular cybersecurity framework for learning and research purposes.
Project metrics:
- Language: Python
- Architecture: Modular CLI Framework
- Database: SQLite
- Interface: Interactive Console
- Modules: Recon, Scan, Web Scan, Exploit, Intelligence
This tool is intended for educational and authorized security testing only.
Do NOT use this tool against systems without permission.
If you find this project useful:
- β Star the repository
- π΄ Fork the project
- π Contribute modules
- π Report issues
Future improvements planned for Cyber Framework:
- Machine learning assisted vulnerability detection
- AI-assisted attack chain planning
- Web dashboard interface
- API based distributed scanning nodes
- Integration with vulnerability scanners
- Automated report generation
MIT License
Cyber Framework demonstrates several advanced engineering concepts:
β’ Modular cybersecurity architecture
β’ Interactive CLI framework design
β’ Automated attack chain orchestration
β’ Distributed scanning capability
β’ Intelligence driven reconnaissance
The project is designed as a research oriented penetration testing framework and learning platform for cybersecurity practitioners.
- Bhuvaneshkumar
