Docsity

CEH Certification Notes, Study notes of Cybersecurity

Toggle sidebar
bg1
CEH Certification Notes
Table of Content s
Module 1: Introduction to Ethical Hacking
Module 2: Footprinting and Reconnaissance
Module 3: Scanning Networks
Module 4: Enumeration
Module 5: System Hacking
Module 6: Malware Threats
Module 7: Sniffing
Module 8: Social Engineering
Module 9: Denial of Service
Module 10: Session Hijacking
Module 11: Hacking Web Servers
Module 12: Hacking Web Applications
Module 13: SQL Injection
Module 14: Hacking Wireless Networks
Module 15: Hacking Mobile Platforms
Module 16: Evading IDS, Firewalls, and Honeypots
Module 17: Cloud Computing
Module 18: Cryptography
Post Module: Extra Resources
Module 1: Introduction to Ethical Hacking
Information Sec urity Overvie w
● Terminology
○ Hack Value: Notion among hackers that something is worth doing or interesting
○ Vulnerability: Existence of a we akness, design, or impl ementation error that can l ead to an expected event
compromising the security of the system
○ Exploit: A breach of IT system security through vulnerabilities
○ Payload: Part of an exploit c ode that perform the intend ed malicious action
○ Zero-Day Attack: An attack that exploits computer app vulnerabilities before the software developer releases a
patch for t he vulnerability
○ Daisy Chaining: Gaining access to one network and/or computer and then using the same info to gain access to
multiple networks and computer that contains desirable info
○ Doxing: Publishing personally identifiable information
○ Bot: software app that can b e controlled remotely to execute or automate pre-defined tasks
● Elements of Information Secur ity
○ Non-Repudiation: Sender of a message cannot later deny having sent the message
○ Confidentiality: Only authorized users able to view content
○ Integrity: Trustw orthiness of data or resource in prevention of unauthorized changes
○ Availability: assurance sys tems are accessible
○ Authenticity: The quality of be ing genuine
Information Sec urity Threats and Attack Vec tors
● Cloud computing: is an on-demand delivery of IT capabilities, and stores data. Must be secure
● Advanced Persistent Threats: APT focus on stealing inf o from victim machine w/o us er aware
● Viruses and Worms: Capa ble of infecting a network with in seconds
● Mobile Threats: Many attackers see mobile phone as a way to gain access
● Botnet: huge network of com promised systems
● Insider Attack : an attack perf ormed on a co rporate network by an ent rusted person w/ access
● Threat categori es: Network Thr eats, Host T hreats, App T hreats
● Types of Attacks : OS Attack s, Mis-Config attacks, App Level Attacks, Shrink Wrap Code Attacks
Hacking Concepts, Types, and Phases
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27

Partial preview of the text

Download CEH Certification Notes and more Study notes Cybersecurity in PDF only on Docsity!

