Cyber security

Flyphish : Mastering Cloud-Based Phishing Simulations For Security Assessments

Flyphish is an Ansible playbook allowing cyber security consultants to deploy a phishing server in the cloud for security assessments.

The playbook installs and configures Gophish, Postfix and OpenDKIM on a virtual machine in the cloud. Additionally, for OPSEC purposes, the playbook removes default IOCs (SMTP headers) from Gophish and Postfix servers configurations.

Install

Requirements

  • Make sure you have a Linux (Debian, Ubuntu or Kali) instance in the cloud (Amazon EC2, Azure VM, Google GCE…) with a public IPv4 address. Install OpenSSH and enable root access with SSH key-based authentication only.
  • Purchase a domain and set it’s DNS records accordingly (A, MX and SPF records must point to your cloud instance’s public IP address).
  • Install Ansible on your own machine :
sudo apt install ansible

Installation Steps

  • Clone the repository
git clone --recursively https://github.com/VirtualSamuraii/flyphish.git
  • Put your cloud instance public IP address in the hosts file.
  • Put your phishing domain in the group_vars/all.yml file.

You’re ready to go !

Usage

  • Run the playbook and wait for your phishing server to be deployed :
ansible-playbook -i hosts playbook.yml
  • Once finished, the playbook displays your DKIM public key. Add this key to your DKIM record in your domain’s DNS zone.

For more information click here.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Best OSINT Tools and Techniques 2026: From Collection to Verification

OSINT is not just about tools. In 2026, the best open-source intelligence work depends on…

11 hours ago

Best Free Open Source OSINT Tools 2026: Create Your Own Recon Lab

Building an OSINT lab does not have to be expensive. In 2026, many of the…

11 hours ago

Apache SSL Certificate Setup: Secure Ubuntu 20.04 with Let’s Encrypt

Website security is no longer optional. An Apache SSL Certificate helps encrypt data exchanged between…

11 hours ago

Nginx Server Blocks: Host Multiple Websites on Ubuntu

Managing multiple websites on a single Linux server becomes much easier with Nginx Server Blocks.…

11 hours ago

Install Gradle Ubuntu: Complete Setup Guide for Developers

Gradle has become one of the most widely used build automation tools in modern software…

11 hours ago

Install Memcached Ubuntu – Fast Caching Setup Guide

Modern web applications often rely on caching to deliver faster response times and reduce database…

12 hours ago