When malware authors hide something, they rarely hide the whole program. They hide the part that would give them away if a scanner or an analyst saw it: the configuration that lists which banks to attack, the second stage that does the real work, the commands from the operator, the stolen data on its way out. The images and documents that carry those parts end up in the reports that security vendors publish after an investigation. The opener of this series noted that hiding in malware would be told from those reports; the previous part followed the channels that live in packet headers, timing and the names sent to the Domain Name System (DNS). This part reads the vendors' own documents, case by case, and asks the same questions of each: where exactly the payload sat, what the means when it says steganography, and how the was, or could have been, found. After reading, you will be able to sort any reported case into one of five families, decode by hand two of the published examples, spot a carrier from its size and its end marker, judge which detector from the steganalysis part applies, and explain what content disarm and reconstruction () removes and what it leaves behind.

What the word means, and who counts the cases

The term "stegomalware" comes from a paper by Guillermo Suarez-Tangil, Juan E. Tapiador and Pedro Peris-Lopez of the Universidad Carlos III de Madrid, "Stegomalware: Playing Hide and Seek with Malicious Components in Smartphone Apps", written in 2014; the authors' copy is filed as their paper for the Inscrypt conference of that year (Suarez-Tangil, Tapiador and Peris-Lopez, 2014). They described smartphone malware that hides executable components inside an app's assets (documents, databases, multimedia files) with steganographic techniques, argued that provably secure hiding algorithms would make such code virtually undetectable by static analysis, and built a prototype: submitted to Google Play in early June 2014, it passed all the store's security checks, and at the time of writing it was still available, with its command server instructed to return only an innocuous payload. They also asked whether this was already happening, analysed around 55,000 apps from malware collections and an alternative app market, and reported results they themselves called not conclusive: many apps contained steganographic code and hidden content, and JPHide accounted for about 85% of the matches their detector found. As the steganalysis part showed with Stegdetect, a detector run over tens of thousands of files produces matches whose meaning depends on its false-alarm rate.

Wojciech Mazurczyk of the Warsaw University of Technology and Luca Caviglione of the National Research Council of Italy surveyed the real cases in 2015 under the broader name "information hiding-capable malware". They found that nearly all of it had been discovered between 2011 and 2014, with a peak in 2014, and sorted it by carrier: Regin and Linux.Fokirtor hid data in network traffic, while Alureon, Duqu, Lurk and a variant of Trojan.Zbot used digital images (Mazurczyk and Caviglione, arXiv:1504.04867). Kaspersky's Alexey Shulmin and Evgeniya Krylova listed, in August 2017, Microcin, NetTraveler, Zberp, Enfal and its new loader Zero.T, Shamoon, KinS, ZeusVM and Triton, gave three reasons for the trend (concealing the fact that data moves at all, getting past deep packet inspection, and getting past anti-targeted-attack products that cannot afford to analyse every image) and judged that the steganography detectors of the day were essentially proofs of concept, too slow and too inaccurate for commercial products (Kaspersky, Steganography in contemporary cyberattacks, 3 August 2017).

(Adversarial Tactics, Techniques, and Common Knowledge), the public knowledge base of attacker behaviour, files the reported cases under two sub-techniques. Obfuscated Files or Information: Steganography (T1027.003) covers hiding code or data in images, audio, video or text to prevent detection; its page, as read for this article, lists 31 software, groups and campaigns, from APT37 (APT stands for advanced persistent threat) and BRONZE BUTLER to IcedID, Pikabot and the tool Invoke-PSImage, and calls Duqu an early example (MITRE ATT&CK, T1027.003, last modified 12 May 2026). Data Obfuscation: Steganography (T1001.002) covers command-and-control traffic hidden the same way and lists 13 entries, including Duqu, Hammertoss, LightNeuron, LunarMail, LunarWeb, SUNBURST and ZeroT (MITRE ATT&CK, T1001.002, last modified 12 June 2026). 's own verdict on prevention is blunt: the technique cannot be easily mitigated with preventive controls, because it abuses ordinary system features.

A word on the sources. A vendor report is a primary source for what that vendor's analysts observed, in the samples they obtained, at the time they wrote. It is also a commercial document: it names the vendor's products, it is written before every question is answered, and it is sometimes revised or withdrawn. The statements below are attributed to their authors for that reason, and where two vendors describe the same thing differently, both versions are given.

Five places to hide: a taxonomy from the reports

Kaspersky's 2017 article distinguishes several methods and makes a point worth keeping: the "overlay" method, in which data is simply added after the end of a file that its reader stops parsing early, is strictly speaking not proper steganography, because the added part is easy to see for anyone who looks past the end (Kaspersky, 2017). Sorting the reported cases by where the hidden bytes actually sit gives five families, and the families matter more than the vendors' labels, because each family is found, and destroyed, in a different way.

