<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: performing-credential-harvesting-analysis
description: >-
  Analyze credential harvesting infrastructure including phishing kits, fake login pages, and token theft mechanisms.
domain: cybersecurity
subdomain: social-engineering
tags:
  - credential-harvesting
  - phishing-kits
  - fake-login
  - token-theft
  - infrastructure-analysis
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1056.003"]
  cwe: ["CWE-522"]
  tools: ["evilginx2", "modlishka", "gophish"]
---

# Performing Credential Harvesting Analysis

## Overview

Analyze credential harvesting infrastructure including phishing kits, fake login pages, and token theft mechanisms.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `evilginx2` | Security tooling |
| `modlishka` | Security tooling |
| `gophish` | Security tooling |
| Isolated lab environment for testing | Environment requirement |
| Authorization and signed Rules of Engagement (RoE) | Environment requirement |
| Relevant target samples or systems acquired through authorized channels | Environment requirement |

## Quick Reference

```bash
# Initialize working environment
mkdir -p /tmp/performing-credential-harvesting-analysis/{output,logs,artifacts}

# Execute primary analysis with evilginx2
echo "[*] Running Performing Credential Harvesting Analysis with evilginx2..."

# Validate results with modlishka
echo "[*] Cross-validating with modlishka..."

# Generate summary report
cat /tmp/performing-credential-harvesting-analysis/output/report.json
```

## Workflow

### Step 1: Preparation and Reconnaissance

```bash
# Identify target and gather initial intelligence
file ./target_sample
evilginx2 --version 2>/dev/null || echo "Install evilginx2"

# Set up working directory
mkdir -p /tmp/performing-credential-harvesting-analysis/{output,logs,artifacts}
```

### Step 2: Primary Analysis

```bash
# Execute primary analysis with evilginx2
# Refer to Quick Reference above for detailed commands
echo "[*] Running Performing Credential Harvesting Analysis with evilginx2..."

# Log all operations
script -q /tmp/performing-credential-harvesting-analysis/logs/session.log
```

### Step 3: Deep Investigation

```bash
# Apply modlishka for secondary analysis
echo "[*] Deep investigation with modlishka..."

# Cross-reference findings
diff /tmp/performing-credential-harvesting-analysis/output/primary.json /tmp/performing-credential-harvesting-analysis/output/secondary.json
```

### Step 4: Documentation and Reporting

```bash
# Generate structured findings report
cat <<'EOF' > /tmp/performing-credential-harvesting-analysis/output/report.json
{
  "technique": "performing-credential-harvesting-analysis",
  "domain": "social-engineering",
  "tools_used": ["evilginx2", "modlishka"],
  "findings": [],
  "recommendations": []
}
EOF
```

## Verification

- [ ] Environment and tools verified and operational
- [ ] Target samples acquired through authorized channels
- [ ] Primary analysis completed with findings documented
- [ ] Secondary validation performed with independent tooling
- [ ] All artifacts preserved in structured output directory
- [ ] Detection opportunities documented for blue team

## References

- [MITRE ATT&CK T1056.003](https://attack.mitre.org/techniques/T1056/003) — Related technique
- [evilginx2 Documentation](https://evilginx2.org/) — Primary tooling
- [modlishka Reference](https://modlishka.org/) — Secondary tooling
