Lecture 8 - Information Hiding
Big Picture
Information hiding has 3 classes:
| Class | Core question | One-line idea |
|---|---|---|
| Covert channels | How can secrets leak through a path nobody expects? | Hidden communication through normal system behavior |
| Steganography | How can I hide that a message exists? | Hide a secret inside another file |
| Digital watermarking | How 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
- Old military radio network → the busiest node is probably the command center
- 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
| Bit | Set to 1 if... | Otherwise |
|---|---|---|
| Bit-1 | more than 1 space follows ACCOUNT CODE: | 0 |
| Bit-2 | last digit in the "seconds" field is > 5 | 0 |
| Bit-3 | heading uses TOTALS | 0 (uses TOTAL) |
| Bit-4 | no space follows the subtotals line | 0 |
- Values that 4 bits can leak:
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
| Type | How it conveys info | Analogy |
|---|---|---|
| Storage channel | Presence/absence of an object (or its contents) in storage | Leaving a note (or an empty spot) on a shared whiteboard |
| Timing channel | Varying the speed/timing at which things happen | Knocking 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
| Field | Size | Meaning |
|---|---|---|
| Type | 8-bit | Message type, tells the receiver how to respond |
| Code | 8-bit | Extra info about the error and its type |
| Checksum | 16-bit | Checks the complete message to ensure data is delivered correctly |
| Extended Header | 32-bit | Points out issues in the IP message (pointer to the problem byte) |
| Data/Payload | variable | IPv4: 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
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
- Triggering packet: a sender sends a packet that causes an ICMP error at the target
- Target host: its network stack builds an ICMP error and copies part of the triggering packet
- 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
| Observation | Possible cause | Security meaning |
|---|---|---|
| Returned length differs | Different ICMP implementation behavior | Helps fingerprint the TCP/IP stack |
| Fields contain unusual values | Implementation-specific initialization | May reveal internal behavior |
| Unexpected residual bytes | Poor handling of response buffer | May 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
- The attacker observes how long authentication takes when a user types the correct password
- They try strings of various lengths. At the right length the computation takes slightly longer because the
forloop runs at least once - 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 , alphabet size ):
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 channel | Side-channel attack | Backdoor | |
|---|---|---|---|
| What | Insider process leaks info to an outsider process not allowed to access it | Exploit that gathers info by measuring indirect effects of a system/hardware, not attacking the code directly | Hidden method that bypasses authentication/access control |
| Nature | Hidden communication | Passive leakage | Hidden access |
| Who acts | Sender may be a Trojan horse; receiver only needs to be an unprivileged process | Attacker only measures | Attacker 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
| Type | What the attacker measures/uses |
|---|---|
| Electromagnetic | EM radiation / radio waves from a device, to reconstruct its internal signals |
| Acoustic | Sounds from a device. PoC attacks reconstruct keystrokes from audio of typing |
| Power | Amount and timing of power consumption of a device/subsystem |
| Optical | Visual cues to learn about a system |
| Timing | How long an operation takes |
| Memory cache | Abusing memory caching to gain additional access |
| Hardware weaknesses | Physical 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?
Related
- 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 , Secret Message , (optional) Key
- The Steganographic Encoder embeds into :
- 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 ) and outputs the Secret Message

(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
Related
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
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.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

- Replace the last 3 bits of each pixel with 3 message bits. Message:
100 011 101 110
| Pixel | Cover value | Cover binary | Message bits | Stego binary | Stego value |
|---|---|---|---|---|---|
| 1 | 101 | 01100101 | 100 | 01100100 | 100 |
| 2 | 20 | 00010100 | 011 | 00010011 | 19 |
| 3 | 66 | 01000010 | 101 | 01000101 | 69 |
| 4 | 220 | 11011100 | 110 | 11011110 | 222 |
- Max change per pixel when replacing LSBs:
- With , 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)
| Letter | ASCII bits (in groups of 2) |
|---|---|
| c | 01 10 00 11 |
| a | 01 10 00 01 |
| t | 01 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
- Confidential communication and secret data sharing
- Media database systems
- Try it online: https://stylesuxx.github.io/steganography/ and https://www.pelock.com/products/steganography-online-codec
Tools
| Tool | Notes |
|---|---|
| Stegosuite | Free, written in Java; hides info in image files |
| Steghide | Open source; hides a secret file in image or audio |
| Xiao Steganography | Free; hides data in BMP images or WAV files |
| SSuite Picsel | Free, portable; hides text inside an image, using a different approach |
| OpenPuff | Professional 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
| Method | How it works |
|---|---|
| Human observation | A 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 analysis | Even 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 analysis | After 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 scanning | Software searches for high, inaudible frequencies |
Where can hidden data be found? (forensic tools look at data that shouldn't normally be there)
- Disk structures: unused, hidden or abnormal areas (sectors, slack space, residual storage)
- File slack: unused bytes between the logical end of a file and the end of its allocated storage unit
- 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
- 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
| Steganography | Cryptography | |
|---|---|---|
| Definition | Hides the existence of communication | Converts data into an incomprehensible form |
| Purpose | Keep communication secure | Provide data protection |
| Data visibility | Never | Always |
| Data structure | Doesn't alter overall structure | Alters overall structure |
| Key | Optional (more secure if used) | Necessary |
| Failure | Once the secret is discovered, anyone can use the data | If 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
Related
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
| Application | Purpose | Example | Notes |
|---|---|---|---|
| Copyright protection | Prove ownership of digital media | Cut-and-paste of images | Hidden watermark carries the copyright info |
| Tamper proofing | Find out if data was tampered | Changing the meaning of an image | Hidden watermark tracks change in meaning. Issue: accuracy of detection |
| Quality assessment | Track degradation of visual quality | Bunny model losing quality | Hidden 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 → hide information in
- Encrypt → change the form of
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
| Criterion | Steganography | Watermarking | Cryptography |
|---|---|---|---|
| Carrier | Any digital media | Mostly image/audio files | Usually text based |
| Secret data | Payload | Watermark | Plain text |
| Key | Optional | Optional | Necessary |
| Input files | At least two (unless self-embedding) | At least two (unless self-embedding) | One |
| Output files | Stego-file | Watermarked file | Cipher-text |
| Objective | Secret communication | Copyright preserving | Data protection |
| Visibility | Never | Sometimes | Always |
| Flexibility | Free to choose any cover | Cover choice is restricted | N/A |
| Fails when | It is detected | It is removed/replaced | It is de-ciphered |
3.4 The Watermarking Process
- Goal: embed ownership info into content and later verify its presence
- Inputs: Original data (image/audio/video), Watermark (owner ID/copyright), Secret key (controls embedding)
Step 1: Embed
- looks almost unchanged but carries . It is not simply
Step 2: Extract (from a suspected copy )
Step 3: Compare using a correlation threshold
- If true → ✓ Watermark detected
- Security principle: the algorithm may be public; keep 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
- Represent host data as blocks (e.g. 12 blocks, a matrix)
| 1 | 2 | 3 | 4 |
|---|---|---|---|
| 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 |
- Key seeds a pseudorandom selection. Here blocks 1, 6, 8, 10 are chosen
- Embed : insert watermark bits (e.g. an encoded owner ID) with small controlled changes to selected blocks
- Produce : visually/functionally close to , but the selected locations carry the watermark
- Security intuition: without , 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)
| Spatial | Transform-based | |
|---|---|---|
| Idea | Embed directly in pixels with no transformation (e.g. LSB, LBP: Local Binary Pattern) | Convert data to another format, embed, convert back |
| Pros | Low complexity, simple, fast, easy | Generally more robust; survives some compression/processing; suits ownership/copyright |
| Cons | Can't resist attacks (compression, filtering, resizing, editing damage it) | More computation; robustness depends on coefficient choice & strength; too much change hurts quality |
| Typical use | Fragile watermarking / tamper detection | Robust copyright protection |
- Spatial LSB example: pixel , embed bit 1 by changing LSB →
- Spatial flow: Original image (host ) → modify selected pixels (key 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 → Transform (DCT/DWT/DFT) → Modify coefficients (embed with ) → Inverse transform → Watermarked
| DCT | DWT | DFT | |
|---|---|---|---|
| Name | Discrete Cosine Transform | Discrete Wavelet Transform | Discrete Fourier Transform |
| What it does | Converts image blocks into cosine-frequency coefficients | Splits image into LL, LH, HL, HHsubbands | Converts image into sinusoidal frequency components |
| Key info | Low freq = broad content; high freq = fine detail | Captures frequency/detail and approximate spatial location | Each coefficient has magnitude and phase |
| Embedding | Modify selected mid-frequencycoefficients | Selected wavelet subbands | Modify selected Fourier coefficients |
| Useful for | Best-known link: JPEG compression | Multi-resolution watermarking | Frequency-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) | |
|---|---|---|---|
| Uses | only | ||
| Formula | |||
| Original needed? | Yes (must be stored/accessible) | No | No |
| Notes | Faster, more reliable, more robust to tampering (guided by known parameters and keys) | Expected watermark/reference known | Needs 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 or
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)
| Category | Robust against | Example use |
|---|---|---|
| Fragile | Nothing on purpose: losing the watermark implies tampering | Tamper proofing |
| Semi-fragile | User-level operations, e.g. image compression | Tolerates normal edits |
| Robust | Adversary-based attacks, e.g. noise addition | Copyright 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.
3.6 Design Requirements (Example: Copyright Protection)
| Requirement | Meaning | Key points |
|---|---|---|
| Capacity | As much info (watermarks) as possible | Multiple watermarks supported; more capacity → more robustness since watermarks can be replicated |
| Security | Only accessible by authorized parties | If 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 |
| Robustness | Resist hostile/user-dependent changes | See attacks below |
| Imperceptibility | Invisible | Visible 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, weakened) → detector may fail
| Attack | How it works |
|---|---|
| Noise / filtering | Modify signal values or suppress components carrying watermark energy |
| Compression / quantization | Discard or coarsen coefficients; weak watermark parts disappear |
| Geometric / signal changes | Cropping, scaling, rotation, resampling disrupt synchronization |
| Collusion | Combine several differently watermarked copies to estimate and reduce copy-specific marks |
- Collusion example: Copy A () + Copy B () + Copy C () → compare/average → host content stays, copy-specific marks shrink
- Each individual is diluted by
- 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 carrying bits become carrying bits

