Ethical hacking interview questions and answers for freshers

Interviewers for junior penetration testing roles check fundamentals, methodology and judgement. Expect at least one question about legality and scope; a candidate who skips that is a red flag.

Scope and ethics

1. What must you have before starting a test?

Written authorisation and an agreed scope: targets, allowed techniques, timing, contacts and what to do if you find something critical.

2. What do you do if you find a system outside scope?

Stop, do not test it and report it to the client contact.

3. What is responsible disclosure?

Reporting a vulnerability privately to the owner and giving them time to fix it before any public discussion.

Methodology

4. What are the phases of a penetration test?

Planning and scoping, reconnaissance, scanning and enumeration, exploitation, post-exploitation within the agreed limits, and reporting.

5. Passive vs active reconnaissance?

Passive gathers information without touching the target, for example public records; active interacts with it, for example port scanning.

6. What is privilege escalation?

Gaining higher permissions than initially obtained, for example moving from a normal user to administrator, usually through misconfigurations or unpatched software.

Web security

7. What is the OWASP Top 10?

A widely used list of the most critical web application risks, such as broken access control, injection and security misconfiguration.

8. Explain broken access control.

Users can act outside their permissions, for example viewing another user’s data by changing an ID in the URL.

9. Stored vs reflected XSS?

Stored XSS is saved by the application and shown to other users; reflected XSS is returned immediately from a crafted request, often a link.

10. How do you test for SQL injection safely?

Within scope, use benign inputs to observe errors or behaviour changes, avoid destructive payloads and confirm impact carefully.

Tools

11. What does Nmap do?

Discovers hosts, open ports and running services and versions on a network.

12. What is Burp Suite used for?

Intercepting and modifying web traffic between the browser and the application to test inputs, sessions and access controls.

13. Why not rely only on automated scanners?

They miss logic flaws and produce false positives. Manual verification and understanding the application are essential.

Reporting

14. What goes in a vulnerability report?

An executive summary, scope, each finding with risk rating, evidence, affected assets, steps to reproduce and clear remediation, plus any limitations.

15. How do you rate severity?

By likelihood and impact, often using CVSS as a reference adjusted for the client’s context.

Practise these steps legally in the free Ethical Hacking internship, or read the ethical hacking career guide.

Common questions

What do interviewers look for in a junior pentester?

Solid fundamentals, a clear methodology, respect for scope and legality, and the ability to write a report that helps a team fix problems.

Should I mention CTF experience?

Yes, briefly, but connect it to methodology and reporting. Explain how you approached problems, not just which ones you solved.

Practise with a free Ethical Hacking internship