PT0-003 — CompTIA PenTest+ V3 Quick Reference

Compact PT0-003 quick reference covering pentest methodology, recon, scanning, exploitation, cloud, reporting, and exam traps.

Exam Identity and How to Use This Reference

This Quick Reference supports independent preparation for CompTIA PenTest+ V3 (PT0-003). It focuses on the decisions, tools, workflows, and terminology a candidate is likely to need under exam conditions.

Use it as a final-stage review aid:

  • Know what to choose: tool, scan type, attack path, report section, or remediation.
  • Know why: active vs. passive, authenticated vs. unauthenticated, exploit vs. validate, proof-of-concept vs. production-safe.
  • Watch for exam traps around scope, authorization, safety, evidence handling, and least disruptive testing.

Penetration Test Lifecycle Reference

PhasePrimary GoalHigh-Yield OutputsCommon Exam Traps
Pre-engagementDefine authorization, scope, rules, constraintsSOW, ROE, communication plan, escalation path, test windowsStarting scans before authorization; ignoring third-party/cloud approval
ReconnaissanceIdentify targets, technologies, people, exposuresDomains, IPs, DNS records, emails, tech stack, attack surfaceConfusing passive OSINT with active probing
EnumerationConfirm live hosts, services, versions, users, sharesOpen ports, banners, AD objects, APIs, web pathsTreating a vulnerability scanner result as confirmed exploitation
Vulnerability analysisMap findings to likely weaknessesCVEs, misconfigurations, weak auth, missing patchesChasing high CVSS findings outside scope
ExploitationValidate risk through controlled attackShell, data access proof, privilege boundary crossingCausing outage, persistence without permission, data overcollection
Post-exploitationAssess impact and pivot potentialPrivilege level, lateral movement path, sensitive data proofExpanding beyond scope or failing to preserve evidence
ReportingCommunicate risk, evidence, and remediationExecutive summary, technical findings, risk ratings, retest planWriting only tool output; missing business impact
Cleanup and debriefRemove artifacts and transfer knowledgeRemoved accounts/files, restored settings, lessons learnedLeaving payloads, test accounts, or scheduled tasks behind

Rules of Engagement and Scope Checklist

ItemWhat to VerifyWhy It Matters
Written authorizationWho approves testing and what systems are includedPrevents unauthorized access claims
In-scope targetsIP ranges, domains, APIs, apps, cloud accounts, facilitiesDefines legal and operational boundaries
Out-of-scope targetsShared infrastructure, third-party systems, production componentsPrevents collateral impact
Test windowsDates, times, maintenance periods, blackout periodsReduces business disruption
Allowed techniquesPhishing, password spraying, exploitation, DoS testing, physical testingSome tests require explicit approval
Data handlingCollection limits, storage, encryption, retention, disposalProtects sensitive evidence
Emergency contactsIncident escalation path and stop-test authorityNeeded for instability or detection events
Success criteriaObjectives, flags, crown jewels, demonstration requirementsKeeps testing aligned with client goals
Reporting formatAudience, due dates, severity model, evidence standardsAvoids unclear deliverables

Exam cue: If the scenario asks what to do first, choose authorization, scope validation, or ROE review before scanning or exploitation.

Passive vs. Active Reconnaissance

TechniquePassive or ActiveTypical Tools / SourcesUse When
WHOIS/RDAP lookupPassivewhois, registrar dataIdentifying ownership and contacts
DNS record reviewPassive or active depending methoddig, nslookup, DNSDumpsterMapping domains, MX, TXT, SPF, DKIM, DMARC
Certificate transparency searchPassivecrt.sh, search enginesFinding subdomains without touching target
Search engine dorkingPassiveGoogle/Bing operatorsDiscovering exposed files and admin portals
Social media reviewPassiveLinkedIn, public postsIdentifying roles, naming conventions, phishing targets
Port scanActivenmap, masscanDiscovering exposed services
Web crawlingActiveBurp Suite, OWASP ZAP, feroxbusterMapping application paths
Banner grabbingActivenetcat, curl, nmap scriptsIdentifying versions and service behavior
Password sprayingActivekerbrute, custom scripts, cloud login portalsTesting weak password patterns with lockout risk

