YUNOVA · Ethical Hacking

Module 6: Vulnerabilities and exploitation on the lab

Notes for offline study · 30 November 2026

What a vulnerability is

Key points

  • Vulnerability = system, software या process की ऐसी कमज़ोरी जिसका गलत इस्तेमाल हो सकता है, जैसे unpatched software, weak configuration या कमज़ोर access control।
  • Vulnerability, threat और risk अलग हैं: threat वह है जो नुकसान पहुँचा सकता है, और risk = कमज़ोरी के गलत इस्तेमाल की संभावना और उसका असर।
  • Defenders vulnerabilities को scanning, asset inventory और patching से ढूँढते और ठीक करते हैं; हर vulnerability का असर उस asset की अहमियत पर निर्भर करता है।
  • Practice सिर्फ अपने isolated lab में करें, यानी अपनी VMs और जान-बूझकर vulnerable बनाए गए practice targets पर। किसी और के system को बिना लिखित अनुमति छूना गैरकानूनी है।

Reading a CVE and CVSS

Key points

  • CVE = किसी publicly known vulnerability को दी गई unique ID (जैसे CVE-साल-नंबर)। इससे अलग-अलग vendors और tools एक ही कमज़ोरी की बात एक ही नाम से कर पाते हैं।
  • CVSS vulnerability की severity का standard score देता है। यह score मोटे तौर पर बताता है कि समस्या कितनी गंभीर है, पर आपके अपने environment का पूरा risk नहीं बताता।
  • Defenders CVE और CVSS को patch priority तय करने में इस्तेमाल करते हैं; साथ में देखें कि asset internet पर खुला है या नहीं और उसमें कितना ज़रूरी data है।
  • CVE का description और vendor advisory पढ़ना सीखें: कौन-से versions प्रभावित हैं और fix या mitigation क्या है।

Metasploit on Metasploitable

Key points

  • Metasploit एक widely known penetration-testing framework है, और Metasploitable जान-बूझकर vulnerable बनाई गई practice VM है। दोनों का उद्देश्य सिर्फ authorised, isolated lab में सीखना है।
  • Lab को host-only या isolated network पर रखें, ताकि यह VM आपके असली network या internet से न जुड़े। Practice किसी और के system पर कभी न करें।
  • Defender की नज़र से सीखें कि ऐसे testing के निशान कहाँ दिखते हैं: IDS alerts, system और network logs, और unusual connections।
  • असली दुनिया में ऐसी testing तभी होती है जब scope और rules of engagement पर लिखित अनुमति हो। बिना अनुमति यह India के IT Act 2000 के तहत अपराध बन सकता है।

Getting and understanding a shell

Key points

  • Shell = system को text commands से चलाने का interface। Security में यह समझना ज़रूरी है कि किसी system पर unauthorised shell access मिलने का मतलब attacker का उस पर control होना है।
  • Defenders ऐसे access को पकड़ते हैं: unusual outbound connections, नए या अजीब processes, अजीब login events, और EDR या SIEM alerts।
  • रोकथाम: patching, least privilege, unnecessary services बंद करना, और egress filtering ताकि system अनजान जगहों से बात न कर सके।
  • इस विषय का अभ्यास सिर्फ अपनी lab VMs पर करें और जो कुछ दिखे उसे report की तरह लिखें: क्या हुआ, कैसे पकड़ा जा सकता था, और कैसे रोका जाए।

Privilege escalation basics on the lab

Key points

  • Privilege escalation = सीमित access से ज़्यादा अधिकार तक पहुँचना। यह अक्सर misconfiguration, पुराने software या ज़रूरत से ज़्यादा permissions की वजह से संभव होता है।
  • यह इसीलिए खतरनाक है कि एक छोटा-सा foothold पूरे system पर control में बदल सकता है। इसलिए least privilege और patching सबसे बड़े बचाव हैं।
  • Defenders अचानक बढ़े privileges, नए admin accounts और संदिग्ध process changes को logs और alerts से पकड़ते हैं।
  • सीखने के लिए अपनी isolated lab और intentionally vulnerable practice VMs ही इस्तेमाल करें, और हर finding के साथ उसका fix भी लिखें।

Why you clean up after a test

Key points

  • Test के बाद cleanup इसलिए ज़रूरी है कि test की वजह से बने accounts, files या configuration changes खुद नया risk बन सकते हैं।
  • Authorised testing में आप जो भी बदलाव करते हैं उसकी list रखें, और test खत्म होने पर client के साथ मिलकर उन्हें हटाएँ या वापस करें।
  • अपनी lab में भी snapshots लें, ताकि VM को साफ अवस्था में वापस लाया जा सके।
  • Cleanup और documentation आपकी professionalism दिखाते हैं; साथ ही client के पास साफ record रहता है कि क्या छुआ गया और क्या वापस हुआ।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.