CEH Certification Notes Table of Contents Module 1: Introduction to Ethical Hacking Module 2: Footprinting and Reconnaissance Module 3: Scanning Networks Module 4: Enumeration Module 5: System Hacking Module 6: Malware Threats Module 7: Sniffing Module 8: Social Engineering Module 9: Denial of Service Module 10: Session Hijacking Module 11: Hacking Web Servers Module 12: Hacking Web Applications Module 13: SQL Injection Module 14: Hacking Wireless Networks Module 15: Hacking Mobile Platforms Module 16: Evading IDS, Firewalls, and Honeypots Module 17: Cloud Computing Module 18: Cryptography Post Module: Extra Resources Module 1: Introduction to Ethical Hacking Information Security Overview ● Terminology ○ Hack Value: Notion among hackers that something is worth doing or interesting ○ Vulnerability: Existence of a weakness, design, or implementation error that can lead to an expected event compromising the security of the system ○ Exploit: A breach of IT system security through vulnerabilities ○ Payload: Part of an exploit code that perform the intended malicious action ○ Zero-Day Attack: An attack that exploits computer app vulnerabilities before the software developer releases a patch for the vulnerability ○ Daisy Chaining: Gaining access to one network and/or computer and then using the same info to gain access to multiple networks and computer that contains desirable info ○ Doxing: Publishing personally identifiable information ○ Bot: software app that can be controlled remotely to execute or automate pre-defined tasks ● Elements of Information Security ○ Non-Repudiation: Sender of a message cannot later deny having sent the message ○ Confidentiality: Only authorized users able to view content ○ Integrity: Trustworthiness of data or resource in prevention of unauthorized changes ○ Availability: assurance systems are accessible ○ Authenticity: The quality of being genuine Information Security Threats and Attack Vectors ● Cloud computing: is an on-demand delivery of IT capabilities, and stores data. Must be secure ● Advanced Persistent Threats: APT focus on stealing info from victim machine w/o user aware ● Viruses and Worms: Capable of infecting a network within seconds ● Mobile Threats: Many attackers see mobile phone as a way to gain access ● Botnet: huge network of compromised systems ● Insider Attack: an attack performed on a corporate network by an entrusted person w/ access ● Threat categories: Network Threats, Host Threats, App Threats ● Types of Attacks: OS Attacks, Mis-Config attacks, App Level Attacks, Shrink Wrap Code Attacks Hacking Concepts, Types, and Phases

● Hacking: Exploiting system vulnerabilities and compromising security ● Five Phases of Hacking: Reconnaissance, Scanning, Gaining Access, Maintaining Access, Clearing Tracks ● Reconnaissance: Preparation phase when an attacker seeks to gather information. Does not directly interact with the system, and relies on social engineering and public info ● Scanning: Identify specific vulnerabilities (in-depth probing). Using Port scanners to detect listening ports (companies should shut down ports that are not required) ● Gaining Access: Using vulnerabilities identified during reconnaissance [DoS, Logic/Time Exploit, reconfiguring/crashing system] ● Maintaining Access: Keeping a low profile, keeping system as a launch pad, etc. ● Clearing Tracks: Hiding malicious acts while continuing to have access, avoiding suspicion Ethical Hacking Concepts and Scope Ethical Hacking: Using tools and techniques to identify vulnerabilities w/ permission Information Security Controls ● Information Assurance: Assurance for integrity, availability,confidentiality, and authenticity of info ● Threat Modeling: Risk Assessment approach for analyzing security. 1) Identify Security Objectives 2) Application overview

  1. Decompose Application 4) Identify Threats 5) Identify Vulnerabilities ● Network Security Zoning (High to Low): Internet Zone - Internet DMZ - Production Network Zone - Intranet Zone - Management Network Zone ● Security Policies are the foundation of security infrastructure ● Info security policy defines basic requirements and rules to be implemented in order to protect and secure organizations information systems ● 4 types of security policies ○ Promiscuous Policy ○ Permissive Policy ○ Prudent Policy ○ Paranoid Policy ● Incident Management: set of defined processes to identify, analyze, prioritize, and resolve security incidents ● Types of Vulnerability Assessments: ○ Active Assessments ○ Passive Assessments ○ Host-Based assessment ○ Internal Assessment ○ External Assessment ○ Application Assessments ○ Network Assessments ○ Wireless Network Assessments ● Methodology of Assessment: - Acquisition - Identification - Analyzing - Evaluation - Reports ● Penetration Testing: Simulating an attack to find out vulnerabilities ● Blue Team: Detect and Mitigate ○ Red Team: Attack w/ limited access w/ or w/o warning

