Computer Security Fundamentals

Slides:



Advertisements
Similar presentations
Module XIV SQL Injection
Advertisements

 Dynamic policies o Change as system security state/load changes o GAA architecture  Extended access control lists  Pre-, mid- and post-conditions,
TCP/IP Fundamentals A quick and easy way to understand TCP/IP v4.
NMAP Scanning Options. EC-Council NMAP  Nmap is the most popular scanning tool used on the Internet.  Cretead by Fyodar ( it.
Hands-On Ethical Hacking and Network Defense Second Edition Chapter 5 Port Scanning.
Hands-On Ethical Hacking and Network Defense Chapter 5 Port Scanning.
Scanning CS391. Overview  The TCP protocol: quick overview  Scanning  Fingerprinting  OS Detection.
IP Network Scanning.
CIT 380: Securing Computer SystemsSlide #1 CIT 380: Securing Computer Systems Scanning.
Hands-On Ethical Hacking and Network Defense Chapter 5 Port Scanning Last updated
Scanning Determining if the system is alive IP Scanning Port Scanning War Dialing.
Hacking Exposed 7 Network Security Secrets & Solutions Chapter 2 Scanning 1.
ITP 457 Network Security Network Hacking 101. Hacking Methodology (review) 1. Gather target information 2. Identify services and ports open on the target.
Computer Security Fundamentals by Chuck Easttom Chapter 4 Denial of Service Attacks.
Introduction The concept of “SQL Injection”
By Brian Vees.  SQL Injection  Username Enumeration  Cross Site Scripting (XSS)  Remote Code Execution  String Formatting Vulnerabilities.
Scanning February 23, 2010 MIS 4600 – MBA © Abdou Illia.
1 Anti-Hacker Tool Kit Port Scanners Chapter 6. 2 Introduction The first step in the process of hacking –Discover the services –Version label –Operation.
Information Networking Security and Assurance Lab National Chung Cheng University 1 Port Scanners.
Computer Security and Penetration Testing
Penetration Testing.
Port Scanning.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Ana Chanaba Robert Huylo
Penetration Testing Training Day Capture the Flag Training.
CSCI 6962: Server-side Design and Programming Secure Web Programming.
1 Reconnaissance, Network Mapping, and Vulnerability Assessment ECE4112 – Internetwork Security Georgia Institute of Technology.
Karlstad University Introduction to Vulnerability Assessment Labs Ge Zhang Dvg-C03.
1-Vulnerabilities 2-Hackers 3-Categories of attacks 4-What a malicious hacker do? 5-Security mechanisms 6-HTTP Web Servers 7-Web applications attacks.
Port Scanning 0x470~0x480 Presenter SangDuk Seo 1.
1 Working with MS SQL Server Textbook Chapter 14.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Snort & Nmap Mike O’Connor Eric Tallman Matt Yasiejko.
Web Application Security ECE ECE Internetwork Security What is a Web Application? An application generally comprised of a collection of scripts.
1 Reconnaissance, Network Mapping, and Vulnerability Assessment ECE4112 – Internetwork Security Georgia Institute of Technology.
1 Reconnaissance, Network Mapping, and Vulnerability Assessment ECE4112 – Internetwork Security Georgia Institute of Technology.
Information Networking Security and Assurance Lab National Chung Cheng University 1 Port Scanners.
Chapter 2 Scanning Last modified Determining If The System Is Alive.
Scanning & Enumeration Lab 3 Once attacker knows who to attack, and knows some of what is there (e.g. DNS servers, mail servers, etc.) the next step is.
Assessing a Target System Source: Chapter 3 Computer Security Fundamentals Chuck Easttom Prentice Hall, 2006.
Penetration Testing 101 (Boot-camp)
Advanced Packet Analysis and Troubleshooting Using Wireshark 23AF
Hands-On Ethical Hacking and Network Defense
Secure Authentication. SQL Injection Many web developers are unaware of how SQL queries can be tampered with SQL queries are able to circumvent access.
Scanning.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Introduction to Vulnerability Assessment Labs Ge Zhang Dvg-C03.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Protection (tools).
Computer & Network Security
Penetration Testing Scanning
Computer Security Fundamentals
Tonga Institute of Higher Education IT 141: Information Systems
Port Scanning James Tate II
CITA 352 Chapter 5 Port Scanning.
World Wide Web policy.
Port Scanning (based on nmap tool)
Computer Security Fundamentals
Information Gathering
Database Driven Websites
ISC440: Web Programming 2 Server-side Scripting PHP 3
Tonga Institute of Higher Education IT 141: Information Systems
Lecture 2 - SQL Injection
Tonga Institute of Higher Education IT 141: Information Systems
Tutorial 6 PHP & MySQL Li Xu
Unit 32 Every class minute counts! 2 assignments 3 tasks/assignment
EVAPI - Enumeration Auburn Hacking club
Presentation transcript:

Computer Security Fundamentals by Chuck Easttom Chapter 6 Techniques Used by Hackers

Chapter 6 Objectives Understand the basic methodology used by hackers Be familiar with some of the basic tools Understand the hacking mentality © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Introduction Basic Terminology Reconnaissance Passive Scanning This chapter provides the essential steps of a vulnerability assessment: Not a comprehensive treatment Not a substitute for an expert consultant A basic blueprint There are many procedures to implement secure computing: This chapter presents some overall procedures. This is not step-by-step instructions. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Netcraft.com © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Archive.org © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Port Scanning NMap Not a comprehensive treatment This chapter provides the essential steps of a vulnerability assessment: Not a comprehensive treatment Not a substitute for an expert consultant A basic blueprint There are many procedures to implement secure computing: This chapter presents some overall procedures. This is not step-by-step instructions. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

NMAP Flags -O detects operating system -sP is a ping scan -sT TCP connect scan -sS SYN scan -sF FIN scan -sX XMAS Tree scan -sN NULL scan -sU UDP scan -sO Protocol scan -sA ACK Scan -sW Windows scan -sR RPC scan -sL List/DNS scan -sI Idle scan -Po Don’t ping -PT TCP ping -PS SYN ping -PI ICMP ping -PB TCP and ICMP ping -PM ICMP netmask -oN Normal output -oX XML output -oG Greppable output -oA all output -T timing -T0 paranoid -T 1 Sneaking -T 2 Polite -T 3 Normal -T 4 Aggressive -T 5 Insane © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Ping Scan The ping scan sends a single ICMP echo request from the source to the destination device. A response from an active device returns an ICMP echo reply, unless the IP address is not available on the network or the ICMP protocol is filtered. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Connect Scan Fully connect to the target ip address and port. Does a complete TCP handshake. This is the most reliable but will absolutely be detected. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Syn Scan Sends syn (synchronize) requests to the target to gather information about open ports without completing the TCP handshake process. When an open port is identified, the TCP handshake is reset before it can be completed. This technique is sometimes called to as "half open" scanning. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Fin Scan Sends a FIN (or finish) packet to target. If that port is not listening, no response. If it is listening an error response is received. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Enumeration Sid2User Cheops (Linux only) UserInfo UserDump DumpSec Netcat NBTDump © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Cain and Abel © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

SQL Injection One of the most common attacks Depends on knowledge of SQL Basics are easy Versatile and can do a lot more than many realize © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

What Is SQL? A relational database contains one or more tables identified each by a name. Tables contain records (rows) with data. For example, the following table is called "users" and contains data distributed in rows and columns: SQL (Structured Query Language) uses commands like such as SELECT, UPDATE, DELETE, INSERT, WHERE, and others. Example: SELECT * FROM tblUsers WHERE USERNAME = ‘admin’ © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

More on SQL Web sites are written in some programming language such as PHP, ASP, JSP, ASP.net. Those programming languages have their own syntax (NOT SQL). So programmers put the SQL into their code in strings. So lets say you type your username into a text field called txtUsername and your password into a text field called txtPassword. The code in their program has to put SQL statements into a string and append whatever you entered in those two text fields. It will look something like this: string sSQLstatement; sSQLstatement = “SELECT * FROM tblUSERS WHERE UserName = ‘ “ + txtUsername.Text +’” + “ AND Password = ‘” + txtPassword.Text +”’”; so the string will contain ‘SELECT * FROM tblUSERS WHERE UserName =‘admin’ AND Password = ‘password’’; However whatever you type in, gets put into the text field. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

SQL Script Injection ' or ‘1' =‘1 OR ' or 'a' ='a Single quote added to password: Add the following to the username box and the password: ' or ‘1' =‘1 OR ' or 'a' ='a Also try password’ or (1=1) Or people try anything' OR 'x'='x or people try password:’1=1- - Try using double quote (") if single quote (') is not working © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

What Does This Cause? Well you would have had ‘SELECT * FROM tblUSERS WHERE UserName =‘admin’ AND Password = ‘password’’; Instead you have ‘SELECT * FROM tblUSERS WHERE UserName =‘' or ‘1' =‘1 ’ AND Password = ‘' or ‘1' =‘1 ’’; So now it says to get all entries from table = tblUsers if the username is ‘’ (blank) OR IF 1 =1. And if password = ‘’ (blank) OR IF 1=1! © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

Cross Site Scripting An attacker injects client-side script into web pages viewed by other users. The term cross-site scripting originally referred to the act of loading the attacked, third-party web application from an unrelated attack site, in a manner that executes a fragment of JavaScript prepared by the attacker in the security context of the targeted domain Essentially you enter scripts into an area that other users interact with. So that when they go to that part of the site, you have your own script run, rather than the intended Web site functionality. This can include redirecting them. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers

OphCrack- How It Works Download OphCrack and burn the image to a CD. Put the CD in the target computer and boot through CD. It boots as Linux, grabs the Windows password file, and then uses cracking tools to crack that file and produces a text file with username and passwords. You cannot even consider yourself a hacker without this tool in your toolkit. © 2012 Pearson, Inc. Chapter 6 Techniques Used by Hackers