1/48
Looks like no tags are added yet.
Steps to create a TCP connection
1. Create a socket: SOCK_STREAM or SOCK_DGRAM
2. Bind to a port number
3. Listen for connections
4. Accept connection requests
5. Send and receive data
3 way handshake
SYN, SYN/ACK, ACK
SYN flooding attack
An attacker fills a server queue by sending an overwhelming amount of false requests that never complete the handshake, leaving half-open connections.
SYN cookies
Defense against a SYN flooding attack. The server does not store requests at all; instead, it hashes the data and sends it back to the client as the sequence number. If legitimate, the client sends the hash back, and the server can derive the information.
Categories of resources that can be attacked during a DoS
Network bandwidth
System resources
Application resources
Types of flooding attacks
ICMP flooding
UDP flooding
TCP SYN flooding
Distributed DoS
A DoS attack using multiple computers
Reflection attacks
A type of attack that uses an intermediary service to send requests to a victim using a spoofed ID.
DNS amplification
Attack which relies on the large amount of DNS information that is sent in response to a spoofed query on behalf of the victimized server
Smurf IP attack
Attacker creates a ping request with the victim's IP address, then sends it to all devices in the victim's network
How to Defend Against DoS Attacks
Configure a firewall
Disallow traffic originating from outside networks
SQL injection
An attack that targets SQL servers by injecting commands to be manipulated by the database.
Cross-Site Scripting (XSS)
An attack that injects scripts into a Web application server to direct attacks at clients.
Cryptojacking
where hackers secretly use the computing power of a user in order to mine cryptocurrency.
How to prevent cryptojacking
Use VPN to encrypt connections
Train to guard against social engineering
Trojan horse
Program that appears benign but actually installs malware into a system
Buffer overflow attack
An attacker puts more data in the buffer than intended, which can lead to overwritten memory or unexpected behavior.
Chernobyl virus
Infects executable files and corrupts the entire file system when a trigger date is reached.
Klez Worm
spreads by e-mailing copies of itself to addresses found in the address book and in files on the system
Keyloggers
software that tracks or logs the keys struck on your keyboard, typically in a covert manner so that you don't know that your actions are being monitored.
Spyware
software that enables a user to obtain covert information about another's computer activities by transmitting data covertly from their hard drive.
Prevention
Ideal solution to threat of malware.
4 components:
1. Policy
2. Awareness
3. Vulnerability mitigation
4. Threat mitigation
Antivirus
Detects virus in 2 ways
1. Scans for known signatures
2. Watches behavior of executables
Root kits
viruses and malware that disguise themselves as needed files, hard to remove and virus checkers cannot find them
Active scanning
More reliable but may be detected.
Port scanning: attempts to connect to each port on the computer to see which are open
Vulnerability assessment
Checking a system to see if it is vulnerable to specific attacks
Enumeration
Finding what is on a system
Dark web
Area of the internet that is only accessible via onion route
Onion route
Using proxies to send a message makes it so that no single proxy knows your IP or destination
Firewall
Barrier between computers or networks. Also has a log that keeps track of all activity that goes through it
4 types of firewalls
Packet filtering: static rules
Stateful inspection: Based on active sessions
Application proxy: Middleman that checks content
Circuit-level proxy: Transport level only
Host-based Firewall
Used to secure an individual host
Intrusion detection system
Inspects all inbound and outbound port activity
Passive IDS
monitor and log activity or notifies
Active IDS
Shuts down suspect communications
Main components of an IDS
Sensor: collects data
Analyzer: Analyzes data collected
User interface: Shows alerts and logs
Honey pot
A computer system that's set up to attract unauthorized users by appearing to be a key part of a network or a system that contains something of great value.
VPN
Virtual Private Network.
provides a way to create a virtual conection through the internet
2 protocols used for VPN
1. Point to point tunneling protocol: Outdated due to weak encryption
2. L2TP: Wraps the packet with a VPN IP address and uses IPsec to encrypt the data inside.
Main components of IoT device
Power unit
sensors
memory
radio
OS
cloud
IoT infrastructure
Perception layer (sensors and devices)
Network layer (routers and gateways)
Application layer (cloud/services)
Challenges of wireless computing
Wireless communication: Limited range and bandwidth, security concerns too
Mobility: Must deal with changing environments and resources when being moved
Poor resources: smaller size leads to low power and increased risk of data loss
IoT controller
Program that controls objects connected to the Internet of Things. Microprocessor and CPUs
Types of memory
1. RAM
2. Electrical erasable programmable read only: one bit at a time
3. Flash memory: works in chunks of info at a time
Wired Equivalent Privacy (WEP)
an encryption algorithm designed to protect wireless transmission data, obsolete now
Wifi protected access (WPA)
Protocol that encrypts data and authenticates the device using a 4-way handshake, used between the perception and the network layer
4-way handshake
Exchanges info between the device and the access point to derive a pairwise transient key to generate session keys
CoAP message types
CON
NON
ACK
RST
MQTT vs CoAP
MQTT: many-to-many
COAP: one-to-one
MQTT: uses TCP
COAP: uses UDP
MQTT: has quality of service levels to ensure no data is lost