Fast Tool Selection Matrix

TaskPreferred Tool TypesExamplesNotes
Port/service discoveryNetwork scannersNmap, MasscanUse slower, safer scans when stealth or stability matters
Vulnerability scanningVulnerability scannersNessus, OpenVAS/Greenbone, QualysAuthenticated scans produce better results
Web proxy testingIntercepting proxiesBurp Suite, OWASP ZAPBest for auth flows, parameter tampering, API testing
Directory/content discoveryWeb fuzzersffuf, gobuster, dirsearch, feroxbusterTune wordlists and extensions
Password auditingCrackers and online testersHashcat, John the Ripper, Hydra, MedusaDistinguish offline cracking from online guessing
AD enumerationAD toolsBloodHound, SharpHound, enum4linux-ng, ldapsearchFocus on relationships and privilege paths
Exploitation frameworkExploit frameworksMetasploitUse for validation, not as a substitute for understanding
Packet analysisProtocol analyzersWireshark, tcpdumpUseful for credentials, protocols, anomalies
Wireless testingWi-Fi toolsAircrack-ng suite, KismetRequires explicit wireless scope
Cloud assessmentCloud CLI and posture toolsAWS CLI, Azure CLI, ScoutSuite, ProwlerRequires tenant/account authorization
Container/Kubernetes reviewContainer and cluster toolsdocker, kubectl, Trivy, kube-benchCheck images, RBAC, secrets, exposed APIs
Source/code reviewStatic analysis and manual reviewSemgrep, Bandit, grep, IDE toolsTrace input validation, auth, crypto, secrets
ReportingEvidence and documentation toolsScreenshots, logs, issue trackersPreserve command, timestamp, target, result

Nmap and Network Scanning Quick Reference

Common Nmap Patterns

GoalCommand PatternExam Notes
Basic TCP SYN scannmap -sS <target>Requires privileges on many systems; stealthier than full connect but still active
TCP connect scannmap -sT <target>Uses OS TCP connect; useful without raw socket privileges
UDP scannmap -sU <target>Slower and less reliable; useful for DNS, SNMP, NTP, VPN services
Service/version detectionnmap -sV <target>Helps map CVEs but may be noisy
OS detectionnmap -O <target>Accuracy depends on network conditions and open/closed ports
Default scriptsnmap -sC <target>Runs common NSE scripts; can increase traffic
Aggressive scannmap -A <target>Combines OS, version, scripts, traceroute; noisier
Scan selected portsnmap -p 80,443,8080 <target>Better when scope is narrow
Scan all TCP portsnmap -p- <target>Finds nonstandard services; takes longer
Output all formatsnmap -oA basename <target>Saves normal, grepable, and XML output
Timing templatenmap -T0 to -T5Faster is noisier and more disruptive
No ping discoverynmap -Pn <target>Use when ICMP is blocked or hosts appear down
Script by categorynmap --script vuln <target>Validate script behavior before using against production

Scan Decision Points

ScenarioBetter ChoiceWhy
Firewalled host appears down-PnTreat host as up and scan ports
Need safe initial discoveryLow-rate TCP scan of approved portsMinimizes disruption
Need reliable web service version-sV plus manual banner validationReduces false assumptions
Need confirm UDP exposureUDP scan plus protocol-specific queryUDP responses are often ambiguous
Need preserve evidence-oA, screenshots, timestampsSupports repeatable reporting

High-Yield Ports and Services

