GSEC Cheatsheet
GIAC Security Essentials
Download free PDFSecurity principles, governance and physical protection
Objectives and layered controls
- **Confidentiality** limits disclosure; **integrity** protects against unauthorized changes and preserves correctness; **availability** keeps resources accessible when needed. Authentication and accountability support these objectives.
- **Administrative controls** include policy, training and assigned responsibilities. **Technical controls** include encryption, access lists and monitoring. **Physical controls** include locks, barriers and environmental protection.
- **Preventive** controls reduce the chance of an event; **detective** controls expose it; **corrective** controls restore a safe state. Blocking traffic during an incident is also a response action; one control can serve several purposes.
- **Defense in depth** combines independent protections. Protected enclaves separate trust zones; information-centric protection follows data value; vector-oriented protection addresses attack paths. Uniform protection can overlook different asset risks.
Policy, ownership and accountability
- **Policy** states required outcomes and responsibilities; **standards** define mandatory details; **procedures** explain steps; **guidelines** offer recommended approaches.
- The **data owner** determines classification and access requirements. The **custodian** implements storage and safeguards; users follow handling rules; auditors independently assess compliance.
- **Acceptable use** addresses permitted system use. Monitoring and privacy policies explain inspection practices and expectations. Issue-specific policies also cover backups, remote access, physical access and wireless devices.
- **Least privilege**, separation of duties and periodic access reviews reduce insider and account misuse. Decentralized accounts require management on individual systems; centralized identity supports consistent administration.
- **Trademark** identifies a product or brand; copyright protects expression; patents concern qualifying inventions; trade secrets depend on protecting valuable confidential information. The legacy **Orange Book (TCSEC)** concerns trusted-system evaluation, with a strong confidentiality focus.
Risk and business decisions
- **Threats** can exploit **vulnerabilities** to harm assets. Assess likelihood and impact, choose controls, and have the accountable owner accept remaining **residual risk**.
- **Qualitative analysis** uses categories such as low, medium and high. **Quantitative analysis** estimates losses: SLE = asset value x exposure factor; ALE = SLE x annual rate of occurrence. Estimates depend on assumptions.
- **Business impact analysis (BIA)** examines disruption over time, critical processes and dependencies. Risk assessment examines what could go wrong and how likely it is; the BIA informs recovery priorities.
- **ROI** = (benefit - cost) / cost x 100%. Security benefits often include estimated avoided loss. A **zero-sum** model assumes equal gains and losses; real information theft may harm an owner without removing its original data.
- **OPSEC** begins by identifying critical information, then assesses threats, vulnerabilities and risk before applying countermeasures. Management sponsorship, named owners, training and review sustain a security program.
Physical access and environmental resilience
- **Life safety** takes priority in emergency planning. Define evacuation leaders, assistance roles, assembly points, accountability and emergency communications; test the plan and preserve protective door functions.
- **Locks, fences, controlled doors and guards** restrict entry; cameras and access logs support detection and investigation. Use layered barriers, visitor controls and more than a clonable badge for sensitive areas.
- **Photoelectric smoke detection** can detect light scattered or obscured by smoke. Environmental controls also monitor temperature, water and power conditions; a sensor is distinct from a suppression system.
- In **U.S. fire classifications**, A covers ordinary combustibles, B flammable liquids, C energized electrical equipment and D combustible metals. Suppression selection depends on the hazard, occupied space and facility design.
- **EMI** is electromagnetic interference; a spike is a brief voltage increase and a brownout a voltage reduction. **Faraday shielding** reduces electromagnetic coupling and emanations; it does not replace access control or availability planning.
Data protection and disposal
- **Encrypt removable media and backups** so possession alone does not reveal plaintext. Protect keys separately and test recovery; cameras or guards cannot protect a tape after it is stolen.
- **Sanitization** makes data recovery infeasible for the intended threat level. Choose verified clearing, purging or destruction appropriate to the medium and its sensitivity; deleting a filename is insufficient.
- **File overwriting** can miss SSD wear-leveling, snapshots, journal copies and backups. Use supported device sanitization or cryptographic erasure when suitable, and record verification and disposition.
- **Encryption at rest** protects data while keys are unavailable. Malware operating in an authorized decrypted session may still read it; combine encryption with endpoint controls and restricted privileges.
Network foundations and protocol analysis
Layers, encapsulation and devices
- The **TCP/IP model** groups application, transport, internet and link functions. The link layer interfaces with media such as Ethernet; IP routes packets; TCP and UDP provide transport ports.
- **Encapsulation** adds protocol headers and, where applicable, trailers around payload data. Distinguish Ethernet frames, IP packets, TCP segments and UDP datagrams when analyzing a capture.
- **Repeaters and hubs** operate at the physical layer; bridges and typical switches forward link-layer frames; routers forward IP packets between networks. Firewalls can inspect several layers.
- A **hub** repeats traffic across shared media; a switch normally forwards learned unicast traffic to the destination port. Full-duplex switched Ethernet avoids the shared-medium collision behavior of legacy half-duplex Ethernet.
- **VLANs** create separate broadcast domains; a router or Layer 3 switch connects subnets. A physical **star** can use a hub or switch. Switches still carry broadcasts and can be attacked; switched access does not guarantee secrecy.
Addresses, subnets and hop limits
- **RFC 1918** private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. **127.0.0.0/8** is loopback; **169.254.0.0/16** is IPv4 link-local, often associated with failed DHCP configuration.
- Apply the **subnet mask** to find the network prefix. Within a conventional /24, the final octet .0 identifies the network and .255 the directed broadcast; the usual host range is .1 through .254.
- For an **on-link destination**, a host sends directly after link-layer resolution. For an off-link destination, it forwards to an appropriate next-hop gateway according to its route table.
- **IPv4** has a variable-length header of at least 20 bytes; **IPv6** has a 40-byte base header. The version is the high four bits of the first byte, not the entire byte. IPv6 Next Header identifies what follows.
- In IPv4, **TTL** is at byte offset 8, source address at 12 and destination at 16, counting from zero. Routers decrement TTL; IPv6 uses **Hop Limit**. Expiration prevents indefinite packet circulation.
TCP, UDP and packet clues
- **TCP** establishes a connection with SYN, SYN-ACK and ACK. SYN consumes sequence space, so its acknowledgment advances by one. Sequence numbers order bytes; acknowledgments and retransmissions support reliable delivery.
- **FIN** closes one direction of a TCP connection; both directions close for an orderly shutdown. **RST** aborts a connection. In tcpdump, S denotes SYN, F FIN, R reset and a dot commonly denotes ACK.
- **UDP** has no connection handshake or built-in retransmission. It suits applications that handle loss themselves and supports multicast delivery. TCP provides an ordered byte stream rather than message boundaries.
- The **UDP header is 8 bytes**: source port, destination port, length and checksum, each 2 bytes. UDP length includes its header and payload. Network multibyte fields use big-endian order.
- **Two hexadecimal digits represent one byte**. A TCP flow is distinguished by protocol, source and destination addresses, and ports. Do not infer an application or malicious intent from a port or flag alone.
Resolution and diagnostic tools
- **ARP** resolves an on-link IPv4 address to a MAC address. Legacy **RARP** obtained an IP address using a known MAC address; DHCP provides richer configuration. IPv6 uses Neighbor Discovery instead of ARP.
- **DNS** maps names and other records. An authoritative server answers for its zones; recursive resolvers query or cache results. Root and top-level servers commonly give referrals for names delegated below them.
- **A/AAAA** records map names to IPv4/IPv6 addresses, **MX** selects mail exchangers and **NS** identifies name servers. **dig** and **nslookup** inspect DNS; WHOIS and RDAP concern registration information.
- A hosts-file entry has **IP address, hostname and optional aliases**. Resolver order determines whether it is used. Access by IP but failure by hostname suggests a resolution problem; verify DNS, caches and local overrides.
- **traceroute/tracert** sends probes with increasing TTL or Hop Limit. Windows tracert normally uses ICMP Echo Requests; Unix implementations often use UDP. An asterisk means no timely reply, which may reflect filtering or rate limiting.
- **ICMP** carries network diagnostics and error reports; **IGMP** manages IPv4 multicast membership. Use ipconfig on Windows, ip addr on Linux, and route tools to inspect addressing; ifconfig is the legacy Unix interface utility.
Common services and ports
- **TCP defaults:** SSH 22, Telnet 23, SMTP relay 25, HTTP 80, POP3 110, IMAP 143, HTTPS 443, SMB 445 and RDP 3389. RDP can also use UDP 3389. Encrypted and alternate deployments may differ.
- **DNS uses UDP and TCP 53**; zone transfers normally use TCP. **SNMP** commonly uses UDP 161 for queries and 162 for notifications. **DHCPv4** uses UDP 67 for servers and 68 for clients.
- **SMTP** sends or relays mail; **IMAP** manages server-side mailboxes; **POP3** retrieves mail. Encrypted access commonly uses IMAPS 993 and POP3S 995; submission commonly uses 587 with STARTTLS or implicit TLS on 465.
- **FTP** uses TCP 21 for control; active-mode data commonly originates from server TCP 20, while passive mode negotiates a server data port. Plain FTP and Telnet expose sensitive traffic; use protected alternatives.
- **Well-known ports** are 0-1023, registered ports 1024-49151 and dynamic/private ports 49152-65535. Actual client ephemeral ranges vary by operating system. Port numbers suggest services but do not authenticate them.
NAT, WANs and virtual networks
- **Source NAT** rewrites an outgoing source address. **PAT/NAPT** also translates ports so multiple internal flows share a public address. Return traffic is mapped through translation state; destination NAT can publish an internal service.
- In **VMware NAT mode**, the host-side virtual networking service provides translation. **Bridged mode** places a guest on the external network; **host-only mode** normally confines it to host/guest communication.
- A hypervisor assigns **virtual NICs, memory and CPU resources** to guests. Each guest can have its own IP without a dedicated physical NIC. Application virtualization isolates application packaging or execution from the underlying installation.
- **Private circuits** may offer predictable capacity and service guarantees; Internet VPNs add encrypted connectivity with greater deployment flexibility. Legacy WAN terms include **Frame Relay** and **ATM**, whose cells have a fixed size of 53 bytes.
Network defense and wireless security
Trust zones and traffic control
- **Segmentation** places boundaries between systems with different trust or protection needs. Use firewalls and ACLs between enclaves, including internal segments, to limit lateral movement.
- A **DMZ** hosts exposed services such as public web, mail or authoritative DNS servers. Permit narrowly defined flows between Internet, DMZ and private networks; DMZ membership does not make a server trusted.
- A **border router** commonly sits toward the ISP, outside the perimeter firewall. Placement varies; apply controls where required traffic paths cross trust boundaries and avoid uncontrolled alternate paths.
- **Stateless filters** match packet fields; **stateful firewalls** track flows; **application proxies** inspect application interactions. Content-filtering proxies apply content policy; caching proxies reuse responses; a forced proxy prevents direct bypass.
- **NAT is not an authorization policy**. Firewalls cannot by themselves stop insiders, compromised permitted services, physical bypass or social engineering. Maintain endpoint, identity and data controls.
Filtering, spoofing and evasion
- **Ingress anti-spoofing** rejects external traffic claiming impossible or internal source addresses. **Egress filtering** restricts outbound destinations and services and can reject invalid local source addresses.
- **Directed broadcasts** can amplify reflected traffic; routers generally disable forwarding them. Rate controls and upstream coordination help with floods; **DDoS** originates from many distributed systems.
- Allowing **TCP 80 or 443** does not prove the traffic is legitimate web use. Unauthorized applications may tunnel over permitted ports; protocol-aware inspection, proxies and endpoint application controls reduce this bypass.
- Unusual **SYN/FIN combinations** and fragmented traffic may probe inconsistent filtering or stack behavior. Normalize traffic and use state-aware validation rather than trusting a single flag pattern.
- **Firewall logs** provide denied/allowed flow evidence and attack trends. Protect logs, synchronize clocks and define retention; a NAT table or current state table is not a complete historical audit trail.
Wireless encryption and authentication
- **802.11a** operates in the 5 GHz band; 802.11b/g use 2.4 GHz. Later standards may support multiple bands. Radio signals cross intended physical boundaries, so walls alone do not ensure confidentiality.
- Legacy **WEP** used open-system or shared-key authentication and RC4-based protection with serious weaknesses. **WPA/TKIP** was transitional. **WPA2 with AES-CCMP** supplies stronger protection; match the configured cipher, not just the product label.
- **802.1X** involves a supplicant, authenticator and authentication server, commonly using EAP and RADIUS. **EAP-TLS** supports certificate authentication and suitable smart-card credentials; PEAP-MS-CHAPv2 uses password-based inner authentication.
- **MAC filtering** is an administrative allowlist, not strong identity verification: MAC addresses are observable and spoofable. Prefer per-user or per-device authentication, validated server certificates and appropriate encryption.
- **Layered wireless defense** combines controlled RF coverage, secure link authentication, network segmentation and hardened applications. Limiting transmit power helps reduce exposure but cannot prevent determined remote reception.
Wireless discovery and connection faults
- **Kismet** is associated with passive wireless discovery and capture; legacy **NetStumbler** uses active probing. Passive listeners may be difficult to detect and need not associate with an access point.
- For connection failures, check **radio/band support, SSID, security mode, credentials, certificate trust, device allowlists and DHCP**. A correct passphrase alone does not establish that the entire configuration is correct.
- **Rogue access points and evil twins** can lure users; validate authentication-server identities and investigate unexpected certificate warnings. **Deauthentication attacks** can disrupt connectivity; protected management frames reduce supported management-frame attacks.
- **Bluetooth** also uses 2.4 GHz. A classic piconet supports up to seven active peripheral devices under one central device; this is not a universal limit for all Bluetooth modes. Disable unnecessary discovery and pairing.
Voice signaling and protection
- **SIP** sets up and changes sessions: INVITE initiates a session request, ACK acknowledges a final INVITE response, BYE ends a session, CANCEL stops a pending request and REGISTER updates contact bindings.
- SIP **From** identifies the logical caller, **Contact** provides a reachable contact, **Via** records the signaling path and **User-Agent** describes client software. **H.235** concerns security in H.323 systems. Protect signaling and media separately; encrypted signaling alone does not encrypt voice media.
Detection, threats and application security
IDS, IPS and host visibility
- **NIDS** sensors inspect traffic from taps, mirror ports or other capture points and report to a console. A promiscuous interface accepts visible frames regardless of destination; it cannot see traffic the switch never delivers.
- **HIDS** monitors host events, logs, files and processes. Host instrumentation may observe data after an application decrypts it; a network sensor generally cannot read encrypted payloads without a decryption arrangement.
- **IDS** primarily detects and alerts; **IPS** can block activity, often inline or on the host. Inline placement introduces availability consequences when legitimate traffic is blocked or the device fails.
- **Signatures** match known patterns; **anomaly detection** finds departures from a baseline; **protocol/application analysis** evaluates expected behavior. Behavior-based host prevention models allowed application interactions. These methods complement one another.
Alert accuracy and integrity monitoring
- **True positive:** malicious activity alerts. **False positive:** benign activity alerts. **False negative:** malicious activity is missed. **True negative:** benign activity produces no alert. Tune using representative traffic and confirmed findings.
- Excessive **false positives** consume analyst attention and can cause service loss when an IPS blocks them. False negatives leave attacks undetected; reducing one error type may increase the other.
- **File integrity monitoring**, such as Tripwire-style checking, compares files and metadata with a trusted baseline. Create that baseline on a known-good, patched system and protect it outside the monitored host.
- **Inclusive log matching** watches specified event keywords or patterns; exclusion-based analysis suppresses known benign events. A match is a lead for investigation, not proof of compromise.
- A **Snort rule** combines action, protocol, addresses, ports, direction and options such as content and message. Read the whole rule and its traffic direction; a text signature may be bypassed by encoding or encryption.
Malware and exploitation concepts
- A **virus** infects host code; a **worm** can propagate as a self-contained program; a **Trojan** disguises malicious behavior as something useful. A **backdoor** provides an alternate access path.
- **Rootkits** conceal activity by altering utilities, operating-system components or lower layers. Local process and login listings may be untrustworthy after compromise; corroborate from independent evidence.
- **Buffer overflows** occur when data exceeds a memory boundary. A NOP sequence can be an exploit clue but is not conclusive. Bounds checking, memory-safe code, DEP/NX, ASLR and compiler defenses address different parts of the risk.
- **Zero-day** refers to a vulnerability or exploit lacking an available effective fix at the relevant time. A fully patched host can still be compromised through credentials, configuration, vulnerable applications or unknown flaws.
- **Spam** is unsolicited bulk mail. Attachment filtering, malware inspection and user awareness reduce mail-borne threats. Fake infection warnings can induce downloads; do not treat a browser warning as independent proof of infection.
Assessment, validation and deception
- **Host discovery/network mapping** enumerates systems; **port scanning** locates listening services; **vulnerability scanning** identifies potential weaknesses. **Penetration testing** validates selected exploit paths within agreed rules.
- Obtain **authorization and scope**, schedule safely, notify stakeholders and prepare rollback or incident contacts. Deep scans can disrupt fragile systems; tool selection does not remove business risk.
- Validate surprising scanner results against **installed versions, configuration and actual patch state**. False positives, incomplete scans and false negatives are possible; a patch-management report is not complete proof of exposure or safety.
- **Honeypots** attract and study suspicious activity. Use unused addresses, isolation, restricted outbound access and monitoring so the decoy does not impersonate production or become an attack platform.
- **War dialing** searches telephone numbers for modems. Inventory and disable unnecessary modems, monitor calls and assess authorized numbers. Auto-answering an unmanaged modem can expose a separate access path.
Web requests, sessions and secure execution
- **Parameterized queries** separate SQL instructions from data. Validate inputs, encode outputs for their context and restrict database permissions. TLS does not prevent SQL injection or cross-site scripting.
- **CGI** defines an interface between web servers and external applications. IIS handler mappings select processing for requests or extensions; limit unnecessary handlers, use least-privilege identities and patch applications separately from the OS.
- **robots.txt** requests crawler behavior; it is public and provides no access control. Protect sensitive resources with authentication and authorization rather than crawler exclusions.
- **HTTP is stateless**. A session cookie commonly carries an identifier on subsequent matching requests; server-side session data need not travel with it. Use Secure, HttpOnly and appropriate SameSite settings; rotate identifiers at authentication.
- A server can set cookies through **Set-Cookie**; JavaScript can access eligible cookies but cannot read HttpOnly cookies. Restrict cookie scope and lifetime. Client-controlled values must never be treated as trusted authorization evidence.
Cryptography, identity and access control
Encryption, hashing and signatures
- **Symmetric encryption** uses a shared secret and efficiently protects bulk data. **Asymmetric cryptography** uses related public/private keys for operations such as signatures and key establishment; it is generally more computationally expensive.
- A **cryptographic hash** maps arbitrary input to a digest of fixed length for the selected algorithm and is designed to resist reversal and collisions. A bare hash provides no sender authentication; **HMAC** adds a shared secret.
- **Digital signatures** use a private signing key and a corresponding public verification key to authenticate signed data and expose changes. Signatures do not by themselves hide the message or prove the signer personally controlled a compromised key.
- Prefer **publicly analyzed algorithms and established implementations**. Secrecy of the algorithm is not a substitute for key secrecy. DES, MD5 and SHA-1 appear in legacy material; avoid treating them as suitable modern protection choices.
- **Steganography** hides the existence of data within a carrier; encryption hides meaning. Statistical anomalies may suggest hidden data, but filename extensions or a visual inspection alone cannot reliably establish its presence.
Cipher modes and key handling
- **ECB** encrypts equal plaintext blocks under one key to equal ciphertext blocks, exposing patterns. **CBC** chains blocks and requires correct IV handling; it does not provide authentication by itself.
- **CFB and OFB** derive stream-like operation from a block cipher; modes have different IV and reuse requirements. Prefer a supported **authenticated-encryption** construction, such as AES-GCM, with correct nonce management.
- A **session key** protects one communication context; a long-term key has a different lifetime and purpose. Protect generation, storage, distribution, rotation, recovery and destruction. Key length alone does not establish the security of a complete protocol.
PKI and hybrid email encryption
- **PKI** binds identities to public keys using certificates. Enrollment includes key-pair generation, identity validation and certificate issuance; the private key stays protected and is not placed in the certificate.
- Validate a certificate using the **issuer public key**, a chain to a trusted root, validity, identity/name matching, intended usage and applicable revocation checks. The CA signs with its private key; verifying a signature is not generally equivalent to decrypting a message.
- **PGP/OpenPGP hybrid encryption** uses a random symmetric key for message data and protects that key for the recipient using public-key cryptography. The recipient uses its private key to recover the session key and then decrypts the message.
- For a signed message, verify with the **sender public key** and establish that key belongs to the expected sender. **Confidentiality** and **signature authenticity** are separate checks; successful decryption alone does not authenticate the sender.
TLS, IPsec and secure tunnels
- **TLS** protects data in transit using authenticated key establishment and symmetric record protection. Web clients normally authenticate servers with certificates; client-certificate authentication is optional. Legacy SSL protocol names should not imply that obsolete SSL is safe to enable.
- **HTTPS** normally uses TCP 443. Validate the certificate and endpoint identity; encryption cannot make a malicious endpoint trustworthy or prevent application flaws. Modern HTTP/3 uses QUIC over UDP rather than TCP.
- **IPsec** operates at the IP layer. **AH** provides integrity and origin authentication without confidentiality; it excludes mutable fields such as TTL from its integrity calculation. **ESP** can provide confidentiality and integrity/authentication with the selected configuration.
- **Transport mode** protects upper-layer traffic while retaining the original outer IP header; **tunnel mode** encapsulates an entire IP packet. **IKE** negotiates security associations and keys; ISAKMP is part of the associated framework terminology.
- **L2TP** commonly uses UDP 1701 and supplies tunneling rather than encryption; L2TP/IPsec adds IPsec protection. A VPN creates a logical adapter and routes; its address need not match the physical adapter. Inspect split-tunnel and access policy.
Authentication and authorization models
- **Identification** claims an identity; **authentication** verifies it; **authorization** determines allowed actions; **accounting/auditing** records activity. An authenticated user still needs permission for each resource.
- **MFA** combines distinct factor types: knowledge, possession and inherence. Two passwords remain one factor type. A badge plus an independent biometric or PIN can reduce risks from a cloned badge.
- **DAC** lets owners delegate access; **MAC** enforces centrally assigned labels and clearances; **RBAC** grants permissions through roles. **ACLs** specify permitted or denied operations for subjects; policy rules can evaluate other conditions.
- **Long, unique passwords or passphrases** and MFA reduce account risk. Complexity categories alone do not ensure strength. **John the Ripper** audits password hashes offline; protect collected hashes and obtain authorization before testing.
- A constrained cracking test may expose some **policy violations**, but failure to crack is not proof of compliance. Tests focused on character sets do not establish length or all required properties; inspect the actual policy and available validation evidence.
Biometric errors and selection
- **False accept rate (FAR)** measures acceptance of impostors; **false reject rate (FRR)** measures rejection of legitimate users. **EER/CER** is the operating point where these rates are equal, not a control that can simply be set to zero.
- A stricter threshold usually lowers **FAR** while increasing **FRR**. Evaluate security, usability, enrollment quality, environmental conditions, spoof resistance, user acceptance and total cost.
- A successful access log records an **authentication decision**, not certainty about the person present. Investigate borrowed credentials, cloned tokens, sensor spoofing and tailgating using independent controls and evidence.
Windows security and administration
Accounts, tokens and Group Policy
- **Workgroups** maintain local accounts and policy on individual computers. An **Active Directory domain** centralizes identity and policy through domain controllers; standalone and domain-joined computers can coexist on a network.
- A Windows **access token** contains the user SID, group SIDs, privileges and other security attributes. The operating system evaluates the token against object permissions; membership does not mean every privilege is active.
- **Group Policy** ordinarily processes Local, Site, Domain and OU settings in that order, with later applicable settings generally winning conflicts. Inheritance, enforcement, filtering and loopback can alter the result.
- Policy processes at **startup/logon** and background refresh; the usual member-computer refresh is about 90 minutes plus a randomized offset. Some settings require restart or logon. Launching Explorer is not a general Group Policy refresh trigger.
- Windows **password complexity** uses character-category and account-name rules that depend on policy and implementation. Check the effective domain or fine-grained password policy; do not infer password strength from a short sample string.
NTFS, shares and file encryption
- **NTFS** supports per-object ACLs, auditing and features such as EFS and compression; FAT-family volumes do not provide equivalent NTFS permissions. **EFS** is an encryption feature, not a separate filesystem.
- For remote SMB access, both **share permissions and NTFS permissions** apply; access must be allowed at both layers. Local file access uses NTFS permissions without the share gate. Group memberships and applicable deny entries affect the result.
- A **DACL** controls access; a **SACL** defines audit conditions. Distinguish filesystem permissions from rights such as local logon or backup privileges, which can affect what a principal can do.
- **EFS** protects file contents with keys tied to authorized users and recovery arrangements. Back up certificates and private keys. Verify encryption across copying and backup operations; FAT destinations cannot retain EFS encryption and NTFS alone does not guarantee preservation.
- **System state backup** is central to supported Active Directory recovery. Use domain-controller-aware backup and restore procedures; copying directory files or a user profile is not an adequate replacement.
Event logs and administration tools
- **Security** logs contain audited security events; **System** logs record operating-system components, drivers and services; **Application** logs contain application events. Logs exist beyond these three categories on modern systems.
- File access auditing needs both an applicable **audit policy/subcategory** and matching **object SACL entries**. Confirm successful and failed operations are selected as needed and that log collection, size and retention are sufficient.
- **auditpol** queries and configures audit policy; **schtasks** manages scheduled tasks; **sc** manages services; **tasklist** lists processes and **taskkill** terminates them. Remote administration requires suitable rights and connectivity.
- Legacy **WMIC** exposes WMI management queries and changes; PowerShell CIM cmdlets provide an alternative. **MBSA/MBSACLI** was a baseline and missing-update assessment tool, not a general patch-deployment platform.
- **netstat** inspects connections and listeners; **nbtstat -n** lists local NetBIOS names. **ipconfig** displays Windows IP configuration. Correlate listening ports with owning processes and intended services.
Remote access, services and application control
- **RDP hardening** includes restricted network exposure, supported TLS, Network Level Authentication, MFA through an appropriate gateway or access service, patching and least-privilege remote logon. Avoid broadly exposing TCP 3389 to the Internet.
- **RemoteApp** publishes individual remote applications rather than a complete desktop. Restrict desktop and application capabilities with policy; a remote presentation protocol is not an isolation guarantee.
- Restrict **Remote Registry** through service availability, network controls and registry ACLs. Legacy material refers to the **winreg** key under HKLM\SYSTEM\CurrentControlSet\Control\SecurePipeServers; do not assume one key alone secures every remote-management path.
- **UAC** separates routine operation from elevation. **AppLocker** and software-restriction policies control permitted execution under supported configurations; auditing rules helps assess impact before enforcement. **DEP** reduces execution from data pages.
- **Remove unnecessary services** where possible; disable those that must remain installed but unused. Manual startup alone does not prevent execution. Patch OS, applications and databases through tested deployment and rollback processes.
- **Slipstreaming** integrates updates into installation media. **Cygwin** supplies Unix-like tools on Windows rather than a native Linux kernel. Windows clustering can support failover or workload distribution according to the application and cluster design.
Linux security and administration
Accounts, shells and privilege delegation
- **/etc/passwd** fields are name:password-marker:UID:GID:comment:home:shell. An **x** password marker normally points to protected shadow-password storage; it does not mean the account is disabled.
- **/etc/shadow** stores password hashes and aging information with restricted access. Root-owned mode **0400** permits only owner reads; distribution defaults may deliberately use a tightly controlled shadow group and different modes.
- **usermod -s** changes an account login shell. **$SHELL** commonly identifies the configured login shell, not necessarily the process currently interpreting commands; inspect the running process when that distinction matters.
- **sudo** delegates selected commands under policy and normally authenticates the invoking user. **su -c** runs a command as another account and commonly requests that target account password; authentication configuration can change this behavior.
- Authorized **recovery/rescue environments** may reset a lost root password if storage is accessible. Restrict console, firmware and bootloader access and use encryption; a login password alone does not protect an offline disk.
Ownership, modes and directory access
- **chmod** changes mode bits; **chown user:group file** changes owner and group; **chgrp** changes group. For each owner/group/other digit, read = 4, write = 2 and execute = 1.
- **0754** means owner rwx, group r-x and others r--. On a directory, **read** lists names, **execute/search** traverses and accesses entries, and **write plus search** permits entry changes subject to other controls.
- To enter a directory and list its names, normally grant **read and search** on that directory plus search on its parent path. Directory read permission alone does not permit traversal or reading every file.
- **setuid = 4000**, **setgid = 2000** and **sticky = 1000**. Mode **6755** appears as rwsr-sr-x for a regular file. Lowercase s/t means execute is also set; uppercase S/T means it is absent.
- **Setuid executables** run with the file owner effective identity and can create serious privilege risk. Prefer narrow sudo rules or other scoped mechanisms. Setgid directories support group inheritance; sticky directories restrict deletion by nonowners.
Processes, startup and packages
- **ps** lists processes and PIDs; **kill** sends a signal to a PID; on Linux **killall** selects processes by name. Prefer a service manager for managed services and allow graceful termination before using SIGKILL.
- **nice** starts a process with an adjusted scheduling niceness; **renice** changes it. Lower values give higher scheduling preference, usually from -20 to 19; raising priority generally requires privilege and does not guarantee real-time execution.
- **rpm -q package** queries whether a package is installed; **rpm -qa** lists installed packages. **apt-get update** refreshes package indexes; **apt-get upgrade** installs eligible upgrades. Querying and patching are separate operations.
- Traditional **SysV init** uses /etc/inittab and runlevel/service configuration; it is not a universal inventory of every boot process. **systemd** systems use units and targets. Inspect the actual init implementation.
- **Patch and configuration management** maintains approved baselines, inventories and controlled changes. Test automated production updates, stage rollout, retain rollback options and independently verify the result.
Host filtering and service isolation
- **iptables INPUT** handles traffic to the host, **OUTPUT** traffic generated locally and **FORWARD** routed traffic. Rules in a chain are evaluated in order; an early matching terminal action can prevent later rules from taking effect.
- **iptables -I INPUT -s 192.0.2.10/32 -j DROP** inserts a rule to silently drop matching source traffic to the host. **-A** appends, **-D** deletes a rule and **-F** flushes rules from the selected table/chains.
- Flushing iptables rules does **not reset default policies** or automatically remove all custom chains. Remote firewall changes can lock out administration or expose services; inspect tables, policies and rollback before changing them.
- **xinetd and TCP Wrappers** can restrict supported services by client or configuration rules; coverage depends on how each service is launched or linked. They do not replace host firewall rules or service patching.
- **chroot** changes a process view of the filesystem root; it is not a full security sandbox for privileged code. Legacy **smbmount/mount -t smbfs** mounted SMB shares; current Linux systems commonly use CIFS mounting with protected credentials.
Logs, timestamps and administration clues
- **/var/log** is the conventional log location; **/bin** contains essential commands and **/etc** configuration. Depending on the distribution, events may be in /var/log/messages, other text logs or the systemd journal.
- **grep error /var/log/messages** searches matching lines; **tail -f** follows new output. Matching is case-sensitive unless configured otherwise; log text and file presence vary by application and distribution.
- **Syslog severity**, most to least urgent: 0 emergency, 1 alert, 2 critical, 3 error, 4 warning, 5 notice, 6 informational, 7 debug. Facility identifies the event source category.
- **who** commonly reads utmp login information; wtmp tracks historical logins and btmp failed attempts where configured. Process accounting records completed commands for resource/accounting purposes; shell history alone is incomplete evidence.
- **touch** can change access and modification timestamps; this weakens conclusions drawn from timestamps alone. **shred -z** adds a final zero overwrite and **-u** removes the file, but copies and storage behavior can defeat file-level erasure.
- **ss -lntup** shows network listeners under supported permissions; legacy netstat can also inspect sockets. Prefer numeric output and correlate ports with processes rather than relying on a displayed service name.
Incident response, evidence and recovery
Prepare, contain and recover
- An **event** is an observable occurrence; a **security incident** threatens or violates security policy or objectives. Triage using context, scope and business impact rather than treating every alert as an incident.
- **Preparation** establishes contacts, authority, response roles, evidence handling, tools and communication plans. Decide escalation and law-enforcement notification approaches with management and appropriate advisers before an emergency.
- **Identification and analysis** establish what happened and affected assets. **Containment** limits harm while preserving useful evidence; choose isolation actions with safety, business dependencies and response authority in mind.
- **Eradication** removes the cause and persistence; **recovery** restores trusted operation and monitors for recurrence. Lessons learned improve controls and playbooks. Changing passwords alone does not remove a compromised host foothold.
Evidence integrity and chain of custody
- **Chain of custody** records who collected, possessed, transferred and examined evidence, when, where and why. Record device identifiers, acquisition methods, time sources and access; use controlled storage and handling.
- **Bit-stream imaging**, using appropriate tools such as dd, can preserve raw filesystem and unallocated data. Protect originals from writes, analyze verified copies and document acquisition limitations and volatile-data decisions.
- Calculate and record **cryptographic hashes**, preferably suitable modern hashes such as SHA-256, for acquired evidence and working copies. Matching hashes support integrity; they do not establish the origin, truth or completeness of the evidence.
- **Direct observations**, logs and expert interpretations have different evidentiary roles. Preserve original records and distinguish observed facts from inference; admissibility and notification decisions depend on the applicable process and advisers.
Continuity, backups and restoration
- **Business continuity** sustains critical business activity; **disaster recovery** restores technology and data. Executive sponsorship, named responsibilities, dependency planning, training and exercises support both.
- **RTO** is the target recovery time; **RPO** expresses tolerable data loss as a time interval. Set these from business impact and validate them with measured restoration tests, including application dependencies.
- **Full backup** captures the selected dataset. **Incremental** captures changes since the previous relevant backup and needs the full plus subsequent increments. **Differential** captures changes since the full and needs that full plus the latest differential.
- Protect complete **recovery sets** with offsite or isolated copies, encryption, key recovery and retention. Rotation alone does not guarantee a recoverable set; test restores and protect backups from production credential compromise.
- **Clusters and failover** improve service availability but do not replace historical backups. Replication can propagate deletion or corruption. Recovery plans need concrete rebuild steps, alternate-site access and validation of restored business service.