Live lesson · progress saved to your account

Computer Fundamentals

How a computer really works: hardware and the boot process, the CPU cycle, binary and hex, operating systems, processes and memory, and file signatures. Then hunt down a hidden process on an infected laptop.

beginner60 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Mission briefing: the slow laptop

TICKET · CA-FIRM-0877 "Ravi's laptop has become extremely slow since last week. The fan runs all the time even when he's only using Tally. Probably old hardware. Can you take a look?" Mehta & Associates, Chartered Accountants, Nashik

Is it really old hardware, or is something hiding on the machine? To tell the difference you need to know what normal looks like: what's inside a computer, how it starts, how programs run and where files and processes live.

That's exactly where attackers hide, too:

Attackers abuse......and you'll learn
The boot process (bootkits)How a computer starts, and Secure Boot
Memory (buffer overflows)How the stack works
Processes (fake system processes)How to read a process list
File names (fake extensions)How magic bytes reveal a file's real type

By the end of this room you'll investigate Ravi's laptop yourself.

Answer the questions

+5 XP

TASK 02Inside the box and how it boots

Every computer, from a phone to a server, has the same core parts:

PartWhat it doesAnalogy
CPU (processor)Executes instructions, billions per secondThe chef
RAM (memory)Fast, temporary workspace. Volatile: wiped when power goes offThe kitchen counter
Storage (SSD/HDD)Keeps data permanentlyThe store room
MotherboardConnects everything; holds the firmware chipThe kitchen itself
Firmware (UEFI/BIOS)The first code that runs, before any OSThe opening checklist

Why "volatile" matters in security: malware that lives only in RAM ("fileless" malware) disappears on reboot, along with the evidence. Investigators capture memory before switching a machine off.

The boot sequence

When you press the power button, a strict chain runs. Watch it, then see what a bootkit does and how Secure Boot stops it:

What happens when you press the power button Auto-play
  1. Power on
  2. Firmware · POST
  3. Find boot device
  4. Bootloader
  5. Kernel + drivers
  6. System services
  7. Login screen

Power on. Power supply stabilises; the CPU starts executing firmware from a chip on the motherboard.

POST (Power-On Self-Test) checks the hardware. UEFI is the modern replacement for the old BIOS, and supports Secure Boot: the firmware only runs a bootloader whose digital signature it trusts.

Answer the questions

+10 XP

+10 XP

+10 XP

TASK 03How the CPU runs a program

A program is just a list of tiny instructions stored in RAM. The CPU runs them in an endless loop called the fetch-decode-execute cycle:

  1. Fetch: read the instruction at the address in the Program Counter (PC).
  2. Decode: the control unit works out what the instruction means.
  3. Execute: do it. Move data, or calculate with the ALU (Arithmetic Logic Unit). Then move on.

Watch a 4-line program add two numbers. Pause it and press Step to go one stage at a time:

Fetch → decode → execute Step 1/10
FETCH

CPU

PC0
IR—
R1—
ALU

bus

LOAD R1, [6]

RAM

0LOAD R1, [6]
1ADD R1, [7]
2STORE R1, [5]
3HALT
4·
50
612
730

PC = 0, so the CPU fetches the instruction at RAM address 0.

RegisterJob
PC (Program Counter)Address of the next instruction
IR (Instruction Register)The instruction being run right now
R1A general-purpose register: a tiny, ultra-fast scratchpad

Security link: if an attacker can change where the PC points, the CPU will happily run their instructions instead. That's the goal of most memory-corruption exploits, which you'll see in Task 6.

Answer the questions

+10 XP

+10 XP

+10 XP

TASK 04Binary, hex and encoding

Computers only understand on and off: 1 and 0. One of these is a bit; 8 bits make a byte. A byte can hold 2⁸ = 256 values (0 to 255).

Each switch below is worth double the one to its right. Flip them and watch decimal, hex and the text character change:

Flip the bits Click a switch

Decimal

65

Hex

0x41

Binary

01000001

ASCII

A

Each hex digit = 4 bits: 0100 → 4, 0001 → 1

Base64 is encoding, not encryption

aGVsbG8=

No key needed: anyone can decode it straight back. Attackers use it to hide commands in plain sight.

Why hexadecimal?

Binary is long to read. Hex (base 16: 0–9 then A–F) packs 4 bits into one digit, so one byte is always exactly two hex digits: 01000001 = 0x41 = 65 = the letter A. You'll see hex everywhere in security: memory dumps, packet captures, file headers and hashes.

ASCII

ASCII maps numbers to characters: 65 = A, 97 = a, 48 = 0. That's how a file of bytes becomes readable text.

Base64: encoding, not encryption

Base64 turns any data into safe printable characters, often ending in =. It is not security: there is no key, and anyone can decode it instantly. Attackers use it to sneak commands past people who don't look closely, for example powershell -enc SQBFAFgA....

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Operating systems

The operating system (Windows, Linux, macOS, Android) manages the hardware and lets programs share it safely. Its core is the kernel.

The computer is split into two worlds:

  • User space: where your apps run, with limited rights.
  • Kernel space: where the kernel and drivers run, with full control of the hardware.

Apps can't touch the hardware themselves. They ask the kernel through a system call. Pick a scenario:

