Back to exam

GCFA Cheatsheet

GIAC Certified Forensic Analyst

Download free PDF

Incident response and evidence

Response lifecycle and priorities

  • **Preparation** establishes roles, escalation paths, collection tools, communications and tested recovery plans. **Identification** validates an incident and determines affected assets, exposure and scope.
  • **Containment** limits damage while preserving evidence. Capture useful volatile state before shutdown when feasible; isolation and collection order depend on the immediate threat and operational impact.
  • **Eradication** removes malicious code, persistence and the initial access path. **Recovery** restores trusted operation, validates controls and monitors for recurrence.
  • **Lessons learned** improve detection, staffing, communication, monitoring notices and response procedures. A recovery exercise supplies evidence of readiness; an uneventful test does not prove completeness.

Collection order and live evidence

  • **Order of volatility** prioritizes short-lived evidence: CPU/cache state, memory and live process/network state, temporary filesystems, disk data, remote logs and archival media. **RFC 3227** provides collection guidance; adapt it to the environment.
  • Record **system time**, timezone and clock offset, then collect processes, command lines, logged-on users, open files, sockets, routes and RAM. Use trusted tools and document their effects on the live system.
  • **Memory analysis** can expose injected code, connections, credentials and decrypted content. Pagefiles, swap, hibernation files and crash dumps may preserve fragments; none necessarily contains a complete RAM image.
  • **Crash dumps** vary by type. They may contain stop parameters, loaded drivers, stacks and memory pages. A small dump and a full memory acquisition support different investigations.

Acquisition, integrity and custody

  • A **physical image** captures addressable media sectors, including accessible unallocated space. A **logical acquisition** collects selected files or objects and can miss deleted data, slack and hidden storage regions.
  • Use a validated **write blocker** for offline source media and analyze verified working copies. Software write restrictions are platform-dependent; a registry setting alone is not equivalent to a tested acquisition workflow.
  • Compute and record **cryptographic hashes** during acquisition and verification. Explain unreadable sectors and live-system changes. **SHA-256** is preferable to collision-weakened MD5; **CRC** detects accidental corruption rather than authenticating evidence.
  • **Raw images** store sector bytes; forensic containers such as **E01** add metadata, segmentation and integrity facilities. Confirm format support, encryption and verification behavior in the selected tool.
  • **Chain of custody** records the evidence identifier, collector, acquisition method, hashes, every transfer, times, purpose and storage location. It tracks handling; an evidence-handling SOP defines the procedure.

Examination and reporting

  • Follow a repeatable workflow: **request and scope**, initial assessment, collection, examination, analysis and reporting. Preserve original evidence and record tool versions, settings, errors and reproducible steps privately.
  • **Direct evidence** supports a fact without an inferential chain; **circumstantial evidence** supports an inference. **Corroboration** strengthens a finding through independent evidence. Technical integrity alone does not establish admissibility.
  • A report states **scope, allegations, methods, findings, limitations and conclusions**. Separate observed facts from interpretation; explain assumptions and alternative explanations in language a nontechnical reader can follow.
  • Build a **timeline** across host, network and application records. Retain original timestamps and normalize working views consistently. A timestamp or account name alone does not establish the human actor.

Storage and filesystem forensics

Disk structure and boot records

  • A **sector** is a device addressing unit; a **cluster** is a filesystem allocation unit. Capacity equals addressable sector count multiplied by bytes per sector. Historical cylinder/head/sector geometry may be translated rather than physical.
  • A conventional **MBR** occupies the first 512 bytes: boot code, four 16-byte partition entries and the **55 AA** signature bytes. The **volume boot record** belongs to a volume and describes its filesystem-specific boot layout.
  • On an **MBR basic disk**, an extended partition occupies one primary entry and contains logical partitions through extended boot records. The container itself is not the formatted logical volume. **GPT** uses a different partition structure.
  • **Boot-sector malware** targets startup code; **multipartite malware** infects more than one type of target, such as boot areas and executable files. Preserve boot records alongside filesystem data.

NTFS, FAT and hidden content

  • **NTFS** supports file ACLs, EFS, compression, quotas and named data streams. **FAT16/FAT32** lack NTFS file permissions, EFS and native per-file compression. Legacy Windows 9x cannot natively read NTFS volumes.
  • The **Master File Table ($MFT)** stores NTFS file records and attributes. Small content can be **resident** in a record; nonresident attributes reference external clusters through data runs.
  • **Alternate Data Streams (ADS)** are named NTFS streams, commonly addressed as **file:stream**. Enumerate all streams; an ordinary file listing or a copy to FAT can omit or lose them.
  • A FAT **allocation table** chains file clusters. Directory entries describe names, sizes and starting clusters. Deletion usually marks metadata and frees allocation rather than immediately erasing all content.
  • Smaller clusters can reduce **internal fragmentation**. **FAT32** often uses space more efficiently than FAT16 for comparable large volumes, but it does not gain NTFS security features.

Slack, deletion and recovery

  • **File slack** extends from logical EOF to the end of the allocated final cluster. **Unallocated space** consists of free allocation units. Both can hold remnants, but neither guarantees recoverable content.
  • **Metadata recovery** uses surviving directory entries, records and allocation information. **File carving** searches content patterns and may lose filenames, paths and timestamps or fail on fragmented files.
  • Inspect **allocated files, slack, unallocated areas, hidden partitions and swap** according to scope. A hidden attribute changes visibility; it does not encrypt data or prevent forensic access.
  • **Wiping** overwrites accessible locations. Commands writing to a raw disk device can destroy partitions and evidence. SSD remapping, spare areas, snapshots and TRIM complicate assumptions about recoverability and sanitization.
  • **Defragmentation, cleanup, conversion and repair** alter evidence. Acquire first. CHKDSK, fsck, formatting and partition utilities belong on controlled working copies when repair is justified.
  • **Steganography** hides the existence of information inside a carrier or storage structure; encryption hides its meaning. Image resampling or other transformations may damage a hidden payload and the evidence. Preserve the original carrier before testing.

Media, resilience and analysis tools

  • **RAID** improves selected availability or performance properties; it is not a backup. Preserve member order, controller metadata, stripe size and parity layout before reconstructing an array.
  • **Backups** require verification and restore testing. A file backup can omit deleted data or filesystem metadata; it is not automatically a forensic disk image. Preserve encryption keys separately from encrypted backups.
  • **Optical media** commonly use ISO 9660/CDFS or UDF. **SD cards** and flash retain data without power; RAM does not. Identify the actual filesystem and acquisition interface rather than assuming from the device name.
  • **The Sleuth Kit** provides **fls** for names, **istat** for metadata and **icat** for file content by metadata address. **Autopsy** adds case organization, search, hash comparison and analysis over forensic data.
  • **Hex editors** expose raw bytes and structures; strings extraction finds readable sequences without proving context. Hash sets help identify known files. Validate recovery and classification tool output against the underlying evidence.
  • **EnCase** and **FTK Imager** support forensic acquisition workflows; **Helix** is a legacy response toolkit. Choose tools by validated acquisition, format and platform support, rather than assuming every release supports the same devices or artifacts.

Windows artifacts and protection

Registry structure and scope

  • The **Registry** is a hierarchical configuration database. **HKEY_LOCAL_MACHINE (HKLM)** exposes machine configuration; **HKEY_CURRENT_USER (HKCU)** maps to the current user's loaded profile.
  • **HKEY_USERS (HKU)** exposes loaded user hives, not a complete history of everyone who ever logged on. **HKEY_CLASSES_ROOT (HKCR)** presents class and file-association data; **HKEY_CURRENT_CONFIG** exposes the current hardware profile view.
  • Core machine hive files include **SYSTEM, SOFTWARE, SAM, SECURITY and DEFAULT** under **%SystemRoot%\System32\config**. **NTUSER.DAT** and **UsrClass.dat** hold user artifacts. Collect associated transaction logs for consistency and recovery.
  • **CurrentControlSet** is a live alias for the selected SYSTEM control set. During offline analysis, examine **Select** and the relevant **ControlSet00x** keys rather than assuming the alias exists in the hive file.
  • Registry **key last-write times** indicate a key change, not necessarily execution or a specific value edit. Preserve key paths, values and context; avoid attributing a single action from one timestamp.

