Back to exam

PT0-002 Cheatsheet

CompTIA PenTest+

Download free PDF

Planning and Scoping (14%)

Authorization and engagement documents

  • **Written authorization** establishes permission to test specified assets. Confirm ownership, third-party consent and permitted activities before sending attack traffic or conducting social engineering.
  • **Statement of work (SOW)** defines objectives, scope, deliverables, schedule and costs. A **master services agreement (MSA)** establishes broader contractual terms and responsibilities.
  • **Rules of engagement (ROE)** define permitted techniques, exclusions, testing windows, rate limits, stop conditions and escalation contacts. Every tester must review them.
  • **Non-disclosure agreement (NDA)** governs confidential information. Agree on evidence storage, report recipients, retention, destruction and disclosure before testing.
  • **Scope changes** need documented approval. An exposed host, supplier VPN or newly discovered subnet does not automatically become an authorized target.

Objectives, knowledge and methodology

  • **Unknown environment** testing starts with little internal knowledge; **partially known** supplies limited information; **known environment** supplies extensive documentation or credentials. Defender awareness is a separate choice.
  • **Vulnerability assessment** identifies and prioritizes weaknesses. **Penetration testing** validates exploitable impact. **Red teaming** emulates adversary behavior against defined objectives and defensive capabilities.
  • **Compliance testing** assesses specified requirements; objective-based testing may demonstrate access to particular data. Match scope and evidence to the engagement's purpose.
  • **PTES** structures an engagement from pre-engagement through reporting. **OSSTMM** provides a security testing methodology. **MITRE ATT&CK** organizes adversary tactics, techniques and mitigations.
  • **OWASP Top 10** highlights major web application risk categories; it is not an exhaustive test plan. Use the **OWASP Web Security Testing Guide** for structured web testing.

Boundaries and operational safety

  • **Pre-engagement discovery** confirms targets, asset inventories, accounts, access paths, exclusions and dependencies. Sample locations deliberately when a timeboxed assessment cannot cover every site.
  • **Cloud testing** must follow provider policy and customer authorization. Verify tenant, account, resource and third-party boundaries; shared infrastructure and denial-of-service testing need special care.
  • **Wireless scope** should identify SSIDs, access points, locations and permitted techniques. A matching network name alone does not prove ownership.
  • **OT, ICS and SCADA** can affect physical processes. Fragile controllers may fail under ordinary scans; prefer passive observation and approved laboratory validation where practical.
  • **Testing windows and throttling** reflect business impact, staffing, bandwidth and recovery needs. Define a stop procedure for outages or unexpected effects.

Professional conduct and readiness

  • **Qualifications** combine relevant technical experience, demonstrated skills and suitable certifications. Background screening addresses trustworthiness rather than proving technical competence.
  • **Integrity** requires accurate findings and prompt escalation of serious issues. Do not conceal vulnerabilities, accept inducements or disclose client information without authorization.
  • **On-site readiness** includes authorization paperwork, identification, client contacts and escalation procedures. Physical access permission does not authorize unrelated network attacks.
  • **Data boundaries** apply throughout testing. Stop an out-of-scope transfer, minimize sensitive data collection and notify the agreed contact when unexpected exposure occurs.

Information Gathering and Vulnerability Scanning (22%)

Passive reconnaissance and OSINT

  • **Passive reconnaissance** uses existing third-party information without probing the target directly. **Active reconnaissance** interacts with target systems and can generate alerts.
  • **OSINT** sources include public websites, social profiles, job advertisements, public code repositories, domain records and web archives. Archives can reveal removed contact information and older content.
  • **WHOIS/RDAP** can reveal registration and network ownership information, subject to privacy redaction. Recheck ownership because IP ranges and domains can change hands.
  • **Shodan** and **Censys** index exposed services. **Recon-ng** supports reconnaissance workflows; **Maltego** maps relationships. Third-party results are leads requiring scope and freshness checks.
  • **Search operators** narrow results: `site:` limits domains, `inurl:` matches URL text, `intitle:` matches titles and `filetype:` selects formats.
  • **FOCA** examines document metadata for names, paths and software clues. Public repositories may expose secrets; **TruffleHog** helps identify potential credential leaks.

DNS and public infrastructure

  • **A/AAAA** map names to addresses; **PTR** supports reverse lookup; **CNAME** aliases names; **NS** identifies authoritative servers; **SOA** describes zone authority and maintenance data.
  • **MX** identifies mail exchangers; lower preference numbers are preferred. Multiple MX records commonly provide redundancy. **TTL** specifies how long a record may be cached.
  • **dig** queries DNS records, such as `dig example.com MX`. An authorized **AXFR** zone-transfer test can reveal many hostnames and addresses if transfers are unrestricted.
  • **Split-horizon DNS** returns different internal and external answers. Certificate names can reveal additional hostnames, but a discovered name is not automatically in scope.

Host discovery and Nmap essentials

  • **Discovery versus scanning:** `-sn` performs host discovery without a port scan; `-Pn` skips discovery and treats targets as online. Neither option guarantees an undetected scan.
  • **TCP SYN scan** uses `-sS`; **TCP connect scan** uses `-sT` and completes connections. **UDP scan** uses `-sU`. Raw-packet scans generally need elevated privileges.
  • **Service detection** uses `-sV`; **OS fingerprinting** uses `-O`; `-A` enables OS detection, version detection, default scripts and traceroute. Fingerprints are estimates.
  • **Port selection:** `-p 80,443` selects ports, `-p-` covers TCP ports 1-65535, and `-F` selects fewer common ports. A default scan does not inspect every port.
  • **Target and output options:** `-iL` reads targets, `--exclude` omits hosts, `-n` disables DNS resolution, `-oX` writes XML and `-oA` writes normal, XML and grepable output.
  • **Timing** ranges from `-T0` to `-T5`. Slower timing can reduce load but cannot guarantee stealth. `--max-rate` limits packets per second; convert minute-based thresholds explicitly.

Reading scan results and service clues

  • **Open** means a service accepted the probe; **closed** means the host responded without a listener; **filtered** means filtering prevents a firm determination. Silence does not prove closure.
  • **ACK scan (`-sA`)** examines filtering behavior, not whether services are open. **FIN, NULL and Xmas** results depend on the target stack; silence can mean open or filtered.
  • **SYN/ACK** commonly indicates an open TCP port during a SYN scan; **RST** commonly indicates closure. UDP silence often means **open|filtered**, requiring further validation.
  • **Firewall, WAF or IPS responses** can include resets, blocking or changed results after scans. Check access controls and deconflict before interpreting every failure as a host outage.
  • **TTL and port patterns** are clues, not OS proof. Middleboxes, routing and configurable initial TTL values can make a single fingerprint misleading.

Service enumeration priorities

  • **Cleartext exposure:** FTP 21, Telnet 23 and HTTP 80 can reveal sensitive traffic. SSH 22 and HTTPS 443 encrypt transport when correctly configured.
  • **Mail services:** SMTP commonly uses 25, submission 587 or implicit TLS 465; POP3 uses 110/995 and IMAP 143/993. Verify actual TLS behavior rather than relying on the port.
  • **SMTP enumeration** can involve `VRFY`, `EXPN` or recipient responses. An **open relay** accepts unauthorized message forwarding and may enable mail abuse.
  • **Windows services:** RPC 135, NetBIOS 137/138 over UDP and session service 139 over TCP, SMB 445 and RDP 3389 guide follow-up enumeration.
  • **DNS 53**, **NTP UDP 123** and **SNMP UDP 161/162** warrant protocol-specific checks. Restrict SNMP exposure and protect community strings or authentication secrets.
  • **Databases:** MySQL 3306, PostgreSQL 5432, MSSQL 1433 and MongoDB 27017 are common defaults. Confirm protocol, version, authentication and exposure before selecting tests.

