# sruthikr1505/adversary-phishing-lab-macos architecture

> Architecture diagram of the GitHub repository sruthikr1505/adversary-phishing-lab-macos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sruthikr1505/adversary-phishing-lab-macos
- Repository: https://github.com/sruthikr1505/adversary-phishing-lab-macos

## Overview

#### Purpose and Scope
This repository is documentation for a macOS-based, sandboxed phishing-awareness simulation. It describes an operational workflow implemented primarily through external products rather than repository code. The only tracked artifact is [README.md](README.md).

#### Entry Point
[README.md](README.md) is the sole entry point. It provides setup and operating guidance: install GoPhish, connect its SMTP configuration to Mailtrap, create campaign content in GoPhish, run self-targeted simulations, and review results in the GoPhish dashboard.

#### Campaign Design Stage
Campaign inputs are authored inside the GoPhish UI:
- Email templates model common phishing techniques.
- Landing-page templates collect simulated interaction/submission events.
- Target selection is explicitly intended to be controlled and self-directed.

No templates, target lists, GoPhish configuration, or automation scripts are versioned in this repository; [README.md](README.md) defines these as external setup activities.

#### Delivery Boundary: GoPhish to Mailtrap
GoPhish is the campaign orchestration and tracking runtime. It sends campaign emails through Mailtrap SMTP credentials configured on macOS. Mailtrap is the key safety boundary: messages are captured in its sandbox rather than delivered to real recipients. This integration is described in [README.md](README.md).

#### Tracking and Event Collection
GoPhish tracks campaign engagement across the simulated delivery lifecycle:
1. Email delivery and opening.
2. Link clicks to the configured landing page.
3. Form or data-submission events on that page.

These metrics are generated and stored by the external GoPhish deployment, not by files in this repository. [README.md](README.md) identifies opens, clicks, and submissions as the primary measurement outputs.

#### Analysis and Feedback Loop
Operators inspect campaign metrics through the GoPhish dashboard, interpret participant behavior and campaign effectiveness, then feed findings into security-awareness training and policy improvements. The intended control flow is design → sandboxed delivery → engagement tracking → analysis → awareness remediation. Guidance resides in [README.md](README.md).

#### Runtime and Infrastructure
- **Host runtime:** macOS.
- **Campaign platform:** GoPhish, installed and administered externally.
- **Email infrastructure:** Mailtrap SMTP sandbox account and credentials.
- **User interfaces:** GoPhish management/dashboard UI and Mailtrap’s message-capture environment.

The repository contains no deployable application, service, database schema, CI pipeline, or infrastructure-as-code. Its architecture is therefore an external-tool workflow documented by [README.md](README.md).

Main entry points: [`README.md`](https://github.com/sruthikr1505/adversary-phishing-lab-macos/blob/main/README.md) (README.md)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Repository"]
  node_readme["README.md<br/>operational guide<br/>[README.md]"]
end

subgraph group_runtime["External simulation runtime"]
  node_macos["macOS host<br/>host runtime"]
  node_gophish_ui["GoPhish UI<br/>campaign authoring"]
  node_email_templates["Email templates<br/>campaign content"]
  node_landing_pages["Landing-page templates<br/>campaign content"]
  node_target_selection["Controlled targets<br/>campaign audience"]
  node_gophish{{"GoPhish<br/>campaign runtime"}}
  node_mailtrap_smtp["Mailtrap SMTP<br/>sandbox mail relay"]
  node_sandbox_messages["Captured messages<br/>sandboxed delivery"]
  node_engagement_events[("Engagement events<br/>tracking metrics")]
end

subgraph group_outcomes["Analysis and remediation"]
  node_dashboard["GoPhish dashboard<br/>results UI"]
  node_campaign_analysis["Campaign analysis<br/>operator review"]
  node_awareness_remediation["Awareness remediation<br/>training and policy"]
end

node_readme -->|"documents setup"| node_macos
node_readme -->|"guides"| node_gophish_ui
node_readme -->|"documents configuration"| node_mailtrap_smtp
node_macos -->|"hosts"| node_gophish
node_gophish_ui -->|"authors"| node_email_templates
node_gophish_ui -->|"authors"| node_landing_pages
node_gophish_ui -->|"defines"| node_target_selection
node_email_templates -->|"configures"| node_gophish
node_landing_pages -->|"configures"| node_gophish
node_target_selection -->|"scopes campaign"| node_gophish
node_gophish -->|"sends via SMTP"| node_mailtrap_smtp
node_mailtrap_smtp -->|"captures"| node_sandbox_messages
node_gophish -->|"records"| node_engagement_events
node_engagement_events -->|"reported in"| node_dashboard
node_dashboard -->|"reviewed by"| node_campaign_analysis
node_campaign_analysis -->|"informs"| node_awareness_remediation
node_awareness_remediation -.->|"improves future campaigns"| node_gophish_ui

click node_readme "https://github.com/sruthikr1505/adversary-phishing-lab-macos/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_readme toneBlue
class node_macos,node_gophish_ui,node_email_templates,node_landing_pages,node_target_selection,node_gophish,node_mailtrap_smtp,node_sandbox_messages,node_engagement_events toneAmber
class node_dashboard,node_campaign_analysis,node_awareness_remediation toneMint
```

## Components

### Repository

- [README.md](https://github.com/sruthikr1505/adversary-phishing-lab-macos/blob/main/README.md): operational guide · Sole tracked artifact and workflow entry point. · `README.md`

### External simulation runtime

- **macOS host**: host runtime
- **GoPhish UI**: campaign authoring · Creates templates and controlled self-targeted campaigns.
- **Email templates**: campaign content · Models phishing techniques.
- **Landing-page templates**: campaign content · Collects simulated interactions and submissions.
- **Controlled targets**: campaign audience · Self-directed simulation recipients.
- **GoPhish**: campaign runtime · Orchestrates delivery and engagement tracking.
- **Mailtrap SMTP**: sandbox mail relay · Captures messages instead of delivering to real recipients.
- **Captured messages**: sandboxed delivery
- **Engagement events**: tracking metrics · Delivery, opens, clicks, and submissions.

### Analysis and remediation

- **GoPhish dashboard**: results UI
- **Campaign analysis**: operator review · Interprets participant behavior and effectiveness.
- **Awareness remediation**: training and policy · Improves security awareness training and policy.

## Connections

- README.md → macOS host: documents setup
- README.md → GoPhish UI: guides
- README.md → Mailtrap SMTP: documents configuration
- macOS host → GoPhish: hosts
- GoPhish UI → Email templates: authors
- GoPhish UI → Landing-page templates: authors
- GoPhish UI → Controlled targets: defines
- Email templates → GoPhish: configures
- Landing-page templates → GoPhish: configures
- Controlled targets → GoPhish: scopes campaign
- GoPhish → Mailtrap SMTP: sends via SMTP
- Mailtrap SMTP → Captured messages: captures
- GoPhish → Engagement events: records
- Engagement events → GoPhish dashboard: reported in
- GoPhish dashboard → Campaign analysis: reviewed by
- Campaign analysis → Awareness remediation: informs
- Awareness remediation → GoPhish UI: improves future campaigns
