4 comments

  • Dwedit 58 minutes ago
    Does it stop EFI from running first? I'd think that EFI would be clobbering a whole lot of RAM.
    • saidnooneever 39 minutes ago
      this will work on BIOs systems and possibly systems with CSM mode which emulate legacy BIOS in efi.

      UEFi has a different interface, not IVT to make BIOS calls and no code to catch them. you would use raw disk access protocols its really easy maybe even easier once u know how to use handles and protocols in uefi to implement this for uefi.

      the problem then becomes secureboot, which if enabled will be bypassable only via misconfigurations or exploits. it would refuse to from the usb or an alternate disk image when set up correctly and no exploits are known by the dumper.

      for that reason there's i think attacks that can be done by removing the ram sticks and sticking them into specialized device to dump it.

      theres some tutorials on how to connect ram sticks to breadboards etc. , but idk if theres other details besides raw talking to the ram and dumping it that would make it less reliable. (not sure how long bits are retained, usually ud wanna reboot and instant dump afaik if its totally off for a while its unrecoverable but i am not really sure on that last part. (so removing it to seat them in another device might make bits decay and data less reliable?)

  • Retr0id 2 hours ago
    > successfully tested

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

  • anyaya1 26 minutes ago
    DevTool ecosystem
  • liffik 2 hours ago
    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!

    • saidnooneever 37 minutes ago
      interesting stuff, never tried this specifically. you could try to adapt it to uefi too, edk2 is tricky to work with but not too hard to do it.

      it might make it more easy for ppl to play with since most modern machines dont come with BIOS anymore.

      uefi might trample more ram during its init but its not a lot of memory.