Steganography

Steganography-1754036358108.webp549x277

https://georgeom.net/StegOnline/upload

Types of Steganography

Stego CTF Checklist

Tools for Hiding Inforamtion

Audio

Folder

Writeup


Steganography is defined as the technique of hiding a secret message within an ordinary message and extracting it at the destination to maintain the confidentiality of data.

The core idea of steganography is to hide the existence of a message. This distinguishes it from cryptography, which ensures confidentiality by encrypting a message, making it unreadable without the key, but still discloses the presence of the encrypted message. Steganography provides "security through obscurity".

An attacker who has successfully compromised a system may also use steganography techniques to hide malicious code or files, or to cover their tracks.

Core Concepts and Components

Steganography hides data "behind" other data without the knowledge of the user.

The hidden data can be in the form of plaintext or ciphertext. Steganography uses the bits of unused data in ordinary files, such as images, text, audio, and video, with other surreptitious bits.

Classification of Steganography

Steganography is generally classified into two main areas based on the technique used: Technical Steganography and Linguistic Steganography.

1. Technical Steganography

Technical steganography uses physical or chemical methods, including invisible ink, microdots, and other means, to hide the existence of a message.

A. Non-Computer-Based Methods:

B. Computer-Based Methods:

These methods change digital carriers to embed information foreign to the native carriers. Communication can occur in the form of text, binary files, disk and storage devices, and network traffic and protocols.

Computer-based techniques are further divided into six categories based on modifications applied during the embedding process:

  1. Substitution Techniques: The attacker substitutes the bits used to encode the secret message by substituting insignificant bits with the secret message. The receiver must know the locations where the attacker embeds secret information.
  2. Transform Domain Techniques: These techniques hide the information in the significant parts of the cover image, such as cropping, compression, and other image processing areas, making it difficult to carry out attacks. Transformations can be applied to blocks of images or over the entire image.
  3. Spread Spectrum Techniques: This method is less susceptible to interception and jamming. Communication signals occupy more bandwidth than required, and the sender increases the band spread by means of code. The receiver uses a synchronized reception with the code to recover the information from the spread spectrum data.
  4. Statistical Techniques: This utilizes the existence of "1-bit" steganography schemes by modifying the cover in such a way that the transmission of a "1" occurs. The statistical characteristics of the original cover remain unchanged, making it difficult to distinguish between modified and unmodified covers.
  5. Distortion Techniques: The user obtains a stego-object by implementing a sequence of modifications to the cover. The receiver must measure the differences between the original cover and the received cover to reconstruct the sequence of modifications.
  6. Cover Generation Techniques: Digital objects are developed specifically to cover secret communication. When this information is encoded, it ensures the creation of a cover for secret communication.

2. Linguistic Steganography

Linguistic steganography hides the message in the carrier of another file. It includes Semagrams and Open Codes.

Types of Steganography based on Cover Medium

Steganography is also classified based on the medium used to conceal the message:

Attacker Use and Evasion

Attackers use steganography for multiple malicious purposes:

  1. Hiding Malware: Attackers can inject malicious content or instructions into images, audio, or multimedia files to evade detection by security controls like IDS or EDR solutions. The malware can read instructions hidden in photos and act accordingly.
  2. Hiding Tools/Plans: Attackers can insert information such as source code for a hacking tool, a list of compromised servers, plans for future attacks, and communication channels as part of a steganographic attempt.
  3. Covering Tracks: After a malicious operation, an attacker can use steganographic techniques to hide evidence of security compromise.

Steganalysis (Detection)

Steganalysis is the reverse process of steganography: discovering the existence of hidden information in a medium and, if possible, recovering the message.

Steganalysis attempts to detect variance between bit patterns and unusually large file sizes. If the message was encrypted before being embedded, the security professionals may find the encrypted file but find the message remains hidden because the encryption is often infeasible to break.

Steganalysis Methods/Attacks include:

Detection tools include zsteg (for stego-hidden data in PNG and BMP images), StegoVeritas, Stegextract, StegoHunt, Steganography Studio, and Virtual Steganographic Laboratory (VSL).