Skip to content
Back to skills

Red Team Phishing Gophis

ASecurity

Automate GoPhish phishing simulation campaigns using the Python gophish library. Creates email templates with

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
securitypythongobashtestingapisecurity

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add Undermybelt/hermes-skills --skill red-team-phishing-gophis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Red Team Phishing Gophis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Red Team Phishing Gophis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/undermybelt-red-team-phishing-gophis/badge)](https://www.skillsdirectory.com/skills/undermybelt-red-team-phishing-gophis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: red-team-phishing-gophis
description: Automate GoPhish phishing simulation campaigns using the Python gophish library. Creates email templates with
  tracking pixels, configures SMTP sending profiles, builds target groups from CSV, launches campaigns, and analyzes results
  including open rates, click rates, and credential submission statistics for security awareness assessment.
domain: cybersecurity
subdomain: security-operations
tags:
- performing
- red
- team
- phishing
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
---


## When to Use

- When conducting security assessments that involve performing red team phishing with gophish
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing

## Prerequisites

- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities

## Instructions

1. Install dependencies: `pip install gophish requests`
2. Deploy GoPhish server and obtain an API key from Settings.
3. Use the Python gophish library to automate campaign setup:
   - Create email templates with HTML body and tracking
   - Configure SMTP sending profiles
   - Import target groups from CSV
   - Create landing pages for credential capture
   - Launch and monitor campaigns
4. Analyze campaign results: opens, clicks, submitted data, reported.

```bash
# For authorized penetration testing and lab environments only
python scripts/agent.py --gophish-url https://localhost:3333 --api-key <key> --campaign-name "Q1 Awareness" --output phishing_report.json
```

## Examples

### Create Campaign via API
```python
from gophish import Gophish
from gophish.models import Campaign, Template, Group, SMTP, Page
api = Gophish("api_key", host="https://localhost:3333", verify=False)  # Self-signed cert on localhost lab
campaign = Campaign(name="Q1 Test", groups=[Group(name="Sales Team")],
    template=Template(name="IT Password Reset"), smtp=SMTP(name="Internal SMTP"),
    page=Page(name="Credential Page"))
api.campaigns.post(campaign)
```

Files in this skill

  • LICENSE11 KB
  • SKILL.md2.3 KB
  • references/api-reference.md1.8 KB
  • scripts/agent.py7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.