b. Social engineers depend on the fact that people are unaware Footprinting Tools a. Maltego, Recon-NG (Web Reconnaissance Framework) Footprinting Countermeasures a. Restrict the employees to access social networking sites b. Configure web servers to avoid information leakage c. Educate employees to use pseudonyms d. Limit the amount of information that you are publishing e. Use footprinting techniques to discover and remove sensitive information f. Use anonymous registration services g. Enforce security policies Footprinting penetration testing a. Footprinting pen testing is used to determine organization’s public available information b. Tester attempts to gather as much information as possible from the internet and other publicly accessible sources c. Define scope and then use footprint search engines d. Report Templates Module 3: Scanning Networks

  • Overview of Network Scanning
  • Understanding different techniques to check for live systems
  • Understanding different techniques to check for open ports
  • Understanding various scanning techniques
  • Understanding various IDS evasion techniques
  • Understanding banner grabbing
  • Overview of vulnerability scanning
  • Drawing Network Diagrams
  • Using proxies and anonymizers for attack
  • Understanding IP spoofing and various detection techniques
  • Overview of Scanning Pen Testing Overview of Network Scanning ● Network scanning refers to a set of procedures for identifying hosts, ports, and services in a network ● Network scanning is one of the components of intelligence gathering and attacker uses to create a profile of the target organization ● Types of scanning i. Port scanning (list the open ports and services) ii. Network Scanning (lists IP addresses) iii. Vulnerability Scanning (shows presence of known weaknesses) ● TCP communication Flags (controls transmission of data)
  1. URG(urgent): Data contained in packet should be processed immediately
  2. PSH(push): Sends all buffered data immediately
  3. FIN(Finish): There will be no more transmissions
  4. ACK(Acknowledgement): Acknowledges receipts of a packet
  5. RST(Reset): Resets a connection
  6. SYN(Synchronization): Initiates a connection between hosts

CEH Scanning Methodology

  1. Check for live systems a. ICMP Scanning: Ping scans involves ICMP ECHO requests to a host. If the host is live, it will return an ICMP ECHO reply b. Useful for locating active devices and if ICMP is passing through firewall c. Ping sweep is used to determine the live hosts from a range of IP addresses d. Attackers calculate subnet masks using Subnet Mask Calculators e. Attackers then use the Ping Sweep to create an inventory of live systems in the subnet
  2. Check for Open Ports a. Simple Service Discovery protocol (SSDP) works in conjunction with UPnP to detect plug and play devices on a networks b. Vulnerabilities in UPnP may allow attackers to launch Buffer overflow or DoS attacks c. Scanning IPv6 networks are computationally less feasible due to larger search space (128 bits) d. Network admins can use Nmap for network inventory, managing service upgrade schedules, and monitoring host or service uptime e. Attacker uses Nmap to extract info such as live hosts on the network, services, type of packet filters/firewalls, operating systems and OS versions f. Hping2/Hping3: command line network scanning and packet crafting tools for the TCP/IP protocol i. It can be used for network security auditing , firewall testing g. TCP connect scan detects when a port is open by completing the three-way handshake i. TCP connect scan establishes a full connection and tears it down sending a RST packet ii. It does not require superuser privileges h. Attackers send TCP probe packets with a TCP flags (FIN,URG,PSH) set or with no flags. No responses means port is open, RST means the port is closed i. In Xmas scan, attackers send a TCP frame to a remote device with FIN, URG, and PUSH flags set i. Won’t work against any current version of Microsoft Windows j. Attackers can an ACK probe packet with random sequence number, no responses means the port is filtered (stateful firewall is present) and RST response means the port is not filtered k. A port is considered open if an application is listening on the port i. Most web servers are on port 80 and mail servers on 25 ii. One way to determine whether a port is open is to send a “SYN” (session establishment) packet to the port