Execution, persistence and user traces

  • Review **Run/RunOnce**, services, scheduled tasks, startup folders and file associations for persistence. Correlate paths, executable hashes, account context and execution artifacts before calling an entry malicious.
  • **Prefetch**, process creation logs and other execution artifacts can support program activity. Their availability and meaning depend on OS configuration; a file's presence or a registry reference alone is weaker evidence.
  • Browser **history, cache, cookies and downloads** can preserve webmail and user activity traces. Correlate profile ownership and timestamps; cookies may identify a session without containing message bodies.
  • Outlook **PST** files store mailbox data; **OST** files are offline caches. Preserve associated account context, server-side messages and full headers. A local cache may be incomplete or out of sync.
  • **Application virtualization** isolates or redirects application files and settings. Examine the virtualization package, redirected paths and user context as well as the apparent host paths.

EFS, permissions and copying

  • **Encrypting File System (EFS)** uses a symmetric file-encryption key, protected through certificate-based public-key mechanisms for authorized users and configured recovery agents. File permissions and encryption protect different boundaries.
  • Recovery requires usable **private-key material** or an applicable recovery mechanism. Recreating the same username does not recreate the key. Back up certificates and private keys and test restoration.
  • **EFS requires NTFS**. Moving or copying to an incompatible filesystem may decrypt content or fail, depending on the operation. Verify both encryption and metadata after a transfer; a destination label does not prove preservation.
  • **cipher** manages EFS operations; **efsinfo** inspects EFS information on supported systems. NTFS compression is transparent to applications; a file cannot use native NTFS compression and EFS simultaneously.
  • **XCOPY /K** preserves attributes and **/O** copies ownership and ACL information; **/X** includes audit information. Required privileges and destination support still matter. **ATTRIB +H** hides a file without securing it.

Boot, logs and system state

  • Legacy BIOS-based **Windows NT/2000/XP** booting uses **NTLDR**, **BOOT.INI**, **NTDETECT.COM**, the kernel and HAL. NTDETECT gathers hardware information; **NTOSKRNL.EXE** implements core kernel services.
  • Later Windows systems use **Windows Boot Manager** and **BCD**. Distinguish legacy loader artifacts from the boot chain actually present on the examined system.
  • **Security logs** record audited authentication and access events; **System** and **Application** logs describe other components. Legacy **EVT** and newer **EVTX** formats and event IDs differ; interpret provider, version and event fields together.
  • **Failed logons** require account, source, logon type and failure reason. A parser query filters records; it does not establish why a failure occurred unless the underlying status fields support the finding.
  • **System State backup** includes the Registry and essential system components, with content depending on OS and installed roles. Active Directory data belongs to a domain controller's role-specific state, not every Windows host.

Linux, macOS and device analysis

Linux filesystem structures

  • In ext-family filesystems, the **superblock** describes filesystem geometry and state. **Block groups** organize metadata and data; inode and block bitmaps track allocation, and inode tables hold file metadata.
  • An **inode** stores ownership, mode, size, timestamps and data references. Directory entries map names to inode numbers. A filename is not normally stored inside its inode.
  • **ext2** lacks a journal; **ext3** adds journaling and **ext4** extends the design. A journal supports crash consistency, not a complete user activity history or a guarantee of deleted-file recovery.
  • **dumpe2fs** reports ext superblock and group information; **debugfs** accesses internal structures. **df** reports filesystem capacity and **du** estimates file usage. Use compatible tools and read-only copies.
  • **fsck -A** checks filesystems selected from fstab; **e2fsck -f** forces a check and **badblocks** tests blocks. Repair or write tests can change evidence. **mkfs.ext3** and **mke2fs -j** create filesystems, destroying prior structures.