(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
Related
- 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
- Attacker sends a connection request → Server
- Server sends an authentication challenge
- Attacker gives username + stolen password hash
- 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
| Topic | Remember |
|---|---|
| Covert channel | Hidden communication between processes that shouldn't talk |
| Storage vs timing | What is stored vs when/how fast |
| ICMP error echoing | Extra/residual bytes in error replies → OS fingerprint |
| Timing attack fix | Make run time constant or add random delay |
| Side channel | Measure physical/indirect effects (power, sound, EM, timing...) |
| Backdoor | Hidden access |
| Steganography | Hide that a message exists (LSB in images is the classic) |
| Steganalysis | Detect via signatures, statistics, hashes, slack space |
| Watermark | Hidden ownership/integrity mark; |
| Spatial vs transform | Pixels (simple, fragile) vs coefficients DCT/DWT/DFT (robust) |
| Informed / semi-blind / blind | Needs D, W, K / W, K / K |
| Fragile / semi-fragile / robust | Tamper proof / survives user edits / survives attackers |
| Attacks | Removal, geometric, reorder, cryptographic (oracle) |
Linked from
- Lecture 9 - Digital Content & Intellectual Property Rights
- Chapter 1 - Introduction to Software Engineering
- Chapter 15 - Cloud Security and Privacy
- Chapter 2 - Symmetric Encryption
- Chapter 7 - Identification and Authentication, Access Control
- Chapter 9 - Access Control (Authorization)
- Lecture 1 - Introduction to Cyber Crime
- Lecture 5 - Password Cracking Workshop