i. Encrypt all network traffic ii. Use multiple firewalls iii. Do not rely on IP-based authentication iv. Use random initial sequence number v. Ingress filtering: use routers and firewalls at network perimeter to filter incoming packets that appear to come from an internal IP address vi. Egress filtering: Filter all outgoing packets with an invalid local IP address as source address

  1. Scanning Pen Testing a. Pen testing a network determines the network's security posture by identifying live systems, discovering open ports, associating services and grabbing system banners to simulate a network hacking attempt b. Here’s how to conduct a pen-test of a target network i. Host Discovery: detect live hosts on the target network. It is difficult to detect live hosts behind a firewall (Nmap, Angry IP scanner, colasoft) ii. Port Scanning: Check for open ports (Nmap, Netscan) iii. Banner Grabbing or OS fingerprinting: determine the OS running on the target host iv. Scan the network for vulnerabilities (nessus) v. Draw Network Diagrams that help you understand the logical connection vi. Prepare Proxies: Hides yourself from detection vii. Document all findings Module 4: Enumeration Module Objectives
  • Understanding Enumeration Concepts
  • Understanding different techniques for NetBIOS enumeration
  • Understanding Different Techniques for SNMP enumeration
  • Understanding different techniques for LDAP enumeration
  • Understanding different techniques for NTP enumeration
  • Understanding different techniques for SMTP and DNS Enumeration
  • Enumeration countermeasures
  • Overview of enumeration pen testing Enumeration Concepts ● In the enumeration phase, attacker creates active connections to system and performs directed queries to gain more information. Uses this information to identify system attack points and perform password attacks ○ Conducted in an intranet environment ● Techniques for Enumeration ○ Extract user names using email IDs ○ Extract user names using SNMP ○ Extract user groups from windows ○ Extract information using the default passwords ○ Brute force active directions ○ Extract information using DNS Zone Transfer ● Popular Ports to Enumerate ○ TCP/UDP 53 - DNS Zone Transfer ○ TCP/UDP 135 - Microsoft EPC Endpoint Manager ○ UDP 137 - NetBIOS Name Service (NBNS) ○ TCP 139 - SMB over NetBIOS ○ TCP/UDP 445 - SMB over TCP (direct host) ○ UDP 161 - Simple Network Management Protocol (SNMP) ○ TCP/UDP 389 - Lightweight Directory Access Protocol (LDAP) ○ TCP/UDP 3268 - Global Catalog Service ○ TCP 25 - Simple Mail Transfer Protocol (SMTP) ○ TCP/UDP 162 - SNMP Trap NetBIOS Enumeration ● NetBIOS name is a unique 16 ASCII string used to identify the network devices (15 of it are device name, 16 is reserved for service or name record type) ● Nbtstat utility displays NetBIOS over TCP/IP protocol statistics, NetBIOS name tables/cache ● Net View utility is used to obtain a list of all the shared resources of remote hosts or workgroup

SNMP Enumeration (simple network Management protocol enumeration) ● SNMP enumeration is a process of enumerating user accounts and devices on a target system using SNMP ● SNMP contains a manager and agent. Agends are embedded on every network, manager installed on a seperate computer ● SNMP has two passwords ○ Attacker uses default community strings to extract info ○ Uses it to extract information about network resources such as hosts, routers, devices, shares ● Management Information Base (MIB) ○ MIB is a virtual database containing formal description of all the network objects managed using SNMP LDAP Enumeration ● LDAP is an internet protocol for accessing distributed directory services ● Attacker queries LDAP service to gather information such as valid user names, addresses, departmental details, etc NTP Enumeration ● Network Time Protocol (NTP) is designed to synchronize clocks of networked computers ● Uses UDP port 123 ● Can use it to find important information on a network ● Can use Nmap, Wireshark SMTP and DNS Enumeration ● SMTP has 3 built-in commands ○ VRFY - Validates users ○ EXPN - Tells actual delivery addresses of aliasses and mailing lists ○ RCPT TO - Defines the recipients of the message ● SMTP servers respond differently to these commands ● Attackers can directly interact with SMTP via the telnet prompt and collect a list of valid users on the SMTP Server Enumeration Countermeasures ● SNMP countermeasures ○ Remove SNMP agent on turn off the SNMP service (block 161) ○ Change default community string name ○ Upgrade to SNMP3, which encrypts passwords/messages ○ Implement additional security option called “additional restrictions for anonymous connections” ○ Ensure that the access to null session pipes, null session shares, and IPsec filtering are restricted ● DNS countermeasures ○ Disable DNS zone transfers to the untrusted hosts ○ Make sure private hosts and their IP addresses are not published into DNS zone files of public DNS server ○ Use premium DNS registration services to hide sensitive information ○ Use standard network admin contacts for dns registrations in order to avoid social engineering attacks ● SMTP countermeasures ○ Ignore email messages to unknown recipients ○ Disable open relay features ○ Do not include sensitive mail server and local host information in mail responses ● LDAP countermeasures ○ Restrict access to active directory by using software such as citrix ○ Enable account lockout ○ Use SSL technology for LDAP traffic ● Enumeration Pen Testing ○ Used to identify valid user accounts or poorly protected resource shares ○ Information can be users and groups, network resources ○ Used in combination with data collected in reconnaissance phase ○ Steps in Enumeration Pen Testing ■ Find the network range ■ Calculate the subnet mask ■ Undergo host discovery