FamilyWhere the bytes sitReported cases in this partWhat finds itWhat destroys it
1. Appended dataAfter the image's end-of-file marker, outside anything a viewer readsDuqu, ZeusVM, Hammertoss, a Brazilian banker of 2016Parsing to the end marker; file size against image dimensionsRebuilding the file from what the format defines
2. Format structuresIn comments, quantization tables, scan segments, chunks or metadata that the format allowsLightNeuron, LunarWeb, LunarMail, commodity loaders with text in the fileFormat validation; strings in places the format does not need themRebuilding with only the structures the image needs
3. Pixel bitsIn the least significant bits, the alpha channel, or all the bits of the pixelsLurk, Stegoloader, Zero.T, Stegano, Worok, TerminalFixVisual and statistical attacks; noise-like images; size and entropyChanging pixel values (noise, lossy re-encoding)
4. Text and markupIn the order of attributes, the spacing, the layout of an innocent pagePlatinumFormat-aware parsing; unusual spacing and orderingRe-serializing the markup
5. Protocol mimicryIn fields of a protocol's ordinary traffic: identifiers, lists, timestampsSUNBURSTKnowing what the genuine protocol looks likeProxies that rebuild the exchange; rarely possible

The rest of this part takes the cases in roughly that order.

Appended data: an image as an envelope

Duqu, 2011

The Laboratory of Cryptography and System Security (CrySyS) of the Budapest University of Technology and Economics found Duqu and published its first report, version 0.93 of 14 October 2011, by Boldizsár Bencsáth, Gábor Pék, Levente Buttyán and Márk Félegyházi (CrySyS, Duqu: A Stuxnet-like malware found in the wild, 14 October 2011). Among its components was a standalone keylogger. The report notes that the keylogger's executable contains an embedded JPEG (Joint Photographic Experts Group) file starting at byte 34,440, a partial picture whose readable text shows "Interacting Galaxy System NGC 6745", most likely, the report says, a picture taken from the National Aeronautics and Space Administration (NASA) and used as a decoy, and an encrypted dynamic-link library (DLL) starting at byte 42,632. Watching the command-and-control traffic, the lab saw the server begin its answer by sending back what seemed to be a 100 by 100 pixel empty JPEG, and the client sometimes send a JPEG in its request, always named DSC00001.jpg.

Symantec, alerted by CrySyS on 14 October 2011, published its analysis "W32.Duqu: The precursor to the next "; version 1.4 is dated 23 November 2011. It describes a custom protocol that downloads and uploads what look like JPEG files with encrypted data appended to them, "simply to obfuscate network transmissions" in Symantec's words: the client sends GET requests, the server replies with a small 54 by 54 pixel white JPEG, and to return data the client sends a POST with a default JPEG embedded in the malware, followed by the encrypted and compressed data (Symantec, W32.Duqu, version 1.4, 23 November 2011). Symantec adds that the keylogger's encrypted DLL is stored in a JPEG made of the first 8,192 bytes of a Hubble image, and that the existence of this image has led some to speculate that Duqu may be the "Stars" threat announced by Iranian officials in April 2011 Reported Symantec, describing speculation by others; no evidence for that link is given in the report.

Worked example: two reports, one offset. The CrySyS offsets and the Symantec size describe the same object. The JPEG starts at byte 34,440 and the encrypted DLL at byte 42,632, so the picture occupies 42,632 − 34,440 = 8,192 bytes, exactly 8 kibibytes, which is Symantec's "first 8,192 bytes" of a larger image. A JPEG cut short still decodes partially, which is why CrySyS could read the caption on a "partial" picture. The two reports differ on the server's reply image (an empty 100 by 100 JPEG for CrySyS, a white 54 by 54 one for Symantec); they analysed traffic at different times and with different samples, and the article reports both rather than choosing.

None of this is steganography in the statistical sense of the images part. The pictures were envelopes: they made a binary upload look like a photograph to anyone glancing at the traffic, and the payload sat in plain view after the image data, encrypted.

ZeusVM, 2014

Jérôme Segura of Malwarebytes wrote on 17 February 2014 that a new variant of the Zeus , dubbed ZeusVM, retrieved its configuration file, the list that tells it which banking sites to attack, from a picture of a sunset; the French researcher known as Xylitol had noticed it in a malvertising campaign and told him (Malwarebytes, Hiding in plain sight, 17 February 2014). Segura found the method by a defender's trick worth remembering: he searched for an exact copy of the photograph on the web, picked one with the same width and height, and compared the two; in a hexadecimal viewer he could see where the picture ended and the extra data began. The appended data was encoded with Base64 and encrypted with the RC4 cipher and an exclusive-or (XOR) operation. Mazurczyk and Caviglione describe the same family of Zbot variants downloading innocent-looking JPEG images of sunsets or cats that contained lists of addresses to watch, mainly of financial institutions (Mazurczyk and Caviglione, 2015).

Hammertoss, 2015