Vulnerability discovery and validation

  • **Nessus** and **OpenVAS** perform broad vulnerability assessment. Credentialed scans can inspect local packages and settings more accurately; supply only the permissions required for intended checks.
  • **False positive** reports a weakness that is absent; **false negative** misses a real weakness. Validate significant findings with configuration checks or safe manual reproduction.
  • **Version matches** are leads: backported patches and misleading banners can invalidate assumptions. Check prerequisites and patch state; test risky proof-of-concept code in a representative lab.
  • **CVE** identifies a published vulnerability; **CVSS** expresses technical severity. **Exploit-DB/SearchSploit** locate exploit references, whose compatibility and safety still need review.
  • **Nmap Scripting Engine (NSE)** uses Lua. `--script` selects scripts or a local script directory; `-sC` runs default scripts. Inspect behavior because scripts can be intrusive.

Attacks and Exploits (30%)

Web mapping, proxies and APIs

  • **Burp Suite** and **OWASP ZAP** intercept, inspect, replay and modify HTTP requests and responses. Configure clients to use the proxy and trust its test certificate where authorized.
  • **Nikto** checks web server exposures; **WPScan** targets WordPress; **DIRB**, **DirBuster** and **Gobuster** discover paths using wordlists. Match the tool to the identified technology.
  • **robots.txt** advertises crawler preferences; it does not enforce access control. Hidden paths, backups and `phpinfo` pages can expose useful information and require proper authorization controls.
  • **HTTP status codes:** 200 indicates success, 3xx redirection, 401 missing or invalid authentication, 403 refusal and 5xx server errors. Inspect bodies and redirect destinations before classifying paths.
  • **Postman collections** organize API requests. Reproduce the browser's authentication, cookies, headers and body format; a proxy setting alone does not authenticate a standalone API client.
  • **API testing** examines object authorization, token scope, HTTP methods, rate limits and sensitive response fields. **Business logic flaws** can bypass intended workflows despite syntactically valid input.

Injection and unsafe input handling

  • **SQL injection** lets input alter query structure. **SQLmap** assists authorized testing. Prevent it with parameterized queries, least-privilege database accounts and appropriate input validation.
  • **SQLi forms:** UNION combines query results; stacked queries add statements where supported; error-based tests use database errors; blind tests infer behavior from Boolean results or time delays.
  • **Command injection** sends untrusted input to an operating system command interpreter. Shell separators and substitutions are warning signs; prefer safe APIs and avoid shell construction from user input.
  • **LDAP injection** changes directory query filters through special characters or untrusted expressions. Escape values for LDAP filter syntax and enforce least privilege.
  • **Directory traversal** uses sequences such as `../` or encoded equivalents to leave an intended directory. Canonicalize paths and enforce an allowed base directory after decoding.
  • **File inclusion** loads unintended local or remote content. **Log poisoning** can become code execution only when attacker-controlled log data is subsequently interpreted through a vulnerable inclusion path.

Browser attacks, sessions and access control

  • **XSS** executes attacker-controlled content in a user's browser. **Reflected** input returns in a response, **stored** input persists and **DOM-based** XSS follows unsafe client-side processing.
  • **XSS prevention** uses context-specific output encoding and safe DOM APIs; sanitize intentionally allowed HTML. **Content Security Policy** adds defense in depth.
  • **CSRF** tricks an authenticated browser into an unwanted request. Use anti-CSRF tokens, appropriate SameSite cookies and origin checks for state-changing actions.
  • **IDOR/broken object authorization** exposes another user's object when an identifier changes. Check authorization on every object and action; hiding or randomizing identifiers is insufficient.
  • **Session hijacking** steals or reuses a valid session; **session fixation** makes a victim authenticate with an attacker-known identifier. Rotate session IDs at login and invalidate them at logout.
  • **HttpOnly** blocks script access to a cookie; **Secure** restricts transport to HTTPS; **SameSite** limits cross-site sending. HttpOnly does not prevent all actions performed through XSS.
  • **Clickjacking** deceives users through embedded or overlaid interfaces. Restrict framing with CSP `frame-ancestors` or suitable `X-Frame-Options` settings.