Port / ProtocolServiceCommon Test Focus
21/TCPFTPAnonymous access, cleartext credentials, writable directories
22/TCPSSHWeak passwords, old algorithms, exposed keys
23/TCPTelnetCleartext login, legacy systems
25/TCPSMTPOpen relay, user enumeration, spoofing controls
53/TCP/UDPDNSZone transfer, subdomain enumeration, misconfigured records
80/443/TCPHTTP/HTTPSWeb vulnerabilities, TLS configuration, auth/session flaws
88/TCP/UDPKerberosAD attacks, user enumeration, Kerberoasting paths
110/995/TCPPOP3/POP3SCleartext or weak mailbox auth
111/TCP/UDPRPCbindNFS/RPC enumeration
135/TCPMS RPCWindows enumeration and lateral movement context
139/445/TCPSMBShares, signing, null sessions, relay risk, legacy protocols
143/993/TCPIMAP/IMAPSMailbox access, credential testing
161/UDPSNMPCommunity strings, device info disclosure
389/636/TCPLDAP/LDAPSDirectory enumeration, weak binds
445/TCPSMBFile shares, named pipes, Windows auth
1433/TCPMSSQLDefault credentials, xp_cmdshell, weak permissions
1521/TCPOracle DBListener exposure, default accounts
2049/TCP/UDPNFSExport permissions, no_root_squash
3306/TCPMySQL/MariaDBWeak auth, exposed DB
3389/TCPRDPExternal exposure, weak passwords, NLA status
5432/TCPPostgreSQLWeak auth, exposed DB
5900/TCPVNCWeak/no password, exposed remote desktop
5985/5986/TCPWinRMRemote admin, credential reuse
6379/TCPRedisUnauthenticated access, data exposure
8080/8443/TCPAlternate HTTP(S)Admin panels, proxies, dev apps
9200/TCPElasticsearchUnauthenticated data exposure
11211/TCP/UDPMemcachedUnauthenticated access, amplification risk
27017/TCPMongoDBUnauthenticated DB exposure

Vulnerability Validation Logic

Scanner Finding SaysDo This Before Reporting as ConfirmedEvidence to Capture
Missing patch / CVEVerify version, configuration, and exploitability contextVersion output, package info, vendor advisory mapping
Default credentialsAttempt approved login with safe credentials listLogin proof without excessive data access
SQL injectionConfirm with controlled payloads and response differenceRequest/response pairs, parameter, impact
XSSDemonstrate script execution safelyPayload, affected parameter, browser evidence
Weak TLSValidate with TLS scanner and protocol/cipher evidenceProtocols, ciphers, certificate chain issues
SMB signing disabledConfirm host policy and relay relevanceSMB negotiation evidence
Exposed sensitive fileProve existence with minimal accessPath, headers, redacted content sample
Privilege escalationShow before/after privilege boundaryUser context, command output, access gained

Web Application Testing Reference

Web Vulnerability Matrix

VulnerabilityCore TestCommon Payload / SignalImpact
SQL injectionInput changes query logic' OR '1'='1, time delay, error differenceData disclosure, auth bypass, RCE in some stacks
Reflected XSSPayload returns in response and executes<script>alert(1)</script> or safe proof payloadSession theft, user action abuse
Stored XSSPayload persists and executes for othersComment/profile field executionBroader user compromise
DOM XSSClient-side JS writes unsafe input to DOMURL fragment reflected in sinkBrowser-side execution
CSRFState-changing request lacks anti-CSRF controlForced form submit or crafted requestUnwanted user actions
SSRFServer fetches attacker-controlled URLRequest to internal metadata or callback hostInternal service access, cloud credential exposure
IDOR/BOLAChange object ID and access another user’s data/api/users/123 to /api/users/124Unauthorized data access
Broken authenticationWeak login/session controlsNo lockout, weak reset, predictable tokensAccount takeover
Broken access controlUser reaches forbidden functionDirect admin URL/API callPrivilege abuse
File upload flawUpload executable or polyglot contentWeb shell, MIME bypass, extension trickRCE or stored payload
Path traversalAccess files outside web root../../../../etc/passwdSensitive file disclosure
Command injectionOS command executed by app; id, && whoamiRCE
XXEXML parser resolves external entityExternal entity callback/file readFile disclosure, SSRF
Insecure deserializationTampered serialized object changes behaviorSigned/unsigned object manipulationRCE, auth bypass
Security misconfigurationDefault config or verbose errorsStack traces, admin consolesInformation disclosure, takeover path
Sensitive data exposureSecrets or PII exposedKeys in JS, logs, backupsCredential/data compromise

HTTP Status Codes Worth Knowing

