1. Home
  2. Explore
  3. Computer Science
  4. Network Security Fundamentals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Network Security Fundamentals

Speaker 1Speaker 2

Network Security Fundamentals

26:15
0:00-26:15
  1. Maria

    Welcome to our conversation about network security. We’ll build from the basics—what networks are and how devices communicate—then look at network tools, protocols, common attacks, and the hardening practices that help protect systems. The central idea is that communication makes networks useful, but it can also create opportunities for attackers.

  2. Michael

    Let’s start with the basic definition: a network is a group of connected devices. At home, that might include laptops, phones, and smart appliances; in an office, it could include workstations, printers, and servers. Devices communicate over cables or wireless connections, and they use addresses or identifiers to find the right destination.

  3. Maria

    Two important identifiers are IP addresses and MAC addresses. A Local Area Network, or LAN, covers a relatively small area, such as a home, school, or office building. A Wide Area Network, or WAN, spans a larger geographical area, such as a city, state, or country; the internet is one large example of a WAN.

  4. Michael

    A home Wi-Fi network is a familiar example of a LAN. That LAN can connect to the internet, which lets devices communicate with networks elsewhere. For example, employees in San Francisco and Dublin can share resources across a WAN.

  5. Maria

    Now let’s distinguish the common devices that help networks operate. A hub broadcasts information to every device on the network, rather like a radio tower sending a signal broadly. A switch is more selective: it sends data to the intended destination, which helps control traffic and improve performance.

  6. Michael

    That selectivity is also a security advantage. A router connects multiple networks, reading a destination address and forwarding data toward the appropriate network. A modem connects a router to the internet, bringing internet access to the local network.

  7. Maria

    So for communication between networks, data may travel from a computer to its router, onward through the modem and internet, and then through the recipient’s modem and router to the destination device. Hubs, switches, routers, and modems are physical devices, but software-based virtualization tools can perform many similar network operations. Cloud providers offer these tools, which can support cost savings and scalability.

  8. Michael

    That brings us to cloud computing. Instead of relying only on devices kept and managed in their own buildings, organizations can use remote servers, applications, and network services hosted over the internet. A cloud network is a collection of servers or computers in a remote data center that stores resources and data accessible through the internet.

  9. Maria

    Cloud services can provide on-demand storage and processing power, so customers pay for what they need. Providers may also offer business and web analytics that help organizations monitor things such as web traffic and sales. Because cloud services can be accessed from different geographic locations, organizations can use online services without housing all the servers at their own sites.

  10. Michael

    The move to cloud networking also affects security. Traditional network-based protections still matter, but identity-based security becomes important too. A security professional may need to verify both where traffic is coming from and the identity associated with it.

  11. Maria

    Let’s look at what actually moves across a network: data packets. A packet is a basic unit of information sent from one device to another. It’s a bit like a letter: it has information about where it came from and where it’s going, along with the message itself.

  12. Michael

    A packet’s header includes addressing information, including the destination’s IP and MAC addresses, and a protocol number that tells the receiving device what to do with the information. The body contains the message being transmitted. A footer signals that the packet is finished.

  13. Maria

    Network performance can be considered through bandwidth and speed. Bandwidth refers to the amount of data a device receives per second, and you can calculate it by dividing the quantity of data by the time in seconds. Speed refers to the rate at which data packets are received or downloaded.

  14. Michael

    Security personnel pay attention to bandwidth and speed because irregularities can indicate an attack. They may also use packet sniffing—the practice of capturing and inspecting packets—to investigate incidents or troubleshoot network issues. The same technique can be abused by attackers, which we’ll return to shortly.

  15. Maria

    A useful framework for understanding communication is the TCP/IP model. TCP stands for Transmission Control Protocol, and IP stands for Internet Protocol. TCP helps two devices establish a connection and stream data, organizing transmission and helping ensure packets reach the appropriate destination.

  16. Michael

    IP provides standards for routing and addressing packets as they travel between devices. A port is a software-based location in a device’s operating system that organizes the sending and receiving of data. Ports separate network traffic according to the service being performed, and port numbers help computers prioritize and process it.

  17. Maria

    Think of the IP address as the address of an apartment building and the port as the apartment number. The network needs both kinds of information to deliver the right service to the right place. Examples from the course include port 25 for email, port 443 for secure internet communications, and port 20 for large file transfers.

  18. Michael

    The TCP/IP model has four layers. The network access layer handles packet creation and transmission across the network, including the relevant hardware and connections. The internet layer attaches IP addresses and deals with how networks connect, such as whether a packet stays on a LAN or goes to a remote network.

  19. Maria

    The transport layer includes protocols that control traffic flow and connection status, as well as error control to help ensure data flows smoothly. At the application layer, protocols govern how packets interact with receiving devices; examples include file transfers and email services. The layers give security professionals a shared way to describe network activity and locate problems.

  20. Michael

    Let’s make the addressing distinction clearer. An IP address identifies the location of a device on the internet or network. IPv4 addresses are written as four one-, two-, or three-digit numbers separated by periods; IPv6 addresses use 32 characters and were developed to provide many more addresses as internet use grew.

  21. Maria

    IP addresses can also be public or private. A public IP address is assigned by an internet service provider and is the public-facing address used by devices on a network when communicating over the internet. Devices on a local network can also use private IP addresses to communicate with each other, and those private addresses aren’t visible to the rest of the internet.

  22. Michael

    A MAC address is a unique alphanumeric identifier assigned to a physical device on a network. When a switch receives a packet, it can read the destination MAC address, map it to a port, and store that association in a MAC address table. You can think of the table as an address book the switch uses to direct packets.

  23. Maria

    Network protocols are the rules devices use to describe the order and structure of communication. Visiting a website can involve several protocols working together. TCP establishes a connection, and its handshake verifies the two devices before further communication.

  24. Michael

    ARP, the Address Resolution Protocol, helps determine the MAC address of the next device or router along a path. HTTPS provides a secure way for a browser and website server to exchange requests and responses. DNS, the Domain Name System, translates a domain name into the IP address needed to direct packets to the website.

  25. Maria

    So when you enter a recipe website’s name in your browser, DNS helps find its IP address, TCP helps establish the connection, ARP helps identify the next device on the path, and HTTPS supports secure communication with the site. HTTPS uses SSL/TLS encryption to help protect information from being read by malicious actors.

  26. Michael

    Wireless LANs have their own standards too. IEEE 802.11, commonly known as Wi-Fi, is a suite of standards and protocols for wireless communication. The IEEE maintains these standards, and Wi-Fi security has evolved over time.

  27. Maria

    Wi-Fi Protected Access, or WPA, was introduced as a wireless security protocol in 2004. Later versions, including WPA2 and WPA3, brought further security improvements such as more advanced encryption. Security analysts may be responsible for ensuring that an organization’s wireless connections are secure.

  28. Michael

    Firewalls are another core protection. A firewall monitors traffic to and from a network and allows or blocks it according to defined security rules. It can use port filtering to allow or block particular port numbers—for example, allowing ports needed for HTTPS or email while blocking other communication, according to the organization’s security policy.

  29. Maria

    A hardware firewall is a physical device that inspects packets before they enter a network. A software firewall performs similar functions as a program installed on a computer or server. It can cost less and take no extra physical space, but it adds some processing burden to the device where it runs.

  30. Michael

    Organizations can also use cloud-based firewalls, sometimes offered as Firewalls as a Service. They configure rules through a cloud provider’s interface, and the firewall checks incoming traffic before it reaches the organization’s on-site network. Cloud-based firewalls can also protect assets and processes the organization uses in the cloud.

  31. Maria

    Firewalls can be stateless or stateful. A stateless firewall follows predefined rules and does not keep track of or analyze information from packets. A stateful firewall tracks information passing through it and can analyze traffic characteristics and behavior to identify suspicious activity.

  32. Michael

    Because a stateless firewall does not discover suspicious trends in the way a stateful firewall can, it is considered less secure. A Next-Generation Firewall, or NGFW, adds functions beyond stateful inspection, including deep packet inspection and intrusion protection. Some NGFWs connect to cloud-based threat intelligence services so they can update quickly against emerging threats.

  33. Maria

    A Virtual Private Network, or VPN, helps protect privacy when using a public network such as the internet. A VPN changes the public IP address visible to others, hides the user’s virtual location, and encrypts data as it travels. That helps preserve confidentiality if traffic is intercepted.

  34. Michael

    VPNs also use encapsulation: they wrap sensitive data packets inside other packets that routers can read. Encryption protects the sensitive information, while the outer packet allows network devices to route the request to its destination. A VPN also creates an encrypted tunnel between a device and the VPN server.

  35. Maria

    Another way to structure protection is network segmentation. A network is divided into segments, each with its own access permissions and security rules. Security zones use segmentation to control who can access different parts of a network, preserve privacy between groups, and help stop a problem in one segment from spreading to the whole network.

  36. Michael

    A hotel, for example, might keep its unsecured guest Wi-Fi separate from an encrypted network for staff. A university might use separate subnets for faculty and students. If contamination occurs on the student subnet, administrators can isolate it instead of letting the issue spread across the entire network.

  37. Maria

    Organizations distinguish between an uncontrolled zone and a controlled zone. The uncontrolled zone is outside the organization’s control, such as the internet. The controlled zone is a subnet that protects the internal network from that uncontrolled zone.

  38. Michael

    On the outer layer of the controlled environment is the Demilitarized Zone, or DMZ. It contains public-facing services that need internet access, such as web, proxy, DNS, email, and file servers handling external communications. The DMZ acts as a perimeter between the internet and the internal network.

  39. Maria

    The internal network contains private servers and data the organization needs to protect. Within it, a restricted zone can protect highly confidential information that only employees with particular privileges may access. Ideally, firewalls separate the internet from the DMZ, the DMZ from the internal network, and, where needed, the internal network from the restricted zone.

  40. Michael

    Those layers help contain an attack: penetration of the DMZ should not automatically provide access to the internal network, and penetration of the internal network should not automatically expose the restricted zone. Analysts can regulate access with firewall policies that restrict IP addresses and ports—for instance, allowing only HTTPS traffic to reach web servers in the DMZ.

  41. Maria

    Proxy servers add another layer between the internet and the rest of a network. A proxy fulfills a client’s request by forwarding it to other servers. Because it uses a public IP address different from the private network’s address, it helps hide the internal address from people on the internet.

  42. Michael

    A proxy can assess whether a connection request is safe and can block websites users aren’t allowed to visit. It can also store frequently requested data temporarily, reducing the need to contact internal servers every time. Less direct contact with those servers can support security.

  43. Maria

    Different proxy types serve different purposes. A forward proxy approves and forwards a user’s outgoing requests, helping regulate internet access and hide the user’s IP address. A reverse proxy accepts and approves incoming requests from external parties before forwarding them to internal servers, helping protect those servers from exposing their IP addresses.

  44. Michael

    An email proxy can filter spam by checking whether a sender’s address was forged, reducing the risk of phishing messages that impersonate people known to an organization. Proxy servers can apply multiple layers of filtering and scale those filters without affecting the underlying email platform.

  45. Maria

    Now for the threats these protections are meant to address. Network communication creates opportunities for attackers to exploit vulnerable devices or unprotected connections. A successful attack can leak confidential information, damage an organization’s reputation, affect customer retention, and cost time and money.

  46. Michael

    One example from the course is the 2014 attack against Home Depot. Attackers compromised and infected servers with malware, and by the time administrators shut the attack down, credit and debit card information for more than 56 million customers had been taken. It illustrates why protecting networks matters.

  47. Maria

    A denial-of-service attack, or DoS, targets a network or server with so much traffic that it can’t respond normally to legitimate users. The attacker’s goal is to disrupt business operations, potentially causing a crash, lost time, and lost revenue. A crash may also leave an organization more vulnerable to other threats.

  48. Michael

    A distributed denial-of-service attack, or DDoS, uses multiple devices or servers in different locations to flood the target with unwanted traffic. It’s not only the total volume that matters: a carefully crafted packet can also make a router spend extra time processing each request and disrupt its operation even without overwhelming traffic volume.

  49. Maria

    One network-level DoS technique is a SYN flood. In a normal TCP handshake, a device sends a SYN request, the server replies with SYN/ACK, and the device completes the connection with an ACK. An attacker can flood the server with SYN requests, leaving ports open while awaiting the final step; if requests exceed available ports, the server can become overwhelmed.

  50. Michael

    ICMP, the Internet Control Message Protocol, lets devices communicate information about transmission errors. An ICMP flood repeatedly sends ICMP packets to a server, forcing responses until incoming and outgoing bandwidth is used up and the server may crash. The attack abuses a protocol that normally helps devices report network conditions.

  51. Maria

    Another example is the ping of death. It involves sending an oversized ICMP packet—larger than the stated maximum of 64 kilobytes for a correctly formed ICMP packet—to a vulnerable system. Processing that packet can overload the system and cause it to crash.

  52. Michael

    Packet sniffing is the practice of capturing and inspecting packets as they move across a network. Analysts can use it to investigate incidents or debug network problems, but malicious actors can use it to look at information not intended for them. Packets may contain IP addresses and valuable information in their bodies, such as personal, financial, or message content.

  53. Maria

    An attacker may place themselves between two authorized devices and inspect the packets passing through. They might use software or hardware to access packets, and may even alter packet contents—for example, changing a recipient’s bank account number. Passive sniffing means reading packets in transit; active sniffing means manipulating them, such as redirecting packets or changing their contents.

  54. Michael

    There are practical defenses against malicious sniffing. VPN encryption makes intercepted traffic difficult to read, while HTTPS uses SSL/TLS to encrypt web communications and help prevent eavesdropping. Avoiding unprotected public Wi-Fi is another precaution, because people on those networks may be able to access unencrypted traffic; if you must use public Wi-Fi, a VPN adds protection.

  55. Maria

    IP spoofing is when an attacker changes a packet’s source IP address to impersonate an authorized system. That can help the attacker communicate with a target or get past firewall rules. Several attacks use spoofing, and they work in different ways.

  56. Michael

    In an on-path attack, a malicious actor places themselves between two devices in an authorized connection, intercepts or alters data, and may use observed IP and MAC addresses to impersonate one of the devices. In a replay attack, the attacker captures a packet and delays it or sends it again later, potentially causing connection problems or impersonating an authorized user.

  57. Maria

    A Smurf attack combines DDoS with IP spoofing. The attacker obtains an authorized user’s IP address and floods it with packets, potentially overwhelming the target computer and bringing down a server or network. Encryption can make intercepted data unreadable, and firewall configuration can help reject spoofed traffic.

  58. Michael

    For example, an organization can configure its firewall to reject incoming traffic whose source IP address is the same as the organization’s private network. Those addresses should belong to devices already on the local network, so seeing them as the source of outside traffic is suspicious. Correct firewall rules help prevent an attacker from using a forged address to appear local.

  59. Maria

    That leads to security hardening: the process of strengthening a system to reduce its vulnerabilities and attack surface. The attack surface is all the potential weaknesses a threat actor could exploit. Like locking doors and windows in a house, hardening aims to reduce the ways an attacker could get in.

  60. Michael

    Hardening can apply to hardware, operating systems, applications, networks, databases, and cloud infrastructure. It can also include physical security, such as cameras and security guards. Common measures include software patches, configuration changes, disabling unused applications and services, disabling unused ports, and reducing access permissions.

  61. Maria

    Those measures improve security and make monitoring more efficient by reducing the number of devices, applications, ports, and permissions that need attention. Configuration changes can include requiring longer passwords or more frequent password changes, and updating encryption standards for stored data. Regular penetration testing is another important measure.

  62. Michael

    A penetration test, or pen test, is a simulated attack used to find vulnerabilities in a system, network, website, application, or process. Testers document their findings, and security teams use the report to identify weaknesses and plan how to fix them. It gives an organization a way to look for problems before an attacker exploits them.

  63. Maria

    Operating system hardening matters because the OS connects computer hardware with the user and acts as an intermediary for applications. A vulnerable OS can put an entire network at risk. Regular OS hardening includes installing patches, performing backups, and keeping an up-to-date list of devices and authorized users.

  64. Michael

    A patch update addresses security vulnerabilities in software or an operating system. It’s important to apply vendor patches promptly, because once a vulnerability is publicly fixed, attackers can know where to look in systems that remain out of date. After an update, the system’s baseline configuration should also be updated.

  65. Maria

    A baseline configuration, sometimes called a baseline image, is a documented set of system specifications used as a reference for future builds, releases, and updates. It might include a firewall rule listing allowed and disallowed ports. If unusual activity occurs, a team can compare the current setup with the baseline to see whether anything has changed.

  66. Michael

    OS hardening also includes properly wiping and disposing of old hardware and removing unused software. Unused programs can introduce unnecessary vulnerabilities, including vulnerabilities associated with the software they use. Strong password policies set rules for passwords and may lock a user out after too many incorrect attempts.

  67. Maria

    Some systems also require multi-factor authentication, or MFA. It asks a user to verify their identity in two or more ways, such as something they know—a password; something they have—an ID card; or something unique to them, like a fingerprint. Together, these practices help secure accounts and devices.

  68. Michael

    Network hardening focuses on network-related protections such as port filtering, network access privileges, and encryption. Regular tasks include maintaining firewall rules, analyzing network logs, applying patches, and backing up servers. Log analysis helps teams identify events of interest in the records of system activity.

  69. Maria

    A Security Information and Event Management tool, or SIEM, collects and analyzes log data to monitor important activities. It gathers security information from across the network and presents it on a central dashboard, sometimes called a single pane of glass. Analysts can use it to inspect, prioritize, and respond to security events.

  70. Michael

    SIEM reports can list new or ongoing vulnerabilities by priority, with high-priority issues requiring faster mitigation. Network hardening also includes configuring firewalls so only ports required for normal operations are allowed. Unused ports should be disallowed to reduce exposure to port vulnerabilities.

  71. Maria

    Organizations should use current wireless protocols and disable older ones. Segmentation can create separate subnets for departments, such as marketing and finance, so problems in one subnet are less likely to spread and users only access the network areas required for their roles. Restricted zones containing highly confidential information should be separated from the rest of the network.

  72. Michael

    Network communications should also be encrypted using current standards. Encryption standards define methods for concealing outgoing data and decrypting incoming data. Information in restricted zones should have stronger encryption requirements, making it more difficult to access.

  73. Maria

    Cloud networks need hardening too. Cloud servers can host company data and applications and provide storage, processing power, and analytics, but using a provider doesn’t eliminate the risk of intrusions. Both internal and external malicious actors can threaten cloud environments.

  74. Michael

    One cloud hardening practice is using a baseline image for server instances and comparing cloud data with that baseline to identify unverified changes. Data and applications can also be separated by service category—for example, keeping older applications separate from newer ones, and internal-function software separate from user-facing applications.

  75. Maria

    Cloud security involves shared responsibility: providers and organizations both have roles, but the organization still needs to take steps to secure its cloud network. The broader lesson is that hardening applies across on-premise systems and cloud services, not just to a single device.

  76. Michael

    Let’s pull the ideas together. A security analyst needs to understand network structure, devices, addressing, protocols, and how data travels. That foundation makes it possible to identify vulnerabilities and use protections such as firewalls, VPNs, segmentation, security zones, and proxies.

  77. Maria

    And analysts need to recognize attacks such as DoS and DDoS, SYN and ICMP floods, ping of death, packet sniffing, and IP spoofing—including on-path, replay, and Smurf attacks. Hardening then reduces the attack surface through patches, secure configurations, access controls, monitoring, backups, and encryption. These practices help protect network operations and the information organizations depend on.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent