GCIH Cheatsheet
GIAC Certified Incident Handler
Download free PDFIncident handling and response coordination
Preparation and the response lifecycle
- **PICERL**: Preparation, Identification, Containment, Eradication, Recovery and Lessons Learned. Revisit phases as new evidence changes scope; response is rarely a single linear pass.
- **Preparation** establishes authority, asset inventories, business owners, contacts, escalation paths, logging, trusted tools, backups and tested playbooks. Checklists reduce omissions under pressure.
- **Response roles** combine technical investigators with management, legal, HR and communications staff. Define who approves business disruption, handles employee investigations and releases public information.
- **Jump kits** include trusted acquisition tools, clean storage, evidence forms, cables and capture equipment. Test access and tools before an emergency; keep emergency credentials controlled and access logged.
Identification, scoping and triage
- An **event** is an observable occurrence. An **incident** threatens security or violates policy. A slow computer, failed login or unusual packet needs context before classification.
- **Triage** weighs business criticality, data sensitivity, active harm, affected systems and potential spread. Scope beyond the first host; identify entry points and compromised identities.
- **Indicators of compromise** include unexpected persistence, suspicious process ancestry, unexplained outbound traffic and unauthorized account changes. Correlate host, network, identity and application evidence.
- **Validate alerts** against baselines and authorized changes. A false-positive DLP signature can still expose real misuse; investigate the underlying content and business context.
- **Escalate and document** promptly: observations, times, affected assets, confidence and response actions. Distinguish facts from hypotheses; preserve alternate interpretations when evidence remains disputed.
Containment and evidence preservation
- **Short-term containment** limits damage: isolate switch ports, quarantine hosts, restrict accounts or block C2 traffic. Use the incident plan's delegated authority and coordinate business impact.
- **Network isolation** can preserve powered-on memory while stopping spread. Shutdown destroys volatile state; balance urgent containment, safety and evidence needs rather than following a universal acquisition order.
- **Service continuity** may require directing users to a clean replacement. DNS redirection alone does not isolate the compromised machine or terminate existing connections.
- **Longer-term containment** applies controlled temporary restrictions while preparing eradication. Account disablement and firewall rules do not prove that all persistence has been removed.
- **Communications** need a trusted channel when enterprise email or identity systems may be compromised. Coordinate help-desk and NOC observations through the response team and case record.
Eradication, recovery and improvement
- **Eradication** removes persistence and the cause of compromise: malicious accounts, tasks, services, web shells and vulnerable configurations. Analyze collected evidence before destroying artifacts.
- **Rebuild from trusted media** when system integrity cannot be established, especially after privileged or rootkit compromise. Patch the entry point and validate restored data before reconnecting.
- **Rotate exposed secrets** from clean systems, including passwords, keys, tokens and service credentials. Reinstalling a host does not invalidate credentials the attacker already stole.
- **Recovery** uses test plans, known baselines and business-owner validation. Record the authorized return-to-service decision and monitor for renewed activity after restoration.
- **Lessons learned** records impact, timeline, root cause and improvements to people, process and technology. Assign owners and deadlines, then verify that recommendations are implemented.
Reconnaissance, enumeration and scanning
Public information and exposed metadata
- **OSINT** gathers public information: registration records, certificate transparency, search results, job postings, public repositories and archived pages. Third-party collection reduces direct interaction with the target.
- **WHOIS and DNS** reveal registration or infrastructure information, subject to privacy and data quality. Historical pages can expose removed content; document metadata may reveal usernames and software versions.
- **Search operators** such as `site:`, `inurl:` and `filetype:` narrow public results. Search-engine output is incomplete and can be stale; verify exposure without assuming it remains exploitable.
- **FOCA** analyzes document metadata; **SpiderFoot** aggregates reconnaissance sources. **Shodan** indexes exposed services. Tool findings are leads, not proof of ownership or vulnerability.
- **Wardialing** searches telephone numbers for modem carriers; **wardriving** surveys wireless networks. Physical information gathering and social engineering also reveal technology and organizational relationships.
DNS and service enumeration
- **DNS records**: A/AAAA map names to addresses, PTR supports reverse lookup, NS identifies authoritative servers, MX identifies mail routing and TXT holds textual records.
- **AXFR** transfers a zone, normally over TCP 53. `dig @dns-server example.test AXFR` requests a transfer; restrict transfers to authorized peers and separate internal from public namespaces.
- **TCP 53 is not proof of AXFR**: ordinary DNS can also use TCP. Inspect message types and direction; DNSSEC authenticates DNS data but does not authorize zone transfers.
- **SMB/RPC enumeration** can expose shares, users, groups and policy. `smbclient` accesses SMB services; `rpcclient` queries supported RPC interfaces. Restrict anonymous enumeration and unnecessary exposure.
- **SNMP enumeration** reveals management information when access permits. Protect management interfaces, restrict allowed sources and prefer authenticated, encrypted management protocols.
Host discovery and fingerprinting
- **Host discovery** tests reachability; **port scanning** tests endpoints; **service detection** probes the listening application. A port number is a convention, not proof of the service using it.
- **Nmap**: `-sn` discovers hosts without a port scan; `-Pn` skips discovery and treats targets as up. Local Ethernet discovery can use ARP even when ICMP is blocked.
- **Active fingerprinting** sends probes and compares responses. `-O` requests OS detection; `-sV` requests service/version detection. Results depend on reachable ports, middleboxes and signature coverage.
- **Passive fingerprinting**, using tools such as p0f, infers systems from observed traffic. Banners, TCP options and TTLs are clues; no single value establishes the operating system.
- **Traceroute** increases IPv4 TTL or IPv6 Hop Limit and interprets replies. Missing replies may reflect filtering or rate limits; they do not prove a missing router or dead host.
Scan types and response interpretation
- **TCP connect (`-sT`)** completes the handshake through the OS. **SYN scanning (`-sS`)** typically sends SYN and interprets SYN-ACK as open or RST as closed without completing the connection.
- **UDP scanning (`-sU`)** may receive an application reply from an open service or ICMP port-unreachable from a closed port. Silence is often **open|filtered**, not definite openness.
- **FIN (`-sF`), NULL (`-sN`) and Xmas (`-sX`)** rely on differing TCP-stack behavior. Xmas sets FIN, PSH and URG. Closed ports often reset; silence leaves ambiguity.
- **ACK scanning (`-sA`)** maps filtering behavior rather than identifying open services. A reset indicates an unfiltered path for that probe; a stateful firewall may reject unsolicited ACKs.
- **Idle scanning (`-sI`)** infers activity through a suitable third party's IP-ID behavior. Background traffic and nonpredictable counters undermine the inference; it is not guaranteed anonymity.
- **Other Nmap options**: `-p` selects ports, `-sO` scans IP protocols, and `-A` enables OS/version detection, scripts and traceroute. Raw-packet operations generally need suitable privileges.
Mapping and safe assessment
- **Firewalking** uses carefully chosen TTLs and ICMP responses to infer traffic permitted beyond a filtering device. Topology, return-path filtering and proxy termination can make results inconclusive.
- **Hping** crafts packets for protocol and filtering tests. **Masscan** separates sending from response processing for high scan rates. **Zenmap** provides a graphical interface to Nmap.
- **Nessus** identifies potential vulnerabilities; **Nikto** examines web-server exposures. A scanner reports findings, not automatic proof of exploitation or remediation.
- **Assessment safety** requires explicit scope, rate limits, approved windows and recovery contacts. Disable disruptive or DoS checks unless specifically authorized; password checks can lock out users.
- **Code review** can reveal implementation flaws that scans miss. Penetration testing validates selected attack paths under agreed rules; patching and retesting close verified findings.
Network attacks and defensive controls
Packet and connection essentials
- **TCP handshake**: SYN, SYN-ACK, ACK. Sequence and acknowledgment numbers track byte streams; FIN begins graceful closure, while RST aborts a connection.
- **TCP flags** SYN, ACK, FIN, RST, PSH and URG describe connection behavior. Unusual combinations can indicate probes, malformed traffic or evasion; interpret them with context.
- **IPv4 TTL** and **IPv6 Hop Limit** decrease at each router. Expiration normally produces Time Exceeded. IPv4's protocol field identifies transport protocols; TCP ports belong to the TCP header.
- **Bad TCP checksums** normally cause receivers to discard segments. Local captures can show misleading checksum errors because NIC offloading calculates checksums after the capture point.
- **ICMP** supports diagnostics and error reporting. IPv4 echo request/reply are types 8/0; destination-unreachable is type 3 and time-exceeded is type 11. Filter deliberately without breaking needed diagnostics.
Local interception and address spoofing
- **ARP** maps an IPv4 next-hop address to a MAC address within a local broadcast domain. Ethernet broadcast uses `ff:ff:ff:ff:ff:ff`; routers ordinarily do not forward ARP broadcasts.
- **ARP poisoning** supplies false IP-to-MAC mappings. An intermediary may forward traffic to preserve connectivity while observing or modifying it; failure to forward can cause denial of service.
- **Dynamic ARP inspection** validates ARP against trusted bindings, often from DHCP snooping. Static ARP entries can protect selected mappings; arpwatch detects changes but does not itself enforce trust.
- **MAC spoofing** impersonates a link-layer address. **CAM-table flooding** attempts to overwhelm switch forwarding state. Port security, segmentation and monitoring reduce risk; behavior varies by switch.
- **Promiscuous mode** receives frames available to an interface, not every frame on a switch. Use an authorized SPAN port or TAP for wider capture; encryption protects payloads even when frames are visible.
DNS, routing and replay attacks
- **DNS cache poisoning** inserts forged data into a resolver cache. Unpredictable query IDs and source ports, correct response matching and bailiwick checks make forgery harder.
- **DNSSEC validation** verifies signatures and the DNS chain of trust. It provides origin authentication and data integrity, not query confidentiality or immunity to denial of service.
- **IP spoofing** forges source addresses; **BGP hijacking** advertises unauthorized routes. Source-address validation and routing controls address different layers; baseline routes help detect changes.
- **Replay** reuses captured authentication data or messages. Challenge-response, nonces, authenticated freshness and replay windows reduce risk; encryption without freshness is insufficient.
- **Session hijacking** takes over an authenticated context. Plaintext tokens and unauthenticated transport are exposed to interception; TLS or SSH also requires correct peer validation and secure endpoints.
Denial of service and amplification
- **DoS** targets availability; **DDoS** uses distributed sources. Resource exhaustion can affect bandwidth, connection tables, CPU, storage or application workers without a single malformed packet.
- **SYN floods** create large numbers of incomplete handshakes. Many SYN_RECEIVED connections are a clue. SYN cookies, connection controls and upstream protection reduce different parts of the impact.
- **Reflection** sends spoofed requests so replies hit a victim. **Amplification** produces larger responses than requests; DNS and other UDP services can be abused without a connection handshake.
- **Smurf** uses ICMP broadcast reflection; **Fraggle** uses UDP echo/chargen behavior. Disable unnecessary legacy services and directed broadcasts; constrain recursion and spoofed-source traffic.
- **Ping of death** exploited oversized packet reassembly; **Teardrop** exploited malformed overlapping fragments. These historical mechanisms differ from ordinary high-volume ping floods.
- **HTTP floods** can resemble valid requests. Combine request budgets, bot controls, caching and application protections; coordinate with upstream providers when the access link is saturated.
Firewalls, detection and visibility
- **Stateless filters** inspect packet fields; **stateful firewalls** track connection state. A proxy terminates one connection and creates another, allowing application-aware policy enforcement.
- **Ingress filtering** restricts incoming traffic and implausible source addresses. **Egress filtering** restricts outbound destinations, protocols and spoofed sources; inbound-only rules do not stop reverse C2.
- **IDS** detects; **IPS** can block when deployed inline or integrated with enforcement. False positives waste attention; false negatives miss attacks. Validate alerts before disruptive action.
- **WAFs** inspect web requests; **secure web gateways** govern users' outbound web access. Neither replaces secure application code, endpoint controls or identity protection.
- **Evasion** exploits differences in fragmentation, reassembly, encoding or stream handling. Normalize traffic consistently and keep capture tools and protocol parsers patched; encrypted payloads limit passive inspection.
Malware, backdoors and persistence
Malware categories and delivery
- A **virus** propagates by infecting a host object. A **worm** propagates autonomously between systems. A **Trojan** presents deceptive functionality; these traits can coexist in one attack.
- A **bot** receives automated or remote tasking; a **botnet** coordinates multiple bots. A **logic bomb** activates on a condition. Spyware and keyloggers collect activity or secrets.
- **Blended threats** combine delivery or attack methods. **Multi-exploit** worms use multiple vulnerabilities; **multiplatform** malware targets more than one operating system. Hit lists can accelerate propagation.
- **Phishing** manipulates users; **drive-by attacks** exploit browsing activity; **watering holes** compromise sites used by a targeted community. Third-party scripts and malicious ads can expand exposure.
- **Macro-enabled Office files** can contain executable automation; prompts urging users to enable content are suspicious. CSV formula injection is a separate risk when spreadsheet software interprets cells as formulas.
- **USB threats** include keystroke-emulating devices and rogue network adapters. Disable unnecessary autorun, control devices and keep endpoint defenses active; a locked screen alone does not eliminate every physical attack.
Rootkits and trust boundaries
- **User-mode rootkits** replace binaries or hook application/library behavior. **Kernel rootkits** alter kernel code, drivers or structures to hide files, processes and connections.
- **Boot and firmware rootkits** persist below ordinary applications. A **hypervisor rootkit** changes the execution layer beneath the OS; recovery must address the compromised layer.
- **File-integrity monitoring** with AIDE or Tripwire compares protected baselines with current files. Keep baseline records and verification tools outside the suspect system's control.
- **Rkhunter and chkrootkit** look for known indicators and suspicious changes. Clean output is not proof of integrity; compromised kernels can mislead locally executed tools.
- **Cross-view analysis** compares process lists, memory scans, sockets and files. Unlinked kernel structures may conceal processes; confirm discrepancies before declaring a rootkit.
Netcat and remote-access behavior
- **Netcat** moves bytes over TCP or UDP and can support connection testing, banner collection, file transfer or relays. It does not provide encryption or authentication by default.
- **Common options**: `-l` listens, `-u` selects UDP, `-z` performs zero-I/O probes, `-v` is verbose and `-w` sets timeouts. Flags and argument rules vary by implementation.
- **Client versus listener** determines who initiates the connection. Legacy `-e` attaches a process; commands run with that process's account permissions. A backdoor does not inherently grant administrator rights.
- **Relays** use standard input/output, pipes or socket forwarding. A simple pipe may carry only one direction; bidirectional relays need a return path. Source and destination ports are separate fields.
- **Cryptcat** adds encryption; **Socat** supports flexible socket relays. A listener on 53 or 443 is not automatically DNS or TLS; identify payload, executable and owning account.
Persistence and concealed artifacts
- **Windows autostarts** include Run/RunOnce keys, services, scheduled tasks and WMI subscriptions. Examine HKLM and relevant HKCU hives; Run entries generally execute at user logon.
- **Autoruns** inventories many autostart extensibility points. Separately inspect local accounts, group membership, web shells and credentials; no single autostart inventory covers all persistence.
- **NTFS alternate data streams** attach named streams using `file:stream` syntax. `dir /r` lists streams; `more < file:stream` can display text. Copying to unsupported storage can lose streams.
- **Unix concealment** includes dot-prefixed names, misleading filenames, modified utilities and shell-history tampering. `ls -la` helps with dotfiles; history absence does not establish that no commands ran.
- **Log tampering** may leave gaps, inconsistent timestamps or unexpected logging-service changes. Compare centralized records and other hosts; preserve originals before remediation.
Covert channels and command and control
- **Bind shells** await inbound connections; **reverse shells** originate from the compromised host. Outbound HTTP(S), DNS or other allowed traffic can carry control despite blocked inbound ports.
- **ICMP tunnels**, such as ptunnel or Loki-style channels, place nonstandard data inside ICMP. Inspect unusual payloads, volume and bidirectional patterns; packet labels alone may conceal the inner protocol.
- **DNS tunnels** encode data in queries and replies. Unique subdomains can bypass caching; long or high-entropy labels, unusual query rates and NXDOMAIN patterns warrant investigation.
- **Covert_TCP** demonstrates data hidden in IP or TCP header fields, such as IP-ID and sequence/acknowledgment values. Header-based transfer is distinct from a complete interactive remote-control framework.
- **Fast flux** rapidly changes DNS mappings across intermediary hosts. **Beaconing** often shows repeated timing or size patterns; tools such as RITA help find candidates, not conclusive attribution.
- **SSH forwarding**: `-L` creates a local forward, `-R` a remote forward and `-D` a local SOCKS proxy. GRE encapsulates packets but supplies no encryption by itself.
Analysis evasion and execution controls
- **Packing and obfuscation** alter representation; **polymorphism** changes an encrypted wrapper or decryptor, while **metamorphism** rewrites code while preserving its purpose. Neither term guarantees undetectability.
- **Living off the land** abuses installed tools, scripts or interpreters. MSBuild can execute malicious build content; inspect its parent process, project input, child processes and network behavior.
- **Metasploit** distinguishes exploit, payload, auxiliary and post modules; auxiliary modules can scan. **Msfvenom** generates payloads. A tool's presence alone does not establish malicious use.
- **DefenderCheck** helps isolate content that triggers an antivirus signature. A clean scan or absence of a signature is not a safety verdict; behavioral and contextual analysis still matters.
- **Application allowlisting** limits executable content but must govern allowed interpreters and script paths. Signed or trusted utilities can still be misused; restrict unnecessary privilege and monitor execution.
Credentials, authentication and lateral movement
Guessing, cracking and credential reuse
- **Brute force** tests candidate combinations; **dictionary attacks** test likely words; **hybrid and rule attacks** mutate candidates. A long dictionary word may remain easy to guess.
- **Password spraying** tries a few passwords across many accounts. **Credential stuffing** reuses breached username/password pairs. Correlate attempts across accounts, hosts and cloud sign-ins.
- **Online guessing** meets rate limits, MFA and lockouts. **Offline cracking** tests stolen hashes without contacting the service. Account lockout can itself be abused to deny access.
- **Rainbow tables** precompute hash relationships. Unique salts defeat reuse of a generic precomputed table and distinguish identical passwords, but do not stop per-password guessing.
- **Password storage** needs a suitable slow password-hashing scheme with unique salts. A salt is normally stored with the hash; it is not a secret encryption key.
Credential stores and audit tools
- **Windows stores** include local account hashes in SAM and domain data in NTDS.dit; registry material may be needed to interpret protected data. LSASS can contain sensitive authentication material.
- **Linux `/etc/passwd`** holds account metadata such as UID, home and shell. Protected password hashes normally reside in `/etc/shadow`; shadow separation does not itself define the hash algorithm.
- **LM hashes** are legacy, unsalted and weak, splitting passwords into short uppercase components. Legacy LM cannot store passwords longer than 14 characters; disable LM. **NT hashes** are also unsalted; length alone cannot identify a hash algorithm.
- **John the Ripper** and **Hashcat** test password candidates. `unshadow` combines passwd/shadow information; John formats and Hashcat modes must match the actual stored hash type.
- **Hashcat examples**: mode 1000 is NT, 3000 is LM, 0 is raw MD5 and 1800 is sha512crypt. Attack mode `-a 0` uses a wordlist; `-a 3` uses masks.
- **DPAT** analyzes password-audit results for patterns, lengths and reuse; it is not the cracking engine. Protect reports, exported hashes and potfiles, then securely remove temporary audit copies.
Pass-the-hash, relay and name-resolution abuse
- **Pass-the-hash** uses stolen NT hash material for compatible authentication without recovering the password. It differs from replaying a captured message or cracking the hash offline.
- **NTLM relay** forwards an authentication exchange to another service. A captured challenge-response is not the same as the reusable NT hash; protocol protections and target policy determine relay viability.
- **LLMNR and NBT-NS poisoning** can redirect failed name lookups to an attacker. Responder-style tools abuse local name resolution and authentication; disable unnecessary fallback protocols and fix DNS dependencies.
- **SMB signing** protects SMB message integrity and helps resist relay to SMB targets. **SMB encryption** adds confidentiality; neither justifies exposing administrative shares broadly.
- **LAPS and unique local credentials** reduce reuse of a stolen local administrator secret. Limit privileged logons, restrict remote administration and segment management paths to constrain lateral movement.
Privilege, identities and remote access
- **Least privilege** separates standard work from administrative activity. Inspect local Administrators membership with `net localgroup administrators`; a renamed account can retain its privileges.
- **SIDs and RIDs** identify Windows principals beyond display names. The built-in Administrator uses RID 500; a friendly name alone cannot establish account type or permissions.
- **Linux SUID** programs can run with their owner's effective privileges. Overly broad sudo rules, writable privileged scripts or vulnerable privileged programs can turn user compromise into root compromise.
- **MFA** uses independent factors, such as a hardware token plus a PIN. Multiple passwords are one factor; a compromised endpoint may still steal sessions after authentication.
- **PAM** connects Unix authentication and policy modules, including supported password-quality or external authentication integrations. Authentication, authorization and auditing serve distinct purposes.
- **Remote access** requires managed endpoints, restricted services and monitored credentials. VNC, RDP, SMB, PsExec and SSH are legitimate tools that attackers can also abuse; assess authorization and behavior.
Web applications and memory corruption
SQL injection and database boundaries
- **SQL injection** occurs when untrusted input changes SQL structure. Quotes, comment delimiters, UNION and Boolean conditions can appear in probes; syntax and impact depend on the database and application.
- **Parameterized queries** bind values separately from SQL code. Stored procedures are safe only when their implementation avoids unsafe dynamic SQL; generic escaping is not an equivalent boundary.
- **Least database privilege** limits consequences. Keep administrative accounts out of web applications, constrain error details and monitor unusual queries or authentication patterns.
- **Blind injection** infers behavior through timing, Boolean differences or controlled callbacks without directly returned data. A normal response code does not establish that a request was harmless.
Cross-site scripting and request forgery
- **Stored XSS** persists attacker content for later viewers. **Reflected XSS** returns request-supplied content. **DOM XSS** arises when client-side code moves unsafe data into executable browser contexts.
- **Context-aware output encoding** keeps text from becoming HTML, JavaScript or another active context. Use well-maintained sanitizers for permitted HTML and avoid dangerous DOM APIs.
- **Content Security Policy** and HttpOnly cookies add defenses, but do not replace fixing XSS. Scripts can perform actions as a victim even when they cannot read an HttpOnly session cookie.
- **CSRF** causes an authenticated browser to send an unwanted action to another site. Use anti-CSRF tokens, appropriate SameSite cookies and origin validation; GET-to-POST conversion alone is insufficient.
Session management and application trust
- **Session tokens** need strong randomness, server-side validation, expiration, rotation after authentication and revocation. Protect cookies with Secure, HttpOnly and appropriate SameSite attributes.
- **Session fixation** makes a victim authenticate with an attacker-known session identifier. Regenerate the session after login or privilege changes and invalidate the old identifier.
- **Client-side values are untrusted**: cookies, hidden fields, prices, user IDs, URLs and POST bodies can be changed through an intercepting proxy. Enforce authorization and authoritative prices on the server.
- **TLS** protects traffic in transit, not against an authenticated user editing their own request. Base64 encoding and plain hashes do not authenticate a client-controlled value.
- **Account harvesting** exploits distinguishable login or reset responses to discover valid accounts. Use consistent responses, rate limits and monitoring without revealing unnecessary account state.
Command execution, traversal and unsafe inputs
- **Command injection** lets input alter OS commands. Prefer APIs that avoid a shell and pass structured arguments; allowlist values. HTML encoding or SQL escaping does not secure a shell command.
- **Directory traversal** uses relative paths or encoded equivalents to escape intended storage. Decode consistently, resolve canonical paths and enforce containment within the allowed directory.
- **Server-side request forgery** makes a server issue attacker-influenced requests. Restrict destinations, schemes, redirects and access to internal or metadata endpoints; it differs from browser-side CSRF.
- **Shellshock** affected Bash's processing of imported function definitions. A service invoking a vulnerable shell could expose command execution beyond a traditional web-server context.
- **Server hardening** removes unnecessary CGI scripts, sample applications, debug endpoints and services. Validate inputs on the server; browser-only checks and robots.txt are not access controls.
Buffer overflows and format strings
- **Buffer overflow** writes beyond allocated storage. Stack and heap corruption can crash a program, change data or redirect execution; unchecked native-code copying functions are common risk points.
- **Instruction pointers** identify the next instruction in memory. Corrupted return addresses or function pointers may redirect execution; a NOP sled historically widened the landing area for injected code.
- **Stack canaries** detect some overwrites; **DEP/NX** restricts execution from data memory; **ASLR** randomizes locations. These mitigations complement bounds checks, memory-safe code and patching.
- **Format-string vulnerabilities** occur when untrusted text becomes a format, as in `printf(user_input)`. Use a fixed format such as `printf("%s", user_input)` and independently bound input lengths.
- **Exploit impact** follows the vulnerable process's privileges. Managed languages reduce many memory-safety risks, but native dependencies and runtime flaws remain possible attack surfaces.
Evidence collection, host analysis and hunting
Evidence integrity and acquisition
- **Chain of custody** records evidence identity, collector, collection time, transfers, custodians and purpose. Cryptographic hashes support integrity checks; custody records document handling and accountability.
- **Volatile evidence** includes RAM, processes, active connections and logged-on sessions. Disk images preserve persistent state; acquisition changes a live system, so document tools and effects.
- **Raw images** store byte streams; evidence containers such as **AFF4** or **E01** can include metadata and additional features. Format support and validation matter more than the extension alone.
- **Work on verified copies** and preserve originals. Trusted read-only tools and protected baselines reduce dependence on altered binaries; static linking avoids some library dependencies but cannot make a hostile kernel trustworthy.
- **Known-good hash filtering** can reduce review volume. A hash match to an untrusted list proves little; a missing malicious-hash match does not establish safety.
Windows live response and persistence review
- **`netstat -naob`** combines numeric addresses, all endpoints, owning PIDs and executable information where permissions permit. Correlate sockets with process paths, accounts and command lines.
- **Process review** examines parent-child relationships, start times, signatures, hashes and baseline behavior. A familiar filename in an unexpected path or a calculator making network connections warrants investigation.
- **PowerShell and Sysinternals** support collection: Get-CimInstance can expose Win32_Process command lines; TCPView maps endpoints, Process Explorer examines processes and Autoruns reviews autostarts.
- **Windows logs**: 4624 records successful logon, 4625 failed logon, 4688 process creation and 4697 service installation when applicable auditing is enabled. Correlate subjects, targets, hosts and timestamps.
- **Registry review** includes Run/RunOnce, service configuration and other autostarts. SRUM artifacts can provide resource and network-usage context; no single registry key reconstructs all execution history.
- **SMB commands**: `net view \\host` lists shares, `net use` manages connections, `net share` manages local shares and `net session` manages inbound sessions. Disconnecting a session does not delete the share.
Unix evidence and memory analysis
- **Unix login records**: utmp tracks active sessions, wtmp historical logins and btmp failed attempts where supported. Use `who`, `last` and `lastb`; binary records are not ordinary text logs.
- **Host review** includes `ps`, `ss`, `lsof`, users, cron/systemd persistence, SSH authorized keys, sudo rules and file permissions. Compare with remote logs and memory when local tools may be altered.
- **Volatility and Rekall** analyze acquired memory; invoking an analysis tool on an image does not itself capture RAM. Plugin names and requirements depend on the framework release and OS.
- **Process cross-checks**: pslist walks active process structures; psscan scans for process objects and may find hidden, exited or stale entries. pstree shows ancestry; extra scan hits require corroboration.
- **Other memory artifacts** include sockets, loaded DLLs, services, registry hives and command lines. Historical plugin names include netscan, dlllist, svcscan and hivelist; use the version's supported equivalents.
- **Strings analysis** finds candidate text in binaries or memory. Search relevant encodings, including UTF-16 little-endian; embedded URLs or registry paths are clues, not proof that they were used.
Packet captures and log interpretation
- **Tcpdump basics**: `-i` selects an interface, `-r` reads a capture, `-w` writes one, `-nn` suppresses name/port resolution and `-A` displays ASCII payload. On supported systems, `-i any` captures across interfaces.
- **BPF filters** combine protocol, host, direction and port with `and`, `or`, `not` and parentheses. `icmp and dst host 192.0.2.10` selects ICMP sent to that address.
- **Capture scope** controls what can be reconstructed. Missing packets, short snap length, asymmetric routing or encryption can prevent recovering a downloaded binary; alert logs usually hold less content than full captures.
- **Squid proxy logs** can show time, duration, client, result/status, byte counts, method and URL. User-Agent values are client-controlled; proxy records may miss traffic sent outside the proxy.
- **Hunting** compares activity with asset purpose: unexpected uploads from a download server, after-hours connections or repeated C2-like flows merit correlation. Regular traffic can also be legitimate automation.
Safe malware investigation
- **Static analysis** examines files without running them; **dynamic analysis** observes execution. Continuous monitoring records file, registry, process and network activity; snapshots reveal changes between points in time.
- **Analysis isolation** restricts network access and host/guest sharing. Patch hypervisors and parsers, minimize collection privileges and perform payload analysis under an unprivileged account where possible.
- **VM detection** uses hardware, drivers, timing or other environment artifacts. Malware may sleep or hide behavior in a sandbox; a quiet execution is not evidence of safety.
- **VM escape** crosses the guest isolation boundary to execute on the host. Ordinary network access or an intentionally shared folder does not itself establish an escape.
- **Fleet collection** tools such as GRR or Kansa help compare hosts and gather artifacts. Baseline differences, rare processes and shared indicators guide prioritization; record collection methods and results.
Cloud investigations and information protection
Cloud identity, storage and audit trails
- **Cloud evidence** includes provider audit events, identity activity, storage access records and snapshots. Investigate both control-plane changes and data access; available records depend on configured logging.
- **AWS CloudTrail** records account API activity; **GuardDuty** analyzes supported telemetry for threats. In GCP, audit records can help investigate administrative exports or changes made through gcloud and related tools.
- **`aws sts get-caller-identity`** returns Account, UserId and Arn. An ARN may identify a role session rather than a human username; correlate it with identity and session records.
- **Object-storage exposure** follows permissions and naming dependencies. Inventory buckets and public references, restrict anonymous access and retire dangling links; bucket squatting exploits names an organization no longer controls.
- **Bucket discovery** tools such as bucket_finder test candidate names for exposed storage. Public readability, listability and writability are different permissions; downloading content requires explicit scope.
- **Cloud response access** should use a protected investigation identity, scoped permissions and a trusted analysis environment. Preserve logs outside an attacker's control and track exports or snapshots as evidence.
Cryptography, steganography and data leakage
- **Encryption** protects confidentiality; **hashes** support change detection. A **MAC** uses a shared secret. **Digital signatures** support origin verification, integrity and nonrepudiation when identity and key custody are established.
- **Trusted downloads** require verified signatures or hashes obtained through a trusted channel. A checksum published beside an attacker-modified file may be modified too; size and version strings are weak assurances.
- **TLS and SSH** protect authenticated transport when peers and keys are validated. **IPsec AH** provides integrity/authentication without encryption; **ESP** can provide confidentiality and integrity with suitable configuration.
- **Steganography** conceals the existence of data in a carrier; encryption conceals meaning. Text whitespace, images, audio and executable instruction choices can carry hidden content; the techniques can be combined.
- **Steganalysis** looks for concealed data; altering a carrier may disrupt it. ADS, slack space and hidden files also conceal artifacts, but they are distinct mechanisms and do not inherently encrypt data.
- **DLP and insider-threat analysis** combine content, destination, access and user context. Protect investigation privacy, involve authorized HR/legal personnel and avoid equating one signature hit with proven intent.