Docsity

Cybersecurity Exam 3 Study Guide: Exploits, Payloads, and Network Security, Exams of Cybersecurity

Toggle sidebar
bg1
BCIS 4630 EXAM 3 STUDY GUIDE
Exploitation - Answer --The process of launching an exploit.
- A wide range of activities, tools, and options.
- Attack vectors may vary from target to target.
payload - Answer -PAYLOAD=code attacker wants the system to execute once
exploited
ex. add new users, install software, open backdoors, change files
shellcode - Answer --A set of instructions used as a payload during exploitation.
- Typically written in assembly language.
- In MSF, typically a shell (command console) or Meterpreter shell will be provided by
shellcode.
Mix-and-Match Approach= - Answer -Mix-and-Match Steps=
- The payloads are interchangeable and not tied to a specific exploit, provided both are
compatible with the system and vulnerability found
- Steps:
1. Identify a target
2. Select an exploit
3. Set exploit options
4. Select a payload
5. Set payload options
6. Exploit
Meterpreter (Meta-Interpreter) is a powerful command shell that was specifically made
for Metasploit: - Answer --command SHELL
-made for metasploit
- It runs entirely in memory and never touches things on the hard drive.
- Thus it achieves a great amount of stealth.
- In contrast, cmd or Linux shell starts a new process on the victim that can be detected.
- It runs with the privileges associated with the program that the exploit attacked.
EXPLOIT=code run to take advantage of vulnerability (gain administrative access) -
Answer -EXPLOITATION=launching of an exploit
(wide range & vary)
-A piece of code is run by an attacker to take advantage of a flaw or vulnerability in a
system or application.
- The goal typically is to gain administrative-level access to the target.
Know the major types of payload in Metasploit and the difference between bind_tcp and
reverse_tcp. - Answer -Metasploit=exploit framework(formal structure)
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Cybersecurity Exam 3 Study Guide: Exploits, Payloads, and Network Security and more Exams Cybersecurity in PDF only on Docsity!

BCIS 4630 EXAM 3 STUDY GUIDE

Exploitation - Answer --The process of launching an exploit.

  • A wide range of activities, tools, and options.
  • Attack vectors may vary from target to target. payload - Answer - PAYLOAD=code attacker wants the system to execute once exploited ex. add new users, install software, open backdoors, change files shellcode - Answer --A set of instructions used as a payload during exploitation.
  • Typically written in assembly language.
  • In MSF, typically a shell (command console) or Meterpreter shell will be provided by shellcode. Mix-and-Match Approach= - Answer - Mix-and-Match Steps=
  • The payloads are interchangeable and not tied to a specific exploit, provided both are compatible with the system and vulnerability found
  • Steps:
  1. Identify a target
  2. Select an exploit
  3. Set exploit options
  4. Select a payload
  5. Set payload options
  6. Exploit Meterpreter (Meta-Interpreter) is a powerful command shell that was specifically made for Metasploit: - Answer --command SHELL
  • made for metasploit
  • It runs entirely in memory and never touches things on the hard drive.
  • Thus it achieves a great amount of stealth.
  • In contrast, cmd or Linux shell starts a new process on the victim that can be detected.
  • It runs with the privileges associated with the program that the exploit attacked. EXPLOIT=code run to take advantage of vulnerability (gain administrative access) - Answer - EXPLOITATION=launching of an exploit (wide range & vary)
  • A piece of code is run by an attacker to take advantage of a flaw or vulnerability in a system or application.
  • The goal typically is to gain administrative-level access to the target. Know the major types of payload in Metasploit and the difference between bind_tcp and reverse_tcp. - Answer - Metasploit=exploit framework(formal structure)

Payloads==> meterpreter/shell/vncinject bind_tcp =

  • creates connection
  • from attacker to target meterpreter/shell/reverse_tcp =
  • creates reverse connection
  • from hacker to target adduser & exe From slide windows/meterpreter/bind_tcp= Runs Meterpreter on the victim windows/meterpreter/reverse_tcp= Runs "reverse" version of Meterpreter windows/adduser = Adds a new user in the local admin group of the victim windows/exec = Runs an exe on the victim windows/shell/bind_tcp = Opens a command shell on the victim windows/shell/reverse_tcp = Victim connects back to the attacker and opens up a command console on the victim windows/vncinject/bind_tcp = Installs VNC on the victim and opens up VNC connection windows/vncinject/reverse_tcp = The "reverse" version of the previous payload Be able to set some common options for exploits and payloads, e.g., LHOST, RHOST, LPORT. - Answer - OPTIONS=
  • context specific for exploit & payload ex. nsf exploit() > show options