SSRF, cloud access and isolation

  • **SSRF** makes a server fetch an attacker-selected destination. It can expose internal services or cloud instance metadata that an external browser cannot directly reach.
  • **SSRF defenses** constrain schemes, destinations and redirects, block unintended private/link-local targets and restrict egress. Harden metadata access and minimize workload identity permissions.
  • **Instance metadata** may expose temporary credentials when reachable and permitted. The link-local address `169.254.169.254` is a common metadata endpoint; provider paths and protections differ.
  • **Cloud IAM and federation** errors can overgrant access across accounts or environments. Check role trust, policy scope, token audience and effective permissions rather than assuming authentication implies authorization.
  • **Object storage exposure** can result from public bucket policies, ACLs or excessive permissions. Deny unnecessary public access, restrict identities and review sharing links.
  • **VM escape** crosses the guest-to-hypervisor boundary; **container escape** crosses container isolation. Patch hosts and runtimes, minimize privileges and avoid exposed management sockets or sensitive host mounts.
  • **Side-channel attacks** infer secrets from shared-resource behavior. **Resource exhaustion** consumes finite capacity; configure limits, quotas and monitoring rather than treating containers as automatic DoS protection.

Network interception and segmentation attacks

  • **ARP poisoning** associates an attacker's MAC address with another local IPv4 address, enabling interception or disruption on a broadcast domain. **Ettercap** supports on-path testing.
  • **DNS spoofing/poisoning** redirects name resolution with false answers. Cache state, response matching and timing affect success. **IP spoofing** changes source addresses but does not itself establish a bidirectional session.
  • **Responder** can abuse LLMNR/NBNS name resolution and collect NTLM challenge-response data. Disable unnecessary fallback resolution and enforce appropriate authentication protections.
  • **VLAN hopping** can exploit trunk negotiation or double tagging under suitable switch configurations. Disable unnecessary trunks, constrain allowed VLANs and keep user traffic off the native VLAN.
  • **MAC spoofing** can defeat address-only NAC checks. Stronger device authentication and segmentation reduce reliance on a mutable hardware address.
  • **Direct-to-origin testing** targets a backend outside a WAF path, when authorized. Restrict origin access to trusted gateways; a WAF does not replace application fixes.

Passwords, hashes and domain credentials

  • **Brute force** enumerates candidates; **dictionary attacks** use likely words; **rules** mutate them; **mask attacks** constrain positions; **hybrid attacks** combine a wordlist and a mask.
  • **Password spraying** tries a few passwords across many accounts. **Credential stuffing** reuses leaked username/password pairs. Spraying can still trigger lockouts; respect thresholds, timing and authorization.
  • **Hashcat** and **John the Ripper** test offline password candidates. **Hydra**, **Medusa** and **Patator** test online authentication; parallel attempts can create load and lock accounts.
  • **NT hash versus NTLM response:** pass-the-hash uses an NT hash. Captured NTLM challenge-response data can support offline cracking; it is not the same reusable hash.
  • **NTLM relay** forwards a live authentication exchange to another service when protections permit it. Require SMB signing where appropriate and use protections against cross-service relay.
  • **Kerberoasting** targets service-ticket material for offline password guessing. A **golden ticket** requires the domain's KRBTGT key material, not just any service-account hash.
  • **Mimikatz** can extract credential material when privileges and protections allow. **BloodHound** maps Active Directory relationships and possible privilege paths; protect privileged sessions and limit unnecessary rights.

Linux and Windows privilege escalation

  • **Linux enumeration** checks identity, groups, `sudo` rights, services, scheduled jobs and writable privileged files. `id` and `whoami` show execution context.
  • **SUID** executables may run with the file owner's privileges. `find / -user root -perm -4000 2>/dev/null` identifies root-owned SUID files; presence alone does not prove exploitability.
  • **Writable jobs or configuration** can lead to escalation when a privileged process consumes them. Audit cron entries, service definitions, file permissions and ownership.
  • **Windows service weaknesses** include writable executables, permissive service ACLs and unquoted paths containing spaces. Exploitation depends on write access and execution or restart conditions.
  • **AccessChk** inspects permissions. Service inventory, scheduled-task queries and registry inspection can reveal unsafe settings, including **AlwaysInstallElevated** when enabled in both relevant user and machine policies.
  • **Unique local administrator passwords**, managed rotation and least privilege limit lateral movement from reused credentials. Protect LSASS and reduce unnecessary privileged logons.

