Discussion summary

A developer released BareMetal-RAM-Dumper, a tool for Cold Boot Attack experiments on x86 systems. The discussion covers potential adaptations, usability improvements, and technical considerations.

What the discussion says

  • The tool is useful for security research and Cold Boot Attacks.
  • Some suggest adapting it for UEFI to improve usability.
  • Concerns about how early in the boot process the tool can run.
“This would be much more usable if you'd put a file system on the USB stick.”
— skrellm
“The code is trivial and could be easily replicated by an LLM.”
— Retr0id

Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • Hey security researchers!

    I've released BareMetal-RAM-Dumper — a low-level x86 utility for dumping physical RAM directly to disk, designed for Cold Boot Attack research.

    What it does: • Custom 512-byte bootloader (no OS needed) • Boots via BIOS Legacy CSM • Switches to Unreal Mode to access 32-bit physical memory • Dumps RAM in 32KB chunks directly to USB drive • BIOS INT 0x15 E820 for safe memory map parsing • Real-time progress indicator

    Cold Boot Attack Use Case: Freeze a laptop's RAM to -60°C → quickly reboot from USB → capture full memory contents for forensic analysis & crypto key recovery

    How it works: 1. Stage1: 512-byte boot sector (loads Stage2 via INT 0x13) 2. Stage2: Main logic (memory detection, unreal mode, disk writes) 3. Writes to LBA 64+ on boot drive

    Warning: This overwrites data starting at sector 64! Use a dedicated blank USB.

    Built with pure Assembly (NASM) — no bloat, direct hardware access

    GitHub: https://github.com/pIat0n/BareMetal-RAM-Dumper License: AGPL-3.0

    Perfect for: Forensic researchers Security auditors testing cold boot resilience Students learning low-level x86 Penetration testers

    Feedback & improvements welcome!

  • Threadlocker red, checkmate... lol =3
  • Phew! Luckily I store all my keys at the 5Gb mark!
  • Haters, please stop flagging liffik's comments. I know you don't like AI but this thread was legitimately upvoted onto the front page so at least let the author respond to people.
    by wmf
  • Does it stop EFI from running first? I'd think that EFI would be clobbering a whole lot of RAM.
  • > successfully tested

    Could you elaborate on this? What device did you test on, what was the test procedure, and what was the outcome?

  • Are there any tricks or guides out there to protect from this attack? Obviously not leaving hardware running and unattended, but what else can help protect you if your running laptop is stolen out of your hands? Workstations can be configured to shutdown upon intrusion switch being activated but what about laptops? I guess hot gluing the RAM in would be a physical obstacle. What about a BIOS password being required for booting from external media or having secure boot enabled? There are exploits to bypass those things, but to an attacker not finding out they are up against that until they reboot, I would hope that would slow them down enough that they fail. If half of or all of the RAM is mounted under the keyboard, I think they would have difficulty getting it out in time. Besides spraying the RAM directly, can you freeze an entire laptop while it's still running? Won't condensation cause problems pretty quickly?

Explore Birbla archives