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
Action Steps
- Apply byte padding to a PE file to reduce its entropy
- Use word padding to further decrease the entropy of a PE file
- Calculate the entropy of a PE file before and after padding to measure the effectiveness
- Implement a proof of concept to demonstrate the evasion of malware detection
- 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------------------)

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
[](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
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------------------)

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
[](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
DeepCamp AI