Ethical Hacking Notes | B.Sc. (Computer Science) Semester 5 | Mumbai University | munotes
Official Notes munotes.in
Ethical Hacking
B.SC. (COMPUTER SCIENCE) · SEMESTER 5
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Computer Science)
For B.Sc. (Computer Science) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Third Year
Contents
Module I The law and ethics of authorised testing, security vocabulary, the five-phase lifecycle, CVE and CVSS, reconnaissance and scanning, enumeration, system and password security, hashing and salting, and network sniffing
- How This Course Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Practical Paper 1
- The Law: What Makes Hacking Lawful 5
- The Rest of the Law: Source Code, Identity, Protected Systems and Confidentiality 10
- Authorisation in Practice: the Letter, the Scope and the Rules of Engagement 16
- The Vocabulary: Asset, Threat, Vulnerability, Exploit and Risk 21
- The CIA Triad, and Which Property Each Attack Breaks 26
- Hacker Classes, Hacktivism and the Types of Hacking 31
- Types of Engagement: Black Box, White Box, Grey Box, Internal and External 36
- The Five Phases of an Engagement: a Lifecycle Model 41
- The Defender's Mirror: a Control for Every Phase 46
- The Life of a Vulnerability 51
- Responsible Disclosure Against Full Disclosure, and the Vendor's Side 56
- CVE and CWE: Naming the Flaw and Naming the Weakness 61
- CVSS: the Eight Base Metrics 65
- CVSS: Working a Score, and the Temporal and Environmental Metrics 69
- Bug Bounty Programmes 74
- A Worked Case Study: Heartbleed 78
- A Worked Case Study: Log4Shell 83
- Footprinting: Passive Against Active Reconnaissance 88
- OSINT on People: Names, Roles and the Email Format 93
- OSINT on Technology and Infrastructure 97
- Search-Engine Reconnaissance and Document Metadata 102
- Reducing Your Own Footprint: the Defensive Audit 107
- How the Domain Name System Resolves a Name 112
- The Record Types, and What Each One Reveals 117
- Subdomain Enumeration and Infrastructure Mapping 122
- Zone Transfers and DNS Hardening 127
- WHOIS, the Registries and IP Allocation 132
- The Psychology: the Levers an Attacker Pulls 137
- Phishing, Spear Phishing, Whaling, Smishing and Vishing 142
- Pretexting, Baiting, Impersonation and Tailgating 147
- A Worked Case: Analysing a Real Attack 152
- Defences: Awareness, Verification and Multi-Factor 157
- Email Authentication: SPF, DKIM and DMARC 162
- TCP/IP for the Scanner: Layers, Addresses, Ports and Flags 167
- The Three-Way Handshake, and Why Scanning Works 172
- Host Discovery: Finding What Is Alive 177
- The Scan Types: Connect, SYN, FIN, NULL and XMAS 182
- ACK Scanning and UDP Scanning 187
- Port States, Service and Version Detection, and OS Fingerprinting 192
- Firewall and Filter Detection 197
- How the Scan Is Seen: Intrusion Detection and the Defender's View 202
- Enumeration and Banner Grabbing 207
- SNMP Enumeration 212
- NetBIOS and SMB Enumeration 217
- LDAP, SMTP and NTP Enumeration 222
- Enumeration Countermeasures: What to Close 227
- System Hacking and Privilege Escalation 232
- Escalation Routes on Linux and Windows, at Concept Level 237
- Detecting Persistence: the Auto-Start Audit 243
- Covering Tracks, and Why a Defender Protects the Logs 249
- Rootkits: How They Hide and How They Are Found 254
- Spyware and Keyloggers from the Defensive Side 259
- Encoding, Encryption and Hashing: Three Different Things 263
- Symmetric and Asymmetric Encryption at Concept Level 267
- Hash Functions and the Properties They Must Have 271
- Why a Password Is Never Encrypted: Storage and Salting 276
- How Passwords Are Attacked, and the Arithmetic of a Keyspace 281
- Password Policy, Managers and Multi-Factor Authentication 285
- Cryptographic Weaknesses to Know 290
- Hubs, Switches, and Passive Sniffing 294
- MAC Flooding 299
- ARP Poisoning and the Man in the Middle 303
- DNS Spoofing 308
- Countermeasures: Switch Controls and Encryption in Transit 313
Module II Denial of service and botnets, session and web-server security, the OWASP Top Ten, SQL injection, buffer overflows, wireless security, malware analysis, exploit frameworks, and penetration testing methodology and reporting
- Denial of Service: Attacking Availability 318
- Volumetric Attacks and Amplification 322
- Protocol Attacks: the SYN Flood in Depth 327
- Application-Layer Denial of Service 331
- Botnets: Architecture and Command and Control 336
- DDoS Mitigation: the Layered Defence 340
- Sessions and Tokens: Why They Exist 345
- How a Session Is Stolen: Prediction, Sniffing and Script 349
- Session Fixation and Cookie Manipulation 354
- Cookie Security: Secure, HttpOnly and SameSite 359
- Cross-Site Request Forgery 363
- Session Defences in Full 367
- The Web Server Against the Web Application 371
- Common Web Server Misconfigurations 375
- Directory Traversal 379
- Patch Management 383
- Hardening and the Security Response Headers 387
- The OWASP Top 10: What It Is and How It Changed 391
- A01: Broken Access Control 396
- Security Misconfiguration and Cryptographic Failures 400
- Software Supply Chain Failures 404
- Injection: the Category and Its Members 408
- Cross-Site Scripting: Stored, Reflected and DOM-Based 412
- Cross-Site Scripting Defences: Output Encoding and Content Security Policy 416
- Insecure Design and Authentication Failures 421
- Integrity, Logging and Exceptional Conditions 425
- Server-Side Request Forgery 429
- Input Validation: the Thread Through the Whole List 433
- SQL Injection: How Input Becomes Logic 438
- The Types: In-Band, Union-Based and Error-Based 442
- Blind SQL Injection: Boolean and Time-Based 446
- Prevention: the Parameterised Query 450
- Defence in Depth: Least Privilege, Validation and the Web Application Firewall 455
- Memory Layout: the Stack, the Heap and the Frame 460
- Stack-Based Buffer Overflow and Return-Address Overwriting 465
- Heap Overflows and Format-String Flaws, Briefly 469
- Defences: Bounds Checking, Canaries, DEP, ASLR and Safe Languages 473
- How Wi-Fi Works: Frames, SSIDs and Association 478
- WEP and Why It Broke 482
- WPA and WPA2: AES and the Four-Way Handshake 486
- WPA3 and the SAE Handshake 490
- Wireless Attacks: Deauthentication, Evil Twins and Rogue Access Points 494
- Wireless Best Practice and Enterprise Authentication 499
- The Malware Families 503
- Viruses and Worms 507
- Trojans, Ransomware and Remote Access Tools 511
- Keyloggers and Spyware: the Architecture 516
- Detection: Signature, Heuristic and Behavioural 520
- Safe Analysis: the Sandbox 525
- Endpoint Protection 529
- What an Exploit Framework Is 533
- The Exploit Lifecycle and the Payload 537
- Post-Exploitation, Bounded by Scope 541
- The Ethical and Legal Limits of Penetration-Testing Tools 546
- Why Methodology Matters More Than Tricks 551
- PTES: the Seven Phases 555
- The OWASP Testing Guide 559
- Risk Assessment and Rating 563
- The Penetration-Test Report 567
- A Worked Specimen Report 571
- Retesting and Closing the Engagement 576
The chapters
Every chapter of this book comes with the B.Sc. (Computer Science) Semester 5 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes + practical solutions + solved papers: ₹798 Already bought it? Sign in
Or notes + practical solutions: ₹499
Or solved papers only: ₹499
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself for the same subject.