Adding additional summaries and tags

This commit is contained in:
2026-01-15 21:39:41 -05:00
parent b464911e61
commit cc60e5e62c
2 changed files with 22 additions and 0 deletions

View File

@@ -3,6 +3,17 @@ author: "Halvo (Human)"
title: "Bad Malware Analysis: String Count vs File Size"
date: 2021-03-08T20:20:31Z
draft: false
tags:
- malware-analysis
- strings-per-kb
- binary-static-analysis
- packing-detection
- heuristic-signatures
- python-scripting
- data-driven-security
- research-notes
summary: |
In this delightfully “bad” foray into malware hunting, we ask whether the sheer amount of printable text inside a binary can betray its nefarious nature. By hashing (oops, counting) strings of lengths 26 bytes in ~500 malicious samples versus 200 tidy Windows libraries, we compute “stringsperKB”. The results are modest but tasty: at a 4byte cutoff, benign binaries sport roughly 22% more strings per kilobyte than their shady cousins—a hint that packed or encrypted malware keeps its chatter to a whisper. Short 2byte fragments are just random noise, while 5 and 6byte strings level out, possibly thanks to debug messages. Bottom line? String density offers a cheeky heuristic, but its no silver bullet—still fun to poke at, especially when you love sprinkling a dash of Python over binary mysteries.
---
## Introduction