CodeMeaningPentest Relevance
200OKContent exists; check authorization
301/302RedirectFollow auth flows and open redirect risk
400Bad requestInput validation clue
401UnauthorizedAuthentication required
403ForbiddenAuthenticated but not authorized, or blocked path
404Not foundMay hide resources; compare response size
405Method not allowedTry allowed methods if in scope
500Server errorPossible injection, parsing, or backend issue

Useful Web Testing Commands

## Inspect headers and TLS behavior
curl -k -I https://target.example

## Send a custom host header or token
curl -k -H "Host: app.target.example" -H "Authorization: Bearer TOKEN" https://IP/

## Basic directory fuzzing pattern
ffuf -u https://target.example/FUZZ -w wordlist.txt -mc all -fs <filter_size>

## Parameter fuzzing pattern
ffuf -u "https://target.example/search?q=FUZZ" -w payloads.txt

API Testing Quick Reference

AreaWhat to TestCommon Failure
AuthenticationToken validation, expiration, refresh, signingAccepting expired or unsigned tokens
AuthorizationObject-level and function-level accessBOLA/IDOR, normal user reaches admin action
Rate limitingLogin, OTP, password reset, expensive queriesBrute force or resource exhaustion
Input validationJSON fields, types, nested objectsInjection or mass assignment
Error handlingVerbose errors, stack traces, debug infoInformation disclosure
VersioningOld endpoints still reachableDeprecated insecure functionality
CORSOrigins, credentials, methodsOverly permissive cross-origin access
GraphQLIntrospection, nested queries, auth on resolversData overexposure, expensive query abuse

JWT inspection reminders:

header.payload.signature
JWT CheckRisk If Weak
Algorithm confusionToken signature bypass
Missing signature validationForged identity
Long token lifetimeExtended compromise
Sensitive data in payloadClient-side data exposure
Weak secretOffline token cracking

Authentication and Password Attack Reference

AttackOnline or OfflineTargetKey Constraint
Brute forceOnlineLogin serviceLockouts, rate limits, detection
Password sprayingOnlineMany accounts, few passwordsSafer than brute force but still risky
Credential stuffingOnlineKnown breached credentialsDepends on password reuse
Dictionary attackOffline or onlineHashes or login formsWordlist quality matters
Mask/rule attackOfflineHashesEfficient when pattern is known
Rainbow tableOfflineUnsalted hashesLess useful against salted hashes
KerberoastingOffline cracking after ticket requestAD service accountsRequires valid domain account
AS-REP roastingOffline crackingAD users without preauthRequires vulnerable account setting
Pass-the-hashOnline lateral movementNTLM environmentsUses hash without plaintext password
Pass-the-ticketOnline lateral movementKerberos ticketsUses ticket material
MFA fatigueOnline social/technicalPush-based MFADepends on user interaction

Password cracking examples:

## Identify hash type separately; do not guess blindly
hashcat -m <mode> hashes.txt wordlist.txt

## John format example
john --wordlist=wordlist.txt hashes.txt

Active Directory Attack Path Reference

TechniqueRequired Starting PointWhat It AbusesEvidence / Outcome
LDAP enumerationNetwork access, sometimes credentialsDirectory visibilityUsers, groups, computers, SPNs
KerberoastingValid domain accountService ticket encrypted with service account keyCrackable TGS hash
AS-REP roastingUser without Kerberos preauthAS-REP encrypted with user keyCrackable AS-REP hash
Password sprayingUser list and password guessWeak/reused passwordsValid credential
SMB share enumerationNetwork access or credsExcessive share permissionsSensitive files, scripts, configs
GPP password discoverySYSVOL readLegacy Group Policy preference secretsRecoverable local admin password
NTLM relayCaptured authentication and unsigned/weak targetRelays auth to another serviceAccess without knowing password
Pass-the-hashNTLM hashNTLM authenticationLateral access
Pass-the-ticketKerberos ticketKerberos authenticationLateral access
DCSyncDirectory replication rightsReplication protocol permissionsDomain credential material
Golden ticketKRBTGT keyForged Kerberos TGTDomain persistence
Shadow credentialsWrite privileges on account attributesKey trust abuseAccount impersonation path

