Skip to content

Latest commit

Β 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Cyber Framework

Cyber Framework Banner

Python Platform License Status Maintained GitHub stars

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.


⭐ Why Cyber Framework

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

πŸš€ Features

Core Framework

βœ… Beginner Mode
βœ… Advanced Console Mode
βœ… Automatic Module Discovery
βœ… Automated Attack Chain Engine
βœ… Real-time Scan Progress

Console Experience

⌨️ TAB command auto-completion
🧠 Syntax highlighted commands
πŸ“œ Persistent command history
🎯 Dynamic module prompt

Security Engine

πŸ” Reconnaissance modules
🌐 Network scanning modules
πŸ•Έ Web vulnerability scanning
⚑ Exploit phase integration

🧠 Intelligence Engine

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

Advanced Capabilities

πŸ“Š Attack Graph Generation
🧠 Intelligence Engine
πŸ—„ SQLite Scan Database
⏱ Scan Scheduler
🌍 Distributed scanning support


πŸ— Architecture

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


πŸ“ Project Structure


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


βš™οΈ Installation

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


πŸ“¦ Dependencies

Major dependencies used in this project:

  • Python 3.10+
  • requests
  • rich
  • prompt_toolkit
  • sqlite3

▢️ Running the Framework


python main.py

Select mode:


Beginner Mode
Advanced Console


🟒 Beginner Mode

Menu-driven operation.

Example:


Select Mode β†’ Beginner Mode
Target β†’ example.com
Select Operation β†’ Recon / Scan / Web Scan / Exploit / Attack Chain


🎯 Use Cases

Cyber Framework can be used for:

  1. Learning penetration testing workflows
  2. Practicing reconnaissance and scanning techniques
  3. Building custom cybersecurity modules
  4. Demonstrating attack chain automation
  5. Security research and experimentation

πŸ’» Advanced Console Mode

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


πŸ” Security Philosophy

Cyber Framework follows a modular offensive security philosophy:

  1. Discover the target surface
  2. Enumerate services
  3. Analyze vulnerabilities
  4. Build an attack path
  5. Execute exploitation chain
  • This approach mirrors real-world penetration testing methodologies.

βš”οΈ Automatic Attack Chain

Runs a full automated pipeline:


Recon
↓
Scan
↓
Web Scan
↓
Exploit

Command:


cyber> set target example.com
cyber> run attack_chain



πŸ“Š Attack Graph Visualization

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

⌨️ Console Features

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 Workflow

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

🧩 Available Modules

Module Purpose
recon DNS & domain reconnaissance
scan Network port scanning
web_scan Web vulnerability scanning
exploit Exploitation phase
intelligence Target intelligence gathering

πŸ’Ύ Data Storage

Framework stores persistent data:


data/scan.db
data/command_history.txt


πŸ“š Documentation

Additional documentation:

πŸ“„ docs/architecture.md
πŸ“„ docs/usage.md


πŸ›  Troubleshooting

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

Solution: Ensure the data/command_history.txt file exist

πŸ§‘β€πŸ’» Author

Developed as a modular cybersecurity framework for learning and research purposes.


πŸ“Š Project Statistics

Project metrics:

  • Language: Python
  • Architecture: Modular CLI Framework
  • Database: SQLite
  • Interface: Interactive Console
  • Modules: Recon, Scan, Web Scan, Exploit, Intelligence

⚠️ Disclaimer

This tool is intended for educational and authorized security testing only.

Do NOT use this tool against systems without permission.


⭐ Support the Project

If you find this project useful:

  • ⭐ Star the repository
  • 🍴 Fork the project
  • πŸ›  Contribute modules
  • 🐞 Report issues

πŸ”§ Planned Features

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

πŸ“œ License

MIT License


πŸ† Project Highlights

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.

πŸ‘¨β€πŸ’» Contributors

  • Bhuvaneshkumar

About

Modular cybersecurity CLI framework with automated attack chains, module discovery, intelligence analysis, and an advanced interactive console.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages