首页 > 其他分享 >48730-32548, Cyber Security

48730-32548, Cyber Security

时间:2024-09-11 13:13:28浏览次数:1  
标签:32548 IP VM lab attack 48730 command Security Netwag

48730-32548, Cyber Security Week-5

The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse University

Understanding TCP/IP based Attacks

Lab Overview

The learning objective of this lab is to gain first-hand experience on TCP/IP vulnerabilities, as well asattacks against these vulnerabilities. The vulnerabilities in the TCP/IP protocols represent a special genreof vulnerabilities in protocol designs and implementations. They provide an invaluable lesson as to whysecurity should be designed in from the beginning, rather than being added as an afterthought. Moreover,studying these vulnerabilities help students understand the challenges of cyber security and why manycyber security measures are needed. Vulnerabilities of the TCP/IP protocols occur at several layers. Thislab is designed to learn them step-by-step.

Lab Environment Setup

To conduct this lab, we require all the three virtual machines: Server, Client and Attacker. The tools beingused for this lab are Wireshark/Tshark, Netwox/Netwag.

Netwox/Netwag

We need tools to send out network packets of different types and with different contents. We can useNetwag to do that. However, the GUI interface of Netwag makes it difficult for us to automate our process.Therefore, we strongly suggest that you use its command-line version, the Netwox command, which isthe underlying command invoked by Netwag.Netwox consists of a suite of tools, each having a specific number. You can run the command as followingthe parameters depend on which tool you are using). For some of the tools, you have to run it with theroot privilege:

netwox <number> [parameters ...]

If you are not sure how to set the parameters, you can look at the manual by issuing "netwox <number> --

help". You can also learn the parameter settings by running Netwag for each command you execute from thegraphic interface, Netwag actually invokes a corresponding Netwox command, and it displays the parametersettings. Therefore, you can simply copy and paste the displayed command.

Wireshark Tool.

You also need a good network-traffic sniffer tool for this lab. Although Netwox comes with a sniffer, you

will find that another tool called Wireshark is a much better sniffer toolBoth Netwox and Wireshark can be downloaded. If you are using our pre-built virtual machine, both toolsare already installed. To sniff all the network traffic, both tools need to be run with root privilege.

Tshark Tool.

It is a terminal based network packet analyzer. You also need a good command line network-traffic sniffer

tool for this lab. 48730-32548, Cyber Security Week-5

The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse University

2

Lab Tasks

In this lab, you need to conduct attacks on the TCP/IP protocols. You can use the Netwox or Netwag,

Wireshark, Tshark tools in the attacks. All the attacks are performed on Linux operating systems. Howeveryou can also conduct the same attack on the other operating system and compare the observations afterlab classes. You are supposed to use all the three Virtual Machines for the experiments.To simplify the “guess” of TCP sequence numbers and source port numbers, we assume that attacks areon the same physical network as the victims (Think of where such attacks may happen?). Therefore, youcan use sniffer tools to get that information. The following is the list of attacks that need to bemplemented and studied in this lab.Before starting the task, disconnect the internet from the Server VM.Task 1: SYN Flooding Attack

YN flood is a form of DoS attack in which attackers send many SYN requests to a victim’s TCP port, butthe attackers have no intention to finish the 3-way handshake procedure. Attackers either use spoofed IPaddress or do not continue the procedure. Through this attack, attackers can flood the victim’s queue that

s used for half-opened connections, i.e. the connections that has finished SYN, SYN-ACK, but has not yetgot a final ACK back. When this queue is full, thevictimcannot take any more connection. Following figureillustrates the attack. 48730-32548, Cyber Security Week-5 The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse University3The size of the queue has a system-wide setting. In Linux, you can check the system queue size settingusing the following command:

sysctl -q net.ipv4.tcp_max_syn_backlog

You can use command netstat -na to check the usage of the queue, i.e., the number of half openedconnection associated with a listening port.

For this task, Netwag Tool 76 will be used to conduct the attack, and tshark tool to capture the packets.

Steps:

  1. As SYN flood produces a lot of traffic in the VM due to high speed, Wireshark might

crash. It is recommended to use “tshark” by entering “sudo tshark” on Terminal of the

Client VM.

  1. Then go to Attacker VM and start Netwag by entering “sudo netwag” on the Terminal.
  2. Select 76: Synflood.
  3. Enter the details and click run it. (Screenshot required)
  4. Observe the captured packets on Client VM. (Screenshot required)

Questions:

  1. Observe the attack and take screenshots of the attack scenario.
  2. Comment on your observation.
  3. Categorize this attack in terms of severity and how it is linked to the DoS attack48730-32548, Cyber Security Week-5

The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse University

Task 2: ARP cache poisoning

The ARP cache is an important part of the ARP protocol. Once a mapping between a MAC address and anIP address is resolved as the result of executing the ARP protocol, the mapping will be cached. 代 写48730-32548, Cyber Security Thereforethere is no need to repeat the ARP protocol if the mapping is already in the cache. However, because theARP protocol is stateless, the cache can be easily poisoned by maliciously crafted ARP messages. Such anattack is called the ARP cache poisoning attack.

Normal Scenario:

Attackers may use spoofed ARP messages to trick the victim to accept an invalid MAC-to IP mapping, andstore the mapping in its cache. There can be various types of consequences depending on the motives ofthe attackers. For example, attackers can launch a DoS attack against a victim by associating a non-existentMAC address to the IP address of the victim’s default gateway; attackers can also redirect the traffic toand from the victim to another machine, etc.

Attack Scenario: 48730-32548, Cyber Security Week-5

The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse UniversityFor this task, Netwag Tool 80 is required to conduct the attack, and wireshark tool to capture the packets.

HINTS: In this task, you need to demonstrate how the ARP cache poisoning attack work. In Linux we canuse the command arp -a to check the current mapping between IP address and MAC address.

Steps:

  1. In Server VM, run “arp -a” on terminal to get the ARP Information (MAC Table).

(Screenshot Required)

  1. Open Netwag on Attacker VM by entering “sudo netwag” on the Terminal.
  2. Select Tool 80: Periodically Send ARP Replies.
  3. Add the fake MAC address and IP address and select the interface. (Screenshot

Required)

  1. Click “Run It”.
  2. Check the MAC Table on Server VM and look for the change in MAC address for IP

address provided in the Netwag tool 80. (Screenshot required)

Questions:

  1. Observe the attack and take screenshots of the attack scenario.
  2. Comment on your observation.
  3. Briefly describe how you can mitigate this attack.

Task 3: ICMP Redirect Attack

The ICMP redirect message is used by routers to provide the up-to-date routing information to hosts,which initially have minimal routing information. When a host receives an ICMP redirect message, it willmodify its routing table according to the message.Because of the lack of validation, if attackers want the victim to set its routing information in a particulaway, they can send spoofed ICMP redirect messages to the victim and trick the victim to modify its routingtable.

For this task, Netwag Tool 86 is required to conduct the attack, and wireshark tool to capture the packets.HINTS: In this task, you should demonstrate how the ICMP redirect attack works, and describe theobserved consequence. To check the routing information in Linux, you can use the command route

Steps:

  1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal.
  2. Select the interface and set “icmp” as filter and click “Apply”.
  3. Open a new terminal on Client VM and ping the server. (Screenshot required)
  4. Go to Attacker VM, run Netwag using the terminal.
  5. Select the interface and “spoofip: IP spoof initialization type”. Input the required IPaddress into “gw: new gateway” and “src-ip: source IP address”. (Screenshot Required)
  1. Click “Run It”.
  2. Go back to Client VM, check the Wireshark output. (Screenshot Required)48730-32548, Cyber Security Week-5The lab is based on documents “SEED Labs” provided by Wenliang Du, Syracuse University6

Questions:

  1. Observe the attack and take screenshots of the attack scenario.
  2. Comment on your observation.
  3. Briefly describe how you can mitigate this attack.

标签:32548,IP,VM,lab,attack,48730,command,Security,Netwag
From: https://www.cnblogs.com/qq--99515681/p/18407775

相关文章

  • Spring Security 4大核心架构图与21种安全验证策略场景分析
    一、SpringSecurity架构设计图二、SpringSecurity架构流程设计图三、SpringSecurity4大架构模块图四、21种安全验证策略原创Solomon肖哥弹架构SpringSecurity是一个功能强大且高度可定制的Java安全框架,用于保护基于Spring的应用程序。它提供全面的安全......
  • springboot 常用的验证框架分析 -shiro/springsecurity
    一 常用的认证鉴权框架关于认证和鉴权的框架,在springboot中使用比较多的比如shiro,springsecurity,soToken这些。从设计上,这些框架的底层逻辑其实大同小异。整体上来说:对于保护性的安全资源,用户需要先通过认证,才能获取授权访问,所以通过理解,很容易思考到,所有的权限管理框架。......
  • 深入探索Spring Security:保护你的应用免受威胁
    目录1.引言2.什么是SpringSecurity?3.核心概念认证(Authentication)授权(Authorization)过滤器链(FilterChain)异常处理4.核心组件SecurityContextHolderUserDetailsServiceAuthenticationManagerAccessDecisionManager5.配置SpringSecurity6.最佳实践7.结论1.引......
  • Java中的服务端点认证与授权:JWT与Spring Security OAuth2
    Java中的服务端点认证与授权:JWT与SpringSecurityOAuth2大家好,我是微赚淘客返利系统3.0的小编,是个冬天不穿秋裤,天冷也要风度的程序猿!今天我们将深入探讨如何在Java应用中实现服务端点的认证与授权,重点关注JWT(JSONWebToken)和SpringSecurityOAuth2。我们将通过实际代码示例展......
  • Java中的服务端点保护:Spring Security与OAuth2
    Java中的服务端点保护:SpringSecurity与OAuth2大家好,我是微赚淘客返利系统3.0的小编,是个冬天不穿秋裤,天冷也要风度的程序猿!今天,我们将深入探讨如何在Java应用中保护服务端点,重点介绍SpringSecurity与OAuth2这两种强大的安全机制。我们将通过实际代码示例演示如何使用这些工具来......
  • Java中的服务端点安全性:Spring Security的高级特性
    Java中的服务端点安全性:SpringSecurity的高级特性大家好,我是微赚淘客返利系统3.0的小编,是个冬天不穿秋裤,天冷也要风度的程序猿!今天,我们将深入探讨SpringSecurity的高级特性,以增强Java应用的服务端点安全性。本文将展示如何利用SpringSecurity的强大功能来保护服务端点,涵盖配置......
  • 安全:modsecurity配置
    一,日志在哪里查看?#--Auditlogconfiguration-------------------------------------------------#Logthetransactionsthataremarkedbyarule,aswellasthosethat#triggeraservererror(determinedbya5xxor4xx,excluding404,#levelresponsesta......
  • 安全:nginx安装modsecurity
    一,modsecurity官网:   官网:https://modsecurity.org/如图:   官方代码站:https://github.com/owasp-modsecurity/ModSecurity二,安装环境准备:1,安装依赖库:[root@localhostsource]#yuminstall-ygccmakepcre-devellibxml2libxml2-develcurl-develht......
  • 每天认识几个maven依赖(acegisecurity+activation+activecluster+activeIO)
    四、acegisecurity1、是什么?acegisecurity是早期版本的SpringSecurity框架的名称。SpringSecurity是一个功能强大的认证和授权框架,用于保护Java应用程序的安全性。acegisecurity这个名称来源于它的前身项目AcegiSecurity。2、有什么用?认证:验证用户的身份,确保......
  • QNAP Security Center:守护你的数据安全!
    大家好,这次不推荐第三方docker应用的部署,而是介绍一下qnap官方的应用SecurityCenter安全中心是一款适用于QNAP设备的集中式安全管理套件。安全中心集成了设备安全检查、自动调整建议设置等功能,以及QNAP强大防病毒和防恶意软件工具的统一界面。下面讲讲这个软件的功能介......