Documents
implementation_plan
implementation_plan
Type
External
Status
Published
Created
Feb 27, 2026
Updated
Feb 27, 2026

CipherSwarm Implementation Plan#

This document outlines the phased implementation plan for rebuilding CipherSwarm with FastAPI, SvelteKit, and modern backend architecture. Each phase builds upon the last and ensures a modular, testable, and maintainable system.


Table of Contents#


Implementation Phases#

Phase 1: Core Infrastructure (Completed)#

  • ๐Ÿ‘ค User Model
  • ๐Ÿ“ Project Model
  • ๐Ÿง  OperatingSystem Model
  • ๐Ÿค– Agent Model
  • โš ๏ธ AgentError Model
  • ๐Ÿ’ฅ Attack Model
  • ๐Ÿงพ Task Model

๐Ÿ‘‰ Read Phase 1: Core Infrastructure Setup

Phase 2: API Implementation (In Progress)#

  • ๐Ÿ” Agent API (High Priority)
    • Agent Authentication & Session Management
    • Attack Distribution
  • ๐Ÿง  Web UI API
    • Campaign Management
    • Attack Management
    • Agent Management
    • Resource Browser
    • Hash List Management
    • Crackable Uploads
    • Authentication & Profile
    • UX Utility
    • Live Event Feeds (SSE)
  • โŒจ๏ธ Control API - In Progress

Phase 2 was completed with comprehensive Web UI, including:

  • Web UI API (/api/v1/web/*): Complete REST API supporting the SvelteKit frontend with authentication, campaign/attack management, agent monitoring, resource handling, hash list management, and real-time SSE event feeds
  • Supporting Infrastructure: Hash guessing service, keyspace estimation algorithms, caching layer, and comprehensive validation
  • Advanced Features: Ephemeral resources, attack templates, crackable file uploads, and live event broadcasting

๐Ÿ‘‰ Read Phase 2: API Implementation

Phase 2b: Resource Management (Completed)#

  • Add minio-py support to project
  • Add MinioContainer testcontainers support for integration tests
  • Add StorageService to handle MinIO operations
  • Migrate resource_service to use StorageService
  • Develop full suite of tests for StorageService
  • Develop full suite of tests for resource_service
  • Finalize Resource Management API and implement all endpoints

Phase 2b was fully completed and tested, allowing file-backed resources to be supported via the MinIO object storage.

๐Ÿ‘‰ Read Phase 2b: Resource Management

Phase 3: Web UI Development#

๐Ÿ‘‰ Read Phase 3: Web UI Development

Phase 4: Containerization and Deployment#

๐Ÿ‘‰ Read Phase 4: Containerization and Deployment

Phase 5: Task Distribution System#

๐Ÿ‘‰ Read Phase 5: Task Distribution System

Phase 6: Monitoring, Testing and Documentation#

๐Ÿ‘‰ Read Phase 6: Monitoring, Testing, Documentation

Phase 7: TUI Development#

๐Ÿ‘‰ Read Phase 7: TUI Development


Notes#

  • Much of this implementation plan is written with Python terms and references. Use these as references to help with the implementation, but the implementation is written in Ruby.
  • Core Algorithm Implementation Guide
  • Phase 4 was moved up to phase 2b to allow for the resource management to be completed before the web UI is fully implemented. There's currently a TODO to reshuffle the phases to reflect this, but just move to 5 after 3 is completed.
  • As items in the various phases are completed, they are rolled up and added to this overview document.