Shells, pivoting and persistence

  • **Reverse shells** connect from target to listener; **bind shells** listen on the target. Reachability, firewall direction, payload architecture and listener configuration must match.
  • **Web shells** execute commands through a web endpoint. A **PTY/TTY upgrade** improves terminal interaction; it does not itself elevate privileges or establish persistence.
  • **Netcat** moves bytes through network connections; **Socat** bridges streams and endpoints. Transfers through basic Netcat are not automatically encrypted or authenticated.
  • **Pivoting** reaches authorized systems through a compromised host. SSH forwarding, SOCKS proxies and **ProxyChains** support routing through intermediate access; proxy and protocol support differ.
  • **Persistence** may use services, scheduled tasks, cron jobs, startup entries or test accounts. Record every change and arrange removal; a currently open shell alone does not survive reboot.
  • **Living off the land** uses built-in utilities such as PowerShell, WMI or certificate tools. **NTFS alternate data streams** can store additional named data; native utilities still leave evidence.

Wireless, Bluetooth and mobile

  • **Evil twin** access points impersonate a trusted WLAN. A rogue AP is any unauthorized AP; credential-harvesting portals and weak certificate validation can make impersonation effective.
  • **Aircrack-ng** captures and analyzes wireless traffic; **Kismet** supports wireless discovery and monitoring. Authorized deauthentication can trigger reconnects, but no active client means no new handshake.
  • **WPA2-PSK** captures allow offline password guessing without revealing the key directly. **WPS PIN** designs can weaken access security; disable unnecessary WPS and use strong authentication.
  • **Protected Management Frames** reduce forged management-frame attacks. Validate enterprise authentication server certificates and limit radio coverage where practical; RF boundaries are not access controls.
  • **Bluejacking** sends unsolicited Bluetooth messages; **bluesnarfing** extracts data; **bluebugging** seeks device control. **BLE** testing examines pairing, GATT permissions and on-path exposure; **Gattacker** targets BLE workflows.
  • **Mobile testing** can use MobSF for analysis, Frida for runtime instrumentation and Drozer for Android components. Decompilation can expose embedded secrets; client-side encryption cannot safely conceal a bundled key.
  • **Certificate pinning** can reject a proxy certificate even when its root is trusted. MDM can enforce configuration and application policy; Android applications still require signing, including sideloaded apps.

Social engineering, physical access and availability

  • **Phishing** uses deceptive messages; **spear phishing** targets particular people; **whaling** targets executives; **smishing** uses SMS; **vishing** uses voice calls. **SET** supports authorized social engineering exercises.
  • **Pretexting** builds a false scenario; **baiting** offers an enticing item; **watering holes** compromise sites visited by targets. Authority, urgency, familiarity and social proof influence decisions.
  • **Tailgating/piggybacking**, badge cloning, impersonation, shoulder surfing and dumpster diving test different physical controls. Use only approved entry methods and minimize collected personal information.
  • **Badge plus PIN or biometric** combines possession with knowledge or inherence. Badge plus another badge remains one factor. Layer access controls, visitor checks, monitoring and staff verification.
  • **DoS** attacks availability; **DDoS** uses distributed sources. Reflection and amplification abuse responders; UDP reflection does not require ICMP. Fragile links and systems can fail even during ordinary testing.
  • **Memory corruption and races** can cause crashes or code execution. Fuzzing varies inputs; debuggers inspect failures. Concurrent requests may expose timing-dependent flaws; use isolated validation to limit harm.

Reporting and Communication (18%)

