# gavrigg/homemade-soc architecture

> Architecture diagram of the GitHub repository gavrigg/homemade-soc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gavrigg/homemade-soc
- Repository: https://github.com/gavrigg/homemade-soc

## Overview

##### Main Components
- Documentation (/docs): This section contains daily logs, progress updates, and detailed configuration guides that act as the “knowledge base” of the project.
- Setup Guides (/setup): Includes installation and configuration instructions that essentially serve as the blueprint for replicating the SOC lab environment.
- Automation and Utilities (/scripts): Contains custom scripts and tools that help automate tasks such as threat detection and log analysis.
- Resources (/resources): Serves as a repository for external materials—articles, best practices, tool overviews (such as Wazuh), and additional links to cybersecurity materials.
- External Tools and Services: Although not directly in the repository, the README indicates configurations for SIEM tools, IDS/IPS systems, and log management tools that should be represented as external components.

##### Relationships and Interactions
- Dependency on External Tools: Include external components like SIEM systems, IDS/IPS services, and log management tools. Connect these to the setup guides and scripts to demonstrate that these guides lead to the configuration and use of these tools.
- Integration: Illustrate that the resources section supports both the experimental and the setup phases by offering best practices and additional contextual materials for cybersecurity operations.

##### Architectural Patterns and Design Principles
- Reusability and Extensibility: Indicate any points where the provided scripts or guides could be extended or modified, such as areas that invite community contributions.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Repository Modules"
        DOC["Documentation (docs)"]:::docs
        DOC1["Daily update.md"]:::docfile
        DOC2["README.md (doc)"]:::docfile
        SET["Setup Guides (setup)"]:::setup
        SET1["Setup.md"]:::setupfile
        AUT["Automation Scripts (scripts)"]:::scripts
        AUT1["Scripts.md"]:::scriptfile
        RES["Resources (resources)"]:::resources
        RES1["README.md (resources)"]:::resfile
        RES2["Wazuh.md"]:::resfile
    end

    subgraph "External Tools"
        SIEM["SIEM System"]:::external
        IDS["IDS/IPS"]:::external
        LOG["Log Management"]:::external
    end

    DOC -->|"informs"| SET
    SET -->|"triggers"| AUT
    RES -->|"supports"| DOC
    RES -->|"supports"| SET
    SET -->|"configures"| SIEM
    SET -->|"configures"| IDS
    AUT -->|"integratesWith"| LOG

    click DOC "https://github.com/gavrigg/homemade-soc/tree/main/docs/"
    click DOC1 "https://github.com/gavrigg/homemade-soc/blob/main/docs/Daily update.md"
    click DOC2 "https://github.com/gavrigg/homemade-soc/blob/main/docs/README.md"
    click SET "https://github.com/gavrigg/homemade-soc/tree/main/setup/"
    click SET1 "https://github.com/gavrigg/homemade-soc/blob/main/setup/Setup.md"
    click AUT "https://github.com/gavrigg/homemade-soc/tree/main/scripts/"
    click AUT1 "https://github.com/gavrigg/homemade-soc/blob/main/scripts/Scripts.md"
    click RES "https://github.com/gavrigg/homemade-soc/tree/main/resources/"
    click RES1 "https://github.com/gavrigg/homemade-soc/blob/main/resources/README.md"
    click RES2 "https://github.com/gavrigg/homemade-soc/blob/main/resources/Wazuh.md"

    classDef docs fill:#cce5ff,stroke:#004085,stroke-width:2px;
    classDef docfile fill:#e2ecff,stroke:#004085,stroke-width:1px;
    classDef setup fill:#d4edda,stroke:#155724,stroke-width:2px;
    classDef setupfile fill:#e9f7ef,stroke:#155724,stroke-width:1px;
    classDef scripts fill:#fff3cd,stroke:#856404,stroke-width:2px;
    classDef scriptfile fill:#fff9e6,stroke:#856404,stroke-width:1px;
    classDef resources fill:#d1ecf1,stroke:#0c5460,stroke-width:2px;
    classDef resfile fill:#e3f6fa,stroke:#0c5460,stroke-width:1px;
    classDef external fill:#f8d7da,stroke:#721c24,stroke-width:2px;
```