○ Active Online Attacks: Attacker performs cracking by directly communicating with the victim machine (dictionary, brute force, rule based - some info known) ○ Passive Online Attacks: Performs cracking without communicating with party ○ Offline Attack: attacker copies password file and tried to crack it ● Default passwords are set by the manufacturer ● Trojans can collect usernames and passwords and send to attacker, run in background ● Can use USB drive for a physical approach ● Hash Injection Attack: attacker injects compromised hash into local session then use it to validate network resource. Finds and extracts a logged on domain admin account hash ● Passive Online Attack: Wire Sniffing ○ Packet Sniffer tools on LAN ○ Capture data may include sensitive information such as passwords ○ Sniffed credentials are used to gain unauthorized access ● Rainbow table attack ○ Precomputed table which contains word lists like dictionary files, brute force lists, and their hash values ○ Compare the hashes ○ Easy to recover passwords by comparing captured password hashes to precomputed tables ● Offline Attack: Distributed Network Attack (DNA) ○ A DNA technique is used for recovering passwords from hashes or password protected files using the unused processing power of machines across the network to decrypt passwords ● Microsoft Authentication ○ Windows stores passwords in the Security Accounts Manager (SAM) Database, or in the Active Directory database in domains. They are hashed. ○ NTLM Authentication ■ NTLM authentication protocol types ■ LM authentication protocol ■ These protocols stores user’s password in the SAM database using different hashing methods ○ Kerberos Authentication ■ Microsoft has upgraded its default authentication protocol ○ Password Salting ■ Random strings of characters are added to the password before calculating their hases ● Advantage: salting makes it more difficult to reverse hashes ● Use password crackers like L0phtCrack, Cain&Abel, RainbowCrack ● Enable SYSKEY with strong password to encrypt and protect the SAM database Escalating Privileges ● An attacker can gain access to the network using a non-admin user account, next step is to gain admin privileges ● Privilege Escalation Using DLL Hijacking ○ If attackers place a malicious DLL in the application directory, it will be executed in place of the real DLL ● Resetting passwords using command prompt ○ An admin can reset passwords while an administrator ● Countermeasures: restrict interactive login privileges, use least privilege policy, implement multi-factor, run services as unprivileged accounts, patch systems regularly, use encryption technique, reduce amount of code, perform debugging Executing Applications ● Attackers execute malicious programs remotely in the victim's machine to gather information ○ Backdoors ○ Crackers ○ Keyloggers ○ Spyware ● Software like RemoteExec can remotely install software, execute programs/scripts ● There are hardware and software keystroke loggers (USB vs App) ● Spyware ○ Records user’s interaction ○ Hides its process ○ Hidden component of freeware program ○ Gather info about victim or organization ● GPS spyware also exists ● Countermeasures for Keyloggers

