Penetration Testing Interview Q&A
100+ penetration testing interview questions and answers covering beginner, intermediate, and advanced topics — web, network, API, Active Directory, cloud, and reporting.
Pentest Interview
Beginner Q&A
Foundational questions covering the basics of penetration testing.
What is penetration testing?
answerAn authorized security assessment where ethical hackers identify vulnerabilities by simulating real-world attacks.
VA vs Penetration Testing?
answer- Vulnerability Assessment identifies vulnerabilities.
- Penetration Testing validates whether those vulnerabilities can actually be exploited.
Phases of penetration testing?
answer- Planning
- Reconnaissance
- Scanning
- Exploitation
- Post Exploitation
- Reporting
What is reconnaissance?
answerGathering information about the target before launching attacks. Examples: WHOIS, DNS Lookup, Google Dorking, Social Media Intelligence.
Black Box vs White Box vs Grey Box?
answer- Black Box: No information provided.
- White Box: Complete access and source code.
- Grey Box: Partial knowledge.
What is CVE?
answerCommon Vulnerabilities and Exposures — a publicly disclosed security vulnerability identifier.
What is CVSS?
answerCommon Vulnerability Scoring System measures vulnerability severity.
What is Exploitation?
answerThe process of taking advantage of a vulnerability to gain unauthorized access.
What is Privilege Escalation?
answerGaining higher-level permissions after initial access.
What is Lateral Movement?
answerMoving from one compromised machine to another inside a network.
Intermediate Q&A
Deeper questions on OWASP Top 10, tools, and common vulnerabilities.
Explain the OWASP Top 10.
answer- Broken Access Control
- Cryptographic Failures
- Injection
- Insecure Design
- Security Misconfiguration
- Vulnerable Components
- Authentication Failures
- Software Integrity Failures
- Logging Failures
- SSRF
What tools do you use?
answer- Nmap · Burp Suite · Metasploit
- Wireshark · Gobuster · SQLMap
- Hydra · Nikto · ffuf · BloodHound
Explain SQL Injection.
answerSQL Injection occurs when user input modifies SQL queries allowing unauthorized database access.
What is XSS?
answerCross-Site Scripting allows attackers to execute JavaScript inside a victim's browser. Types: Stored, Reflected, DOM-based.
What is CSRF?
answerCross-Site Request Forgery tricks authenticated users into performing unwanted actions.
What is SSRF?
answerServer-Side Request Forgery forces the server to send requests on behalf of the attacker.
Explain IDOR.
answerInsecure Direct Object Reference allows unauthorized access to objects by modifying identifiers.
What is RCE?
answerRemote Code Execution allows attackers to execute arbitrary commands remotely.
Explain Command Injection.
answerExecuting operating system commands through vulnerable applications.
Authentication vs Authorization?
answer- Authentication verifies identity.
- Authorization determines permissions.
Active Directory Q&A
Common AD attack techniques and concepts.
What is Kerberos?
answerAuthentication protocol used in Active Directory environments.
Explain NTLM.
answerLegacy authentication protocol used in Windows environments.
What is Pass-the-Hash?
answerAttack where an attacker uses a hashed password to authenticate without the plaintext.
What is Golden Ticket Attack?
answerForging a Kerberos TGT to gain unrestricted domain access.
What is Kerberoasting?
answerRequesting service tickets to crack service account passwords.
Explain LLMNR Poisoning.
answerAbusing LLMNR to intercept and relay authentication requests.
Web Application Q&A
Modern web security concepts and attack vectors.
What is CSP?
answerContent Security Policy — helps prevent XSS by controlling resources.
Explain CORS.
answerCross-Origin Resource Sharing — controls which domains can access resources.
What is Clickjacking?
answerUI redressing attack that tricks users into clicking hidden elements.
What is XXE?
answerXML External Entity injection that can disclose internal files.
Explain JWT attacks.
answerAttacks targeting JSON Web Tokens, including algorithm confusion and signature bypass.
Network Q&A
Network protocols, attacks, and enumeration techniques.
TCP vs UDP?
answer- TCP: connection-oriented, reliable.
- UDP: connectionless, faster.
What is ARP Spoofing?
answerManipulating ARP tables to intercept traffic on a local network.
What is VLAN Hopping?
answerBypassing VLAN segmentation to access traffic from other VLANs.
Explain SMB Enumeration.
answerEnumerating SMB shares, users, and permissions for further attacks.
What is Pivoting?
answerUsing a compromised machine to access otherwise unreachable internal systems.
Cloud Security Q&A
Common cloud misconfigurations and attack paths.
AWS S3 Bucket Security?
answerMisconfigured buckets can expose sensitive data. Check permissions, encryption, and public access.
What is Cloud Metadata Exploitation?
answerAccessing cloud instance metadata to retrieve credentials.
Docker Security concerns?
answerContainer escape, insecure configurations, and privileged containers.
What is IAM Misconfiguration?
answerOverly permissive roles and policies in cloud environments.
API Security Q&A
API-specific vulnerabilities and testing techniques.
What is BOLA?
answerBroken Object Level Authorization — unauthorized access to API objects.
API authentication methods?
answer- API Keys · JWT · OAuth
- Basic Auth · Mutual TLS
GraphQL Security?
answerOver-fetching, introspection leaks, and injection attacks.
What is API Fuzzing?
answerAutomated testing of API endpoints with unexpected input.
Reporting Q&A
How to document findings effectively.
How do you write a pentest report?
answerExecutive summary, methodology, findings, evidence, remediation, and conclusion.
What should executive summary include?
answerHigh-level overview, key risks, business impact, and recommendations.
What is proof of concept (PoC)?
answerEvidence that demonstrates how a vulnerability can be exploited.
How to prioritize vulnerabilities?
answerCVSS scores, exploitability, and business impact.
HR Interview Questions
Common questions to assess your motivation and fit.
Tell us about yourself.
answerBriefly summarize your background, skills, and passion for security.
Why penetration testing?
answerShare your interest in problem-solving, security, and ethical hacking.
What certifications do you have?
answerList any relevant certifications like CEEH, CKCC, KLSFP, etc.
Explain your home lab.
answerDescribe your setup, tools, and practice environments.
Final preparation tips
Practical advice to ace your pentest interview.
Practice on HTB / TryHackMe
Build a home lab
Learn report writing
Understand the "why"
Stay updated on modern attacks
Frequently asked questions
Is penetration testing a good career?
Yes. Demand for penetration testers continues to grow across consulting firms, enterprises, financial institutions, healthcare, and government organizations.
Which programming languages should a penetration tester know?
Python, Bash, PowerShell, JavaScript, and SQL are particularly useful.
Can beginners become penetration testers?
Yes. Start with networking, Linux, web security, and hands-on labs before progressing to real-world assessments.
Start your penetration testing career
Build practical skills in web, network, API, and Active Directory security through hands-on labs, certifications, and real-world practice.