<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: cracking-mysql-password-hashes
description: >-
  Crack MySQL password hashes including mysql_native_password and caching_sha2_password authentication plugins.
domain: cybersecurity
subdomain: password-cracking
tags:
  - mysql
  - database-hashes
  - native-password
  - sha2-password
  - authentication
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1110"]
  cwe: ["CWE-916"]
  tools: ["hashcat", "john", "mysql-dump"]
---

# Cracking Mysql Password Hashes

## Overview

Crack MySQL password hashes including mysql_native_password and caching_sha2_password authentication plugins.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `hashcat` | Security tooling |
| `john` | Security tooling |
| `mysql-dump` | 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/cracking-mysql-password-hashes/{output,logs,artifacts}

# Execute primary analysis with hashcat
echo "[*] Running Cracking Mysql Password Hashes with hashcat..."

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

# Generate summary report
cat /tmp/cracking-mysql-password-hashes/output/report.json
```

## Workflow

### Step 1: Preparation and Reconnaissance

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

# Set up working directory
mkdir -p /tmp/cracking-mysql-password-hashes/{output,logs,artifacts}
```

### Step 2: Primary Analysis

```bash
# Execute primary analysis with hashcat
# Refer to Quick Reference above for detailed commands
echo "[*] Running Cracking Mysql Password Hashes with hashcat..."

# Log all operations
script -q /tmp/cracking-mysql-password-hashes/logs/session.log
```

### Step 3: Deep Investigation

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

# Cross-reference findings
diff /tmp/cracking-mysql-password-hashes/output/primary.json /tmp/cracking-mysql-password-hashes/output/secondary.json
```

### Step 4: Documentation and Reporting

```bash
# Generate structured findings report
cat <<'EOF' > /tmp/cracking-mysql-password-hashes/output/report.json
{
  "technique": "cracking-mysql-password-hashes",
  "domain": "password-cracking",
  "tools_used": ["hashcat", "john"],
  "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 T1110](https://attack.mitre.org/techniques/T1110) — Related technique
- [hashcat Documentation](https://hashcat.org/) — Primary tooling
- [john Reference](https://john.org/) — Secondary tooling
