# hpperr/chronos_rsw architecture

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

- Interactive diagram: https://gitdiagram.com/hpperr/chronos_rsw
- Repository: https://github.com/hpperr/chronos_rsw

## Overview

CHRONOS_RSW is presented as an all-in-one ransomware program. Its advertised workflow is execution followed by evasion, persistence and propagation, file encryption and key handling, then ransom messaging and C2 synchronization. The repository is a single 69 KB Python file; the excerpt confirms key management, encryption, and C2 behavior, while other capabilities are documented only in the README. The graph preserves those advertised branches without assuming their internal call order.

Main entry points: [`chronos_rsw.py`](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py) (Main program)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Execution and evasion"]
  node_program["Main program<br/>[chronos_rsw.py]"]
  node_evasion["Evasion controls<br/>[chronos_rsw.py]"]
end

subgraph group_impact["Encryption and keys"]
  node_keymanager["Key manager<br/>[chronos_rsw.py]"]
  node_encryptor["File encryption<br/>[chronos_rsw.py]"]
  node_keyfiles["Key artifacts<br/>[chronos_rsw.py]"]
end

subgraph group_spread["Persistence and spread"]
  node_persistence["Persistence methods<br/>[chronos_rsw.py]"]
  node_propagation["Network propagation<br/>[chronos_rsw.py]"]
end

subgraph group_operator["Ransom and C2"]
  node_ransom["Ransom experience<br/>[chronos_rsw.py]"]
  node_c2["C2 channel<br/>[chronos_rsw.py]"]
end

node_user(("Program operator"))
node_c2server["C2 service"]

node_user -->|"runs"| node_program
node_program -->|"advertises"| node_evasion
node_program -->|"advertises"| node_persistence
node_program -->|"advertises"| node_propagation
node_program -->|"advertises"| node_encryptor
node_program -->|"advertises"| node_ransom
node_program -->|"advertises"| node_c2
node_encryptor -->|"creates shards"| node_keymanager
node_encryptor -->|"writes artifacts"| node_keyfiles
node_c2 -->|"posts heartbeat"| node_c2server

click node_program "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_evasion "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_keymanager "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_encryptor "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_keyfiles "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_persistence "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_propagation "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_ransom "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py"
click node_c2 "https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.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_program,node_evasion toneBlue
class node_keymanager,node_encryptor,node_keyfiles toneAmber
class node_persistence,node_propagation toneMint
class node_ransom,node_c2 toneRose
class node_user,node_c2server toneIndigo
```

## Components

### Execution and evasion

- [Main program](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`
- [Evasion controls](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`

### Encryption and keys

- [Key manager](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`
- [File encryption](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`
- [Key artifacts](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`

### Persistence and spread

- [Persistence methods](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`
- [Network propagation](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`

### Ransom and C2

- [Ransom experience](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`
- [C2 channel](https://github.com/hpperr/chronos_rsw/blob/main/chronos_rsw.py): `chronos_rsw.py`

### Other components

- **Program operator**
- **C2 service**

## Connections

- Program operator → Main program: runs (evidence: `README.md`)
- Main program → Evasion controls: advertises (evidence: `README.md`)
- Main program → Persistence methods: advertises (evidence: `README.md`)
- Main program → Network propagation: advertises (evidence: `README.md`)
- Main program → File encryption: advertises (evidence: `README.md`)
- Main program → Ransom experience: advertises (evidence: `README.md`)
- Main program → C2 channel: advertises (evidence: `README.md`)
- File encryption → Key manager: creates shards (evidence: `chronos_rsw.py`)
- File encryption → Key artifacts: writes artifacts (evidence: `chronos_rsw.py`)
- C2 channel → C2 service: posts heartbeat (evidence: `chronos_rsw.py`)