set lhost 10.1.41. show options, exploit, lhost, show options, explot Hash - Answer --verifies integrity

  • one single character change will cause the hash to be dramatically different.
  • hardware/software
  1. Packet Filtering=
  • rules for what packets should be allowed or denied
  • DO NOT ALLOW ICMP or 172.19.0.
  • ALWAYS ALLOW Port 80
  • Make decision based on IP header information within one single packet only.
  • Do not keep track of the state of a connection. (slide) Use lines of text called "rules" that define what packets should be allowed or denied, e.g.,
  • Any packets coming from the 172.19.0.0 network should be denied.
  1. Stateful Inspection=
  • attackers break packets into multiple packets to prevent detection
  • look into Layer 3 & Layer 4 for better detection
  • checks state table
  • A common approach to foil detection by firewalls is to break packets involved in an attack into multiple packets so that the firewall cannot detect it based on a single packet.
  • If a firewall can track all packets belonging to a session, it has a better chance at detecting an attack.
  1. NAT=Network Address Translation
  • schemes, between public & private
  • keeps track of what internal IPs are using external IPs(When outside, i.e. Internet- based resources are needed, NAT is required to assign the internal hosts valid external IP addresses so that they can establish connections to those resources.)
  • reduces external IPs RULEBASE= what traffic is allowable and what is not - Answer - from <source_address> <source_port> to <destination_address> <destination_port> CISCO FIREWALL RULES - Answer - line 1 permit tcp any host 129.120.16.221 eq www
  • line 1 is line number in the rule set
  • permit is the action to take
  • tcp is the transport-layer protocol the packet uses
  • any is the source IP address
  • host 129.120.16.221 is the particular destination host
  • eq www is the port number (translated) Allows TCP packets coming from any host and any port to Port 80 on the host 129.120.16. Define DMZ. How does the DMZ enhance security? - Answer - DMZ= Demilitarized Zone
  • buffer zone between user and internet network connection
  • tradeoff access and security EX. Web servers, FTP servers, remote access service (RAS) servers, mail servers SNORT RULES - Answer - alert tcp any any - > 10.1.99.0/24 111 (content:"|00 01 86 a5| ";msg:"mountd access";)
  • alert specifies the action to take
  • tcp specifies the protocol
  • any any specifies the source network and port
  • 10.1.99.0/24 specifies the destination network
  • 111 specifies the port
  • content specifies the value of a payload
  • msg specifies the message to send 3 Describe NIDS and HIDS and compare them in terms of their main pros and cons. - Answer - HIDS= Host-Based IDS
  • ONLY sees individual systems
  • NO network visibility
  • log files, audit trails, and network traffic (OSSEC) (slide) NIDS advantages- Takes fewer systems to provide IDS coverage.
    • Lower deployment, maintenance, and upgrade costs. - Has visibility into all network traffic and can correlate attacks among multiple systems.• NIDS disadvantages
  • Ineffective when traffic is encrypted.
  • Cannot see traffic that does not cross it.