○ Pop-up blocker ○ anti-spyware/virus ○ Firewall software ○ Anti-keylogging software ○ Recognize phishing emails and delete ○ Choose new passwords for different online accounts ○ Avoid opening junk emails ● There are Anti-keyloggers out there ● Rootkits are programs that hide their presence and an attacker's malicious activities, granting them full access to the server or host at the time or in future ○ Typical Rootkit has backdoor programs, DDos programs, packet sniffers, log-wiping utilities, IRC bots, etc ● 6 Types of Rootkits ○ Hypervisor Level Rootkit: Acts as hypervisor and modifies boot sequence of the computer to load the host OS as a virtual machine. ○ Boot Loader level rootkit: replaces original boot loader with one controlled by attacker ○ Hardware/Firmware Rootkit: Hides in hardware devices or platform firmware which is not inspected for code integrity ○ Application level rootkit: replaces regular application binaries with fake trojan, or modifies the behavior of existing applications ○ Kernel Level Rootkit: Adds malicious code or replaces original OS kernel and device driver codes ○ Library Level Rootkits: Replaces original system calls with fake ones to hide information about attacker ● Detecting Rootkits ○ Integrity-Based detection: compares a snapshot of the filesystem,boot records, or memory ○ Signature-based technology: compares characteristics of all system processes and executable files with a database of known rootkit fingerprints ○ Heuristic/Behavior based detection: any deviations in the systems normal activity ○ Runtime Execution path profiling: compares runtime execution paths of all system processes before and after rootkit infection ○ Cross View-Based detection: enumerates key elements in the computer system such as system files, processes, and registry keys and compares them to an algorithm to generate a similar data set that does not rely on common APIs ● NTFS Data Stream ○ NTFS alternate data stream (ADS) is a windows hidden stream which contains metadata for the file such as attributes, word count, author name, access and modification time of files ○ Using NTFS stream, an attacker can almost completely hide files within the system. ○ You can hide a file side another file (trojan in a readme.txt) ○ Countermeasures: use a third party file integrity checker ● Steganography ○ Steganography is a technique of hiding a secret message within an ordinary message and extracting it at the destination ○ Utilizing a graphic image as a cover is the most popular method to conceal the data in files ○ Attackers can use steganography to hide messages such as list of compromised servers, source code for the hacking tools, plans for future attacks, etc ○ Technical Steganography: invisible ink/microdots, physical methods to hide ○ Linguistic Steganography: Type that hides the message in another file ■ Semagrams: use of symbols to hide information ○ Least Significant bit insertion: The rightmost bit of a pixel is called the LSB ○ Masking and Filtering: Making technique hides data similar to watermarks on actual paper. Can be detection with simple statistical analysis. Mostly in grayscale images. ○ Algorithms and Transformation ■ Hide data in mathematical functions used in compression algorithms ■ Data is embedded by changing the coefficients of a transform of an image ○ Audio steganography - information in hidden frequency ● Steganalysis ○ Art of discovering and rendering covert messages using steganography. It attacks steganography efforts Covering Tracks ● Techniques used for covering tracks

● How to infect systems using a trojan ○ Create a new trojan packet using a trojan horse construction kit ○ Create a dropper, which is part in a trojanized packet that installs the malicious code on the target system ● A wrapper binds a trojan executable with an innocent looking .EXE application such as games or office applications. When an EXE is executed, it first installs the trojan in the background. ● Attackers use crypters to hide viruses, spyware, keyloggers to make them undetectable by antivirus ● Attackers can deploy a trojan by creating a malicious link/email attachments ● Exploit kit: Platform to deliver exploits and payloads such as trojans, backdoors, bots, buffer overflow scripts,etc ● Evading Anti-Virus Techniques: ○ Break the trojan file into multiple pieces and zip them as a single file ○ ALWAYS write your own Trojan, and embed it into an application ○ Change the Trojans Syntax ■ Convert EXE to VB script ○ Change the content of the Trojan using Hex Editor and also change the checksum and encrypt the file ○ Never use trojans downloaded from the web (antivirus can detect these easily)