The best-documented appended-data case is HAMMERTOSS, described by FireEye in July 2015 in "HAMMERTOSS: Stealthy Tactics Define a Russian Cyber Threat Group". FireEye first identified the malware in early 2015, attributed it to a group it called APT29 and wrote that it suspected the Russian government sponsors the group Officially attributed FireEye, July 2015 (FireEye, HAMMERTOSS, July 2015, copy hosted by Javelin Networks). FireEye's five stages:

  1. A new Twitter handle every day. An algorithm takes a base name, such as "Bob", and adds three values derived from a CRC32 checksum (a 32-bit cyclic redundancy check) before and after it, based on the date; FireEye's example is "1abBob52b". The operator registers that day's handle in advance only when there is something to say; otherwise the malware finds nothing and tries again later. The group typically restricted checks to weekdays or to dates after a start date; the analysed sample communicated on weekdays only, after 3 April 2015.
  2. A tweet with a web address (URL, uniform resource locator) and a hashtag. The URL points to a page with an image; the hashtag gives the offset of the hidden data in the image file and some characters to add to the decryption key. In FireEye's example the tweet carried "#101docto": data at offset 101, key characters "docto".
  3. An image on GitHub. The malware visits the page through Internet Explorer's automation interface, so the traffic looks like the user's browser, and searches the browser cache for an image at least as large as the offset.
  4. Basic steganography. The image contains encrypted data appended beyond the FF D9 bytes that end a JPEG.
  5. Commands and uploads. The decrypted data holds commands or the credentials for a cloud storage account to which the malware uploads the victim's files.

FireEye was candid about the hiding itself: appending data after the end-of-file marker would be readily detectable if someone were checking for it, and the strength of the design lay elsewhere, in the encryption, whose key needed material from both the malware and the day's tweet, and in using services that the victim's network already trusted. The sample's detection ratio on VirusTotal, in FireEye's table, was 5 of 56 engines. MITRE calls the second half of this design a dead drop resolver, a network cousin of the spy's dead drop: content posted on a legitimate web service, with embedded and often encoded pointers to the real infrastructure, which gives cover because hosts already talk to those services and protects the back end from discovery through analysis of the binary (MITRE ATT&CK, T1102.001, last modified 11 September 2026).

Worked example: finding data after FF D9. A JPEG file begins with the bytes FF D8 (start of image) and ends with FF D9 (end of image); a viewer stops at FF D9. Consider the last bytes of a toy file, written for this article:

Offset (decimal)BytesMeaning
4,090 to 4,0933F 00 FF D9The last scan data and the end-of-image marker
4,094 to 4,1017A 1C 9E 04 B2 5D 61 E8Eight bytes no viewer will ever display

If the file's size is 4,102 bytes but the end marker sits at offset 4,092 and 4,093, then 4,102 − 4,094 = 8 bytes lie outside the image. A one-line parser that compares the position of the first FF D9 after the last scan with the file length finds every case in this family, whatever the encryption of the trailing bytes. (Real files can legitimately contain trailing data, such as some camera metadata layouts, so the check produces alarms to examine, not verdicts.)

Pixel bits: from least significant bits to the whole picture

Lurk and Stegoloader, 2014 and 2015

Mazurczyk and Caviglione report that Lurk, found in February 2014 spreading through websites via iframes or a Flash exploit, used steganography to embed encrypted URLs in an image by manipulating pixels, then used them to fetch a further payload (Mazurczyk and Caviglione, 2015). Dell SecureWorks' Counter Threat Unit described in June 2015 a modular information stealer it called Stegoloader, also detected as Win32/Gatak.DR and TSPY_GATAK.GTK, whose oldest samples dated from the end of 2013 (Secureworks, now Sophos, Stegoloader: A Stealthy Information Stealer, 15 June 2015). Its deployment module downloads a PNG (Portable Network Graphics) image from a legitimate hosting site, decompresses it with the Windows graphics library, takes the least significant bit of the colour of each pixel, decrypts the result with RC4 and runs it from memory; neither the image nor the decrypted code is written to disk. The report lists anti-analysis checks, such as watching the mouse cursor and refusing to run alongside tools like Wireshark or Procmon, notes victims in healthcare, education and manufacturing, and observes that the family had not been seen with exploits or : it travelled with pirated-software key generators, a commodity rather than a targeted tool.

Zero.T, 2016 and 2017

