# abishekvijay05/icube architecture

> Architecture diagram of the GitHub repository abishekvijay05/icube, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abishekvijay05/icube
- Repository: https://github.com/abishekvijay05/icube

## Overview

Zero Leaks is a web and standalone secure data-wiping product. Its principal workflow is user authentication and target selection, followed by wiping and certificate generation, with independent certificate verification. The graph also preserves the documented security oversight, hardware-erasure, disk-analysis, offline, and chatbot capabilities. Edges are limited to calls or relationships visible in excerpts, SOURCE INDEX references, or the README; unsampled implementation details are not inferred.

Main entry points: [`app.py`](https://github.com/abishekvijay05/icube/blob/main/app.py) (Web workflows), [`standalone.py`](https://github.com/abishekvijay05/icube/blob/main/standalone.py) (Air-gapped workflow), [`verification_system.py`](https://github.com/abishekvijay05/icube/blob/main/verification_system.py) (Certificate verification), [`offline_handler.py`](https://github.com/abishekvijay05/icube/blob/main/offline_handler.py) (Offline operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Application"]
  node_webapp["Web workflows<br/>[app.py]"]
  node_webui["Web interface"]
  node_security["Security controls<br/>[security_utils.py]"]
end

subgraph group_wipe["Wiping and Analysis"]
  node_wiper["File and disk wiping<br/>[fast_wipe.py]"]
  node_firmware["Firmware erasure<br/>[firmware_wiper.py]"]
  node_hpa["HPA/DCO handling<br/>[hpa_dco_handler.py]"]
  node_analyzer["Disk health analysis<br/>[smart_analyzer.py]"]
end

subgraph group_trust["Certificates and Trust"]
  node_certgen["Certificate generation"]
  node_verify["Certificate verification"]
  node_verifydb[("Verification records<br/>[verification.db]")]
end

subgraph group_support["Offline and Assistance"]
  node_offline["Offline operations<br/>[offline_handler.py]"]
  node_standalone["Air-gapped workflow<br/>[standalone.py]"]
  node_chatbotai["AI chatbot<br/>[chatbot_ai.py]"]
  node_chatbot["Gemini chat client<br/>[chatbot.py]"]
end

node_user(("Operator"))
node_sms["SMS 2FA provider"]
node_gemini["Google Gemini"]

node_user -->|"uses"| node_webapp
node_webapp -.->|"serves"| node_webui
node_webapp -->|"uses"| node_security
node_webapp -->|"invokes"| node_wiper
node_webapp -->|"generates"| node_certgen
node_webapp -->|"routes verification"| node_verify
node_webapp -->|"uses"| node_chatbotai
node_webapp -->|"references"| node_chatbot
node_webapp -.->|"sends OTP"| node_sms
node_verify -->|"reads and writes"| node_verifydb
node_standalone -->|"uses"| node_offline
node_offline -->|"generates"| node_certgen
node_standalone -->|"uses"| node_hpa
node_standalone -->|"uses"| node_firmware
node_standalone -->|"uses"| node_analyzer
node_chatbotai -->|"requests responses"| node_gemini
node_chatbot -->|"requests responses"| node_gemini

click node_webapp "https://github.com/abishekvijay05/icube/blob/main/app.py"
click node_webui "https://github.com/abishekvijay05/icube/tree/main/templates"
click node_security "https://github.com/abishekvijay05/icube/blob/main/security_utils.py"
click node_wiper "https://github.com/abishekvijay05/icube/blob/main/fast_wipe.py"
click node_firmware "https://github.com/abishekvijay05/icube/blob/main/firmware_wiper.py"
click node_hpa "https://github.com/abishekvijay05/icube/blob/main/hpa_dco_handler.py"
click node_analyzer "https://github.com/abishekvijay05/icube/blob/main/smart_analyzer.py"
click node_certgen "https://github.com/abishekvijay05/icube/blob/main/generate_certificate.py"
click node_verify "https://github.com/abishekvijay05/icube/blob/main/verification_system.py"
click node_verifydb "https://github.com/abishekvijay05/icube/blob/main/verification.db"
click node_offline "https://github.com/abishekvijay05/icube/blob/main/offline_handler.py"
click node_standalone "https://github.com/abishekvijay05/icube/blob/main/standalone.py"
click node_chatbotai "https://github.com/abishekvijay05/icube/blob/main/chatbot_ai.py"
click node_chatbot "https://github.com/abishekvijay05/icube/blob/main/chatbot.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webapp,node_webui,node_security toneBlue
class node_wiper,node_firmware,node_hpa,node_analyzer toneAmber
class node_certgen,node_verify,node_verifydb toneMint
class node_offline,node_standalone,node_chatbotai,node_chatbot toneRose
class node_user,node_sms,node_gemini toneIndigo
```

## Components

### Web Application

- [Web workflows](https://github.com/abishekvijay05/icube/blob/main/app.py): `app.py`
- [Web interface](https://github.com/abishekvijay05/icube/tree/main/templates): `templates`
- [Security controls](https://github.com/abishekvijay05/icube/blob/main/security_utils.py): `security_utils.py`

### Wiping and Analysis

- [File and disk wiping](https://github.com/abishekvijay05/icube/blob/main/fast_wipe.py): `fast_wipe.py`
- [Firmware erasure](https://github.com/abishekvijay05/icube/blob/main/firmware_wiper.py): `firmware_wiper.py`
- [HPA/DCO handling](https://github.com/abishekvijay05/icube/blob/main/hpa_dco_handler.py): `hpa_dco_handler.py`
- [Disk health analysis](https://github.com/abishekvijay05/icube/blob/main/smart_analyzer.py): `smart_analyzer.py`

### Certificates and Trust

- [Certificate generation](https://github.com/abishekvijay05/icube/blob/main/generate_certificate.py): `generate_certificate.py`
- [Certificate verification](https://github.com/abishekvijay05/icube/blob/main/verification_system.py): `verification_system.py`
- [Verification records](https://github.com/abishekvijay05/icube/blob/main/verification.db): `verification.db`

### Offline and Assistance

- [Offline operations](https://github.com/abishekvijay05/icube/blob/main/offline_handler.py): `offline_handler.py`
- [Air-gapped workflow](https://github.com/abishekvijay05/icube/blob/main/standalone.py): `standalone.py`
- [AI chatbot](https://github.com/abishekvijay05/icube/blob/main/chatbot_ai.py): `chatbot_ai.py`
- [Gemini chat client](https://github.com/abishekvijay05/icube/blob/main/chatbot.py): `chatbot.py`

### Other components

- **Operator**
- **SMS 2FA provider**
- **Google Gemini**

## Connections

- Operator → Web workflows: uses (evidence: `README.md`)
- Web workflows → Web interface: serves
- Web workflows → Security controls: uses (evidence: `app.py`)
- Web workflows → File and disk wiping: invokes (evidence: `app.py`)
- Web workflows → Certificate generation: generates (evidence: `app.py`)
- Web workflows → Certificate verification: routes verification (evidence: `app.py`)
- Web workflows → AI chatbot: uses (evidence: `app.py`)
- Web workflows → Gemini chat client: references (evidence: `app.py`)
- Web workflows → SMS 2FA provider: sends OTP (evidence: `README.md`)
- Certificate verification → Verification records: reads and writes (evidence: `verification_system.py`)
- Air-gapped workflow → Offline operations: uses (evidence: `standalone.py`)
- Offline operations → Certificate generation: generates (evidence: `offline_handler.py`)
- Air-gapped workflow → HPA/DCO handling: uses (evidence: `standalone.py`)
- Air-gapped workflow → Firmware erasure: uses (evidence: `standalone.py`)
- Air-gapped workflow → Disk health analysis: uses (evidence: `standalone.py`)
- AI chatbot → Google Gemini: requests responses (evidence: `chatbot_ai.py`)
- Gemini chat client → Google Gemini: requests responses (evidence: `chatbot.py`)
