<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ISSAC</title>
    <description>The latest articles on DEV Community by ISSAC (@iss4cf0ng).</description>
    <link>https://dev.to/iss4cf0ng</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3954014%2F9bde5d72-9e66-48bd-a663-4973a2763ee7.jpeg</url>
      <title>DEV Community: ISSAC</title>
      <link>https://dev.to/iss4cf0ng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iss4cf0ng"/>
    <language>en</language>
    <item>
      <title>OpenPetya</title>
      <dc:creator>ISSAC</dc:creator>
      <pubDate>Wed, 27 May 2026 09:30:13 +0000</pubDate>
      <link>https://dev.to/iss4cf0ng/openpetya-1bee</link>
      <guid>https://dev.to/iss4cf0ng/openpetya-1bee</guid>
      <description>&lt;p&gt;A Proof-of-Concept bootkit inspired by Petya ransomware, written in Assembly, C, and C++&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;OpenPetya is an educational project designed to study how bootkits and low-level ransomware operate internally.&lt;/p&gt;

&lt;p&gt;The project focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;custom MBR bootloading&lt;/li&gt;
&lt;li&gt;multi-stage boot process&lt;/li&gt;
&lt;li&gt;Protected Mode transition&lt;/li&gt;
&lt;li&gt;NTFS Master File Table (MFT) encryption&lt;/li&gt;
&lt;li&gt;Salsa20-based cryptography&lt;/li&gt;
&lt;li&gt;password validation and restoration workflow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;OpenPetya is NOT intended to be an exact reimplementation of either Petya or NotPetya. Instead, it is a simplified Proof-of-Concept designed for learning and research purposes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Disclaimer
&lt;/h2&gt;

&lt;p&gt;This project was developed purely for educational and research purposes.&lt;/p&gt;

&lt;p&gt;The goal of OpenPetya is to study:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;bootkits&lt;/li&gt;
&lt;li&gt;operating system internals&lt;/li&gt;
&lt;li&gt;low-level malware techniques&lt;/li&gt;
&lt;li&gt;bootloader architecture&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do &lt;strong&gt;NOT&lt;/strong&gt; use this project for illegal activities or against systems you do not own or explicitly have permission to test.&lt;/p&gt;

&lt;p&gt;The author is &lt;strong&gt;NOT&lt;/strong&gt; responsible for any misuse of this software.&lt;/p&gt;




&lt;h2&gt;
  
  
  Build
&lt;/h2&gt;

&lt;p&gt;You can build the project using the commands below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;make            &lt;span class="c"&gt;# Build mbr.bin and stage2.bin&lt;/span&gt;
./build.exe     &lt;span class="c"&gt;# Build OpenPetya.exe&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;
    &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fiss4cf0ng.github.io%2Fimages%2Farticle%2F2026-5-23-OpenPetya%2F6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fiss4cf0ng.github.io%2Fimages%2Farticle%2F2026-5-23-OpenPetya%2F6.png" width="787" height="467"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Warning: Please execute it in your virtual machine!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The commands below shows how to install custom MBR and stage-2 bootloader (Administrative privilege is required):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="kd"&gt;OpenPetya&lt;/span&gt;&lt;span class="err"&gt;.exe&lt;/span&gt; &lt;span class="na"&gt;--list
&lt;/span&gt;&lt;span class="kd"&gt;OpenPetya&lt;/span&gt;&lt;span class="err"&gt;.exe&lt;/span&gt; &lt;span class="na"&gt;--drive &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="na"&gt;--install &lt;/span&gt;&lt;span class="kd"&gt;mbr&lt;/span&gt;.bin &lt;span class="kd"&gt;stage2&lt;/span&gt;.bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Demonstration (Windows 7)
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Screenshots
&lt;/h3&gt;

&lt;p&gt;
    &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fiss4cf0ng.github.io%2Fimages%2Farticle%2F2026-5-23-OpenPetya%2F4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fiss4cf0ng.github.io%2Fimages%2Farticle%2F2026-5-23-OpenPetya%2F4.png" width="799" height="339"&gt;&lt;/a&gt;
&lt;/p&gt;



&lt;p&gt;GitHub repository: &lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/iss4cf0ng" rel="noopener noreferrer"&gt;
        iss4cf0ng
      &lt;/a&gt; / &lt;a href="https://github.com/iss4cf0ng/OpenPetya" rel="noopener noreferrer"&gt;
        OpenPetya
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A Proof-of-Concept bootkit inspired by Petya ransomware, written in Assembly, C, and C++
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;OpenPetya&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;A Proof-of-Concept bootkit inspired by Petya ransomware, written in Assembly, C, and C++&lt;/p&gt;

&lt;p&gt;
    &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/13d9789fd3a90d50aabec2dd2b6052299b36b09bf15373cd7145bbfdb410a6b6/68747470733a2f2f697373346366306e672e6769746875622e696f2f696d616765732f6d656d652f52696f2f342e706e67"&gt;&lt;img src="https://camo.githubusercontent.com/13d9789fd3a90d50aabec2dd2b6052299b36b09bf15373cd7145bbfdb410a6b6/68747470733a2f2f697373346366306e672e6769746875622e696f2f696d616765732f6d656d652f52696f2f342e706e67" width="200/"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;If you find this project helpful or informative, I would truly appreciate a ⭐ on the repository. Your support would be a great motivation for me to continue improving this tool.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Overview&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;OpenPetya is an educational project designed to study how bootkits and low-level ransomware operate internally.&lt;/p&gt;

&lt;p&gt;
    &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/63a9fb6c26dcea24663d5d5657a06344110f7d2a248c76f9585c262f16192d64/68747470733a2f2f697373346366306e672e6769746875622e696f2f696d616765732f61727469636c652f323032362d352d32332d4f70656e50657479612f352e706e67"&gt;&lt;img src="https://camo.githubusercontent.com/63a9fb6c26dcea24663d5d5657a06344110f7d2a248c76f9585c262f16192d64/68747470733a2f2f697373346366306e672e6769746875622e696f2f696d616765732f61727469636c652f323032362d352d32332d4f70656e50657479612f352e706e67" width="700/"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;The project focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;custom MBR bootloading&lt;/li&gt;
&lt;li&gt;multi-stage boot process&lt;/li&gt;
&lt;li&gt;Protected Mode transition&lt;/li&gt;
&lt;li&gt;NTFS Master File Table (MFT) encryption&lt;/li&gt;
&lt;li&gt;Salsa20-based cryptography&lt;/li&gt;
&lt;li&gt;password validation and restoration workflow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;OpenPetya is &lt;strong&gt;NOT&lt;/strong&gt; intended to be an exact reimplementation of either Petya or NotPetya. Instead, it is a simplified Proof-of-Concept designed for learning and research purposes.&lt;/p&gt;

&lt;p&gt;It is worth mentioning that OpenPetya does not include Command-and-Control (C2) functionality. In addition, OpenPetya stores plaintext MFT backup data inside hidden sectors after encryption. This behavior is intentionally designed for educational purposes because those features are…&lt;/p&gt;
&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/iss4cf0ng/OpenPetya" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>bootloader</category>
      <category>assembly</category>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
  </channel>
</rss>
