Network Security Threats
Network security क्यों?
Devices जुड़े होने पर attackers data चुरा, बदल या नष्ट कर सकते हैं। Network security मतलब devices, data और users को ऐसे ख़तरों से बचाना।
Malware
Malware (malicious software) कोई भी program है जो बिना इजाज़त computer को नुकसान पहुँचाने, data चुराने या control लेने के लिए लिखा गया हो।
Virus, worm और Trojan
Virus
- Host file चाहिए
- User के file चलाने पर फैलता है
- Data delete या corrupt कर सकता है
Worm
- अपने आप में पूरा program
- Networks पर अपने आप फैलता है
- Bandwidth खाता है, network धीमा
Trojan horse game, crack या free tool होने का दिखावा करता है। Install होते ही attacker के लिए back door खोल देता है। Virus की तरह यह अपनी copies नहीं बनाता।
Ransomware, spyware, adware, keylogger
Ransomware (जैसे WannaCry, 2017) files encrypt करके पैसे माँगता है। Spyware browsing और personal data इकट्ठा करता है। Adware screen को ads से भर देता है। Keylogger – software या छोटा hardware device – passwords समेत हर दबाई key record करता है; online on-screen keyboards इससे बचाते हैं।
Malware कैसे फैलता है
- अनजान senders के email attachments और links
- Pirated software, cracks और fake apps
- Infected pen drives
- असुरक्षित websites और pop-ups
- कभी update न होने वाले systems
Antivirus और firewall
Antivirus software files scan करता है, signatures और behaviour से malware पहचानता है और उसे हटाता या quarantine करता है। इसे update रखें।
Firewall – hardware या software – rules (allowed ports, addresses, programs) के हिसाब से traffic filter करता है और संदिग्ध connections रोकता है।
HTTP vs HTTPS
HTTP
- Data plain text में जाता है
- रास्ते में कोई भी पढ़ सकता है
- URL http:// से शुरू
- यहाँ कभी password न डालें
HTTPS
- TLS/SSL से encrypted data
- सिर्फ़ browser और server पढ़ सकते हैं
- URL https:// और 🔒
- Login, banking, shopping के लिए
Cookies और privacy
Cookies sites को आसान बनाती हैं, पर third-party cookies आपको अलग-अलग websites पर track कर सकती हैं। Cookies नियमित साफ़ करें, shared computers पर private browsing करें और सिर्फ़ ज़रूरी cookies accept करें।
Strong passwords
# A simple password-strength checker
def strength(pw):
score = 0
score += len(pw) >= 8
score += any(c.islower() for c in pw)
score += any(c.isupper() for c in pw)
score += any(c.isdigit() for c in pw)
score += any(not c.isalnum() for c in pw)
return ['Very weak', 'Weak', 'Weak', 'Medium', 'Strong', 'Very strong'][score]
for p in ['12345', 'rahul2008', 'Rahul2008', 'R@hul_2008!']:
print(p.ljust(12), strength(p))Phishing
Phishing नकली email, SMS या website है जो bank, school या company होने का दिखावा करके passwords, OTP या card details चुराती है। Click करने से पहले असली domain check करें।
# Spotting a suspicious link (very simple rules)
def suspicious(url):
reasons = []
if not url.startswith('https://'):
reasons.append('no HTTPS')
if '@' in url:
reasons.append('@ hides real address')
host = url.split('//')[-1].split('/')[0]
if host.count('-') >= 2 or host.replace('.', '').isdigit():
reasons.append('odd domain')
return reasons or ['looks OK']
for u in ['https://www.sbi.co.in/login', 'http://sbi-login-verify-kyc.xyz/win',
'https://203.0.113.5/pay', 'https://bank.com@evil.ru/']:
print(u, '->', suspicious(u))Safety checklist
- 1Antivirus लगाएँ और OS व apps update रखें
- 2Firewall ON रखें
- 3Strong, अलग-अलग passwords + two-factor authentication
- 4Login और payment के लिए सिर्फ़ HTTPS sites
- 5OTP कभी share न करें; prize / KYC messages को नज़रअंदाज़ करें
- 6Pen drives scan करें; pirated software से बचें
- 7ज़रूरी files का नियमित backup लें