Kaspersky detected late in 2016 a loader it named Zero.T, the new loader of the Enfal family, after Proofpoint had first described it; Zero.T fetched its modules as bitmap files whose least significant bits were replaced by the payload (Kaspersky, 2017); Proofpoint's first report describes extraction at 1, 2, 3 or 4 bits per value, depending on the payload and the image size (Proofpoint, 2017). Kaspersky's analysts then did what the steganalysis part describes and reported the results. A visual attack, rebuilding images from single bit planes, made the payload areas obvious to the eye. The chi-square attack, which assumes a high-entropy payload, worked on Kaspersky's own test carrier but gave unsatisfactory results on Zero.T's carriers, because Zero.T did not compress its modules before embedding them, so the payload had ordinary, low entropy. The RS (regular and singular groups) attack detected the payload in both cases, though it estimated 44% of capacity used where the visual attack showed more than half, and Kaspersky suggested treating any estimate above 10% as reliable. (Kaspersky's post credits to Jessica Fridrich, Miroslav Goljan and Andreas Pfitzmann; the 2001 paper discussed in part 460 is by Fridrich, Goljan and Rui Du.) The lesson runs against intuition: the attacker's lazier choice, no compression, defeated the detector built for the textbook case.

Worok's PNGLoader, 2022

ESET documented a cluster it named Worok in 2022, and Avast extended the analysis on 10 November 2022 (Avast, Martin Chlumecký, PNG steganography hides backdoor, 10 November 2022). The chain begins with hijacked dynamic-link libraries loaded by legitimate Windows services, continues with a . loader that ESET called PNGLoader, and ends with a C# payload that Avast called DropBoxControl, which used the Dropbox application programming interface (API) to receive commands and exfiltrate data. PNGLoader searches a directory for PNG files with specific dimensions and reads one bit from each of the alpha, red, green and blue channels of every pixel, so that one pixel carries four bits and two pixels carry a byte; the first 16 bytes (32 pixels) must begin with an 8-byte magic number, followed by 8 bytes giving the payload's length. Avast notes that this method is very easy to detect by simple statistical analysis even though the change is invisible to the eye, and shows why: the higher bit planes of the carrier pictures look like structured images, while the least-significant-bit planes of the region holding the encrypted and compressed payload look like random noise, and the rest of the canvas is untouched. The carriers were placed in the Internet Explorer program folder, where pictures with a similar theme would not attract attention.

Worked example: two pixels, one byte (a toy; the channel order A, R, G, B follows Avast's description, and the bit order inside the nibble is chosen for this article).

PixelARGBLow bits (A R G B)
1255 (11111111)200 (11001000)133 (10000101)70 (01000110)1 0 1 0
2254 (11111110)37 (00100101)90 (01011010)15 (00001111)0 1 0 1

The two nibbles 1010 and 0101 give the byte 1010 0101, hexadecimal A5. Changing any of those eight channel values by one would flip one bit of the byte and leave the picture visibly the same, which is exactly why a re-encoding that alters pixel values, even slightly, destroys this family.

TerminalFix, 2026: when every bit is payload

Not every pixel carrier tries to look like a picture. Didier Stevens of the SANS Internet Storm Center (ISC) examined, on 21 September 2026, the PNG files of a campaign that Microsoft's security researchers had reported under the name TerminalFix (SANS ISC, TerminalFix: PNG Steganography, 21 September 2026). The first file was a valid minimal PNG with only the three expected chunk types, no metadata and nothing appended; its pixel data decompressed cleanly into 111 scanlines of 112 pixels in RGBA colour (red, green, blue and alpha, 8 bits each), and the decompressed data contained strings typical of a Windows executable. The first 8 bytes of the raw bitmap gave a length, 49,720 bytes, and the carved file was a genuine Microsoft executable used for DLL sideloading; the two other PNG files held the malicious DLL in two parts. Stevens points out that the attackers used all the available bits, so the original picture is lost and the PNG renders as noise.

Worked example: an image sized to its payload. Each scanline holds 112 pixels × 4 bytes = 448 bytes, and the image holds 111 × 448 = 49,728 bytes of raw pixel data. Subtract the 8-byte length field: 49,728 − 8 = 49,720, exactly the size of the carved executable. The picture's dimensions were chosen to fit the file, which is itself a signature: a PNG whose raw size is a few bytes more than a plausible executable, and whose rendering is noise, is not a photograph.

Witchetty's Windows logo, 2022

Symantec's Threat Hunter Team reported on 29 September 2022 that the espionage group it calls Witchetty (also known as LookingFrog), active against governments in the Middle East and a stock exchange in Africa between February and September 2022, used a new backdoor it named Backdoor.Stegmap: a DLL loader downloads from a GitHub repository a bitmap that appears to be an old Microsoft Windows logo, and the payload hidden in it is decrypted with an XOR key (Symantec, Witchetty, 29 September 2022). Symantec's comment on the choice of host applies to almost every case in this part: downloads from a trusted service such as GitHub raise far fewer red flags than downloads from an attacker's own server.

Format structures: hiding where the format allows it

LightNeuron, 2019

Matthieu Faou's ESET white paper of May 2019 describes LightNeuron, which ESET believes the Turla group has used since at least 2014, as the first publicly known malware to use a malicious Microsoft Exchange Transport Agent, a component that sees every email passing through the server (ESET, Turla LightNeuron, May 2019). Its command and control runs entirely by email: commands arrive hidden in specially crafted (Portable Document Format) documents or JPG images attached to messages that the malware then blocks, so the addressee never sees them, and results leave the same way. For a JPG, the backdoor computes a signature from 16 bytes of the image's first quantization table, the table of numbers that controls JPEG compression; if the check passes, it reads the length of the hidden container from offset 0x0F of that table and extracts the container from the last Start of Scan section. The ESET researchers solved the signature's equations with an SMT (satisfiability modulo theories) solver to build a test image, and observed that altering the quantization table changes the picture but leaves it valid. Outgoing results reuse the incoming document or image with the command container replaced. The report's cleaning advice is a reminder of where this malware lived: simply deleting its two files breaks Exchange for the whole organization.

The Lunar toolset, 2024

Filip Jurčacko of ESET described on 15 May 2024 two backdoors, LunarWeb and LunarMail, found in a European ministry of foreign affairs and its missions and likely used by Turla since at least 2020; both hide commands in images (ESET, To the Moon and back(doors), 15 May 2024). The details mark the boundary between families 2 and 3 precisely. LunarWeb, on servers, extracts data from JPG images by scanning for the comment marker FF FE, and from GIF (Graphics Interchange Format) images by parsing them with a library; ESET stresses that the data is embedded in the structures of the image format, not hidden in individual pixels as in least-significant-bit steganography. LunarMail, an Outlook add-in on workstations, looks for an email with a single PNG attachment of at most 10 megabytes and parses its IDAT chunks, the chunks that normally hold pixel data, for zlib-compressed, encrypted components; because those chunks must keep valid checksums, the result is a valid but noisy-looking image. For exfiltration it builds PNG files from a template matching the victim institution's logo, a sign of preparation, or PDF documents.

Text in a downloaded image: the commodity campaigns of 2023 to 2026

At the other end of the scale, Cofense described on 20 May 2026 the image steganography campaigns it had tracked since 2023: phishing messages, often finance-themed (72% of campaigns), lead to a dropper that downloads an image from a hosting site, finds a Base64-encoded .NET loader stored as text inside the image after a marker such as "BaseStart-", decodes it (the result begins with "MZ", the signature of a Windows executable) and runs the final malware in the memory of a legitimate program (Cofense, Steganography secrets: malware hidden in plain sight, 20 May 2026). Cofense counts Remcos RAT (remote access Trojan) in 27% of these campaigns, Agent Tesla in 21% and XWorm in 18%, and reports where the images were hosted: archive[.]org, which now accounts for 23% of the historical volume, and, in 40% of campaigns from 2023 to 2024, a Brazilian image host discussed below. The strings in such an image are visible to any tool that dumps text from a file; the hiding works because nobody runs that tool on images downloaded from a reputable site.

Pixels in advertising: Stegano and AdGholas, 2016

ESET Research reported on 6 December 2016 that millions of readers of popular news websites had been exposed, since at least the beginning of October, to malicious banners advertising applications called "Browser Defence" and "Broxu" (ESET, Readers of popular websites targeted by stealthy Stegano exploit kit hiding in pixels of malicious ads, 6 December 2016). A script in the advertisement first reported the visitor's environment; the server then sent either a clean banner or an almost identical one with a script encoded in its alpha channel, the channel that sets each pixel's transparency. The decoded script used an Internet Explorer flaw (-2016-0162, an entry in the Common Vulnerabilities and Exposures list) to check for packet capture, sandboxing, virtualization and security products, and only if it found none redirected the browser, through the TinyURL service, to an exploit kit landing page that chose among three Flash exploits (CVE-2015-8651, CVE-2016-1019 and CVE-2016-4117); the final payloads included backdoors, banking Trojans and spyware. ESET had seen an earlier variant since late 2014 targeting Dutch users, then the Czech Republic in spring 2015, then Canada, Britain, Australia, Spain and Italy. An update of 15 December 2016 records that, after comparing notes with Proofpoint and Trend Micro, ESET concluded the campaign was a new wave of AdGholas, a group that had used the Angler and Neutrino exploit kits before switching to this kit, also known as Astrum. (Proofpoint's own 2016 report on AdGholas could not be read for this article: its address now leads to an index page.)

This is malvertising, which MITRE describes as buying online advertisements to distribute malware, including routing automated policy checkers to benign content while real victims reach the malicious one (MITRE ATT&CK, T1583.008, last modified 15 April 2025). The steganography served the same purpose as the environment check: an advertising network reviewing the banner saw a picture.

Worked example: "function" in sixteen alpha values. ESET gives the encoding in words (two consecutive alpha values carry the tens and the ones of a character code, as differences from 255, made smaller with an offset of 32) and an example: the alpha values 239, 253, 237, 243, 239, 237, 241, 239, 237, 245, 239, 247, 239, 235, 239 and 237 decode to the word "function". A rule that reproduces all sixteen values, worked out for this article from ESET's example, is: subtract 32 from the character code, write the result as two decimal digits, and store each digit d as the alpha value 255 − 2(d + 1).

Alpha pair255 − alphaDigits (difference ÷ 2 − 1)Number+ 32Character
239, 25316, 27, 070102f
237, 24318, 128, 585117u
239, 23716, 187, 878110n
241, 23914, 166, 76799c
237, 24518, 108, 484116t
239, 24716, 87, 373105i
239, 23516, 207, 979111o
239, 23716, 187, 878110n

Every alpha value lies between 235 and 253, so every pixel is between 0.8% and 7.8% transparent: invisible on a banner, and exactly the kind of narrow, regular band a histogram of the alpha channel shows at once. ESET adds that the unused pixels' alpha values were filled with pseudo-random values in the same range to even out the "alpha noise", and that a hash at the end of the picture checked the script's integrity.

Text and markup: Platinum, 2019

Kaspersky reported on 5 June 2019 a campaign it called EasternRoppels, which may have started as early as 2012 and which it linked to the PLATINUM group, against diplomatic, government and military targets in South and Southeast Asia (Kaspersky, Platinum is back, 5 June 2019). One backdoor, installed as a Winsock name-space provider so that it loaded with a system service, downloaded an HTML (Hypertext Markup Language) page that seemed to say its command server was down. The page carried encrypted commands and the key to decrypt them, encoded by two text techniques that the part on sound, video and text treats in general:

  • Attribute order. HTML ignores the order of a tag's attributes, so the order itself carries information. Four attributes (Kaspersky's example lists align, bgcolor, colspan and rowspan) can be arranged in 4! = 24 orders, and log₂ 24 ≈ 4.58, so each such tag carries 4 whole bits.
  • Spacing. After the tags, data was encoded as groups of zero to seven spaces separated by tabs; each group's count of spaces gives the next three bits. Kaspersky's example: a group of six spaces decodes as 110.

Worked example: a line of whitespace (toy data). Groups of 6, 2, 5 and 0 spaces, separated by tabs, give 110, 010, 101 and 000, the 12 bits 1100 1010 1000, which a decoder would accumulate with the next lines until it had whole bytes. In a browser the page shows nothing unusual; in a text editor that displays whitespace, the tab-and-space pattern at the end of each line is unmistakable, and a tool that re-serializes HTML (normalizing attribute order and collapsing whitespace) destroys both channels without knowing they exist.

Protocol mimicry: SUNBURST's web traffic, 2020

The previous part described how SUNBURST used DNS names; its channel over the Hypertext Transfer Protocol (HTTP) hid in plainer sight still. According to FireEye's analysis of 13 December 2020, the backdoor's command-and-control traffic masqueraded as the Orion Improvement Program protocol of the legitimate SolarWinds software. Outgoing messages were JSON (JavaScript Object Notation) objects with a list of "steps" whose fields looked like telemetry; the malware's actual message was compressed, XOR-encoded, split across the "Message" fields and Base64-encoded, and only some of the steps contributed to it. Incoming responses tried to look like benign XML (Extensible Markup Language) about .NET assemblies, but the commands were spread across the many GUID and hexadecimal strings in the body, which the malware extracted with a regular expression, concatenated and decoded (Mandiant, Google Cloud Threat Intelligence, 13 December 2020). MITRE files this under the steganography sub-technique for command and control. Nothing here is hidden in an image; the cover is the expected shape of a vendor's own protocol, and the only reliable detector is someone who knows what that protocol genuinely looks like. The wider story of the compromise is told in the SolarWinds compromise.

What the reports show, taken together

Case and yearVendor or analystFamilyWhat was hiddenHow it was found or could be
Duqu, 2011CrySyS; Symantec1 AppendedStolen data and modules after JPEGsTraffic analysis; data after the image
ZeusVM, 2014Malwarebytes1 AppendedBanking configurationComparison with the original photograph
Lurk, 2014(survey by Mazurczyk and Caviglione)3 PixelsEncrypted URLsAnalysis of the downloader
Hammertoss, 2015FireEye1 AppendedCommands, cloud credentialsData after FF D9; tweets and handles
Stegoloader, 2015Dell SecureWorks3 Pixels (LSB)Main moduleAnalysis of the deployment module
Stegano / AdGholas, 2016ESET3 Pixels (alpha)JavaScriptBanner comparison; alpha histogram
Zero.T, 2016 to 2017Kaspersky (after Proofpoint)3 Pixels (LSB)ModulesVisual and RS attacks
LightNeuron, 2019ESET2 StructuresCommands, resultsAnalysis of the transport agent
Platinum, 2019Kaspersky4 MarkupCommands and keyAnalysis of the backdoor
SUNBURST, 2020FireEye5 MimicryCommands, resultsAnalysis of the backdoor
Witchetty, 2022Symantec(bitmap on GitHub, XOR)BackdoorAnalysis of the loader
Worok, 2022ESET; Avast3 Pixels (LSB)C# payloadBit-plane analysis
Lunar, 2024ESET2 StructuresCommands, exfiltrated filesAnalysis of the backdoors
Commodity loaders, 2023 to 2026Cofense2 Structures (text).NET loaderStrings in the image
TerminalFix, 2026Microsoft; SANS ISC3 Pixels (all bits)Executable, DLLDecompressed pixel data

Four observations follow from the table, and they are this article's reading of the reports rather than any one vendor's claim.

  1. Most of it is not statistical steganography. Appended data, format structures, markup and mimicry outnumber pixel embedding, and the pixel cases mostly use plain least-significant-bit replacement or every bit; none of the reported cases uses the adaptive schemes of the images part. The hiding is aimed at a casual glance and at products that do not open images, not at a steganalyst.
  2. The hidden part is a stage or a channel, never the whole attack. Something ordinary, a document with macros, a hijacked library, a JavaScript file, a backdoored update, runs first and knows where to look. That loader is a far better detection target than the image.
  3. The carriers live on trusted hosts. Twitter, GitHub, Dropbox, archive.org, a mail server, an advertising network, image-sharing sites: the reports repeatedly name reputation, not invisibility, as what the attackers bought.
  4. Encryption does the heavy work. In almost every case the hidden bytes are encrypted, so a defender who finds them learns that something is there but not what, unless the loader is recovered. Kaspersky's earlier Brazilian case below shows the reverse confusion: encryption mistaken for steganography.

How carriers are found

Structure first. Parse the file as its format defines it and look at everything else: bytes after FF D9 in a JPEG or after the IEND chunk of a PNG; comments, ancillary chunks or metadata of unusual size; text strings, Base64 runs or executable signatures ("MZ") inside an image. This finds families 1 and 2, and much of the commodity traffic, at almost no cost.

Size against dimensions. A picture's raw size is width × height × bytes per pixel, and its compressed size is usually much smaller. A file far larger than its dimensions justify, or an image whose raw pixels are a few bytes larger than a plausible executable, deserves a look. The Brazilian case below gives the arithmetic.

Statistics where pixels are involved. Visual attacks on bit planes, the chi-square attack and RS analysis, all explained with worked examples in the steganalysis part, find least-significant-bit loaders; Kaspersky's Zero.T results show why more than one is needed, and Avast's bit planes show what a full-entropy payload looks like. An image that renders as noise, like TerminalFix's, needs no statistics at all.

Behaviour around the image. A process that downloads an image and then allocates executable memory, a server-side process fetching raw files from a code-hosting site, an email rule that blocks messages with a particular attachment, an Exchange transport agent that is not signed by a trusted provider (ESET's own mitigation advice for LightNeuron): these are where the reports actually caught the malware. Sandbox detonation observes exactly this behaviour.

Comparison with an original. Where the cover is a public picture, as with ZeusVM, a reverse image search and a byte comparison settle the question.

Content disarm and reconstruction

Detection asks whether a file carries something; CDR does not ask. MITRE's D3FEND knowledge base of defensive techniques defines Content Rebuild (D3-CNR), also called content reconstruction, as rebuilding a file according to its specification so that any unreferenced components or objects are removed, and a related technique, Content Format Conversion, as a mechanical transformation from one format to another, such as normalization or flattening (MITRE D3FEND, Content Rebuild; MITRE D3FEND, Content Format Conversion). The United Kingdom's National Cyber Security Centre (NCSC) builds its guidance for importing data into sensitive systems on the same idea: complex data types should be transformed into simple, verifiable ones; the transformation engine, which must parse untrusted content and so should be assumed vulnerable, sits on the less trusted side, and a simpler verification engine checks the result, preferably in hardware; embedded content such as documents in archives should be expanded, transformed and verified the same way (NCSC, Content-based attack protection; NCSC, Pattern: safely importing data). Mail and network security products apply the same principle to active content in documents, as the site's articles on FortiMail and Check Point threat prevention describe.

For images, the vendors' claims are their own. OPSWAT's documentation for its MetaDefender Core product says that its Deep CDR decompresses an image to reach the raw data, treats potential steganography by adding noisy data to break hidden elements, discards unnecessary data, rebuilds the file from the processed pixels, and therefore alters the file's size while, it states, retaining at least 99% of image quality (OPSWAT, knowledge base, How and why are my image files altered, version 5.14.2, read as a summary).

What a rebuild does to each family follows from where the bytes sit (this is the article's reasoning from the reports, not a vendor test):

FamilyA rebuild that keeps only what the format needsA rebuild that also changes pixel values
1 Appended dataRemoved: nothing after the end marker survivesRemoved
2 Format structuresRemoved if comments, extra chunks, metadata and custom tables are not carried over; a new quantization table and scan replace LightNeuron'sRemoved
3 Pixel bitsSurvives if the pixels are re-encoded losslessly with the same valuesDestroyed: one level of noise flips least significant bits; lossy re-encoding scrambles all of them
4 MarkupRemoved if the page is re-serialized; survives if the file is passed as textNot applicable
5 Protocol mimicryNot applicable to filesNot applicable

The middle row of family 3 is the important one. A lossless PNG rebuild keeps every pixel value, and with it every least-significant-bit payload; that is why a CDR product has to alter pixel values on purpose, as OPSWAT's documentation says it does. And CDR only acts where files pass through it: on mail, on downloads through an inspecting proxy, at a cross-domain gateway. A loader already inside the network that fetches an image over HTTPS (HTTP secured with Transport Layer Security) from GitHub, a backdoor on the mail server itself, or a backdoor reading HTML from a server it trusts, sees the original. How stripping and re-encoding are done in practice is the subject of Detecting and stripping hidden content in practice.

The Brazilian angle

Brazilian banking malware has appeared in the steganography literature twice, once as a misunderstanding and once as a clear case, and Brazilian infrastructure appears in a third.

  • "Steganography or encryption?", 2011. Kaspersky's Dmitry Bestuzhev wrote on 10 November 2011 that, looking at malicious links from Brazil, he found files with a .jpeg extension that were in fact BMP (Windows bitmap) files in structure; he first thought of steganography, but they contained encrypted malware and additional data, using a block cipher for what he believed was the first time by malware writers in Latin America (Kaspersky, Steganography or encryption in bankers?, 10 November 2011). He listed the attacker's gains: automatic analysis systems might pass the file and later stop checking the link, hosting administrators would not recognize it, and some researchers would not take the time. The case is a lesson in status: a wrong file extension and encrypted content are not steganography, and a report that says "first I thought" is honest about it.
  • A PNG of 63 by 48 pixels, 2016. Kaspersky's Thiago Marques described on 24 March 2016 a Brazilian Trojan that began with a clean phishing PDF linking to a malicious archive, which downloaded a ZIP file containing, among others, three files without extension but with a PNG header. Each showed a solid-colour image of 63 by 48 pixels in a file of 1.33 MB; the image proper was 179 bytes (0xB3), and the rest was the encrypted malicious file, decrypted and run by a separate launcher inside the Internet Explorer process. Marques noted that the method had been publicized in the United States months before and copied in Brazil (Kaspersky, PNG Embedded, 24 March 2016).
  • A Brazilian image host, 2023 to 2024. In Cofense's 2026 report, uploaddeimagens[.]com[.]br was the domain most abused to host the malicious images, appearing in 40% of the campaigns from 2023 to 2024, until security vendors began marking it as malicious and the attackers moved to other sites (Cofense, 20 May 2026).

Worked example: the size of a 63 by 48 picture. Uncompressed, a 63 × 48 image in 24-bit colour needs 63 × 48 × 3 = 9,072 bytes, and a solid colour compresses far below that: Marques's carrier needed 179 bytes for its image. A file of 1.33 MB, more than a million bytes, is about 150 times the size of even the uncompressed bitmap and some 7,000 times the size of the image it displays. No statistical test is needed: a rule comparing file size with width × height × 3 flags it. The wider landscape of Brazilian financial malware is told in Brazilian cybercrime from boleto to Pix.

What defenders can do

  • Classify before you buy. Ask of any reported case, and of any product that claims to detect steganography, which of the five families it addresses. Structure and size checks cover most reported cases cheaply; statistical detectors matter only for pixel embedding.
  • Check structure everywhere images enter. Flag data after end markers, oversized ancillary chunks and metadata, text and executable signatures inside images, and files much larger than their dimensions justify. Treat the alarms as triage.
  • Watch the loader, not only the image. Alert on processes that fetch images and then execute code from memory, on servers that pull raw files from code-hosting or paste sites, and on unexpected email transport agents or add-ins; the discussion of malicious code protection in Special Publication (SP) 800-53 of the National Institute of Standards and Technology () notes that code can be hidden in files using techniques such as steganography (NIST SP 800-53 Revision 5, SI-3).
  • Do not trust reputation alone. GitHub, Twitter, Dropbox, archive.org, image hosts and advertising networks all appear in the reports. Decide which of them servers and workstations really need, and inspect the rest.
  • Rebuild what you can, and know what survives. Apply CDR or transformation to images and documents at mail and web gateways and at boundaries into sensitive networks, and confirm that image processing changes pixel values, not only container structure. Remember that CDR does nothing for files fetched where it does not sit.
  • Read the report, then the sample. A vendor's word "steganography" may mean appended data, encryption in a renamed file, or genuine embedding; the indicators and the defences differ accordingly. Where two reports disagree, as CrySyS and Symantec did on Duqu's reply image, record both.

What to remember

  • "Stegomalware" was coined in 2014 for mobile malware hiding executable parts in app assets; surveys found most information hiding-capable malware between 2011 and 2014, and MITRE now lists dozens of families under two steganography sub-techniques.
  • The reported cases fall into five families: appended data, format structures, pixel bits, text and markup, and protocol mimicry. Each is found and destroyed differently.
  • Duqu, ZeusVM and Hammertoss appended encrypted data after images; FireEye itself called Hammertoss's hiding readily detectable if anyone checked.
  • Stegoloader, Zero.T, Stegano, Worok and TerminalFix put payloads in pixel bits, from one least significant bit to every bit; Kaspersky found the chi-square attack failed on Zero.T's uncompressed payload while RS analysis worked.
  • LightNeuron and the Lunar backdoors hid commands in JPEG quantization tables and scans, comment segments and PNG chunks; Platinum hid them in HTML attribute order and spacing; SUNBURST hid them in its imitation of a vendor protocol.
  • The hidden part is always a stage or a channel, launched by an ordinary loader from a trusted host, and usually encrypted.
  • CDR removes appended and structural payloads by rebuilding files, but pixel payloads survive a lossless rebuild unless pixel values are changed, and CDR acts only where files pass through it.

Sources