AD Defensive Control Distinctions

ControlHelps AgainstNotes
SMB signingNTLM relayPrevents tampering/relay to SMB when required
LDAP signing/channel bindingLDAP relayHardens LDAP authentication
Least privilegeLateral movement, privilege escalationReduces blast radius
Tiered administrationDomain compromiseSeparates admin contexts
LAPS / local admin password managementLocal admin reuseUnique managed local passwords
Strong service account passwords/gMSAKerberoastingMakes offline cracking harder
Disable legacy protocolsDowngrade/relayReduce NTLM/LM exposure where possible
MFA for remote access/adminCredential replayDoes not protect every legacy protocol

Linux and Windows Privilege Escalation Checklist

Linux

CheckCommand ExamplesWhat to Look For
Current identityid, whoami, groupsGroup memberships, sudo rights
Kernel/versionuname -a, cat /etc/os-releaseKnown local privilege escalation context
Sudo rightssudo -lNOPASSWD, allowed binaries
SUID/SGID filesfind / -perm -4000 -type f 2>/dev/nullAbusable binaries
Writable pathsfind / -writable -type d 2>/dev/nullPATH hijacking, cron abuse
Cron/systemdls -la /etc/cron*, systemctl list-timersWritable scripts or timers
Capabilitiesgetcap -r / 2>/dev/nullDangerous capabilities like file read/write or shell execution
SecretsConfig files, history, backupsPasswords, tokens, private keys
Networkss -tulpnLocal-only services to pivot into

Windows

CheckCommand ExamplesWhat to Look For
Current identitywhoami /allPrivileges, groups, integrity level
System infosysteminfoPatch and OS context
Users/groupsnet user, net localgroup administratorsPrivileged accounts
Servicessc query, PowerShell service queriesUnquoted paths, weak permissions
Scheduled tasksschtasks /query /fo LIST /vWritable task actions
Saved credentialscmdkey /listReusable credentials
Sharesnet share, net useSensitive data, writable shares
RegistryAutoruns, stored configCredentials, autostart abuse
Defender/exclusionsPowerShell security settingsAvoid assuming controls are disabled

Exploitation Safety Decision Table

SituationSafer ActionAvoid
Production database injection suspectedUse time-based or limited Boolean proof, confirm with ownerDumping full tables
RCE suspectedRun benign identity/hostname commandDestructive commands or persistence
File read suspectedRead a harmless known file or approved markerAccessing sensitive files unnecessarily
Weak credentials foundLogin once, capture minimal proofBroad mailbox or file browsing
Shell obtainedStabilize only if allowed, record contextInstalling persistence tools without approval
Service crash riskUse non-invasive checks or ask for test windowRunning DoS modules by default
Sensitive data encounteredStop, document path, redact evidenceCopying large datasets

Post-Exploitation Reference

ObjectiveExamplesExam Boundary
Establish contextHostname, user, groups, network interfacesDocument before changing anything
Identify sensitive accessConfig files, keys, DB connections, sharesCollect minimum proof
Privilege escalationLocal misconfigurations, credential reuseStay within ROE
Lateral movementSMB, WinRM, SSH, RDP, cloud rolesConfirm target is in scope
PivotingSOCKS proxy, SSH tunnel, port forwardAvoid unauthorized third-party routing
PersistenceScheduled task, service, startup itemOnly if explicitly permitted
CleanupRemove tools, accounts, payloads, logs as agreedDo not destroy audit evidence unless instructed

Pivoting and Tunneling Patterns

NeedPatternExample Use
Reach internal service through compromised hostLocal port forwardAccess internal web admin from tester machine
Expose tester service to targetReverse port forwardReceive callback from isolated network
Route multiple tools through footholdSOCKS proxyProxychains with browser/scanner
Transfer files safelySCP/SFTP/HTTPSMove approved tooling or evidence
Avoid file transferLiving-off-the-land commandsUse native shell commands when allowed
## SSH local port forward: tester connects to localhost:8080 to reach internal target:80
ssh -L 8080:internal.target:80 user@pivot-host

## SSH dynamic SOCKS proxy
ssh -D 9050 user@pivot-host

Cloud Penetration Testing Reference

AreaWhat to CheckCommon Findings
Identity and accessUsers, roles, groups, service principals, policiesOverprivileged roles, stale keys, weak separation
StorageBuckets/blobs/shares, ACLs, public access settingsPublic data exposure, weak encryption settings
Network exposureSecurity groups, firewalls, load balancers, public IPsExposed admin ports, overly broad ingress
ComputeVM metadata, instance roles, startup scriptsCredential exposure, lateral movement via role
ServerlessFunction permissions, triggers, environment variablesSecrets in env vars, broad execution roles
ContainersRegistries, image vulnerabilities, cluster RBACPrivileged containers, exposed dashboards
LoggingAudit logs, flow logs, alertingMissing detection or retention gaps
SecretsKey vaults, secret managers, CI/CD variablesHardcoded or broadly accessible secrets

Cloud-Specific Exam Traps

TrapCorrect Thinking
Treating cloud like only virtual machinesInclude IAM, managed services, metadata, storage, and APIs
Testing a cloud tenant without provider/client approvalConfirm scope, authorization, and acceptable use constraints
Reporting public bucket only as “misconfiguration”Explain data exposure and access path
Ignoring temporary credentialsSession tokens and instance role credentials matter
Assuming encryption solves access controlEncryption does not fix public or excessive permissions
Using destructive tests against managed servicesPrefer read-only validation unless explicitly approved

Container and Kubernetes Reference

ComponentWhat to ReviewRisk
ImageBase image, packages, secrets, build historyVulnerabilities, embedded credentials
DockerfileUser, permissions, exposed portsRunning as root, excessive capabilities
RuntimePrivileged mode, host mounts, socket mountsHost compromise path
RegistryPublic/private access, signing, scanningUnauthorized image pull/push
Kubernetes APIAuthentication, network exposureCluster takeover
RBACServiceAccount permissions, role bindingsExcessive pod/secret access
SecretsKubernetes Secrets, env vars, mounted filesCredential disclosure
Network policiesPod-to-pod restrictionsFlat internal network
Admission controlsPolicy enforcementUnsafe workloads allowed
EtcdAccess and encryptionCluster secret exposure
## Kubernetes context awareness
kubectl config current-context
kubectl auth can-i --list

## Check pods and service accounts in a namespace
kubectl get pods -n <namespace>
kubectl get serviceaccounts -n <namespace>

Wireless and RF Testing Reference

TopicKey ConceptExam Relevance
WPA/WPA2/WPA3Wi-Fi security protocolsKnow handshake capture vs. online attack
PSK crackingOffline attack against captured handshakeDepends on passphrase strength
Evil twinRogue AP impersonates legitimate SSIDCredential capture/social engineering
DeauthenticationForces clients to reconnectDisruptive; requires explicit approval
WPS weaknessPIN-based enrollment riskCan expose network key when vulnerable
BluetoothPairing, discoverability, weak servicesMobile/IoT attack surface
RFID/NFCProximity credentialsCloning/relay considerations
SDRSoftware-defined radioRF signal analysis in approved scope

Mobile, IoT, OT, and ICS Testing Distinctions

EnvironmentTesting FocusExtra Caution
Mobile appsLocal storage, API calls, certificate validation, jailbreak/root detectionDevice and account authorization
IoTDefault creds, firmware, exposed services, update mechanismFragile devices, limited logging
OT/ICSProtocol exposure, segmentation, vendor access pathsSafety and availability are primary
Embedded firmwareHardcoded secrets, outdated libraries, debug interfacesAvoid bricking devices
Medical/industrial systemsNetwork segmentation and vendor-approved checksDo not disrupt operations

Exam cue: For OT/ICS, prefer passive discovery, maintenance windows, vendor coordination, and strict scope controls.

Social Engineering Reference