Paths, identity and permissions

  • **/dev** holds device nodes; **/proc** exposes live process/kernel state and **/sys** exposes device/kernel interfaces. **/etc** holds configuration, **/var** variable data and logs, and **/boot** boot assets.
  • **/usr** contains installed programs and libraries; **/usr/local** commonly holds locally installed software. Administrative binaries traditionally reside in **/sbin** and **/usr/sbin**. Merged-/usr systems can map these paths through symlinks.
  • **/etc/passwd** contains account metadata; **/etc/shadow** contains restricted password-hash and aging fields. **UID 0** is privileged. Names, numeric IDs and current account files must be correlated with historical evidence.
  • UNIX mode bits use **read=4, write=2, execute=1** for owner/group/other. **741** means **rwx r-- --x**. Directory execute permits traversal; read permits listing names.
  • **SUID**, **SGID** and **sticky** are special bits. Lowercase **s/t** includes execute; uppercase **S/T** means the special bit is set without the corresponding execute bit. Unusual privileged executables warrant baseline comparison.

Boot, logs and command evidence

  • Legacy **GRUB** may use **menu.lst** or **grub.conf**; **GRUB 2** commonly uses generated **grub.cfg**. Legacy **LILO** uses **/etc/lilo.conf** and a map file. Interpret files for the bootloader actually installed.
  • Traditional **SysV init** uses **/etc/inittab** and startup scripts; **systemd** uses units and dependencies. Inspect service definitions, enablement links, cron and user startup files for persistence.
  • **last** reads login history, commonly from wtmp; authentication logs and **lastb** can reveal failures where configured. **grep** filters text; binary login databases require suitable parsers. Logs can be rotated, missing or altered.
  • A traditional syslog selector **kern.*** matches all kernel priorities; **@host** denotes UDP forwarding in classic syntax. Confirm the actual logging daemon and transport configuration before relying on remote records.
  • **sync** flushes buffered writes and changes persistent state. **mount**, **fdisk**, **hdparm** and swap-management tools can also change a system; distinguish observation from modification during collection.

macOS, mobile and removable devices

  • Apple's **XNU** combines Mach, BSD and I/O Kit components. BSD supplies UNIX/POSIX interfaces; I/O Kit supplies driver infrastructure. **HFS/HFS+** and **APFS** differ in structures, snapshots and encryption behavior.
  • Legacy ATA names **hda/hdb/hdc/hdd** reflected controller positions; a trailing number identified the partition. Modern SATA/USB storage often uses **sdX**, and NVMe uses **nvmeXnYpZ**. Confirm device identity before acquisition.
  • For **mobile devices**, document power, lock, network and battery state. Remote communication can change or erase evidence; isolation and power decisions must preserve access and account for the device's encryption state.
  • **Logical, filesystem and physical** mobile extractions expose different data. Preserve messages, contacts, call logs, media, application databases and removable cards; deleted recovery depends on encryption, reuse and extraction access.
  • Legacy **iPod/PDA/BlackBerry/iPhone** artifacts vary by model. **vCard** represents contacts. Some early iPhone user data resides under **/private/var**; do not generalize partition layouts or recovery-mode effects across devices.

Network and attacker activity

Reconnaissance and protocol interpretation

  • **Passive footprinting** uses third-party information such as public registration records and search results. **Scanning** probes hosts or services; **enumeration** obtains details such as users, shares and application resources.
  • **Banner grabbing** retrieves application responses, such as HTTP headers from **HEAD**. **OS fingerprinting** infers an OS from protocol behavior. Banners can be hidden or falsified; fingerprinting remains an inference.
  • **TCP FIN scans** may produce RST from closed ports and silence from open ports under expected stack behavior. Filtering, loss and implementation differences make silence ambiguous; it does not prove an open port or a particular OS.
  • **Traceroute/tracert** uses TTL or hop-limit expiration to reveal responding hops. Missing replies can result from filtering or rate limiting, not just a failed router. ICMP echo request is **type 8**; timestamp request is **type 13** in IPv4.
  • The **OSI layers** are physical, data link, network, transport, session, presentation and application. Routers separate broadcast domains; TCP/UDP ports identify transport endpoints, while MAC addresses identify link-layer interfaces.

