YUNOVA · Ethical Hacking
Module 1: What ethical hacking is
The idea: find it before an attacker does
Key points
- Ethical hacking का मतलब है किसी system की कमज़ोरियाँ attacker से पहले ढूँढना, ताकि उन्हें समय रहते ठीक किया जा सके।
- Ethical hacker वही techniques समझता है जो attacker इस्तेमाल करते हैं, लेकिन सिर्फ़ owner की written permission के साथ काम करता है।
- असली लक्ष्य system तोड़ना नहीं, बल्कि findings बताकर security मज़बूत करना है।
- बिना permission किसी system को test करना ethical hacking नहीं, अपराध है।
Authorisation, scope and the law
Key points
- कोई भी test शुरू करने से पहले system owner से written authorisation लें; मौखिक हाँ काफ़ी नहीं है।
- Scope document बताता है कि कौन से IP, domains और applications test किए जा सकते हैं, कौन सी techniques allowed हैं और testing का समय क्या है।
- Scope से बाहर का कोई भी system छूना कानूनन unauthorised access माना जा सकता है; भारत में IT Act, 2000 ऐसे मामलों पर लागू होता है।
- Rules of Engagement में emergency contact और test रोकने की शर्तें भी लिखी होनी चाहिए।
The phases of a penetration test
Key points
- एक penetration test आम तौर पर इन phases में चलता है: planning/scoping, reconnaissance, scanning और enumeration, exploitation (gaining access), post-exploitation, और reporting।
- हर phase पिछले phase की जानकारी पर बनता है, इसलिए recon जितना अच्छा होगा, आगे का काम उतना सटीक होगा।
- Test के अंत में cleanup ज़रूरी है: जो भी files या accounts बनाए गए, उन्हें हटाना।
- अलग-अलग frameworks (जैसे PTES) phases के नाम थोड़े अलग रखते हैं, पर क्रम लगभग यही रहता है।
Black, white and grey box
Key points
- Black box testing में tester को system के बारे में पहले से कोई अंदरूनी जानकारी नहीं दी जाती, जैसे बाहर का attacker।
- White box testing में tester को source code, architecture और credentials जैसी पूरी जानकारी मिलती है, जिससे गहरी जाँच होती है।
- Grey box इन दोनों के बीच है: tester को आंशिक जानकारी, जैसे एक normal user account, दी जाती है।
- कौन सा तरीका चुनना है, यह client के लक्ष्य, समय और budget पर निर्भर करता है और scope में लिखा जाता है।
Where to practise legally
Key points
- Practice सिर्फ़ उन्हीं systems पर करें जो आपके अपने हैं या जिन पर practice की साफ़ अनुमति है।
- अपना home lab (VirtualBox/VMware में vulnerable machines) सबसे सुरक्षित जगह है।
- TryHackMe, Hack The Box और PortSwigger Web Security Academy जैसे platforms legal practice के लिए बनाए गए हैं।
- किसी real website या पड़ोसी के Wi-Fi पर 'सिर्फ़ try' करना भी कानूनन गलत है।
Reporting: why the write-up is the real deliverable
Key points
- Client के लिए असली deliverable report है; बिना साफ़ report के test का कोई business value नहीं बनता।
- अच्छी report में executive summary (non-technical लोगों के लिए) और technical findings दोनों होते हैं।
- हर finding में description, impact, severity, reproduce करने के steps और fix की सलाह होनी चाहिए।
- Report पढ़कर client को पता चलना चाहिए कि पहले क्या ठीक करना है।