# johnnhrjejr/mikai architecture

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

- Interactive diagram: https://gitdiagram.com/johnnhrjejr/mikai
- Repository: https://github.com/johnnhrjejr/mikai

## Overview

This repository is security documentation about Coges MyKey vulnerabilities, not an inspectable application source tree. The README describes NFC reading, stored credit data, cloning, and checksum-bypass credit modification. The ZIP and FAP files are opaque in the provided tree, so their contents and relationships cannot be established.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_documented_system["Documented System"]
  node_mykey["MyKey Key"]
  node_chip["ST25TB04K Chip"]
  node_eeprom[("Encrypted EEPROM")]
  node_blank_tag["Blank NFC Tag"]
  node_vending["Vending Machine"]
end

subgraph group_research["Security Research"]
  node_flipper["Flipper Zero"]
  node_guide["Security Documentation<br/>[README.md]"]
end

node_researcher(("Researcher"))

node_researcher -->|"uses"| node_flipper
node_flipper -->|"reads data"| node_mykey
node_mykey -->|"uses"| node_chip
node_chip -->|"stores credits"| node_eeprom
node_flipper -->|"clones key"| node_blank_tag
node_researcher -->|"modifies credits"| node_mykey
node_mykey -->|"supports payments"| node_vending

click node_guide "https://github.com/johnnhrjejr/mikai/blob/main/README.md"

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_mykey,node_chip,node_eeprom,node_blank_tag,node_vending toneBlue
class node_flipper,node_guide toneAmber
class node_researcher toneIndigo
```

## Components

### Documented System

- **MyKey Key**
- **ST25TB04K Chip**
- **Encrypted EEPROM**
- **Blank NFC Tag**
- **Vending Machine**

### Security Research

- **Flipper Zero**
- [Security Documentation](https://github.com/johnnhrjejr/mikai/blob/main/README.md): `README.md`

### Other components

- **Researcher**

## Connections

- Researcher → Flipper Zero: uses (evidence: `README.md`)
- Flipper Zero → MyKey Key: reads data (evidence: `README.md`)
- MyKey Key → ST25TB04K Chip: uses (evidence: `README.md`)
- ST25TB04K Chip → Encrypted EEPROM: stores credits (evidence: `README.md`)
- Flipper Zero → Blank NFC Tag: clones key (evidence: `README.md`)
- Researcher → MyKey Key: modifies credits (evidence: `README.md`)
- MyKey Key → Vending Machine: supports payments (evidence: `README.md`)