Escalation and deconfliction

  • **Communication plans** specify routine updates, report delivery, primary/secondary contacts and emergency paths. Agree on critical-finding thresholds before testing begins.
  • **Deconfliction** distinguishes authorized activity from real incidents and coordinates overlapping work. Compare timing, source addresses and actions with the client rather than assuming every alert is the test.
  • **Prior compromise**, suspected criminal activity, unexpected outages or serious data exposure require prompt escalation under the ROE. Pause affected testing and preserve relevant evidence without expanding into unauthorized investigation.
  • **Changing priorities** should be agreed with the client and reflected in scope. Explain limitations, blocked tests and remaining risk rather than overstating completeness.

Findings, severity and remediation

  • **A useful finding** states the affected asset, weakness, prerequisites, reproducible evidence, impact, severity and actionable remediation. Distinguish confirmed exploitation from scanner indications.
  • **Prioritization** combines technical severity, likelihood, exposure, business importance and affected data. A CVE's age or identifier alone cannot determine remediation order.
  • **Developer details** include vulnerable code context, unsafe input paths, reproduction steps and precise fixes. Operations teams need affected versions, configurations, patching and hardening actions.
  • **Root-cause remediation** pairs findings with controls: parameterization for SQLi, output encoding for XSS, authorization checks for IDOR and destination/egress controls for SSRF.
  • **Broader controls** include dependency checking, patching, secrets management, key rotation, secure defaults and segmentation. A screened subnet separates public servers from internal workstations and sensitive systems.

Audience and evidence handling

  • **Executive summaries** explain business impact, exposure and priorities in plain language. **Technical findings** support reproduction; **appendices** can hold detailed scan output and supporting material.
  • **Threat hunters** benefit from attack paths, tactics, techniques and procedures (TTPs), plus observable indicators. Report detection successes and gaps within the agreed assessment objectives.
  • **Evidence** should show what was observed while minimizing secrets and personal data. Redact credential material and restrict access to reports, captures and screenshots.
  • **Secure delivery** encrypts the report to the intended recipient, such as with their verified PGP public key or S/MIME certificate. Protect storage and restrict recipient access as well.
  • **Attestation letters** summarize assessment scope and completion without reproducing sensitive findings. **Client acceptance/sign-off** records receipt and agreement against contracted deliverables.

Cleanup, retesting and closure

  • **Activity diaries** record commands, hosts, changes and artifacts for reproducibility and cleanup. Track test accounts, uploaded files, shells, jobs, keys, services and configuration changes.
  • **Cleanup** removes tester-installed artifacts and restores agreed settings. Preserve legitimate logs and accounts; deleting evidence indiscriminately is not routine engagement cleanup.
  • **Remediation and retesting** verify that fixes block the original attack and do not leave related exposure. Record retest scope and remaining issues; a retest does not replace a full new assessment.
  • **Lessons learned** review communication, methods and process failures. Follow the agreed retention/destruction policy for working copies, recovered passwords, hash files and tool caches.

Tools and Code Analysis (16%)

Recognizing scripts and data structures

  • **Language cues:** Bash uses shell commands and `$variables`; PowerShell uses cmdlets and objects; Python uses indentation; JavaScript commonly manipulates browser objects. Metasploit modules use **Ruby**; NSE uses **Lua**.
  • **Python basics:** import modules before use; `sys.argv` contains command-line arguments. `val += 1` increments a number; `++val` is not Python's increment operator.
  • **Lists** hold ordered values; **tuples** are immutable sequences; **dictionaries** map keys to values; **sets** store unique elements. Match the container to lookup, ordering and mutation needs.
  • **Nested data** requires traversing the actual structure: dictionary keys select fields and list indexes select positions. `True` and `False` are Boolean values; conditionals and loops control execution.
  • **Functions and libraries** support reuse. Concatenation joins strings; initialization and type handling prevent invalid states. C/C++ uninitialized values and Java definite-assignment rules behave differently.