How an app reaches the hardware Pick a scenario
USER SPACE
KERNEL SPACE + HARDWARE

Notepad

System call

Kernel

Disk driver

SSD

Apps can't touch hardware directly. They ask the kernel through a system call; the kernel talks to the driver, the driver to the disk.

This boundary is a core security control: the kernel checks every request against permissions. That's why attackers want to reach the kernel. A rootkit that runs there can lie to every program on the machine, including antivirus.

WindowsLinux
KernelNT kernelLinux kernel
Admin userAdministrator / SYSTEMroot
File systemNTFSext4
Where you'll meet itMost office laptopsMost servers and the cloud

Answer the questions

+10 XP

+10 XP

+10 XP

TASK 06Processes and memory

A program is a file on disk. When you run it, the OS creates a process: the running program, with its own memory and a unique PID (Process ID). One program can have many processes; Chrome usually runs dozens.

Every process has a parent (the process that started it). Parent-child relationships are one of the best clues in an investigation: Word should never be the parent of PowerShell.

Inside a process's memory

RegionHolds
CodeThe program's instructions
HeapData created while running (grows as needed)
StackFunction calls, local variables and return addresses

The stack is LIFO (last in, first out), like a pile of plates. When a function finishes, the CPU reads the saved return address to know where to go back to.

Buffer overflow

If a program copies input into a fixed-size buffer without checking its length, extra bytes spill over and overwrite whatever is next, including the return address. Type more than 8 characters:

Stack buffer overflow Type into the box

char name[8]; // input length: 16

A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
← buffer: name[8] →← saved return address →

Overflow! 8 bytes spilled past the buffer and overwrote the return address. When the function returns, the CPU jumps wherever the attacker wrote, which is how many exploits take control.

Buffer overflows have been behind famous attacks from the Morris worm (1988) to modern exploits. Defences include bounds-checked functions, stack canaries, ASLR and DEP, plus memory-safe languages like Rust.

Answer the questions

+10 XP

+10 XP

+10 XP

TASK 07Files and file systems

A file system organises data on a disk into files and folders, and records metadata about each one: size, owner, permissions and timestamps.

File systemUsed byNotes
NTFSWindowsPermissions, journaling, hidden data streams
ext4LinuxDefault on most Linux servers
FAT32 / exFATUSB drives, SD cardsNo permissions at all
APFSmacOS, iOSBuilt-in encryption

Timestamps (created, modified, accessed) are gold in forensics: they help build the timeline of an attack.

Magic bytes: a file's real identity

A file's extension (.jpg, .pdf) is just part of its name, and anyone can change it. The real type is written in its first few bytes, called the file signature or magic bytes:

Don't trust the extension Click a file

First 4 bytes (hex)

4D5A9000

Extension says

JPG image

Bytes say

Windows executable (MZ)!

Mismatch. A program pretending to be a picture. Double-clicking it could run malware.

TypeMagic bytes (hex)As text
Windows executable (.exe, .dll)4D 5AMZ
PDF25 50 44 46%PDF
PNG89 50 4E 47.PNG
ZIP (also .docx, .xlsx, .apk)50 4B 03 04PK
JPEGFF D8 FF

Double extension trick: Windows hides known extensions by default, so invoice.pdf.exe appears as invoice.pdf. Turn on File name extensions in Explorer on every machine you use.

Answer the questions

+10 XP

+10 XP

+10 XP

TASK 08Lab: hunt the hidden process

You now have remote access to ravi-pc, the "slow" laptop. Investigate like an analyst:

  1. In Processes, click each process. Check its path, parent, signature, CPU and network connection.
  2. In Downloads folder, check each file's full name and first bytes.
  3. Flag the 3 suspicious items. Watch out for false positives.
Lab · CA firm laptop (ravi-pc) Flagged 0/3
NamePIDCPU %
System40.2
services.exe7120.1
svchost.exe10120.4
explorer.exe31201.1
tally.exe44102.3
chrome.exe54043.8
GST_Invoice_March.pdf.exe65900.0
svch0st.exe661291.7

Click a process to inspect its path, parent, signature and network connections. Flag anything suspicious.

What "suspicious" looks like

  • A system-sounding name in the wrong place: real svchost.exe lives in C:\Windows\System32, never in a user's AppData.
  • Look-alike spelling: a zero instead of an "o".
  • Not digitally signed when the real one is.
  • A strange parent: system processes are started by other system processes, not by a downloaded document.
  • Sustained high CPU with a connection to an unknown IP.

When you've flagged all three, answer below.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 09Final mission: close the ticket

Time to reply to Mehta & Associates. Put the evidence together:

  • svch0st.exe (PID 6612) runs from AppData\Roaming, is unsigned and uses ~92% CPU.
  • Its parent is GST_Invoice_March.pdf.exe, a Windows executable (MZ) disguised as a PDF.
  • It holds a constant connection to 203.0.113.45:3333, a port commonly used by crypto-mining pools.

Answer the questions to complete the room and earn the Bit Whisperer badge and 295 XP.

Next steps in a real case: isolate the laptop from the network, capture memory, then remove the malware or re-image the machine, and warn the rest of the office about fake GST invoice emails.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP