<!-- 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-hardware-reverse-engineering
description: >-
  Analyze hardware devices including PCB analysis, chip identification, debug port discovery, and firmware extraction.
domain: cybersecurity
subdomain: reverse-engineering
tags:
  - hardware
  - pcb-analysis
  - jtag
  - spi-flash
  - chip-identification
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1195.003"]
  cwe: ["CWE-693"]
  tools: ["jtagulator", "flashrom", "logic-analyzer", "multimeter"]
---

# Performing Hardware Reverse Engineering

## Overview

Analyze hardware devices including PCB analysis, chip identification, debug port discovery, and firmware extraction.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `jtagulator` | Security tooling |
| `flashrom` | Security tooling |
| `logic-analyzer` | Security tooling |
| `multimeter` | 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-hardware-reverse-engineering/{output,logs,artifacts}

# Execute primary analysis with jtagulator
echo "[*] Running Performing Hardware Reverse Engineering with jtagulator..."

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

# Generate summary report
cat /tmp/performing-hardware-reverse-engineering/output/report.json
```

## Workflow

### Step 1: Preparation and Reconnaissance

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

# Set up working directory
mkdir -p /tmp/performing-hardware-reverse-engineering/{output,logs,artifacts}
```

### Step 2: Primary Analysis

```bash
# Execute primary analysis with jtagulator
# Refer to Quick Reference above for detailed commands
echo "[*] Running Performing Hardware Reverse Engineering with jtagulator..."

# Log all operations
script -q /tmp/performing-hardware-reverse-engineering/logs/session.log
```

### Step 3: Deep Investigation

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

# Cross-reference findings
diff /tmp/performing-hardware-reverse-engineering/output/primary.json /tmp/performing-hardware-reverse-engineering/output/secondary.json
```

### Step 4: Documentation and Reporting

```bash
# Generate structured findings report
cat <<'EOF' > /tmp/performing-hardware-reverse-engineering/output/report.json
{
  "technique": "performing-hardware-reverse-engineering",
  "domain": "reverse-engineering",
  "tools_used": ["jtagulator", "flashrom"],
  "findings": [],
  "recommendations": []
}
EOF
```

## Detection

```yaml
title: Hardware Reverse Engineering Detection
id: 6ba18709-ff2f-4aeb-8015-e489ab9665c2
status: experimental
description: Detects suspicious activity related to performing hardware reverse engineering techniques in reverse engineering context
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine: "*performing*hardware*"
  condition: selection
level: medium
tags:
  - attack.t1195.003
  - attack.defense_evasion
falsepositives:
  - Malware analysis sandbox performing automated binary inspection
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Hardware Reverse Engineering Detection | windows/process_creation | Sigma rule (medium) |
| ATT&CK Coverage | MITRE ATT&CK | T1195.003 |

## 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 T1195.003](https://attack.mitre.org/techniques/T1195/003) — Related technique
- [jtagulator Documentation](https://jtagulator.org/) — Primary tooling
- [flashrom Reference](https://flashrom.org/) — Secondary tooling