Know the defining characteristic of a Xmas scan. - Answer - •If a packet

  • comes from a network as defined by the EXTERNAL_NET variable,
  • goes to a host in the "home" network as defined by the HOME_NET variable,
  • F, P, and U bits are on 12 (meaning we want to detect a SYN packet regardless of what are in the 2 reserved bits)
  • c - Answer - configuration file command Compare misuse detection model and anomaly detection model. Describe what false positive and false negative are. - Answer - MISUSE DETECTION MODEL
  • relies on a predefined signature base to what policies are violations and then reacts
  • alerts when finds a matching pattern
  • will not detect what is not predefined
  • no predefined normal behavior, just tells what is bad and should be alarming (slide)
  • False positive - An IDS matches a pattern and generates an alarm for benign traffic.
  • False negative - Hostile activity does not match an IDS signature and, therefore, goes undetected. Anomaly Detection Model - Answer --must know what "normal" behavior is (baseline)
  • identified deviations from the norm
  • IDS defines norms
  • losts of false positives What is a honeypot? How does it work? Know the benefits of honeypots - Answer - Honeypots=
  • device placed on network perimeters
  • lure and trap hackers by expressing false vulnerabilities
  • collects data and traces hackers
  • OS, VM, or Emulated OS (slide)
  • Device placed on the network perimeter.
  • Contains information to lure and trap hackers
  • Configured to have vulnerabilities.
  • Main goal is to distract hackers from attacking legitimate network resources.
  • Keeps hackers connected long enough so they can be traced back.
  • Serves as an excellent data collector and early warning system.
  • A collection of honeypots networked together is a honeynet. Describe the three types of honeypots and different honeypot interaction levels. - Answer - 1. Real OS
  • spare machines
  • Imaging for backup and reimaging after attack can be a pain to manage
  1. Virtual Machines
  • Have the advantage of being real
  • There might be minor differences but the attackers may not notice- Imaging and reimaging are not as onerous as with real systems but keeping current with patches is
  1. Emulated OS
  • mimics OS, installed on top of OS
  • Easy to deploy and as easy as VMs to revert to clean images• Just shut down and restart the application
  • Emulate the results an attacker would see from a port if the system were real
  1. E-Commerce - Answer - Asymmetric Encryption - Answer - two keys are used; one key encrypts the message(Private), and the other key decodes the message(Public) What is non‐repudiation? - Answer - NON-REPUDIATION=
  • one cannot later deny what they agreed to earlier
  • need Authentication(correct person)
  • need Integrity(has not been changed/modified) Digital signature?? Describe the signing and verifying process with digital signature. - Answer - Digital Signature = hash + asymmetric encryption
  • signing-signature is hashed and then encrypted with senders private key
  • verification-receive public key, decode hash, compare computed hash to decrypted hash What is PKI? - Answer - PKI=PUBLIC KEY INFRASTRUCTURE
  • without PKI someone can upload a public key on behalf of someone else
  • prevents identity theft
  • binds public key to identity
  • third party trust What is a digital certificate? Which organization issues certificates? - Answer - DIGITAL CERTIFICATE=
  • holds identification information
  • combines public key with certificate
  • issued by CA Registration Authority (RA) - Answer --accepts requests for digital certificates
  • Register and authenticate THEN SEND TO CA Certificate Authority (CA) - Answer - A trusted third-party agency that is responsible for issuing digital certificates.
  • trusted to verify identities
  • RECIEVE FROM RA, then
  • URL as a percent sign directly followed by the two-digit HEX equivalent to the character's ASCII value. ex. %2e phishing emails Characters are represented in a URL as a percent sign directly followed by the two-digit HEX equivalent to the character's ASCII value. The encoded form is called a "URL escape". Base64 Encoding - Answer --used to code and decode binary data (0s and 1s) as printable ASCII characters . 3 bytes(24 bites) at a time
  • binary= 0s & 1s ex. email It processes 3 bytes (24 bits) at a time. To ensure that the coding results in printable ASCII characters, it takes 6 bits out of the 24, finds its decimal equivalent, converts it to a printable character, and then the next 6. ◦ Using six bits meaning that there are 2^6 = 64 possibilities: 10 digits, 26 lower caseletters, 26 uppercase letters, the plus sign (+), and the forward slash (/). Email handles binary in Base64. UTF‐7 Encoding - Answer --represent characters not found in English
  • converts Unicode into ASCII values. ex. +ADw- ENGLISH=default UTF-8 scheme ex. < > List the major types of XSS. - Answer - 1.Reflective XSS
  • sends victim email The attacker sends the victim an email that will trick the victim into clicking the URL contained therein. Brower invokes the malicious script in URL. The malicious script does harm to victim. 2.Persistent XSS
  • connect to the server 3.DOM (Document Object Model) XSS
  • a client-side attack (URL Input)
  • HTTP= no spaces Describe conceptually how cross‐site scripting (XSS) works. - Answer - Cross-Site Request Forgery (CSRF)=
  • attacker gains knowledge of a trust relationship between the victim and a website the victim has been authenticated to.
  • attacker "steals" and modifies a URL in the legitimate communication and then tricks the victim to click the URL that has been tempered with Cross-site scripting (XSS) is a client-side attack because it usually doesn't run code on the web server. ◦ A vulnerable web server simply provides a place for the attacker to "set up a trap" for the victim. ◦The malicious script gets downloaded to the victim's browser (client) and runs there. Know how SQL injection works, the types of damages it may cause, and the major preventive measures against it. - Answer - SQL Injection=
  • An attacker may be able to modify or add queries that are sent to a database server by playing with input to the web application. (slides) A web application normally builds queries based on inputs taken from web/HTML controls, such as textboxes, and then passes the query to the database server. An attacker may be able to modify or add queries that are sent to a database server by playing with input to the web application. ◦ The input may contain what is usually expected, e.g., username, account number, etc. ◦ However, it also contain additional characters that, when passed into the web application and combined with existing code, will result in SQL statements that weren't what the programmer has intended. Be able to tell the similarities between SQL injection and buffer overflow. - Answer - BUFFER OVERFLOW=
  • Hackers may try to overflow the buffer of the user's system.
  • Use abnormally long input when issuing the HELO, MAIL or RCPT commands. (slide) In both cases, the attacker adds (injects) malicious user input to what the programmer expects in normal circumstances. The additional input, however, is meaningful in code and modifies the way the program executes, to the surprise of the programmer. Why is spam so rampant? What is an open relay server? Why do spammers abuse them? - Answer - SPAM=unsolicited commercial e-mail
  • l: Location to write log files
  • i: Monitor the network segment connected to this interface
  • d: Log application layer data in packets
  • e: Log data link layer data in packets
  • E: Write to Windows event log HOIC 6: Exam Objective 1.6. - Answer - STEG= HIDE INFORMATION HIDS Focus - Log Files
  • A HIDS searches the log files or audit trails from the local OS for hostile actions or misuse activities, e.g., - Answer - Logins at odd hours
  • Login authentication failures
  • Adding new user accounts
  • Modification or access of critical system files
  • Modification or removal of binary files (executables)
  • Starting or stopping processes
  • Privilege escalation
  • Using certain programs