● Command shell trojans give remote control of a command shell ● Trojan server is installed on the victim’s machine, which opens a port for attacker to connect. ● Defacement Trojans: Can destroy or change entire content present in a database. Much more dangerous when attackers target websites ● Botnet Trojans: infect a large number of computers to create a network of bots(chewbacca) ● Proxy Server Trojans: Converts user’s computer into proxy servers, thus making them accessible to specific attackers. ● VNC Trojan: VNC trojan starts a VNC server daemon in the infected systems. Attacker can connect to the victim using any VNC viewer ● HTTP/HTTPS Trojans: bypass firewall, spawn a child program and child program appears to be a user to the firewall ● ICMP Tunneling ○ Covert channels are methods in which an attacker can hide the data in a protocol that is undetectable ○ They rely on techniques called tunneling, which allow on protocol be carried over to another protocol. very stealthy ● Remote Access Trojans: provide attackers with full control over the victim’s system ● E Banking Trojans - intercept a victim’s account information before it is encrypted ○ Steals victim’s data such as credit card information ● Notification Trojans: Sends the location of the victim’s IP address to attacker ● Whenever victim’s computer connected to the internet, the attacker receives the notification Viruses and Worm Concepts ● Virus: A self replicating program that produces its own copy by attacking itself to another program, computer boot sector or document ○ Transmitted through downloads, infected flash drives, email attachments ● Stages of Virus Life ○ Design: creating the virus ○ Replication: Replicating the virus on target system ○ Launch: launching/running the virus (.exe file) ○ Detection: Target system identifies virus ○ Incorporation : Anti-virus softwares update ○ Elimination: users install anti-virus update to eliminate virus ● Indications of a virus attack: abnormal activities (slow, anti virus alerts, folders missing, etc) ● There are many Fake Anti-Viruses that are actually viruses ● Ransomware restrict computer files until a sum is paid ● Boot Sector Viruses: moves MBR to another location on hard disk

● Sheep Dipping refers to the analysis of suspect files, incoming messages, for malware ○ A sheep dip computer is installed with port monitors, file monitors, network monitors and antivirus software and connects to a network only under strictly controlled conditions ● Anti-Virus Sensor Systems: Collection of computer software that detects and analyzes malicious code threats ● Malware Analysis Procedure: ○ Perform static analysis when the malware is inactive ○ Collect info of string values found in binary with tools ○ Setup network connection and check there are no errors ○ Run the virus and monitor the process actions and system information with help of process monitor/explorer ○ Record network traffic information using monitoring tools (TCP view, netResident) ○ Determine the files added, processes spawn, and changes to registry with tools ○ Collect Service requests and DNS tables information, attempts for incoming and outgoing connections using tools Malware Detection ● Trojans open unused ports in victims machine to connect back to Trojan handlers ● Look for connection established to unknown or suspicious IP addresses ○ You can use a port monitoring tool ● Scanning for Suspicious Processes ○ Trojans camouflage themselves as genuine Windows services ○ Some trojans use Portable Executable to inject into various processes ○ Processes are visible but may look like a legitimate processes and helps bypass desktop firewalls ○ Trojans can also use rootkit methods to hide their processes ○ Use process monitoring tools to detect hidden trojans and backdoors ● Trojans are installed along with device drivers downloaded from untrusted sources ○ Scan suspicious drivers and verify they are genuine and downloaded from publishers original site ● Trojans normally modify system’s files and folders. Use these tools to detect changes ○ SIGVERIF: checks integrity of critical files digitally signed by microsoft ○ FCIV - Computes MD5 or SHA-1 cryptographic hashes for files ○ TRIPWIRE: system integrity verifier that scan and reports critical system file for changes ● Scanning for suspicious network activities ○ Trojans connect back to handlers and send confidential info to attackers ○ Use network scanners ● Virus Detection Methods ○ Anti-virus executes the malicious code to simulate. Effective for dealing with encrypted and polymorphic viruses ○ Heuristic Analysis: Can be static or dynamic. In static, anti-virus analyzes the file format and code structure to determine is code is viral. In dynamic, the AV performs a code emulation Counter-Measures ● Trojan Countermeasures ○ Avoid opening email attachments from unknown senders ○ Block unnecessary ports ○ Avoid accepting programs transferred by instant messaging ○ Hard weak default configs and unused functionality including protocols/services ○ Monitor internal network traffic for odd ports ○ Avoid downloading and executing apps from untrusted sources ○ Install security updates ○ Scan CD’s and DVD’s w/ antivirus software ○ Restrict permissions within desktop environment ○ Manage local workstation file integrity ○ Run Host-Based Antivirus ● Backdoor Countermeasures ○ Anti-viruses ○ Educate users not to download from untrusted sites Anti-Malware Software

