# sygnialabs/evilginx3 architecture

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

- Interactive diagram: https://gitdiagram.com/sygnialabs/evilginx3
- Repository: https://github.com/sygnialabs/evilginx3

## Overview

Evilginx is a standalone reverse-proxy phishing framework; its README describes credential and session-cookie capture intended to bypass multi-factor authentication. This map stays at a high level: startup, configuration, network services, and persistence, without detailing capture or evasion mechanics. Relationships are limited to those shown in the excerpts or SOURCE INDEX; unsampled implementation details are not inferred.

Main entry points: [`main.go`](https://github.com/sygnialabs/evilginx3/blob/master/main.go) (Application startup), [`core/http_proxy.go`](https://github.com/sygnialabs/evilginx3/blob/master/core/http_proxy.go) (HTTPS proxy), [`core/terminal.go`](https://github.com/sygnialabs/evilginx3/blob/master/core/terminal.go) (Command terminal), [`database/database.go`](https://github.com/sygnialabs/evilginx3/blob/master/database/database.go) (Persistent database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and control"]
  node_main["Application startup<br/>[main.go]"]
  node_terminal["Command terminal<br/>[terminal.go]"]
end

subgraph group_network["Network services"]
  node_proxy["HTTPS proxy<br/>[http_proxy.go]"]
  node_dns["DNS service<br/>[nameserver.go]"]
  node_certs["Certificate manager<br/>[certdb.go]"]
  node_http["HTTP service<br/>[http_server.go]"]
end

subgraph group_state["Configuration and state"]
  node_config["Runtime configuration<br/>[config.go]"]
  node_phishlets["Phishlet definitions<br/>[phishlet.go]"]
  node_blacklist["IP blacklist<br/>[blacklist.go]"]
  node_sessions["Session state<br/>[session.go]"]
  node_database[("Persistent database<br/>[database.go]")]
end

node_operator(("Operator"))
node_browser(("Browser traffic"))
node_upstream(("Upstream websites"))

node_operator -->|"starts"| node_main
node_main -->|"initializes"| node_config
node_main -->|"opens"| node_database
node_main -->|"loads"| node_blacklist
node_main -->|"loads"| node_phishlets
node_main -->|"starts"| node_dns
node_main -->|"creates"| node_certs
node_main -->|"starts"| node_proxy
node_main -->|"creates"| node_terminal
node_terminal -->|"manages"| node_config
node_terminal -->|"controls"| node_proxy
node_terminal -->|"uses"| node_database
node_browser -.->|"sends traffic"| node_proxy
node_proxy -.->|"proxies traffic"| node_upstream
node_proxy -->|"uses"| node_database
node_proxy -.->|"checks addresses"| node_blacklist
node_proxy -.->|"tracks sessions"| node_sessions
node_certs -->|"uses"| node_dns

click node_main "https://github.com/sygnialabs/evilginx3/blob/master/main.go"
click node_terminal "https://github.com/sygnialabs/evilginx3/blob/master/core/terminal.go"
click node_config "https://github.com/sygnialabs/evilginx3/blob/master/core/config.go"
click node_phishlets "https://github.com/sygnialabs/evilginx3/blob/master/core/phishlet.go"
click node_proxy "https://github.com/sygnialabs/evilginx3/blob/master/core/http_proxy.go"
click node_dns "https://github.com/sygnialabs/evilginx3/blob/master/core/nameserver.go"
click node_certs "https://github.com/sygnialabs/evilginx3/blob/master/core/certdb.go"
click node_http "https://github.com/sygnialabs/evilginx3/blob/master/core/http_server.go"
click node_blacklist "https://github.com/sygnialabs/evilginx3/blob/master/core/blacklist.go"
click node_sessions "https://github.com/sygnialabs/evilginx3/blob/master/core/session.go"
click node_database "https://github.com/sygnialabs/evilginx3/blob/master/database/database.go"

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_main,node_terminal,node_browser toneBlue
class node_proxy,node_dns,node_certs,node_http toneAmber
class node_config,node_phishlets,node_blacklist,node_sessions,node_database toneMint
class node_operator,node_upstream toneIndigo
```

## Components

### Startup and control

- [Application startup](https://github.com/sygnialabs/evilginx3/blob/master/main.go): `main.go`
- [Command terminal](https://github.com/sygnialabs/evilginx3/blob/master/core/terminal.go): `core/terminal.go`

### Network services

- [HTTPS proxy](https://github.com/sygnialabs/evilginx3/blob/master/core/http_proxy.go): `core/http_proxy.go`
- [DNS service](https://github.com/sygnialabs/evilginx3/blob/master/core/nameserver.go): `core/nameserver.go`
- [Certificate manager](https://github.com/sygnialabs/evilginx3/blob/master/core/certdb.go): `core/certdb.go`
- [HTTP service](https://github.com/sygnialabs/evilginx3/blob/master/core/http_server.go): `core/http_server.go`

### Configuration and state

- [Runtime configuration](https://github.com/sygnialabs/evilginx3/blob/master/core/config.go): `core/config.go`
- [Phishlet definitions](https://github.com/sygnialabs/evilginx3/blob/master/core/phishlet.go): `core/phishlet.go`
- [IP blacklist](https://github.com/sygnialabs/evilginx3/blob/master/core/blacklist.go): `core/blacklist.go`
- [Session state](https://github.com/sygnialabs/evilginx3/blob/master/core/session.go): `core/session.go`
- [Persistent database](https://github.com/sygnialabs/evilginx3/blob/master/database/database.go): `database/database.go`

### Other components

- **Operator**
- **Browser traffic**
- **Upstream websites**

## Connections

- Operator → Application startup: starts (evidence: `main.go`)
- Application startup → Runtime configuration: initializes (evidence: `main.go`)
- Application startup → Persistent database: opens (evidence: `main.go`)
- Application startup → IP blacklist: loads (evidence: `main.go`)
- Application startup → Phishlet definitions: loads (evidence: `main.go`)
- Application startup → DNS service: starts (evidence: `main.go`)
- Application startup → Certificate manager: creates (evidence: `main.go`)
- Application startup → HTTPS proxy: starts (evidence: `main.go`)
- Application startup → Command terminal: creates (evidence: `main.go`)
- Command terminal → Runtime configuration: manages (evidence: `core/terminal.go`)
- Command terminal → HTTPS proxy: controls (evidence: `core/terminal.go`)
- Command terminal → Persistent database: uses (evidence: `core/terminal.go`)
- Browser traffic → HTTPS proxy: sends traffic (evidence: `README.md`)
- HTTPS proxy → Upstream websites: proxies traffic (evidence: `README.md`)
- HTTPS proxy → Persistent database: uses (evidence: `core/http_proxy.go`)
- HTTPS proxy → IP blacklist: checks addresses
- HTTPS proxy → Session state: tracks sessions
- Certificate manager → DNS service: uses (evidence: `core/certdb.go`)
