Lowering PE Entropy: Byte Padding & Word Padding

📰 Medium · Cybersecurity

Learn to lower PE entropy using byte padding and word padding techniques to evade malware detection

advanced Published 9 Jul 2026
Action Steps
  1. Apply byte padding to a PE file to reduce its entropy
  2. Use word padding to further decrease the entropy of a PE file
  3. Calculate the entropy of a PE file before and after padding to measure the effectiveness
  4. Implement a proof of concept to demonstrate the evasion of malware detection
  5. Analyze the detection methods used by security software to identify areas for improvement
Who Needs to Know This

Security researchers and malware analysts can benefit from this knowledge to improve their detection and evasion techniques

Key Insight

💡 Byte and word padding can be used to reduce the entropy of a PE file, making it more difficult to detect

Share This
🚨 Lower PE entropy with byte & word padding to evade malware detection! 🚨

Key Takeaways

Learn to lower PE entropy using byte padding and word padding techniques to evade malware detection

Full Article

Title: Lowering PE Entropy: Byte Padding & Word Padding

URL Source: https://medium.com/@s12deff/lowering-pe-entropy-byte-padding-word-padding-12a08ec384d5?source=rss------cybersecurity-5

Published Time: 2026-07-09T21:32:06Z

Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)

[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40s12deff%2Flowering-pe-entropy-byte-padding-word-padding-12a08ec384d5&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

[](https://medium.com/?source=---top_nav_layout_nav-----------------------------------------)

Get app

[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)

[Search](https://medium.com/search?source=---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40s12deff%2Flowering-pe-entropy-byte-padding-word-padding-12a08ec384d5&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

![Image 1: Unknown user](https://miro.medium.com/v2/resize:fill:32:32/1*dmbNkD5D-u45r44go_cf0g.png)

1. [Why Does Entropy Matter Here?](https://medium.com/?source=-----12a08ec384d5---------------------------------------#1890 "Why Does Entropy Matter Here?")
2. [Byte Padding](https://medium.com/?source=-----12a08ec384d5---------------------------------------#2f29 "Byte Padding")
3. [Word Padding](https://medium.com/?source=-----12a08ec384d5---------------------------------------#1dca "Word Padding")
4. [Implementation](https://medium.com/?source=-----12a08ec384d5---------------------------------------#a0f1 "Implementation")
1. [Byte Padding](https://medium.com/?source=-----12a08ec384d5---------------------------------------#2651 "Byte Padding")
2. [Word Padding](https://medium.com/?source=-----12a08ec384d5---------------------------------------#b118 "Word Padding")
3. [Entropy Calculation](https://medium.com/?source=-----12a08ec384d5---------------------------------------#8611 "Entropy Calculation")

5. [Full Code](https://medium.com/?source=-----12a08ec384d5---------------------------------------#5345 "Full Code")
1. [Byte Padding PoC](https://medium.com/?source=-----12a08ec384d5---------------------------------------#ccf4 "Byte Padding PoC")
2. [Word Padding PoC](https://medium.com/?source=-----12a08ec384d5---------------------------------------#ceae "Word Padding PoC")

6. [Proof of Concept](https://medium.com/?source=-----12a08ec384d5---------------------------------------#048f "Proof of Concept")
7. [Detection](https://medium.com/?source=-----12a08ec384d5---------------------------------------#aa55 "Detection")
8. [Conclusions](https://medium.com/?source=-----12a08ec384d5---------------------------------------#24e3 "Conclusions")

Malware

Cybersecurity

Pentesting

Hacking

Infosec

# Lowering PE Entropy: Byte Padding & Word Padding

[![Image 2: S12 - 0x12Dark Development](https://miro.medium.com/v2/resize:fill:32:32/1*NlusgtOWLGgb5Bukla3xFw.jpeg)](https://medium.com/@s12deff?source=---byline--12a08ec384d5---------------------------------------)

[S12 - 0x12Dark Development](https://medium.com/@s12deff?source=---byline--12a08ec384d5---------------------------------------)

Follow

10 min read

·

1 hour ago

[](https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2F12a08ec384d5&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40s12deff%2Flowering-pe-entropy-byte-padding-word-padding-12a08ec384d5&user=S12+-+0x12Dark+Development&userId=40bfd1206679&source=---header_actio
Read full article → ← Back to Reads

Related Videos

How To Delete Your Data From The Internet | Privacy Bee Review & Tutorial 2026
How To Delete Your Data From The Internet | Privacy Bee Review & Tutorial 2026
Tutorial Stack
How To Protect Facebook Account From HACKERS in 2024 [Two-Factor Authentication]
How To Protect Facebook Account From HACKERS in 2024 [Two-Factor Authentication]
Christian Omeje - UDH
NEW Ubuntu 26.04 HYPRLAND Setup: MAKE Linux BEAUTIFUL (2026)
NEW Ubuntu 26.04 HYPRLAND Setup: MAKE Linux BEAUTIFUL (2026)
Ksk Royal
Dual Boot macOS Golden Gate & TAHOE: Install the macOS 27 Beta WITHOUT Losing Your Data
Dual Boot macOS Golden Gate & TAHOE: Install the macOS 27 Beta WITHOUT Losing Your Data
Ksk Royal
OpenAI GPT 5 5 Cyber Just Got an Upgrade – Is it BETTER Than Mythos 5 ?
OpenAI GPT 5 5 Cyber Just Got an Upgrade – Is it BETTER Than Mythos 5 ?
MaxonShire
Best VPN for Mac 2026 — Top 3 Tested and Which ONE Wins
Best VPN for Mac 2026 — Top 3 Tested and Which ONE Wins
Tutorial Stack