Live network evidence and filtering

  • Private IPv4 ranges are **10.0.0.0/8**, **172.16.0.0/12** and **192.168.0.0/16**. IPv6 **::1** is loopback and **::** is unspecified. Address ownership, NAT and VPN context affect attribution.
  • Correlate sockets with **PID, process path and command line**. Windows **netstat -ano** supplies PIDs; Linux **ss** and appropriate privileges expose process associations. A port number alone does not identify a program or malware family.
  • **Packet capture** can reveal endpoints, timing and cleartext content. Promiscuous mode accepts frames delivered to the interface; switched-network visibility still requires a suitable vantage point such as a TAP or mirror port.
  • **Packet filters** inspect packet fields; **stateful firewalls** track flows; **application proxies** mediate application traffic. Circuit-level gateways operate at a session abstraction. Firewall permission is not proof of benign content.
  • Legacy Linux **iptables** manages netfilter rules, succeeding ipchains. Preserve rules, counters and logs. A **port relay/tunnel** forwards traffic; a service using an expected port can still carry a different protocol.
  • **NFS** provides network file access; **SMB/CIFS** serves file sharing, including through Samba. **BIND** is DNS software, **Apache** a web server and **Squid** a proxy. Match evidence collection to the service and its configuration.

Detection, malware and evasion

  • **NIDS** analyzes network traffic; **HIDS** analyzes host activity and integrity. Sensors, analysis engines and management consoles support detection. Passive alerting and active blocking have different operational effects.
  • **True positive** means malicious activity correctly detected; **false positive** means benign activity alerted. **False negative** means malicious activity missed; **true negative** means benign activity correctly left unalerted.
  • **File-integrity monitoring** compares trusted baselines of executables and configuration. **Tripwire/Samhain** are host-integrity examples; **Snort** is a network-detection example. Baseline trust and change context determine usefulness.
  • A **Trojan** disguises malicious functionality; a **backdoor** bypasses normal access; a **worm** self-propagates; a **virus** infects a host object. **Rootkits** conceal activity and can make live host output unreliable.
  • **Polymorphic malware** changes its representation to evade signatures. **Session splicing**, fragmentation and differing sensor/endpoint interpretations can also evade detection. Correlate behavior, reassembled traffic and endpoint evidence.

Web, email and denial of service

  • For **XSS**, inspect requests, responses, browser artifacts and script destinations. For **SQL injection**, correlate suspicious input with application and database activity. A quote-triggered database error is a clue, not proof of successful exploitation.
  • **Buffer overflows** may leave crashes, dumps and abnormal process behavior. **DoS/DDoS** may exhaust bandwidth, connection tables or application resources. Correlate traffic volume, service telemetry and crash evidence.
  • Preserve **Apache access/error logs**, application logs, proxies and captures. Record logging format, timezone, rotation and gaps. Request bodies, response content and client-side execution are not necessarily recorded by the web server.
  • Analyze email **Received** hops from a known trusted relay boundary. Sender-controlled headers, display names and addresses can be forged. Correlate server logs and message content; an IP address does not prove a person's identity or location.
  • **P2P applications**, webmail, file shares and remote-access tools provide different transfer paths. Investigate actual configuration, logs and content. A tool name, anomalous port or larger executable alone is insufficient attribution.

Cryptography, security and legal concepts

