Lecture 8 - Information Hiding

Updated 8 Nov 2026

Big Picture

Information hiding has 3 classes:

ClassCore questionOne-line idea
Covert channelsHow can secrets leak through a path nobody expects?Hidden communication through normal system behavior
SteganographyHow can I hide that a message exists?Hide a secret inside another file
Digital watermarkingHow can I hide ownership/integrity info in content?Hide a mark inside media to protect it

Analogy: Three ways to pass a secret in class.

  • Covert channel = a cough pattern that means something.
  • Steganography = invisible ink inside a normal letter.
  • Watermark = a hidden "this is mine" stamp on your homework.

Part 1: Covert Channels

1.1 What Is a Covert Channel?

  • Earlier we studied malicious programs that perform wrong actions
  • Now we study programs that disclose confidential/secret info
    • They violate confidentiality, secrecy, or privacy
  • Covert channel = a channel of unwelcome disclosure of info (extract/leak data)
  • Formal definition: a type of attack that creates a capability to transfer information between processes that are not supposed to be allowed to communicate by the computer security policy
  • Real-world examples
    1. Old military radio network → the busiest node is probably the command center
    2. Spies recognizing each other → holding a certain magazine, or a secret gesture when approaching

Analogy: Two prisoners in separate cells are forbidden to talk, so they tap patterns on the shared pipe. The "no talking" rule is obeyed, yet information still flows. The pipe is the covert channel.

How programmers create one

  • Give a program a built-in Trojan horse
  • The Trojan uses a covert channel to send out extracted data
  • Spy = e.g. the programmer who planted the Trojan (directly or via a spy program)

Should be:

Protected          Legitimate
Data     <------[ Service Pgm ]------>   User

Actually is:

Protected          Legitimate
Data     <------[ Service Pgm ]------>   User
                  [ w/ Trojan h. ]
                        |
                        | covert channel
                        v
                       Spy

Analogy: A pizza delivery guy brings you pizza (normal service), but also secretly reports your address and schedule to a burglar. You only see the pizza.

1.2 How Is Leaked Data Hidden?

  • Example: hide leaked data in output reports (or displays) using different "marks":
    • Vary the report format: change line length, change no. of lines per page
    • Print or don't print certain values, characters, or headings
  • Each mark can convey one bit of info

Example: leak a 4-bit value of a protected variable XX

BitSet to 1 if...Otherwise
Bit-1more than 1 space follows ACCOUNT CODE:0
Bit-2last digit in the "seconds" field is > 50
Bit-3heading uses TOTALS0 (uses TOTAL)
Bit-4no space follows the subtotals line0
  • Values that 4 bits can leak:
    24=16\boxed{2^4 = 16}

Analogy: Four light switches on a wall. Each report "mark" is one switch. Someone watching reads the 4 switches and rebuilds the secret, never touching the protected file.

1.3 Why Covert Channels Are Dangerous

  • A pure example of security through obscurity: sends information without the knowledge of the network admin or other users
  • Have been used to steal data from highly secure systems
  • Their aim is to bypass firewalls or intrusion detection systems, so they are crafted carefully to make communication invisible
  • Hard to detect because hidden info is embedded in normal-looking traffic. In a large network, packets stay valid and ordinary

1.4 Two Types of Covert Channels

TypeHow it conveys infoAnalogy
Storage channelPresence/absence of an object (or its contents) in storageLeaving a note (or an empty spot) on a shared whiteboard
Timing channelVarying the speed/timing at which things happenKnocking fast or slow on a door

A) Storage Covert Channel

  • Definition: any communication path formed when one process causes an object to be written and another process observes the effect of that write
  • Uses memory locations: object attributes, an object's existence, shared resources
  • Consequence: Confidentiality is lost; attackers get important info about the system
  • Exposure period: Implementation. The channel is largely a flaw caused by implementers
  • Platform: all languages, all operating platforms
  • Likelihood of exploit: High

Other examples

  • Using a file meant only for audit info to carry user passwords
  • Using a file name or status bits (readable by all users) to signal the file's contents
  • Steganography itself is a good example of a covert storage channel

Mitigation: ensure all reserved fields are set to zero before messages are sent, and that no unnecessary information is included. (Source: https://cwe.mitre.org/data/definitions/515.html)

Analogy: Before mailing a form, erase all blank margins so nobody can hide notes in them.

Case study: ICMP error echoing

First, what is ICMP?

  • Internet Control Message Protocol: a supporting protocol in the Internet protocol suite
  • Used by network devices (e.g. routers) to send error messages and operational info about success/failure when talking to another IP address
  • Everyday use: ping = ICMP echo request (Host → Server) and echo reply (Server → Host)


(Diagram: Host and Server exchanging ICMP echo request / echo reply, and the ICMP packet format)

ICMP packet format

FieldSizeMeaning
Type8-bitMessage type, tells the receiver how to respond
Code8-bitExtra info about the error and its type
Checksum16-bitChecks the complete message to ensure data is delivered correctly
Extended Header32-bitPoints out issues in the IP message (pointer to the problem byte)
Data/PayloadvariableIPv4: up to 576 bytes; IPv6: up to 1280 bytes
  • Common Type values:
    • 0 = Echo reply
    • 3 = Destination unreachable
    • 5 = Redirect message
    • 8 = Echo request
    • 11 = Time exceeded
    • 12 = Parameter problem

Type (8)+Code (8)+Checksum (16)=32 bits\boxed{\text{Type (8)} + \text{Code (8)} + \text{Checksum (16)} = 32 \text{ bits}}

Analogy: An ICMP packet is like a post-office return notice. Type = what kind of notice, Code = the reason, Checksum = seal proving it isn't damaged, Payload = a copy of your original letter.

How the covert storage channel works

  • Because of ambiguities in the ICMP RFC, many IP implementations use the memory in the packet for storage or calculation
  • So ICMP error packets that echo back parts of received messages may contain flaws or extra info that betray the identity of the target OS
  1. Triggering packet: a sender sends a packet that causes an ICMP error at the target
  2. Target host: its network stack builds an ICMP error and copies part of the triggering packet
  3. ICMP error response: ICMP header | quoted original packet | unexpected bytes
    • unexpected bytes very important, may convey information
    • Layout: ICMP Header → Original IP Header → Original Payload → Extra/Residual
  • Why storage, not timing? Info is in the contents of packet fields, not packet timing
  • Key idea: legitimate protocol storage → unintended/hidden info → observable by another party
  • ICMP error echoing => legitimate protocol behavior
    • ICMP error + part of originalcal packet / other data**
  • Information leakage = unintended side effect of how the behavior is implemented.

อาจจะถามว่าทำไม ICMP มัน legitimate ทำไมต้องระวังมันวะ


ก็ Data Leakage เกิดขึ้นนี่ไง

Example: leakage reveals the target's stack (fingerprinting)

  • Flow: attacker sends crafted packet to provoke an ICMP error → target OS responds per its implementation → returned fields/bytes are inspected
ObservationPossible causeSecurity meaning
Returned length differsDifferent ICMP implementation behaviorHelps fingerprint the TCP/IP stack
Fields contain unusual valuesImplementation-specific initializationMay reveal internal behavior
Unexpected residual bytesPoor handling of response bufferMay expose info not meant for transmission
  • Takeaway: the receiver doesn't need to break encryption; the protocol response itself discloses distinguishing info

Analogy: You ask a clerk "is this form valid?" and they return it stamped "rejected", with their own sticky note accidentally stuck on it. The sticky note (extra bytes) reveals things about them (their OS).

Related: ICMP flood attack

  • Attacker controls a Bot, which sends repeated ICMP echo requests to a Router; the router keeps sending echo replies
  • Overloads the target (a DoS-style attack, not a covert channel, but it abuses the same protocol)


(Diagram: Attacker → Bot ⇄ Router, repeated ICMP echo request / echo reply)

Analogy: Thousands of people phone a shop asking "are you open?" at once. The shop can't serve real customers.

B) Covert Timing Channel

  • Definition: a mechanism an attacker can exploit to conceal secrets in the timing intervals of transmitted packets
  • Essentially any method that uses a clock/measurement of time to signal the value being sent
  • Exists in single-computer and network settings
  • Works by modulating some aspect of system behavior over time, so the receiving program can observe behavior and infer protected info


(Figure 2: synchronization problem in the IP covert timing channel. (a) Temporary change in network conditions puts the channel into an error state after the fourth bit. (b) A longer-term change puts the channel into the error state and it stays there.)

  • Timing side channel: even external monitoring of operation time can leak secrets
    • E.g. a cryptographic operation exposes its internal state if its run time varies with the state
    • Attackers can use timing differences to infer properties of a private key, making it easier to guess

Analogy: Morse code with a flashlight. The light is ordinary, but the gaps carry the message. Or a safe-cracker listening to click speed.

Example: password hacking by timing

  1. The attacker observes how long authentication takes when a user types the correct password
  2. They try strings of various lengths. At the right length the computation takes slightly longer because the for loop runs at least once
  3. They can then learn the password one character at a time: a correct first char makes the run take longer than a wrong guess
    • Can break even a sophisticated password with a few hundred guesses
def validate_password(actual_pw, typed_pw):
    if len(actual_pw) <> len(typed_pw):
        return 0
 
    for i in len(actual_pw):
        if actual_pw[i] <> typed_pw[i]:
            return 0
 
    return 1
  • Why it leaks: it returns early at the first wrong character. More correct characters = longer run time
  • Guesses needed (password length LL, alphabet size NN):

Without leak: NLWith timing leak: N×L\boxed{\text{Without leak: } N^L} \qquad \boxed{\text{With timing leak: } N \times L}

Analogy: A 4-digit lock normally needs up to 10,000 tries. If it beeps whenever one digit is right, you crack each digit alone: at most 10 × 4 = 40 tries.

Mitigation (Likelihood of exploit: Medium)

  • Architecture & Design phase: specify implementation strategies that do not introduce time variances in operations
  • Implementation phase: add artificial or random delays so CPU time used is independent of the action taken
  • Ref: https://cwe.mitre.org/data/definitions/208.html

หรือว่าจะทำ Rate-limit authentication attempts ก็ทั่วไป

Analogy: A bank teller who always takes exactly 30 seconds per customer, whether the answer is yes or no.

1.5 Covert Channel vs Side-Channel vs Backdoor

Covert channelSide-channel attackBackdoor
WhatInsider process leaks info to an outsider process not allowed to access itExploit that gathers info by measuring indirect effects of a system/hardware, not attacking the code directlyHidden method that bypasses authentication/access control
NatureHidden communicationPassive leakageHidden access
Who actsSender may be a Trojan horse; receiver only needs to be an unprivileged processAttacker only measuresAttacker walks in
  • Backdoor → bypasses security controls | Covert channel → hides communication

Analogy:

  • Covert channel = a friend inside the building signals to you outside.
  • Side-channel = you stand outside and guess from lights, noise and heat.
  • Backdoor = a secret key to the back door so you can walk in.
  • (From slides) Two people secretly blinking messages in a crowded concert hall.

Types of side-channel attack

TypeWhat the attacker measures/uses
ElectromagneticEM radiation / radio waves from a device, to reconstruct its internal signals
AcousticSounds from a device. PoC attacks reconstruct keystrokes from audio of typing
PowerAmount and timing of power consumption of a device/subsystem
OpticalVisual cues to learn about a system
TimingHow long an operation takes
Memory cacheAbusing memory caching to gain additional access
Hardware weaknessesPhysical traits to induce behavior, cause a fault, or exploit data remanence (data that persists after deletion)

1.6 Covert Channel Conclusion

  • A serious threat to confidentiality, and thus security
  • Any virus/Trojan horse can create one
  • In open systems there is no way to prevent covert channels
    • Very high security systems need a painstaking, costly design that prevents (only some) channels
    • Analysis must be repeated periodically as the system evolves

Part 2: Steganography

2.1 What Is Steganography?

  • Information hiding started with steganography
  • Definition: the art and science of writing hidden messages so that no one apart from the intended recipient knows the message exists. The existence of the info is secret
  • Word origin: Stego = hidden, Graphy = writing → "art of hidden writing"
  • Information hiding therefore splits into Steganography and Watermarking


(Tree: Information Hiding → Steganography and Watermarking)

History (dates back to 440 BC): initial application = passing secret messages

  • Histaeus tattooed information on a slave's shaved head, then waited for the hair to grow back
  • Germans in World War II used microchips (messages shrunk to a tiny dot)


(Cartoon of Histaeus tattooing a slave's head; photo of a tiny microchip on a fingertip)

Analogy: Steganography is hiding the box so nobody knows it exists. (Cryptography is a locked box everyone can see.)

2.2 Where Can Data Be Hidden?

  • Media types: steganography in text, images, audio
  • To human eyes, data looks like known forms (images, e-mail, sounds, text). Most Internet data also has gratuitous headers. These are the media exploited by steganography and marking
  • Info can be hidden in almost any file format
  • Formats with more room for compression are best
    • Images: JPEG, GIF
    • Sound: MP3, WAV
    • Video: MPG, AVI
  • Hidden info may be encrypted, but not necessarily
  • Many free tools do this for you


(Slide: Steganography under various media: text, images, audio)

Text example (acrostic): the first letter of each word hides a message

  • "To human eyes, data usually contains known forms, like images, e-mail, sounds, and text. Most Internet data naturally includes gratuitous headers, too. These are media exploited using new controversial logical encodings: steganography and marking."
  • First letters: T H E D U C K F L I E S A T M I D N I G H T T A M E U N C L E S A M
  • Decoded: "The duck flies at midnight. Tame uncle Sam"
  • Simple but effective when done well

Analogy: Reading down the first letter of every line of a poem to find a secret sentence. To a normal reader it's just a poem.

2.3 The Steganographic Model

  • Inputs: Cover File XX, Secret Message MM, (optional) Key KK
  • The Steganographic Encoder embeds MM into XX:

Stego Object=f(X,M,K)\boxed{\text{Stego Object} = f(X, M, K)}

  • The Stego Object looks very similar to the cover file, with no visible changes
  • It travels through a communication channel
  • The Steganographic Decoder takes the Stego Object (and key KK) and outputs the Secret Message MM


(Diagram: Cover File + Secret Message → Encoder f(X,M,K) → Stego Object → Channel → Decoder → Secret Message; Key K shared by both)

Analogy: Cover file = a normal envelope. Secret message = a tiny letter. The encoder slips the letter into a hidden pocket. Only someone who knows the pocket (the key) can take it out.

2.4 Image Steganography & LSB

Image basics

  • Digital images are made of pixels; their arrangement forms the image
  • Each pixel is a binary number: 8-bit (gray) or 24-bit (color)
  • Bigger image = more room to hide info, but larger images may need compression to avoid detection

28=256 gray levels224=16,777,216 colors\boxed{2^8 = 256 \text{ gray levels}} \qquad \boxed{2^{24} = 16{,}777{,}216 \text{ colors}}
Least Significant Bit (LSB)

  • LSB = the least weighted bit of a binary number. Numbers are written with the MSB on the left, so the LSB is the furthest-right bit
  • Most algorithms exploit that image LSBs hold little significant info and look somewhat random, so they are ideal hiding spots
  • Desired property: modify LSBs in a controlled manner so hidden info can be extracted later without visibly degrading the image. After embedding, LSBs may look less random, but the goal is to stay imperceptible to the human eye and look random to casual observers
    • If there's high distortion (degradation) -> low visual quality -> maybe data is broken

Analogy: Changing a price from 19.99to19.99 to 19.98. Nobody notices. But if every last digit follows a hidden pattern, a statistician can tell they aren't natural.

Example 1: simple LSB substitution with K=3K = 3

  • Replace the last 3 bits of each pixel with 3 message bits. Message: 100 011 101 110
PixelCover valueCover binaryMessage bitsStego binaryStego value
11010110010110001100100100
220000101000110001001119
366010000101010100010169
42201101110011011011110222
  • Max change per pixel when replacing KK LSBs:

∣Δ∣≤2K−1\boxed{|\Delta| \le 2^K - 1}

  • With K=3K=3, change is at most 7 out of 255, so it is barely visible

(Diagram: Cover-image 2×2 grid → Stego-image with message bits in the LSBs)

Example 2: hiding "cat" (last 2 bits of each byte)

LetterASCII bits (in groups of 2)
c01 10 00 11
a01 10 00 01
t01 11 01 00
  • Original image: 4 pixels (red, black, yellow, blue), 3 color bytes each. After embedding, the colors look the same but the LSBs spell "cat"

(Slide: Original Image bytes vs Stego Image bytes with modified LSBs in red)

Analogy: Turning a volume knob from 50 to 51. You can't hear it, but it can encode a "1".

2.5 Network (Protocol) Steganography

  • Embedding info within network control protocols such as TCP, UDP, ICMP
  • You can use steganography in some covert channels found in the OSI model
  • Example: hide info in optional fields of a TCP/IP packet header

Analogy: Writing a secret in the "optional notes" box of a shipping label. The package is delivered normally.

2.6 Applications and Tools

Applications

Tools

ToolNotes
StegosuiteFree, written in Java; hides info in image files
SteghideOpen source; hides a secret file in image or audio
Xiao SteganographyFree; hides data in BMP images or WAV files
SSuite PicselFree, portable; hides text inside an image, using a different approach
OpenPuffProfessional tool; stores files in image, audio, video or flash files

2.7 Steganalysis (Detecting & Recovering Hidden Data)

  • Steganalysis = the art of detecting and decoding hidden data
  • Hiding info alters media properties, which may cause degradation or unusual characteristics
  • The pattern of degradation (existence of hidden data) of a specific method is called a signature, and steganalysis software can be trained to look for signatures

Siganture = existence of hidden data

Analogy: A forger always adds a tiny smudge in the corner of every fake painting. Experts learn to spot the smudge (the signature).

Detection methods

MethodHow it works
Human observationA text document in a word processor may show appended spaces / invisible characters. Images and audio/video may show distortions, but usually only when the hidden data is too large for the media
Software analysisEven small processing can filter out echoes and shadow noise in audio to find hidden info. If the original file is available, hash values easily detect modifications
Statistical analysisAfter embedding, the LSB is no longer random (especially with encrypted data). Statistical tests on LSBs reveal whether they are random. Works on audio (LSB) too
Frequency scanningSoftware searches for high, inaudible frequencies

Where can hidden data be found? (forensic tools look at data that shouldn't normally be there)

  1. Disk structures: unused, hidden or abnormal areas (sectors, slack space, residual storage)
  2. File slack: unused bytes between the logical end of a file and the end of its allocated storage unit
  3. Network packets: headers and fields with unusual or invalid values
  • Key idea: look in places that are normally unused, unnecessary, or statistically unusual

File slack explained

  • File slack: EOF to end of cluster
  • RAM slack: EOF to end of sector
  • Drive slack: start of the next sector to end of cluster

File Slack=RAM Slack+Drive Slack\boxed{\text{File Slack} = \text{RAM Slack} + \text{Drive Slack}}

  • Older forensic terminology calls residual bytes after the file's logical end "RAM slack". They may hold fragments of old memory/disk contents, useful as evidence
  • Important: this is mainly a classic magnetic-disk / legacy OS concept. Modern filesystems, SSDs, zero-filling, TRIM, encryption and buffering change what residue is recoverable

(Diagram: clusters made of sectors; file ends at EOF, leaving RAM slack and file slack)

Analogy: You put a short note in a big storage box. The empty space around it may still hold crumbs of what the box held before.

Recovery

  • Recovering watermarked data is extremely hard. Very few methods exist to recover hidden, encrypted data
  • Data hidden on disk is much easier to find. If unencrypted, once found it's already recovered
  • Deleted data can be reconstructed (even on magnetically wiped drives)
  • Check swap files for passwords and encryption keys stored in the clear
  • Software tools can: scan for and reconstruct deleted data, break encryption, or destroy hidden info by overwriting

2.8 Steganography vs Cryptography

SteganographyCryptography
DefinitionHides the existence of communicationConverts data into an incomprehensible form
PurposeKeep communication secureProvide data protection
Data visibilityNeverAlways
Data structureDoesn't alter overall structureAlters overall structure
KeyOptional (more secure if used)Necessary
FailureOnce the secret is discovered, anyone can use the dataIf you have the decryption key, you recover the message from ciphertext

Analogy: Cryptography = a locked box everyone can see but can't open. Steganography = hiding the box so nobody knows it's there.


Part 3: Digital Watermarking

3.1 What Is a Watermark?

  • Paper watermark: a distinguishing mark impressed on paper during manufacture, visible when the paper is held up to the light (e.g. a $ bill)
  • Use in print media → authenticity of print media


(Faint paper watermark in a face image; US $10 bill watermark)

  • Digital watermarking: an application of information hiding: hiding watermarks in digital media such as images
  • A digital watermark can be:
    • Perceptible (e.g. author info in a .doc)
    • Imperceptible (e.g. author info in images)
  • Visibility is application dependent; invisible watermarks are generally preferred

3.2 Applications

ApplicationPurposeExampleNotes
Copyright protectionProve ownership of digital mediaCut-and-paste of imagesHidden watermark carries the copyright info
Tamper proofingFind out if data was tamperedChanging the meaning of an imageHidden watermark tracks change in meaning. Issue: accuracy of detection
Quality assessmentTrack degradation of visual qualityBunny model losing qualityHidden watermark tracks change in visual quality


(Chaplin "The perfect Match" image; edited image with drawn features; Bunny model loss of visual quality)

Tamper-proofing requirements

  • Robust against normal user operations: compression, format conversion
  • Accurate detection: only changes in meaning should be detected

3.3 Watermarking vs Cryptography vs Steganography

  • Watermark DD → hide information in DD
  • Encrypt DD → change the form of DD

Analogy: Watermark = signing your name in the corner of a painting (still visible). Encryption = locking the painting in a vault.

Steganography vs Watermarking (Venn diagram)

  • Steganography only: information hiding, hiding capacity
  • Both: perceptual transparency, robustness
  • Watermarking only: security, integrity, recovery

(Venn diagram: Steganography vs Watermarking)

Full comparison

CriterionSteganographyWatermarkingCryptography
CarrierAny digital mediaMostly image/audio filesUsually text based
Secret dataPayloadWatermarkPlain text
KeyOptionalOptionalNecessary
Input filesAt least two (unless self-embedding)At least two (unless self-embedding)One
Output filesStego-fileWatermarked fileCipher-text
ObjectiveSecret communicationCopyright preservingData protection
VisibilityNeverSometimesAlways
FlexibilityFree to choose any coverCover choice is restrictedN/A
Fails whenIt is detectedIt is removed/replacedIt is de-ciphered

3.4 The Watermarking Process

  • Goal: embed ownership info into content and later verify its presence
  • Inputs: Original data DD (image/audio/video), Watermark WW (owner ID/copyright), Secret key KK (controls embedding)

Step 1: Embed

DW=Embed(D,W,K)\boxed{D^W = \text{Embed}(D, W, K)}

  • DWD^W looks almost unchanged but carries WW. It is not simply D+WD + W

Step 2: Extract (from a suspected copy D′WD'^W)

W′=Extract(D′W,K)\boxed{W' = \text{Extract}(D'^W, K)}

Step 3: Compare using a correlation threshold τ\tau

corr(W,W′)≥τ\boxed{\text{corr}(W, W') \ge \tau}

  • If true → ✓ Watermark detected
  • Security principle: the algorithm may be public; keep KK secret. The key makes unauthorized detection, removal or forgery harder

(Flow diagram: D + W + K → EMBED → D^W; suspected copy → EXTRACT with K → COMPARE → Watermark Detected)

Analogy: A bank note. The design is public (algorithm), but the special ink recipe (key) is secret.

Simple block example: how the key picks locations

  1. Represent host data DD as blocks (e.g. 12 blocks, a 3×43\times4 matrix)
1234
5678
9101112
  1. Key KK seeds a pseudorandom selection. Here blocks 1, 6, 8, 10 are chosen
  2. Embed WW: insert watermark bits (e.g. an encoded owner ID) with small controlled changes to selected blocks
  3. Produce DWD^W: visually/functionally close to DD, but the selected locations carry the watermark
  • Security intuition: without KK, an observer can't easily tell which blocks carry the watermark

Analogy: A treasure map with 12 spots, but only 4 secret spots hold treasure. Without the key you'd have to dig up all 12.

3.5 Ways to Classify Watermarking

A) By data domain (where you embed)

SpatialTransform-based
IdeaEmbed directly in pixels with no transformation (e.g. LSB, LBP: Local Binary Pattern)Convert data to another format, embed, convert back
ProsLow complexity, simple, fast, easyGenerally more robust; survives some compression/processing; suits ownership/copyright
ConsCan't resist attacks (compression, filtering, resizing, editing damage it)More computation; robustness depends on coefficient choice & strength; too much change hurts quality
Typical useFragile watermarking / tamper detectionRobust copyright protection
  • Spatial LSB example: pixel 10110110210110110_2, embed bit 1 by changing LSB → 10110111210110111_2

101101102=18210→101101112=18310\boxed{10110110_2 = 182_{10} \rightarrow 10110111_2 = 183_{10}}

  • Spatial flow: Original image (host DD) → modify selected pixels (key KK chooses locations) → watermarked image
  • Transform example: converting 3D models to polar coordinates makes them robust against scaling
  • Key difference: spatial modifies pixels; transform modifies coefficients in another representation

Transform-domain flow: Original DD → Transform (DCT/DWT/DFT) → Modify coefficients (embed WW with KK) → Inverse transform → Watermarked DWD^W

DCTDWTDFT
NameDiscrete Cosine TransformDiscrete Wavelet TransformDiscrete Fourier Transform
What it doesConverts image blocks into cosine-frequency coefficientsSplits image into LL, LH, HL, HHsubbandsConverts image into sinusoidal frequency components
Key infoLow freq = broad content; high freq = fine detailCaptures frequency/detail and approximate spatial locationEach coefficient has magnitude and phase
EmbeddingModify selected mid-frequencycoefficientsSelected wavelet subbandsModify selected Fourier coefficients
Useful forBest-known link: JPEG compressionMulti-resolution watermarkingFrequency-domain designs
  • Remember: DCT = cosine frequencies | DWT = multi-resolution subbands | DFT = magnitude + phase spectrum

Analogy: A song as a waveform (spatial) vs. a list of bass/mid/treble levels (frequency). Transform-domain watermarking is like nudging the "mids" slightly. It still sounds the same and the mark survives compression better.

B) By extraction (what the detector knows)

Informed / Non-blind (Private)Semi-blind (Semi-private)Blind / Oblivious (Public)
UsesD,K,W{D, K, W}K,W{K, W}K{K} only
FormulaDetect(DW,D,W,K)\boxed{\text{Detect}(D^W, D, W, K)}Detect(DW,W,K)\boxed{\text{Detect}(D^W, W, K)}W′=Extract(DW,K)\boxed{W' = \text{Extract}(D^W, K)}
Original DD needed?Yes (must be stored/accessible)NoNo
NotesFaster, more reliable, more robust to tampering (guided by known parameters and keys)Expected watermark/reference knownNeeds less storage but harder: must estimate the watermark with no guidance, so less reliable and slower. Some schemes use public parameters instead of a secret key
  • Remember: Informed = original available | Semi-blind = watermark/reference known | Blind = extract without original DD or WW

Analogy (spotting a fake painting): Informed = original painting beside the suspect. Semi-blind = no original, but you know what the signature looks like. Blind = neither, you only know the artist's secret style.

C) By robustness (application dependent)

CategoryRobust againstExample use
FragileNothing on purpose: losing the watermark implies tamperingTamper proofing
Semi-fragileUser-level operations, e.g. image compressionTolerates normal edits
RobustAdversary-based attacks, e.g. noise additionCopyright protection

If you want high robust - will you use transformed based or spatial
transform based

If we need ==minimal distortion ==either on spaital on transformed based, we need to perform on LSB

Analogy: Fragile = a "warranty void" sticker that tears when opened. Semi-fragile = survives rain but not peeling. Robust = a tattoo.

RequirementMeaningKey points
CapacityAs much info (watermarks) as possibleMultiple watermarks supported; more capacity → more robustness since watermarks can be replicated
SecurityOnly accessible by authorized partiesIf the key is lost, anyone can read and remove the watermark. If the watermark is public, it can be re-encoded and copyright info is lost
RobustnessResist hostile/user-dependent changesSee attacks below
ImperceptibilityInvisibleVisible marks → distortion; invisible marks → minimal distortion (Stanford Bunny 3D model)

(Stanford Bunny 3D model: visible watermark = distorted; invisible watermark = looks the same)

Note: These goals trade off. Higher capacity and robustness usually mean stronger changes, which hurts imperceptibility.

3.7 Attacks on Digital Watermarks

A) Removal attacks

  • Goal: destroy or weaken the watermark while keeping the host content useful
  • Flow: watermarked content → attacker processing (no secret key needed) → distorted content (usable, WW weakened) → detector may fail
AttackHow it works
Noise / filteringModify signal values or suppress components carrying watermark energy
Compression / quantizationDiscard or coarsen coefficients; weak watermark parts disappear
Geometric / signal changesCropping, scaling, rotation, resampling disrupt synchronization
CollusionCombine several differently watermarked copies to estimate and reduce copy-specific marks
  • Collusion example: Copy A (W1W_1) + Copy B (W2W_2) + Copy C (W3W_3) → compare/average → host content stays, copy-specific marks shrink

Dˉ=1n∑i=1n(D+Wi)=D+1n∑i=1nWi\boxed{\bar{D} = \frac{1}{n}\sum_{i=1}^{n}(D + W_i) = D + \frac{1}{n}\sum_{i=1}^{n} W_i}

  • Each individual WiW_i is diluted by 1n\frac{1}{n}
  • Robust watermarking must stay detectable after expected content-preserving transformations

Analogy: Five friends each got a slightly different copy of a test with a hidden ID. They overlay the copies and keep only what's identical, so the unique IDs fade.

B) Geometric attack

  • Intends to distort the detector's synchronization with the embedded info
  • The detector can recover the watermark once perfect synchronization is regained
  • Benchmarking tools for image watermarking: Unzign and Stirmark
    • Unzign: local pixel jittering; very effective against spatial-domain schemes
    • Stirmark: global and local geometric distortions
  • Common name: affine transformation

    (Letter "A" turned into a skewed shape by an affine transformation)

Analogy: A code hidden at exact grid positions on paper. You slightly rotate or stretch the paper. The code is still there, but the reader can't find the positions.

C) Reorder attack

  • Reversal of the sequence of data values, e.g. a reverse filter on audio reverses the order in time
  • If the encoding depends on order and the order changes → watermark lost, extraction fails
  • Example: samples 1,2,31,2,3 carrying bits 0,1,10,1,1 become 3,2,13,2,1 carrying bits 1,1,01,1,0


(Diagram: samples 1-2-3 with bits 0-1-1 → Attack → samples 3-2-1 with bits 1-1-0)

Analogy: A code "red, green, blue" read backwards becomes "blue, green, red", a different message.

D) Cryptographic attacks

  • Brute-force search for the embedded secret info
  • Oracle attack: the attacker makes a few modifications and checks whether the work is still inside the detection region. Repeating this teaches them how the detector works
    • Sensitivity analysis attack: uses a binary decision (yes/no) about whether the watermark exists
    • Gradient descent attack: exploits the values of the detection statistic

Analogy: "Hot or cold". Sensitivity analysis = friend only says yes/no. Gradient descent = friend says how warm, so you find it faster.


Bonus: Additional Cyber Attacks

PWN

  • Pronounced "p-own"; abbreviation of professionally own
  • "Owned" is slang from 1990s hackers: "rooting", i.e. gaining administrative control over someone else's computer
  • CTF style: you get a binary and a link to a program on a remote server. Cause a buffer overflow, etc., to bypass normal functionality and make the program read the flag to you

