<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: analyzing-password-hash-algorithms
description: >-
  Identify and analyze password hashing algorithms from captured hashes to determine optimal cracking strategies.
domain: cybersecurity
subdomain: password-cracking
tags:
  - hash-identification
  - algorithm-analysis
  - hash-format
  - hash-mode
  - reconnaissance
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1110"]
  cwe: ["CWE-916"]
  tools: ["hash-identifier", "hashid", "haiti", "hashcat"]
---

# Analyzing Password Hash Algorithms

## Overview

Identify and analyze password hashing algorithms from captured hashes to determine optimal cracking strategies.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `hash-identifier` | Security tooling |
| `hashid` | Security tooling |
| `haiti` | Security tooling |
| `hashcat` | 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/analyzing-password-hash-algorithms/{output,logs,artifacts}

# Execute primary analysis with hash-identifier
echo "[*] Running Analyzing Password Hash Algorithms with hash-identifier..."

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

# Generate summary report
cat /tmp/analyzing-password-hash-algorithms/output/report.json
```

## Workflow

### Step 1: Preparation and Reconnaissance

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

# Set up working directory
mkdir -p /tmp/analyzing-password-hash-algorithms/{output,logs,artifacts}
```

### Step 2: Primary Analysis

```bash
# Execute primary analysis with hash-identifier
# Refer to Quick Reference above for detailed commands
echo "[*] Running Analyzing Password Hash Algorithms with hash-identifier..."

# Log all operations
script -q /tmp/analyzing-password-hash-algorithms/logs/session.log
```

### Step 3: Deep Investigation

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

# Cross-reference findings
diff /tmp/analyzing-password-hash-algorithms/output/primary.json /tmp/analyzing-password-hash-algorithms/output/secondary.json
```

### Step 4: Documentation and Reporting

```bash
# Generate structured findings report
cat <<'EOF' > /tmp/analyzing-password-hash-algorithms/output/report.json
{
  "technique": "analyzing-password-hash-algorithms",
  "domain": "password-cracking",
  "tools_used": ["hash-identifier", "hashid"],
  "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
- [hash-identifier Documentation](https://hash-identifier.org/) — Primary tooling
- [hashid Reference](https://hashid.org/) — Secondary tooling