Cryptography and authentication

  • **Confidentiality** limits disclosure, **integrity** detects unauthorized change and **availability** preserves access. A plain hash does not authenticate a sender; an attacker able to replace both content and hash can defeat that comparison.
  • **Symmetric encryption** uses shared secret keys; **asymmetric cryptography** uses key pairs. **Digital signatures** support origin authentication and integrity. Certificates bind keys to identities through a trust chain and validation policy.
  • **Non-repudiation** relies on signatures plus trustworthy key custody, identity verification and records. It is not established by encryption alone. A **message authentication code** uses a shared key and is different from a MAC address.
  • **Full-disk encryption** protects offline storage, while EFS protects selected files. A **TPM** can protect key material but is not itself full-disk encryption. An unlocked system may expose decrypted data and usable secrets.
  • **Dictionary** attacks try likely words; **brute force** explores a candidate space; **hybrid/rule-based** attacks transform candidates. **Rainbow tables** trade precomputation for lookup speed; unique salts defeat table reuse across password hashes.
  • **John the Ripper/L0phtCrack** target password recovery; **Cain and Abel** combines legacy credential and network functions; **Brutus** targets online authentication. Distinguish offline hash recovery from online attempts that generate traffic, logs and lockouts.

Wireless and secure access

  • Legacy **WEP** and **TKIP** use RC4; **CCMP** uses AES. These are distinct from password hashing and public-key encryption. Recognize insecure legacy protocols without treating them as suitable protection.
  • **802.11a** uses 5 GHz and a nominal maximum of 54 Mbps; **802.11b/g** use 2.4 GHz. Different SSIDs do not eliminate co-channel interference; channel planning and RF conditions determine contention.
  • **PAP** sends reusable password information without its own confidentiality protection. Secure remote access combines protected transport, strong authentication and endpoint controls. **MFA** does not remove malware already controlling an authorized endpoint.
  • **Telnet, FTP and unprotected application protocols** can expose credentials or content. Packet analysis verifies the actual exchange; merely enabling an encryption option does not demonstrate end-to-end protection.
  • **Bluesnarfing** refers to unauthorized Bluetooth data access. Pairing records, device identifiers and application traces can support analysis; accepting a contact card alone does not establish the mechanism of compromise.

Governance and defensive distinctions

  • **DAC** lets authorized owners delegate access; **MAC** uses centrally enforced labels and clearances; **RBAC** assigns access through roles. An **ACL** is a permissions structure that can implement access decisions.
  • **Information classification** identifies sensitive assets and required handling. **OPSEC** identifies critical information, adversary threats, vulnerabilities, risks and countermeasures; protection depends on knowing both the asset and the threat.
  • **Threat** is a potential cause of harm; **vulnerability** is an exploitable weakness; **risk** combines likelihood and impact. Scanners identify some known weaknesses; a clean scan is not proof of security.
  • **Honeypots** attract or observe intruders. **Social engineering** manipulates people and requires procedural and human defenses alongside technical controls. Monitoring tools and content filters have limited visibility and require defined authority.
  • **SLAs** should define security responsibilities, monitoring, response times and recovery expectations. **Privacy/acceptable-use policies** explain monitoring and permitted behavior. A **known error** is a problem with an identified cause; a workaround reduces impact without necessarily fixing it.
  • **Data diddling** alters data before or during input to commit fraud. Compare original records, application transactions, audit trails and downstream results to distinguish source manipulation from later modification.

Legal vocabulary and investigative boundaries

  • **Copyright** concerns protected expression; **patents** concern qualifying inventions; **trademarks** identify commercial source; **trade secrets** concern valuable confidential information protected through secrecy measures. Similar subject matter can raise different issues.
  • Recognize **CFAA** as a computer-access law, **ECPA** as a communications-privacy framework and the **Economic Espionage Act** as a trade-secret framework. Conduct, authorization, jurisdiction and statutory elements matter; labels alone do not establish liability.
  • The **Budapest Convention on Cybercrime** addresses computer-related offenses, procedural tools and international cooperation. Treaty participation and domestic implementation affect investigative cooperation and authority.
  • Distinguish **employment discrimination**, harassment, stalking, financial privacy and credit discrimination from technical compromise. Preserve incident dates, participants, locations, messages and relevant policies; avoid assuming a technical artifact proves a legal element.
  • Establish **authority and scope** before collection or monitoring, preserve relevant records and coordinate with appropriate legal and investigative personnel. Programs such as **ICAC** and **Project Safe Childhood** relate to child-exploitation investigations; reporting duties depend on applicable law and role.