Network and web scripting

  • **Python socket** provides network interfaces. `SOCK_STREAM` commonly means TCP; `SOCK_DGRAM` commonly means UDP. UDP does not provide TCP's connection, ordering or delivery guarantees.
  • **Port-scanning logic** iterates target ports, attempts connections, handles timeouts and closes sockets. `range(1000, 2001)` includes ports 1000 through 2000; the upper bound is exclusive.
  • **Timeouts and errors** have specific meanings: a socket timeout is not a confirmed closed port; `socket.gaierror` concerns name/address resolution. A timeout value does not set an inter-probe delay.
  • **requests** simplifies HTTP calls; `params=` supplies URL query parameters, `data=` supplies form data and `json=` supplies a JSON body. Inspect status, headers and response content.
  • **Scapy** constructs and inspects packets; **Impacket** supplies Python classes for network protocols. **tcpdump/Wireshark** capture and analyze traffic; capture before running an application to observe its transport.
  • **Structured exchange** uses JSON, XML or CSV as appropriate. Python's `json` and `csv` modules handle parsing; sets or dictionary keys support deduplication, with explicit ordering when needed.

Shell syntax and file handling

  • **Shebang** `#!/bin/bash` identifies a script interpreter. `chmod u+x script.sh` grants owner execute permission; permissions and interpreter availability are separate requirements.
  • **Redirection:** `>` overwrites, `>>` appends, `<` supplies input, `|` pipes stdout and `2>/dev/null` discards stderr. Understand data direction before interpreting a transfer or log operation.
  • **Bash quoting** controls expansion: single quotes preserve literal text; double quotes allow variable expansion. Test loop variables, comparisons and command syntax rather than guessing from a script's filename.
  • **curl**, **wget**, PowerShell and native OS tools can transfer files. A staging server's address, port and exact path must be reachable; an HTTP 404 indicates a missing resource, not proof of antivirus blocking.
  • **Process and startup inspection** distinguish inventory from changes. Windows `taskkill` can target a PID, `/T` includes its process tree and `/F` forces termination; disruptive actions require agreed scope.

Password storage, secrets and encoding

  • **Base64** is reversible encoding, not encryption. HTTP Basic authentication encodes credentials with Base64 and therefore needs TLS for transport confidentiality.
  • **Password hashing** uses unique random salts and a suitable cost with a password KDF such as Argon2id, bcrypt or PBKDF2. Fast unsalted hashes enable efficient offline guessing and precomputed tables.
  • **Salt migration** requires rehashing the plaintext password at login or reset. Hashing an old hash is not equivalent to deriving a fresh password hash with a new salt.
  • **Secrets management** keeps passwords, keys and tokens out of source code and shared documents. Revoke or rotate exposed secrets, review use and prevent recurrence with scanning and commit controls.
  • **unshadow** combines Unix account and password-hash data for compatible cracking workflows. **CeWL** derives wordlists from website text; **crunch** generates candidates. Protect recovered credentials and delete them under policy.
  • **Steganography** hides the presence of data; encryption protects its contents; encoding changes representation. None guarantees that a DLP control will miss a transfer.

Analysis tools and vulnerability patterns

  • **Static analysis** examines code or binaries without running them; **dynamic analysis** observes execution. Dependency analysis identifies vulnerable third-party components beyond application source logic.
  • **Debuggers** such as GDB and WinDbg inspect runtime state and crashes. **Disassemblers** such as IDA translate machine code; decompilers approximate higher-level logic. Match architecture and executable format.
  • **Fuzzing** tests malformed, unexpected or boundary inputs. Inspect lengths, bounds, unsafe casts, null dereferences and allocation behavior; a crash needs analysis before claiming exploitable execution.
  • **Race conditions** depend on operation ordering or shared-state access. Repeated identical input with simultaneous connections can expose nondeterministic behavior; use synchronization and atomic operations to address root causes.
  • **TLS review** checks certificate identity, trust, validity and protocol/cipher configuration. Heartbleed leaks memory in affected implementations; Sweet32 concerns 64-bit block ciphers; EternalBlue targets SMB and requires a different patch path.
  • **Tool families:** Metasploit supports exploitation and payloads; Covenant, Empire and Cobalt Strike support command-and-control workflows; Scout Suite audits cloud configuration; Pacu tests AWS permissions and attack paths; Cloud Custodian enforces cloud policies.