AttackDescriptionKey Control / Remediation
PhishingEmail lures for credentials/actionsUser training, email filtering, MFA, reporting process
Spear phishingTargeted phishingRole-based awareness and verification
VishingVoice-based manipulationCall-back verification, help desk scripts
SmishingSMS phishingMobile awareness, link filtering
PretextingFabricated scenarioIdentity verification procedures
TailgatingFollowing authorized person into facilityBadges, mantraps, challenge culture
USB dropMalicious removable mediaDevice control, awareness, endpoint controls
MFA fatigueRepeated push promptsNumber matching, phishing-resistant MFA, alerting

Code Review and Scripting Cues

Common Insecure Code Patterns

PatternRiskSafer Direction
String-concatenated SQLSQL injectionParameterized queries
Shell command with user inputCommand injectionAvoid shell; validate allowlist
Hardcoded secretsCredential exposureSecret manager, environment isolation
Disabled TLS verificationMITM exposureValidate certificates
Unsafe deserializationRCE/data tamperingUse safe formats and integrity checks
Weak randomnessPredictable tokensCryptographic RNG
Verbose error outputInformation disclosureGeneric errors, server-side logging
Client-side authorization onlyAccess control bypassServer-side authorization checks

Regex and Search Patterns for Secrets

## Search recursively for likely secrets; tune to reduce false positives
grep -RniE "password|passwd|pwd|secret|token|api[_-]?key|client[_-]?secret" .

## Find private keys
grep -Rni "BEGIN .*PRIVATE KEY" .

Parameterized Query Concept

## Safer concept: parameter binding, not string concatenation
cursor.execute("SELECT * FROM users WHERE email = ?", (email,))

Cryptography and Hashing Distinctions

ConceptPurposePentest Relevance
EncodingData representationBase64 is not encryption
HashingOne-way integrity representationPassword hashes can be cracked offline
SaltingUnique value added before hashingDefeats rainbow table reuse
Key stretchingSlows password crackingbcrypt/scrypt/Argon2-style concepts
Symmetric encryptionSame key encrypts/decryptsKey protection is critical
Asymmetric encryptionPublic/private key pairUsed in TLS, SSH, signatures
Digital signatureIntegrity and authenticityValidates origin and tampering
CertificateBinds identity to public keyExpired/mismatched/untrusted certs are findings
HMACKeyed integrity checkPrevents tampering when key is secret

Vulnerability Severity and Risk Rating

Risk is commonly based on likelihood and impact, not scanner output alone.

\[ \text{Risk} = \text{Likelihood} \times \text{Impact} \]
FactorRaises LikelihoodRaises Impact
ExposureInternet-facing, no auth, known exploitPublic access to sensitive function
ComplexitySimple exploit, reliable payloadNo user interaction needed
PrivilegesNo credentials requiredAdmin/root/domain impact
DataEasy discoveryRegulated, financial, credential, or sensitive business data
Compensating controlsMissing logging, weak segmentationNo containment or monitoring
Exploit maturityPublic exploit availableWormable or repeatable at scale

Reporting Quick Reference

Report Structure

SectionAudienceInclude
Executive summaryBusiness and leadershipOverall posture, major risks, business impact
Scope and methodologyTechnical and managementSystems tested, dates, constraints, approach
Findings summaryBothSeverity list, affected assets, status
Technical findingsTechnical ownersEvidence, steps, affected components, root cause
Risk analysisBothLikelihood, impact, exploitability, compensating controls
RemediationSystem ownersSpecific fixes, priority, validation guidance
AppendixTechnical readersTool output, payloads, logs, references, artifacts
Cleanup/retest notesProject stakeholdersArtifacts removed, retest results, residual risk

Finding Template

FieldWhat Good Looks Like
TitleClear vulnerability and affected component
SeverityJustified by likelihood and impact
DescriptionWhat is wrong, not just scanner text
Affected assetsHostnames, IPs, URLs, accounts, endpoints
EvidenceMinimal, redacted proof with timestamps
Reproduction stepsRepeatable steps within scope
ImpactBusiness and technical consequence
Root causeMissing patch, weak config, design flaw, process gap
RemediationActionable fix, not vague advice
ValidationHow to confirm the fix worked