Norton, Mcafee, Nessus etc. Module 7: Sniffing Objectives: Overview of sniffing concepts, understanding MAC attacks, Understanding DHCP attacks, understanding ARP poisoning, Understanding MAC spoofing attacks, Understanding DNS poisoning, Sniffing tools, Sniffing countermeasures, Understanding various techniques to detect sniffing, overview of sniffing pen testing Sniffing Concepts ● Sniffing is a process of monitoring and capturing all data packets passing through a given network using sniffing tools (form of wire tap) ○ Many enterprises switch ports are open ○ Anyone in same physical location can plug into network with ethernet ● How a sniffer works ○ Sniffer turns on the NIC of a system to the promiscuous mode that it listens to all the data transmitted on its segment ● Each computer has a MAC address and an IP address ● Passive sniffing means through a hub (involves sending no packets), on a hub traffic is sent to all ports ○ Most modern networks use switches ● Active Sniffing: Searches for traffic on a switched LAN by actively injecting traffic into the LAN. Involves injecting address resolution packets (ARP) into the network ● Protocols vulnerable to sniffing: ○ HTTP, Telnet and Rlogin, POP, IMAP, SMTP and NNTP ● Sniffers operate at the Data Link layer of the OSI model ● Hardware Protocol Analyzer: equipment that captures signals without altering the traffic in a cable segment ○ Can be used to monitor traffic. Allows attacker to see individual data bytes ● Span Port: A port which is configured to receive a copy of every packet that passing through a switch ● Wiretapping: Process of monitoring telephone and internet convo’s by third party ○ Via connecting a listening device (hardware or software) to the circuit ○ Active Wiretapping: Monitors, records, and injects something into the communication or traffic ○ Passive Wiretapping: It only monitors and records the traffic and gain knowledge of the data it contains ○ Lawful interception: legally intercepting data communication MAC Attacks ● Each switch has a fixed size dynamic content addressable memory (CAM table)

Wireshark Counter-Measures ● Restrict physical access ● Use encryption ● Permanent add MAC address to the gateway to the ARP cache ● Use static IP addresses ● Turn off network ID broadcasts ● Use IPV ● Use HTTPS instead of HTTP ● Use switch than Hub ● Use SFTP instead of FTP Sniffing Detection Techniques ● Runs IDS and notice if mac address of certain machines have changed ● Check which machines are running in the promiscuous mode ○ Promiscuous mode allows a network device to intercept and read each network packet ● Only a machine in promiscuous mode cache the ARP information ○ A machine in promiscuous mode replies to the ping message as it has correct information about the host sending a ping request Sniffing Pen Testing ● Sniffing pen test is used to check if the data transmission from an org is secure from sniffing and interception attacks

Module 8: Social Engineering Objectives: overview of social engineering concepts, understanding various social engineering techniques, understanding insider threats, understanding impersonation on social networking sites, understanding identity theft, social engineering countermeasures, identify theft countermeasures, overview of social engineering pen testing Social Engineering Concepts ● Social engineering is the art of convincing people to reveal confidential information ○ Depends on the fact people are unaware of their valuable info and careless about protecting it Social Engineering Techniques ● Human-based social engineering, Computer-Based social engineering, Mobile-based social engineering ● Human Based Social Engineering ○ Reverse social engineering (attacker presents as authority) ○ Piggybacking (“I forgot my ID badge, please help) ○ Tailgating (walking directly behind someone for entrance) ● Computer Based Social Engineering ○ Hoax Letters, free gifts, etc ● Mobile-based social engineering ○ Repackaging legitimate apps ○ Fake security applications ● Insider attack ○ Disgruntled employee ○ Prevention: separation and rotation of duties, least privilege, controlled access, logging and auditing, legal policies, archive critical data Impersonation on Social Networking Sites ● Social engineering on facebook, twitter, linkedin etc Identify Theft ● When someone steals your PI Social Engineering countermeasures ● Periodic password change, good policies, etc.