Analogy: You get a vending machine's blueprint and phone number. Feeding it a weirdly long input confuses it into handing out the secret prize.

Zero Standing Privileges (ZSP)

  • = enough privilege, just-in-time privilege (granted for a certain account)
  • A legitimate user with minimum privileges can request what they need and elevate at the time of execution of a command/application that needs such rights
  • Privileges are tied to the command/application, not the login session, and are automatically revoked when it completes or exits
  • Just enough privileges via elevation supports the ZSP model

Analogy: A hotel key card that opens the gym for 1 hour, then stops working. You never carry a master key.

Pass-the-Hash (PtH) Attack

  • Attacker steals a hashed user credential without cracking it to get the original password
  • Lets them use a compromised account without the plain-text password or brute force
  • The stolen hash is reused to fool the authentication system into creating a new authenticated session on the same network
  • Password hashes usually don't change when the password changes, so PtH gives the attacker extra time to roam the network undetected

Steps

  1. Attacker sends a connection request → Server
  2. Server sends an authentication challenge
  3. Attacker gives username + stolen password hash
  4. Server verifies the hashed value and grants permission

How can we prevent PtH Attack?
don't let a stolen password hash be reusable for authentication

(Diagram: Pass The Hash Attack, Attacker ⇄ Server, 4-step exchange)

Analogy: A thief steals your fingerprint scan file and shows it to the door scanner. The scanner checks only the file, not you, so the door opens.


Quick Review Cheat Sheet

TopicRemember
Covert channelHidden communication between processes that shouldn't talk
Storage vs timingWhat is stored vs when/how fast
ICMP error echoingExtra/residual bytes in error replies → OS fingerprint
Timing attack fixMake run time constant or add random delay
Side channelMeasure physical/indirect effects (power, sound, EM, timing...)
BackdoorHidden access
SteganographyHide that a message exists (LSB in images is the classic)
SteganalysisDetect via signatures, statistics, hashes, slack space
WatermarkHidden ownership/integrity mark; DW=Embed(D,W,K)D^W = \text{Embed}(D,W,K)
Spatial vs transformPixels (simple, fragile) vs coefficients DCT/DWT/DFT (robust)
Informed / semi-blind / blindNeeds D, W, K / W, K / K
Fragile / semi-fragile / robustTamper proof / survives user edits / survives attackers
AttacksRemoval, geometric, reorder, cryptographic (oracle)