Evidence Handling Checklist

  • Record command, target, timestamp, user/context, and result.
  • Redact secrets, tokens, customer data, and personal data where possible.
  • Preserve original logs or tool output when required by the engagement.
  • Avoid collecting more sensitive data than necessary to prove impact.
  • Use encrypted storage and approved transfer channels.
  • Track cleanup items: payloads, accounts, files, scheduled tasks, keys.

Remediation Mapping

Finding TypeStrong Remediation
SQL injectionParameterized queries, input validation, least-privileged DB account
XSSOutput encoding, context-aware escaping, CSP as defense-in-depth
IDOR/BOLAServer-side object authorization checks
Weak passwordsStrong policy, breached password screening, MFA, lockout/rate limiting
Exposed admin serviceRestrict by VPN/bastion/allowlist, enforce MFA, monitor access
Missing patchesPatch management process and compensating controls
Public storageRemove public access, least privilege, monitor access, classify data
Hardcoded secretsRotate secret, remove from history if needed, use secret manager
Excessive IAMLeast privilege, role separation, periodic access review
Insecure TLSDisable weak protocols/ciphers, use trusted certificates
SMB relay riskRequire SMB signing, harden NTLM/LDAP, reduce broadcast name resolution
Container running as rootNon-root user, drop capabilities, avoid privileged mode
Kubernetes excessive RBACNarrow roles, namespace isolation, service account minimization
Missing logsEnable audit logs, centralize, alert on high-risk actions

Common Exam Decision Traps

If the Question Says…Usually Think…
“Before beginning testing”Authorization, scope, ROE, communication plan
“Least intrusive”Passive recon, authenticated scan, safe validation
“Production system”Avoid disruptive payloads; coordinate test window
“Scanner reports critical finding”Validate before claiming exploitability
“Cloud-hosted target”Confirm cloud account/provider scope and IAM context
“Third-party service”Verify permission before testing
“Need business audience”Executive summary and risk impact, not raw tool output
“Need technical remediation”Specific configuration/code fix
“Evidence contains sensitive data”Redact and minimize collection
“Credential discovered”Rotate/remediate; do not broadly reuse outside scope
“OT/ICS environment”Safety, availability, passive methods, vendor coordination
“Password attack with lockout risk”Password spraying carefully or offline cracking if hashes are available
“Need to test authorization”Use two accounts with different privilege levels
“Need to find hidden web paths”Content discovery/fuzzing
“Need to intercept and modify requests”Burp Suite or OWASP ZAP
“Need prove command injection”Benign command like identity/hostname
“Need identify lateral movement path in AD”BloodHound-style relationship analysis

Mini Workflow: From Target to Finding

    flowchart TD
	    A[Confirm scope and ROE] --> B[Passive recon]
	    B --> C[Active discovery]
	    C --> D[Enumeration]
	    D --> E[Vulnerability hypothesis]
	    E --> F{Safe to validate?}
	    F -- No --> G[Document risk and request approval/window]
	    F -- Yes --> H[Controlled validation]
	    H --> I{Impact proven?}
	    I -- No --> J[Report as potential or informational if relevant]
	    I -- Yes --> K[Capture minimal evidence]
	    K --> L[Map root cause and remediation]
	    L --> M[Cleanup and report]

Final Review Checklist

Before test day, be able to answer quickly:

  • Which action comes first: authorization/scope before testing.
  • Which method is passive vs. active.
  • Which tool fits the task: Nmap, Burp/ZAP, Hashcat/John, BloodHound, Wireshark, cloud CLI.
  • How to validate a finding safely without overcollecting data.
  • How AD attacks differ: Kerberoasting, AS-REP roasting, pass-the-hash, relay, DCSync.
  • How web flaws differ: SQLi, XSS, CSRF, SSRF, IDOR/BOLA, upload, traversal, deserialization.
  • How cloud findings differ from traditional network findings: IAM, storage, metadata, managed services.
  • How to write a report finding with impact, evidence, and remediation.
  • How to choose least disruptive testing in production, OT/ICS, and cloud scenarios.

For your next step, move from review to timed practice: answer scenario-based PT0-003 questions, then explain why each wrong option is unsafe, out of scope, too disruptive, or the wrong tool for the objective.

Browse Certification Practice Tests by Exam Family