文档库 最新最全的文档下载
当前位置:文档库 › 用snort检测nmap和Metasploit入侵技术

用snort检测nmap和Metasploit入侵技术

用snort检测nmap和Metasploit入侵技术
用snort检测nmap和Metasploit入侵技术

Snort IDS Ability to Detect Nmap and Metasploit

Framework Evasion Techniques

Z. Jammes and M. Papadaki

Centre for Security, Communications and Network Research

Plymouth University, United Kingdom

e-mail: info@https://www.wendangku.net/doc/aa8734929.html,

Abstract

Detecting exploit and port scan disguised by evasion technique is a challenge for IDS. This research examines the evasion technique provided by Nmap, a port scanner and Metasploit Framework, an exploit launcher against a famous IDS named Snort. The result tends to prove that Snort has the ability to detect port scan and exploit on condition to have a good configuration of Snort and signature for the exploit.

Keywords

IDS, Snort, Nmap, Metasploit Framework, evasion techniques, resilience

1Introduction

Nowadays, information systems are increasingly open Internet. This opening is beneficial but is poses nevertheless a major problem: it brings a number of new attacks and requirement. The first effect is the implementation of a security policy around these systems. In addition to the implementation of firewalls and authentication systems are also necessary. To complete this security policy, it is also important to have monitoring tools to detect possible intrusions in the system. The solution is intrusion detection system but like each software, the IDS have also some weakness named: evasion techniques. Hopefully, over the time, the IDS are improved bringing new functionalities but therefore, they are become powerful but also difficult to configure. Today, the slightest error in configuration can then let go of thousands of intrusion without being alerted.

2Evasion techniques

The evasion techniques were firstly introduced by Ptacek and Newham (1998). They explained that they described three evasions which are the foundations: the insertion, the evasion and the denial of service.

The insertion attack is an attack where IDS does not detect anything although on the target system, the attack does occur and the target system ignored the packets. The evasion attack is an attack where the target system accepts the packets although the IDS refused the packets. The aim of these evasion techniques are the packet content in the traffic was differently interpreted between the IDS and the end system; this 104

being due to the different system implementation. Finally, the denial of service attack is an attack is an attack with the aim of makes unavailable the IDS. This known evasions techniques target specific layers of the TCP/IP protocol stack and use their weakness (for instance fragmentation). Nowadays, these techniques have also spread to other different protocol as SMB, DCERPC and HTTP.

In 2010, Stonesoft (Boltz, Jalava, & Walsh, 2010) shared findings on a new evasion threat. Indeed, they discover this year new techniques to evade IDS named Advanced Evasions Techniques (AET). The AETs target multiple layers of the protocol TCP/IP stack and combine multiple evasion methods. Furthermore, they can be changed or modified during the exploit. The problem is that they do not conform to the rules used by IDS today.

Nowadays, many tools used to test the security implements different technical evasion. For instance, Nmap (2012) is designed to detect open ports, identify hosted services and information about the operating system of a remote computer but provided some evasion techniques. Metasploit Framework (Maynor , 2007) is a tool that allows launching different exploit against a remote host while also providing different evasion techniques. An exploit is a computer program to “exploit” a security flaw or vulnerabilities.

Snort (2012) is a signature-based IDS e.g. it uses signatures of known attack to detect the attack in the network traffic.It is very dependent signatures and therefore required to be updated regularly. Snort is also considered like anomaly-based IDS. It is able to detect some anomalies in the different protocol.

Snort is therefore based on the preprocessors to normalize traffic and detecting anomalies and on the rules to detect in this study exploits. preprocessors and rules will be put to the test.

3Snort configuration against Nmap’s evasion techniques

The experiences made with Nmap can be easily redo because it does not necessary have specific equipment. The only requirement is to have 2 computer or virtual machine. The most important is to have one host which launches the scan and another which is scanned. It could be useful to prefer to target a Linux distribution rather than a windows system.

Nmap offers different scan techniques based on the TCP and UDP protocol. The sfPortscan is the preprocessor that is able to detect different port scan in function of its configuration. Most of the evasions are based on changes to the UDP, TCP and IP protocol. For this part, the experience uses different scans provide by Nmap.

The most efficient evasion technique provided by Nmap to evade this module is the fragmentation. Usually, fragmentation occurs when datagrams are larger than the allowable size, this limitation is called MTU (Maximum Transmission Unit). Each fragmented packet has an IP header for linking fragments together during the reconstruction.

105

Type of scan With Frag3 Without Frag3 Syn scan/regular scan OK NO

Fin scan NO NO

Null scan NO NO

Maimon scan NO NO

Xmas scan NO NO

Connect scan OK NO

Ack scan NO NO IP protocol scan NO NO

Intensive scan OK NO Intensive scan plus UDP OK NO

Intensive scan all tcp OK NO

Slow comprehensive scan OK NO

Table 1 - Port scan detection with fragmentation

In this case, despite that the sfPortscan is enabled, Snort is unable to detect any port scan. Snort needs the frag3 preprocessor which performs the defragmentation of IP packets in order to prevent attack packets intentionally fragmented can escape detection. Snort is not able to detect some scans provided by Nmap. Indeed, the Fin, Null, Xmas, Maimon scan are not detected because this type of traffic does not exist normally on a network. In this case, it is important to add some rules to Snort such as:

alert tcp any any -> $HOME_NET any (msg:"FIN Scan"; flags: F; seq:1;)

alert tcp any any -> $HOME_NET any (msg:"NULL Scan"; flags: 0;)

The stream5 preprocessor is also an important piece to detect Nmap scan technique detection. It reconstructs TCP flows and it is also capable of reconstructing the UDP sessions. It allows rules to be executed on the data stream. Without it, once again, Snort cannot detect port scan.

SYN Scan Detected

T5 OK

T4 OK

T3OK

T2 OK

T1 OK

T0 NO

Table 2 - SYN scan detection with different timing

Another evasion technique, it is the possibility to choose the timing between sending two probes. Nmap provide different default template. The template names are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5). The first two are for IDS evasion. The paranoid mode waits 5 minutes between sending

106

each probe where the sneaky mode waits 15secondes. Without any difficulty, snort was able to detect the sneaky, polite, normal, aggressive and insane mode but it is not able for the paranoid mode. The problem is that sfPortscan analyse the packet on a windows of 60 second when the low sense level is selected. The best chance is to use the High level because it continuously track active host but it requires adjustments. Nmap gives the possibility to change the TTL value in the different packet created. One thing to notice is if the TTL is set to 0, Snort is not able to detect any scan because it ignores each packet that has a TTL of 0. This evasion can be difficult to put in place in a real network because with a TTL of 0, it is impossible that a scan reaches their target, the different will be dropped before it happens. The only possible is to scan a computer in the same network so the attacker is inside the company or via a disgruntled employee.

Stream5, Frag3 and sFportscan are complementary and the best way to detect port scan with or without evasion techniques. After their effectiveness in detecting scans depend on their configuration.

4Snort configuration against Metasploit’s evasion techniques

In this part, it is important to configure this option like this: config checksum mode: none. Otherwise, the entire exploits tested are not detected because Snort seems to assume that the traffic with the bad checksum has no effect on the target. For Metasploit Framework, the majority of the experiences needs different version of windows, old software version, and some specific software configuration. It is really difficult or impossible to retrieve older versions of software that some exploits target (Luckily it is impossible to find, in this way the average user is protected). Hopefully, the majority of exploits that target the browser (Internet Explorer) or some versions of OS are easily to recreate.

The evasion techniques used by the Metasploit Framework are evasions that are focus on HTTP, DCERPC, SMB, TCP protocol and HTML. In this part, Snort relies more on the rules than the preprocessor. The preprocessor are here to normalizes the traffic and make information that transits understandable and decipherable to ensure and increase the chances of detection.

Snort has static signatures so the different evasion techniques try to transform the exploit for that it stay understandable for the target but not for Snort e.g. the exploit does not match the signature of the rule.

107

Evasion Netapi Exploit

detection Wkssvc Exploit detection

Without evasion OK OK

DCERPC::max_frag_size OK OK

SMB::pipe_evasion OK OK

SMB::pad_file_level OK OK

SMB::pad_data_level OK OK

TCP::max_send_size OK OK

TCP::send_delay OK OK

Table 3 - Exploit DCERPC/SMB detection

OK: Snort detects the exploit

NO: Snort does not detect the exploit

A first part of the evasion techniques take the advantage on some specificity of DCERPC, SM

B and TCP protocols.

On the DCERPC protocol, it is possible to force the fragmentation of packet. In this condition, Snort is unable to understand the DCERPC protocol. Hopefully, the DCERPC2 preprocessor is able to defragment.

On the TCP protocol, it is possible to limit the size of the TCP segment. In this case, the packet are segmented and to be able to still see the exploit, Snort needs to have the stream 5 preprocessor activated.

A second part of the evasion techniques take the advantage on some specificity of HTTP protocols. This evasion allows changing some value in the HTTP header and encoding the HTTP body.

On the HTTP protocol, it is possible to compress the HTTP page to gain in bandwidth. The problem is that the IDS will not be able to detect the signature include in the HTTP body compressed. It is important to activate the inspect_gzip option. This options specifies the HTTP inspect module to “uncompress” the compressed data (in gzip/deflate) in HTTP response. With this option, Snort is able to still detect the exploit.

Metasploit framework is able to encode the HTTP body with different language such as base64,Unicode and JavaScript, Snort is not able to detect the exploit anymore because the rule does not recognize this type of encoding but Snort provides an alert if it detects the use of Base64 and JavaScript in the payload: “POLICY-OTHER base64-encoded uri data object found” and “Obfuscation JavaScript”. Normally, Snort is able to normalise the Unicode like the JavaScript but it could be difficult for Snort to refund the original code.

108

Evasion IE Exploit detection Mozilla Exploit

detection Without evasion OK OK

HTML ::base64 NO Rejected HTML::JavaScript::escape NO Rejected HTTP::chunked NO NO HTTP::compression OK Gzip:OK Deflate:

Rejected HTTP:junk_header OK OK HTTP::server_name OK OK

SSL implementation NO NO

Table 4 - Exploit HTTP header and body detection

OK: Snort detects the exploit

NO: Snort does not detect the exploit

Rejected: the result obtained by the evasion technique is not sufficient

One of the weak points of Snort is its inability to detect an exploit in a traffic encrypted.

A third part the evasion techniques is more focus on the modification of URI, these evasions incorporate some evasion available with Nikto. Snort is able to send some alerts based on the anomalies found in the URI.

The problem is that Metasploit Framework according to the exploit offers different evasion options but it is important to highlights that in some case, when an evasion option is activated, it seems that the evasion option is not implemented and so did not make the modifications expected in the main packet of the exploit. Sometimes, the modifications worked but the exploit did not work anymore. The modification made prevents the exploit to work correctly due to changes too important. Certainly, it is possible that the exploit or the vulnerable software is not suitable for certain evasions but Metasploit Framework could at least warn users instead of proposing default evasion.

5Conclusion and future work

Snort has the ability to detect most of the port scan made by Nmap and the exploit launched by the Metasploit Framework. For Nmap, Snort relies heavily on these preprocessors (Frag3, Stream5 and sfPortscan).

It is important to note with the default configuration provided on the official website of Snort that by default the sfPortscan is not activated. In this case, Snort is unable to generate an alert about port scan activities. An inexperienced user may believe to be protected but, in this case, Snort will not be able to generate alerts concerning scans Otherwise, the configuration provided for Stream5 and frag3 is sufficient to protect

109

and detect port scan with or without evasion technique. However, it is always important to check the traffic and not only rely on Snort.

For Metasploit, Snort relies more on the rules than the pre-processor. The pre-processor (DCERPC2 and HTTP inspect with the support of Stream5) are here to normalizes the traffic and make information that transits understandable and decipherable for the detection engine to ensure and increase the chances of detection for the rules. Each preprocessor has its purpose but it is important to see all the preprocessor as a whole because each preprocessor depends on the other.

By default, the default configuration of the DCERPC2 preprocessor is sufficient it is especially useful for its ability to defragment DCE/RPC. On the other side, the http inspect pre-processor may need some changes. Indeed, some useful options need to be activated such as multi_slash, iis_unicode, apache_whitespace and so on. It really depends on the structure and the type of the server that use the company (IIS, Apache). The administrator may needs to make some choices to adapt the alert that he wants.

The real weak point is that Snort is unable to detect exploit in an encrypted communication and when the code of exploit are encoded by others language, there is still a risk.

The simple way to avoid to be targeted by an exploit from Metasploit, it is to patch the different software on a network regularly or otherwise create a rule the time that the patch comes.

Snort can be considered as one the best solution to protect a SME because its first advantage is that it is free. Large companies will promote solution-based IPS and SIEM but Snort offers a great flexibility and unparalleled scalability through rules. The only inconvenient is that it requires knowledge and basic configuration requires some modification to be really efficient.

For the future, it could be interesting to remake these experiences but in a testing environment where the hardware is limited and the traffic includes not only the traffic of attacks but also some other traffic such as streaming. Snort will be still able to detect the port scan and the exploit. It could be also interesting to test these evasion techniques against other IDS.

6References

Boltz, M., Jalava, M., & Walsh, J. (2010). "New Methods and Combinatorics for Bypassing Intrusion Prevention Technologies": Stonesoft. available online: https://www.wendangku.net/doc/aa8734929.html,/ 1912/77027/content_CTA_Technical1_AET.pdf (accessed on 15/01/12)

Maynor, D. (2007). “Metasploit toolkit for penetration testing, exploit development, and vulnerability research”:Syngress. ISBN-10: 1597490741

Nmap, (2012), “Description of Nmap” Available online: https://www.wendangku.net/doc/aa8734929.html,/docs.html (accessed on 17/05/2012)

110

Ptacek, T. H. (1998). “Insertion, evasion, and denial of service: Eluding network intrusion detection”: DTIC Document. Available online: https://www.wendangku.net/doc/aa8734929.html,/cgi-bin/ GetTRDoc?Location=U2&doc=GetTRDoc.pdf&AD=ADA391565 (accessed on 15/01/12)

Roesch, M., Green, C., Sourcefire Inc, (2011), “SNORT Users Manual 2.9.2”, available online: https://www.wendangku.net/doc/aa8734929.html,/assets/166/snort_manual.pdf (accessed on 17/05/2012)

Snort (2012) "Description of Snort", available online: https://www.wendangku.net/doc/aa8734929.html,/snort

111

计算机网络安全的入侵检测技术研究

计算机网络安全的入侵检测技术研究 计算机网络在给人类工作、生活、娱乐等带来极大便 利的同时,其中存在的安全问题也越来越突出。入侵检测技术作为一种重要的网络安全防护技术,受到了网络安全人员的青睐。本文对入侵检测技术的相关理论进行了介绍,对当前入侵检测技术存在的问题进行了详细的分析和讨论,并对入侵检测技术未来的发展趋势进行了展望。 关键词】计算机网络网络安全入侵检测 1 引言当前,计算机网络已经得到了广泛应用,人们工 作、学 习、生活、社交、娱乐等等各个方面几乎都离不开网络,然而,计算机网络中存在的安全问题也给人们造成了极大困扰,已经成为无法回避且亟待解决的重要问题,如果不能及时采取相应的防御或解决措施,将严重制约社会的发展和信息化进程。入侵检测技术作为一种解决网络安全问题的十分有效的技术之一,得到了网络安全人员的青睐。入侵检测技术能够有效检测来自网络内部和外部网络入侵,对网络提供实时保护。 2 入侵检测技术相关理?概述入侵检测技术能够及时检测 出当前系统中出现的异常 现象,该技术在系统中的关键节点收集信息,并通过对这些信息的分析,从中检测出系统当前是否遭到恶意侵袭或是否存在违反安全策略的行为出现。 入侵检测技术通常包括信息收集、信息分析和问题处理 等 3 个主要步骤。在信息分析部分,将收集到的信息传送给驻留在传感器中的检测引擎,利用统计分析、模式匹配等技术进行实时检测,利用完整性分析等技术进行事后检测分析,当出现误用模式时,将告警信息发送给控制台;在问题处理部分,

当控制台收到来自系统的告警信息时,根据事先定义的响应策略,采取终止进程、切断连接等措施。 在计算机网络安全应用中使用到的入侵检测技术主要 包括基于主机和基于网络的两种入侵检测系统。其中,基于主机的入侵检测系统的重点检测对象是计算机,通过预先对主机进行相应的设置,根据计算机的运行状态和相关参数来判断该主机是否收到非法入侵,基于主机的入侵检测系统能够对当前的攻击是否成功进行判断,为主机采取相应的措施提供可靠依据,基于入侵网络的入侵检测系统通常通过设置多个安全点。 3 存在问题和发展趋势 3.1 存在问题 3.1.1 入侵检测技术 相对落后随着计算机技术的不断发张,尽管入侵检测技术 在不断

入侵检测技术入侵检测技术介绍--目标探测.

入侵检测技术:入侵检测技术介绍——目标探测 疯狂代码 https://www.wendangku.net/doc/aa8734929.html,/ ?:http:/https://www.wendangku.net/doc/aa8734929.html,/Security/Article26113.html 大多数的端口扫描就是让我们能够达到这样的目的: 1、让我们能够大致判断目标是什么操作系统 2、目标到底在运行些什么服务 当然,要得到这些东西还是最后为了让我们能够知道哪些可能拿来利用,可能存在的漏洞。很多工具提供的扫描也可能就直接得到什么操作系统了,或者相对应的端口使用的是什么程序,程序是什么版本的等等。不过 ,这些都是由那些工具自己做了,不讨论这个,我们应该去想想这些工具到底是怎么去实现的。 正如Fyodor(nmap的作者)在他的《Remote OS detection via TCP/IP Stack FingerPrinting》中讲解的进行主机识别的两个作用,第一,很多系统漏洞是同OS密切相关的,还有就是社会学(social engineering)问题,你能够在非常了解对方的系统之后,冒充软件提供商给目标发送“补丁”。 按照我们上面提到的高级扫描方式,直接进行的端口扫描,能够赋予我们绕过防火墙的能力,而且可以尽可能地隐藏自己等等,但是,我们能够得到的信息也是有限的,也许对是否开放一个端口并不是那么直接地感兴趣,比如一个21端口,我们真正感兴趣的是这个端口被用来作什么了,运行地什么版本的程序,也就是,我们对下面得到地这个东西更感兴趣(关系到IP的地方,我都用X代替了): C:\>ftp XXX.XXX.XXX.XXX Connected to XXX.XXX.XXX.XXX. 220 XXXXX X2 WS_FTP Server 1.0.5 (1327846197) User (XXX.XXX.XXX.XXX:(none)): 其实,这就是一种最简单和最直接的判别方式。我们可以对每个打开的端口进行相应的连接,通常这些服务程序就会非常高兴地显示自己的“banner”,也就让我们能够直接得到他是什么版本了。甚至,我们能够得到更好的东西: C:\>telnet XXX.XXX.XXX.XXX Red Hat Linux release 7.1 (Seawolf) Kernel 2.4.2-2 on an i686 login: 这让我们对操作系统版本一览无余了。正象这些只对80端口感兴趣的“黑客”一样,通过对80端口的连接,我们也能得到足够多的信息。

入侵检测技术的现状及未来

入侵检测技术的现状及未来 【摘要】入侵检测能有效弥补传统防御技术的缺陷,近年来入侵检测系统已经成为网络安全的系统中的重要组成部分。本文在对当前主流入侵检测技术及系统进行详细研究分析的基础上,指出了入侵检测系统面临的问题和挑战。最后对入侵检测系统的未来发展方向进行了讨论,展望了应用人工智能技术的入侵检测系统、基于Android平台的入侵检测系统、基于云模型和支持向量机的特征选择方法等新方向。 【关键词】网络安全;入侵检测;异常检测;智能技术 0.引言 目前,在网络安全日趋严峻的情况下,解决网络安全问题所采用的防火墙、身份认证、数据加密、虚拟子网等一般被动防御方法已经不能完全抵御入侵。此时,研究开发能够及时准确对入侵进行检测并能做出响应的网络安全防范技术,即入侵检测技术(ID,Intrusion Detection),成为一个有效的解决途径。入侵检测作为一种积极主动地安全防护技术,已经成为网络安全领域中最主要的研究方向。 1.入侵检测概述 1.1入侵检测的基本概念 入侵检测(Intrusion Detection),即是对入侵行为的检测。入侵是指潜在的、有预谋的、未被授权的用户试图“接入信息、操纵信息、致使系统不可靠或不可用”的企图或可能性。它通过从计算机网络或计算机系统的关键点收集信息,并对收集到的信息进行分析,从而发现网络或系统中是否有违反安全策略的行为和被攻击的迹象。而入侵检测系统则是入侵检测的软件与硬件的组合。 1.2入侵检测系统的通用模型 1987年Dorothy E Denning[1]提出了入侵检测的模型,首次将入侵检测作为一种计算机安全防御措施提出。该模型包括6个主要的部分:主体(Subjects)、对象(Objects)、审计记录(Audit Record)、活动档案(Active Profile)、异常记录(Anomaly Record )、活动规则(Activity Rules)。 2.入侵检测系统采用的检测技术 从技术上看,入侵可以分为两类:一种是有特征的攻击,它是对已知系统的系统弱点进行常规性的攻击;另一种是异常攻击。与此对应,入侵检测也分为两类:基于特征的(Signature-based即基于滥用的)和基于异常的(Anomaly-based,也称基于行为的)。

Windows平台下基于snort的入侵检测系统安装详解

Windows平台下基于snort的入侵检测系统安装详解 序言:最近公司网络总是不间断出现点问题,也搭建了一些流量监控服务器进行监控和分析;也一直在关注网络安全方面的知识。看到snort IDS是一个开源的软件,突然想学习下。就有了搭建Windows下Snort IDS的想法。一下内容参考网络上的资料。 1.软件准备 Apache,php,mysql,winpcap,snort,acid,adodb,jpgraph等 2.软件安装 window平台:windows xp sp3 (1)apache的安装 一路下一步,具体配置如下图:

安装完成后验证web服务是否运行正常 (2)mysql安装

(3)php安装 解压php压缩包到C盘下并命名为php 复制c:\php\phpini-dist到c:\windows下并重命名为php.ini 复制c:\php\php5ts.dll,c:\php\libmysql.dll 到 c:\windows\system32下复制c:\php\ext\php_gd2.dll到c:\windows\system32下 修改 c:\apache\conf\httpd配置文件 添加LoadModule php5_module c:/php/php5apache2_2.dll AddType application/x-httpd-php .php 重启apache服务 在c:\apache\htdocs\下新建test.php http://x.x.x.x/test.php验证php能否工作

入侵检测技术现状分析与研究

学年论文 题目:入侵检测技术现状分析与研究 学院专业级班 学生姓名学号 指导教师职称 完成日期

入侵检测技术现状分析与研究 【摘要】随着网络的快速发展及普及,网络安全已经成为不可忽视的信息安全.小至个人用户的信息,大至公司企业重要的资料数据,一但在不知不觉中被盗窃,会给自己乃至公司带来利益的损失.入侵检测技在1980年由JamesP.Anderson在给一个保密客户写的一份题为《计算机安全威胁监控与监视》的技术报告中指出,审计记录可以用于识别计算机误用,他给威胁进行了分类,第一次详细阐述了入侵检测的概念 【关键词】IDS、协议、分析、网络安全

目录 第一章绪论 (1) 1.1入侵检测技术的背景 (1) 1.2入侵检测技术的应用与发展现状 (1) 第二章入侵检测技术 (1) 2.1入侵检测系统的分类 (1) 2.1.1基于主机的入侵检测系统 (2) 2.1.2基于网络的入侵检测系统 (2) 2.2入侵检测技术 (3) 2.2.1异常入侵检测技术 (3) 2.2.2误用入侵检测技术 (3) 第三章校园网中的分布式入侵检测分析 (4) 3.1 分布式入侵检测的设计思想 (4) 3.2 校园分布式入侵检测模式的分析 (4) 3.3 采用的入侵检测技术 (5) 第四章入侵检测系统的发展趋势 (7) 第五章总结 (8)

第一章绪论 1.1入侵检测技术的背景 随着计算机网络技术的飞速发展,人们已经离不开了网络的通信.网络渗透到了人们生活的点点滴滴,地球村的建设,让人们走进了高速发展的时代,信息中心的高速传输,网络资源的高度共享,都离不开网络.网络使得信息的获取、传递、处理和利用变得更加有效,网络带给人们学习、工作、娱乐的便利之余,也带给我们一些安全隐患.网络黑客可以轻松的取走你的重要的文件,盗取你的银行存款,破坏你的企业平台,公布你的隐私信函,篡改、干扰和毁坏你的数据库,甚至直接破坏用户的计算机,使你的网络瘫痪或者崩溃.所以,研究各种切实有效的安全技术来保障计算机系统和网络系统的安全,已经成为一个刻不容缓的问题.伴随着网络的发展,各种网络安全技术也随之发展起来. 美国韦式大辞典中对入侵检测的定义为:“硬闯入的行为,或者是在没受到邀请和欢迎的情况下进入一个地方”.当说到入侵检测的时候,我们是指发现了网络上的一台计算机有未经过授权的闯入行为,这个未经过许可的网络入侵或访问,是一种对其他网络设备的安全威胁或伤害.我们通常使用的网络安全技术有:防火墙、杀毒软件、虚拟专用网、数据加密、数字签名和身份认证技术等.这些传统的网络安全技术,对保护网络的安全起到非常重要的作用,然而它们也存在不少缺陷.例如,防火墙技术虽然为网络服务提供了较好的身份认证和访问控制,但是它不能防止来自防火墙内部的攻击,不能防备最新出现的威胁,不能防止绕过防火墙的攻击,入侵者可以利用脆弱性程序或系统漏洞绕过防火墙的访问控制来进行非法攻击.传统的身份认证技术,很难抵抗脆弱性口令,字典攻击,特洛伊木马,网络窥探器以及电磁辐射等攻击手段.虚拟专用网技术只能保证传输过程中的安全,并不能防御诸如拒绝服务攻击,缓冲区溢出等常见的攻击.另外,这些技术都属于静态安全技术的范畴;静态安全技术的缺点是只能静态和消极地防御入侵,而不能主动检测和跟踪入侵.而入侵检测技术是一种动态安全技术,它主动地收集包括系统审计数据,网络数据包以及用户活动状态等多方面的信息;然后进行安全性分析,从而及时发现各种入侵并产生响应.、 1.2入侵检测技术的应用与发展现状 在目前的计算机安全状态下,基于防火墙,加密技术等的安全防护固然重要;但是要根本改善系统的安全现状,必须要发展入侵检测技术.它已经成为计算机安全策略中的核心技术之一.Intrusion Detection System(简称IDS)作为一种主动的安全防护技术,提供了对内部攻击,外部攻击和误操作的实时保护.从网络安全立体纵深的多层次防御角度出发,入侵检测理应受到高度重视,这从国外入侵检测产品市场的蓬勃发展就可以看出.在国内,随着上网关键部门,关键业务越来越多,迫切需要具有自主版权的入侵检测产品;但目前我国的入侵检测技术还不够成熟,处于发展和跟踪国外技术的阶段,所以对入侵检测系统的研究非常重要.传统的入侵检测系统中一般采用传统的模式匹配技术,将待分析事件与入侵规则相匹配.从网络数据包的包头开始与攻击特征字符串比较.若比较结果不同,则下移一个字节再进行;若比较结果相同,那么就检测到一个可能的攻击.这种逐字节匹配方法具有两个最根本的缺陷:计算负载大以及探测不够灵活.面对近几年不断出现的A TM,千兆以太网,G比特光纤网等高速网络应用,实现实时入侵检测成为一个现实的问题.适应高速网络的环境,改进检测算法以提高运行速度和效率是解决该问题的一个途径.协议分析能够智能地"解释"协议,利用网络协议的高度规则性快速探测攻击的存在,从而大大减少了模式匹配所需的运算.所以说研究基于协议分析的入侵检测技术具有很强的现实意义. 第二章入侵检测技术 2.1入侵检测系统的分类 入侵检测系统按采用的技术分为:异常检测系统和误用检测系统.按系统所监测的对象分为:基于主

snort入侵检测实验报告

实验:入侵检测系统(Snort)的安装与配置 一、实验目的 学会WINDOWS下SNORT的安装与配置 二、实验环境 WinXP虚拟机 三、实验步骤与结果 一.在“我的电脑”中C盘中建立文件夹“zhangxiaohong” 二.安装WinPcap,运行WinPcap_4_1_2.zip,默认安装。 三.安装mysql,运行mysql-5.0.22-win32.zip,选择自定义安装选择安装路径 C:\zhangxiaohong\mysql 下,安装时注意:端口设置为3306(以后要用到),密码本实验设置成123 四.安装apache 1.运行apache_ 2.2.4-win32-x86-no_ssl.zip,安装到c:\zhangxiaohong\Apache 2.安装Apache,配置成功一个普通网站服务器 3.出现Apache HTTP Server 2.0.55的安装向导界面,点“Next”继续 4.确认同意软件安装使用许可条例,选择“I accept the terms in the license agreement”,点“Next”继续 5.将Apache安装到Windows上的使用须知,请阅读完毕后,按“Next”继续 6.选择安装类型,Typical为默认安装,Custom为用户自定义安装,我们这里选 择Custom,有更多可选项。按“Next”继续 7.出现选择安装选项界面,如图所示,左键点选“Apache HTTP Server 2.0.55”,

选择“This feature, and all subfeatures, will be installed on local hard drive.” 8.即“此部分,及下属子部分内容,全部安装在本地硬盘上”。点选 “Change...”,手动指定安装目录。 9.我这里选择安装在“C:\zhangxiaohong\Apache”,各位自行选取了,一般建议 不要安装在操作系统所在盘,免得操作系统坏了之后,还原操作把Apache配置文件 也清除了。选“OK”继续。 10.返回刚才的界面,选“Next”继续。 11.好了现在我们来测试一下按默认配置运行的网站界面,在IE地址栏打 “.0.1”,点“转到”,就可以看到如下页面,表示Apache服务器已安装成功。 12. 五.安装和配置PHP53、安装winpcap 1.解压php-5. 2.5-Win32到c:\zhangxiaohong\php 2.添加gd图形库支持 复制c:\zhangxiaohong\php\php5ts.dll和c: \zhangxiaohong\php\libmysql.dll文件到 C:\Windows\system32 复制c: \zhangxiaohong\php\php.ini-dist到C:\Windows文件夹并重命名为php.ini, 修改php.ini,分别去掉“extension=php_gd2.dll”和“extension=php_mysql.dll”前的分号, 3.并指定extension_dir="c:\zhangxiaohong\php\ext", 4.同时复制c:\zhangxiaohong\php\ext下的php_gd2.dll与php_mysql.dll到C:\Windows\system32 在C:\zhangxiaohong\apache\conf\httpd.conf中添加 LoadModule php5_module c:/zhangxiaohong/php/php5apache2.dll AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .html AddType application/x-httpd-php .htm 5.重启Apache服务 在C:\zhangxiaohong\apache\htdocs目录下新建webinf.php(文件内容为:)并使用访问测试是否能够显示当前Apache服务器的信息,如果能够显示表明Apache和php工作基本正常 六.安装snort 1.运行Snort_2_9_0_5_Installer.exe 安装在C:\zhangxiaohong\Snort下即可, 运行C:\zhangxiaohong\Snort\bin\snort.exe或者在DOS中找到该位置, 如果安装Snort成功会出现一个可爱的小猪 2.并按照以下修改C:\zhangxiaohong\Snort\etc\snort.conf文件

入侵检测技术综述

河南理工大学 课程论文 (2014-2015第二学年) 论文题目:入侵检测技术综述 学院: 专业班级: 学号: 姓名: 指导老师: 日期:2015.7.3

1引言 1 2入侵行为的概念、分类和演化 1 3入侵检测技术的发展 3 3.1以Denning模型为代表的IDS早期技术 3 3.2中期:统计学理论和专家系统相结合 4 3.3基于网络的NIDS是目前的主流技术 4 4结语 5 参考文献 6

摘要:自从计算机问世以来,安全问题就一直存在着,使用者也一直未给予足够的重视,结果大量连接到Internet上的计算机暴露在愈来愈频繁的攻击中。本文先介绍入侵行为的概念和演化,然后按时间顺序,沿着技术发展的脉络,回顾了入侵检测技术从20世纪70年代初到今天的发展历程。文章以历史和实践的观点,透视入侵和入侵检测技术相互制约,相互促进的演进过程。 关键词:计算机安全;入侵检测;入侵检测系统;入侵检测系统的历史 1引言 自从计算机问世以来,安全问题就一直存在。特别是随着Internet的迅速扩张和电子商务的兴起,人们发现保护资源和数据的安全,让他免受来自恶意入侵者的威胁是件相当困难的事。提到网络安全,很多人首先想到的是防火墙,防火墙作为一种静态的访问控制类安全产品通常使用包过滤的技术来实现网络的隔离。适当配置的防火墙虽然可以将非预期的访问请求屏蔽在外,但不能检查出经过他的合法流量中是否包含着恶意的入侵代码。在这种需求背景下,入侵检测系统(IDS)应运而生。 入侵检测系统(IDS)是将电子数据处理、安全审计、模式匹配及统计技术等有机地融合在一起,通过分析被检测系统的审计数据或直接从网络捕获数据,发现违背安全策略或危及系统安全的行为和活动。本文主要讨论入侵和入侵检测技术从20世纪70年代初到今天的发展历程。这个概念出自James P.Anderson在1972年的一项报告,随后的30多年中,概念本身几乎没有改变。 2入侵行为的概念、分类和演化 从最早期的计算机安全开始,人们就密切关注恶意使用者破坏保护机制的可能性。早期系统多为多用户批处理系统。这个时期,主要的威胁来自系统的合法使用者,他们企图得到未经授权的材料。到了20世纪70年代,分时系统和其他的多用户系统已成气候,Willis H Ware 主持的计算机安全防御科学特别工作 小组提供了一项报告,为处理多级数据的计算机系统的发展奠定了基础。但这篇报告并没有受到应有的重视,直到70年代中期,人们才开始进行构建多级安全体系的系统研究。 1980年4月,詹姆斯·安德森(James P.Anderson)为美国空军做的题为《Computer Security Threat Monitoring and Surveillance》(计算机安全威胁监控与监视)的技术报告,第一次详细阐述了入侵检测的概念,并首先为入侵和入侵检测提出了一个统一的架构,这是该领域的开山之作。他在论文中给出了入侵和入侵检测技术方面的概念: 威胁(Threat)可能存在有预谋的、未经认可的尝试: ①存取数据; ②操控数据; ③使系统不可靠或无法使用。 危险(Risk)意外的和不可预知的数据暴露,或者,由于硬件故障、软件设计的不完整和不正确所造成的违反操作完整性的问题。 脆弱性(Vulnerability)已知的或可疑的硬件或软件设计中的缺陷;使系统暴露的操作;意外暴露自己信息的操作。攻击(Attack)实施威胁的明确的表达或行为。 渗透/入侵(Penetration)一个成功的攻击;(未经认可的)获得对文件和程序的使用,或对计算机系统的控制。 威胁概念中的③包括DOS(Denial Of Service)“拒绝服务攻击”。盗用计算资源也属于这个类别之内。 一般来说,外部入侵者的首要工作是进入系统。所外人,也可能是合法用户,但违规使用了未经授权的资源。另一方面,除了拒绝服务攻击外,多数攻击都需要入侵者取得用户身份。20世纪80年代中后期,网络计算已经相当普遍,渗透和入侵也更广泛。但许多厂商和系

Snort网络入侵检测五种病毒

入侵检测技术实验Snort网络入侵检测 学院: 班级: 姓名: 学号:

一、实验目的 1)掌握数据库的使用方法和MySQLfront的安装使用方法 2)掌握wireshark抓取数据包分析关键特征以及相关格式内容 3)掌握病毒的工作原理和通信过程,交互的信息 4)将这门课的内容结合实际进行分析和实践 二、实验原理 1)实验环境: WinPcap_4_1_2.exe 网络数据包截取驱动程序 Snort_2_9_1_Installer.exe Windows 版本的Snort 安装包 mysql-5.5.18-win32.msi Windows 版本的mysql安装包 MySQL_Front_Setup.1765185107.exe mysql数据库可视化软件 snortrules-snapshot-CURRENT.tar.gz Snort规则库 Wireshark-win32-1.12.0.1410492379.exe抓包分析工具 2)实验环境的搭建 按照所给文档“Windows XP下安装配置Snort”的提示安装所需的软件,下面几个图片是成功安装的图片:

图(1)建立snort库 图(2)成功建立snort库

图(3)成功启动snort进行检测 至此,实验环境搭配成功。 三、实验内容 1)测试检测效果 测试虽然成功启动snort,但不能确定是否成功,故此测试任意IP端口 进行测试 配置此时的规则,修改local.rules文件,改规则为:alert ip any any -> any any (msg: "IP Packet detected";sid:1000000;) 此时结果如下图:

Snort入侵检测系统

Snort入侵检测系统 赵鹏通信一团技术室 摘要本文介绍了Snort入侵检测系统的结构、功能。具体介绍了Snort入侵检测系统各部件的功能,并分析了Snort入侵检测系统的优缺点。 关键词IDS 特征检测规则分析预处理净荷 1 概述 Snort是由一个简单的网络管理工具发展分布式入侵检测系统,被用于各种与入侵检测相关的活动,可以用作嗅探器、包记录器或者网络入侵检测系统NIDS。 作嗅探器时,Snort对发往同一个网络其他主机的流量进行捕获。嗅探器利用了以太网的共享特性。它将网路上传输的每一个包的内容都显示在你的监视器上,包括包头和包载荷。 以包记录器模式运行时,Snort以和嗅探器相似的方式抓包,不同的是将收集的数据记入日志而不是显示在屏幕上。 当Snort以网络入侵检测系统(NIDS)模式运行时,Snort也抓取并存储网络上传输的每一个包,关键的不同在于NIDS模式能对数据进行处理。这种处理不是简单的将数据写入文件或是显示在屏幕上,而是对每一个包进行检查以决定它的本质是良性的还是恶意的。当发现看似可疑的流量是,Snort就会发出报警。 NIDS因其能监控大片网段而比其他类型的IDS更受欢迎,这里要关注的是NIDS模式的Snort。 2 Snort入侵检测系统的组成 Snort有5个主要部件:捕包程序库libpcap、包解码器、预处理程序、检索引擎、输出组件。 图1 Snort组件数据流程图 捕包装置把包以原始状态捕获后送给解码器。解码器是进入Snort的第一步,它将特殊协议元素翻译成内部数据结构。它的目的是剥落包头。利用TCP-IP栈解码并且将包放入

一个数据结构中。在最初的捕包和解码完成后,有预处理程序处理流量。许多插入式预处理程序对包进行检查或操作后将它们交给下一个组件——检索引擎。检索引擎对每一个包的一个方面进行简单的检验以检测入侵。最后一个组件是输出插件,它对可疑行为产生报警。 2.1 捕包程序库libpcap和包解码器 大规模的应用程序很少采用单机模式,Snort通常采用分布式体系对网络进行入侵检测。最典型的安装方式是三层体系,即传感器层、服务器层、分析员控制台。 捕包程序库libpcap和包解码器运行在传感器上,负责对抓来的包进行解释并传递警报。由于传感器必须放置在要监控入侵的网段,为了保证安全,通常只安装Snort和它在之上运行的支撑应用程序。建议Linux或BSD等UNIX类型的操作系统。传感器的两块网卡一块用作捕包接口不分配IP,一块用作管理接口分配IP。捕包程序库libpcap运行在Libpcap平台上,由于Libpcap平台的独立性使得Snort可以被移植到任何地方,成为一个真正与平台无关的应用程序。 2.2 预处理程序 预处理是Snort的一类插件。它在检测引擎之前对数据进行处理,并且努力与不断变化的漏洞和攻击保持同步。可以添加新的协议为Snort提供支持。它既能对数据包操作以便检测引擎能正确分析包,又能检测特征检测所不能单独发现的可疑流量。按功能可以分为三类:数据标准化,协议分析和非特征匹配检测。 数据标准化 新的攻击方法和IDS躲避技术不断涌现,以至Snort的检测引擎要么不能检测,要么检测效率不高。预处理程序可以将数据标准化以便检测引擎能正确对其分析。 多态病毒是为了躲避反病毒程序的特征匹配引擎而将病毒代码任意改造和变异。同样的技术也被用于远程利用,shell代码具有多种形态。Fnord预处理程序能检测出变异的NO-OP sled,从而避免了由于缓冲区溢出使处理器强制执行恶意代码导致的程序崩溃。No-op sled能被许多IDS轻易地检测到,除非它在每次被使用时都做修改。如果没有Fnord预处理,Snort将无法检测多态shell代码。 协议分析 由于检测引擎能分析的协议很少,所以用协议处理程序来协助检测。ASNI_decode就能检测ASNI(Abstract Syntax Notation抽象语法标记)协议中的不一致性。较高的协议比如SNMP、LDAP和SSL都依赖ASNI。几乎所有起用SNMP的设备都受到缓冲区溢出或是拒绝服务(DoS)攻击的影响。 非特征匹配检测 这类预处理程序利用不同特征匹配的方法来捕获恶意流量。例如所谓的侦察攻击通常只是一个报警信号,无法确定是不是攻击。信息收集尝试利用了不合规格的流量,但这些流量通常在性质上是无害的。Portscan2和stream4就能发现这类流量和一些恶意黑客使用的躲避技术。 2.3 检测引擎 检测引擎是Snort的一个主要部件,有两个主要功能:规则分析和特征检测。检测引擎通过分析Snort规则来建立攻击特征。Snort规则被载入到检测引擎并以树形数据结构分

snort入侵检测技术教学文案

s n o r t入侵检测技术

Snort入侵检测系统分析 2015年12月6日 Snort入侵检测系统分析 简介 Snort的一些源代码是从著名的TCPDUMP软件发展而来的。snort是一个基于LIBPCA包的网络监控软件,可以作为一个十分有效的网络入侵监测系统。它运行在一个“传感器”主机上,监听网络数据。这台机器可能是一台简陋的运行FREEBSD系统的Pentium100 PC,并且至少有一个网卡。 Snort首先根据远端的IP地址建立目录,然后将检测到的包以TCPDUMP的二进制格式记录或者以自身的解码形式存储到这些目录中.这样一来,你就可以使用snort来监测或过滤你所需要的包.Snort是一个轻量级的入侵检测系统,它具有截取网络数据报文,进行网络数据实时分析、报警,以及日志的能力。snort的报文截取代码是基于LIBPCA库的,继承了LIBPCA库的平台兼容性。它能够进行协议分析,内容搜索/匹配,能够用来检测各种攻击和探测,例如:缓冲区溢出、隐秘端口扫描、CGI攻击、SMB探测、OS指纹特征检测等等。snort使用一种灵活的规则语言来描述网络数据报文,因此可以对新的攻击作出快速地翻译。snort具有实时报警能力。可以将报警信息写到syslog、指定的文件、UNIX套接字或者使用Winpopup消息。snort具有良好的扩展能力。它支持插件体系,可以通过其定义的接口,很方便地加入新的功能。snort还能够记录网络数据,其日志文件可以是TCPDUMP格式,也可以是解码的ASCII格式。简单的说,Snort是数据包的嗅探器,也是数据包记录器,还是NIDS。提供数据包嗅探和记录功能只

:snort入侵检测系统配置使用

甘肃交通职业技术学院信息工程系《信息安全技术》 实训报告四 专业:智控(物联网方向) 班级:物联1201班 姓名:李永霞 学号:0623120116 时间: 2014年5月28日

snort入侵检测系统配置使用 一、项目概述 1、项目目的:了解snort入侵检测系统的原理;了解snort入侵检测系统的主要功能;掌握snort入侵检测系统的基本安装与配置方法。 2、知识与技能考核目标:能够掌握PHP网站服务器的搭建,能完成snort 入侵检测系统的安装与配置;能利用snort入侵检测系统的三种模式展开简单的检测和分析。 3、设备:微型计算机。 4、工具:网络数据包截取驱动程序:WinPcap_4_1_2.zip ;Windows 版本的Snort 安装包;Windows 版本的Apache Web 服务器;ACID(Analysis Console for Intrusion Databases)基于PHP的入侵检测数据库分析控制台;snort 规则包:rules20090505.tar.gz;Adodb(Active Data Objects Data Base)PHP库--adodb504.tgz;PHP图形库。 二、项目内容: 1、项目内容 snort入侵检测系统的安装;PHP网站服务器的搭建;基于mysql的snort 用来存储报警数据的数据库创建;snort入侵检测系统的配置及使用。 2、方案设计 通过观摩指导老师的操作来掌握snort入侵检测系统的安装与配置。 3、实施过程(步骤、记录、数据、程序等) (1)安装数据包截取驱动程序。 双击安装文件winpcap.exe,一直单击“NEXT”按钮完成安装。

snort入侵检测技术

Snort入侵检测系统分析 2015年12月6日 Snort入侵检测系统分析 简介 Snort的一些源代码是从著名的TCPDUMP软件发展而来的。snort是一个基于LIBPCA包的网络监控软件,可以作为一个十分有效的网络入侵监测系统。它运行在一个“传感器”主机上,监听网络数据。这台机器可能是一台简陋的运行FREEBSD系统的Pentium100 PC,并且至少有一个网卡。 Snort首先根据远端的IP地址建立目录,然后将检测到的包以TCPDUMP的二进制格式记录或者以自身的解码形式存储到这些目录中.这样一来,你就可以使用snort来监测或过滤你所需要的包.Snort是一个轻量级的入侵检测系统,它具有截取网络数据报文,进行网络数据实时分析、报警,以及日志的能力。snort的报文截取代码是基于LIBPCA库的,继承了LIBPCA库的平台兼容性。它能够进行协议分析,内容搜索/匹配,能够用来检测各种攻击和探测,例如:缓冲区溢出、隐秘端口扫描、CGI 攻击、SMB探测、OS指纹特征检测等等。snort使用一种灵活的规则语言来描述网络数据报文,因此可以对新的攻击作出快速地翻译。snort具有实时报警能力。可以将报警信息写到syslog、指定的文件、UNIX套接字或者使用Winpopup消息。snort具有良好的扩展能力。它支持插件体系,可以通过其定义的接口,很方便地加入新的功能。snort还能够记录网络数据,其日志文件可以是TCPDUMP格式,

也可以是解码的ASCII格式。简单的说,Snort是数据包的嗅探器,也是数据包记录器,还是NIDS。提供数据包嗅探和记录功能只是Snort的部分功能,Snort 的特点就是其入侵检测功能—根据入侵规则匹配数据包中的内容。Snort还是一个自由,简介,快速,易于扩展的入侵检测系统,已经被移植到了各种UNIX平台和winY2k上。同时,它也是目前安全领域中,最活跃的开放源码工程之一。 体系结构 Snort有5个主要部件:捕包程序库libpcap、包解码器、预处理程序、检索引擎、输出组件。 图1 Snort组件数据流程图 捕包装置把包以原始状态捕获后送给解码器。解码器是进入Snort的第一步,它将特殊协议元素翻译成内部数据结构。它的目的是剥落包头。利用TCP-IP 栈解码并且将包放入一个数据结构中。在最初的捕包和解码完成后,有预处理程序处理流量。许多插入式预处理程序对包进行检查或操作后将它们交给下一个组件——检索引擎。检索引擎对每一个包的一个方面进行简单的检验以检测入侵。最后一个组件是输出插件,它对可疑行为产生报警。大规模的应用程序很少采用单机模式,Snort通常采用分布式体系对网络进行入侵检测。最典型的安装方式是三层体系,即传感器层、服务器层、分析员控制台。 捕包程序库libpcap和包解码器运行在传感器上,负责对抓来的包进行解释并传递警报。由于传感器必须放置在要监控入侵的网段,为了保证安全,通常只安装Snort和它在之上运行的支撑应用程序。建议Linux或BSD等UNIX类型的操作系统。传感器的两块网卡一块用作捕包接口不分配IP,一块用作管理接口分配IP。捕包程序库libpcap运行在Libpcap平台上,由于Libpcap平台的独立性使得Snort可以被移植到任何地方,成为一个真正与平台无关的应用程序。预处理程序 预处理是Snort的一类插件。它在检测引擎之前对数据进行处理,并且努力与不断变化的漏洞和攻击保持同步。可以添加新的协议为Snort提供支持。它既

入侵检测系统安装和使用

入侵检测系统安装和使 用 Document number:NOCG-YUNOO-BUYTT-UU986-1986UT

入侵检测系统安装和使用 【实验目的】 通过安装并运行一个snort系统,了解入侵检测系统的作用和功能 【实验内容】 安装并配置appahe,安装并配置MySQL,安装并配置snort;服务器端安装配置php脚本,通过IE浏览器访问IDS 【实验环境】 硬件 PC机一台。 系统配置:操作系统windows 10 。 【实验步骤】 1、安装appache服务器 启动appache服务器 测试本机的80 端口是否被占用, 2、安装配置snort

查看 Snort 版本 2、安装最新版本程序

安装MySql配置mysql

运行snort

1、网络入侵检测snort的原理 Snort能够对网络上的数据包进行抓包分析,但区别于其它嗅探器的是,它能根据所定义的规则进行响应及处理。Snort 通过对获取的数据包,进行各规则的分析后,根据规则链,可采取Activation(报警并启动另外一个动态规则链)、Dynamic(由其它的规则包调用)、Alert(报警),Pass(忽略),Log(不报警但记录网络流量)五种响应的机制。? Snort有数据包嗅探,数据包分析,数据包检测,响应处理等多种功能,每个模块实现不同的功能,各模块都是用插件的方式和Snort相结合,功能扩展方便。例如,预处理插件的功能就是在规则匹配误用检测之前运行,完成TIP碎片重组,http解码,telnet解码等功能,处理插件完成检查协议各字段,关闭连接,攻击响应等功能,输出插件将得理后的各种情况以日志或警告的方式输出。

入侵检测技术简述

入侵检测技术简述 摘要: 作为一个网络管理员,他手中的保卫网络安全的法宝有三:防火墙,入侵检测技术和审计追踪技术。防火墙主外,能够防御外部Internet上的攻击,但是一旦内部出了“奸细”,防火墙形同虚设,所以,入侵检测技术应运而生。本文从入侵检测技术产生的背景意义、定义、分类、功能、技术手段、应用范围等几个方面对入侵检测技术进行了系统的介绍。 关键词: 入侵检测HIDS NIDS

入侵检测技术简述 (1) 摘要: (1) 正文 (3) 1、入侵检测技术的定义 (3) 2、入侵检测技术的分类 (3) 3、入侵检测技术的功能 (4) 4、入侵检测技术的技术手段 (4) 5、入侵检测技术的应用范围 (4) 6、产品介绍 (4)

随着信息时代的不断发展,信息安全问题也随之逐步为人们所关注重视,并投入大量精力来跟黑客等不法行为进行对抗。面对外网中的非法攻击,人们使用防火墙技术抵御,使其扼杀在外网,但是,“内鬼”的出现却让防火墙措手不及,比如来自内部的非法操作、口令和密码的泄露、软件缺陷以及拒绝服务攻击(Dos)。加之防火墙也是人工编制出来的程序,也会存在一些漏洞,无法对付层出不穷的应用层后门、通过加密信道的攻击、应用设计缺陷等,而且防火墙技术通常是“被挨打”后才能发挥作用,所以防火墙这种被动的防范方法显得力不从心。入侵检测系统这种更加仔细,并且能够及时发现并报告系统中异常事件的技术应运而生,成为保护计算机系统安全的另一个强力武器。 1、入侵检测技术的定义 入侵检测(Intrusion Detection,ID),即对入侵进行发掘然后向计算机系统报告。它通过对计算机网络或系统多个关键节点进行信息收集,并且对这些信息进行分析,从中发现计算机网络或系统中是否存在违反安全策略的行为和被攻击的迹象。 相对应的入侵检测系统(Intrusion Detection System, IDS)即实现入侵检测的功能,即对网络传输进行及时监视,检测到可疑事件时发出报警或主动采取措施的网络安全设备。 2、入侵检测技术的分类 入侵检测技术可分为三类:基于主机的IDS,基于网络的IDS以及两者联合使用的分布式入侵检测系统。 基于主机的IDS(HIDS)采集的信息主要是从主机的审计记录和日志文件中加以主机上文件系统属性、进程状态等其他信息获得的,系统对这些信息进行分析,并进行异常检测和误用检测,检测的内容包括系统调用、端口调用、系统日志、安全审计、应用日志等,如果发现异常则会发出报警信号。基于主机的IDS一般部署在防火墙和外部网络服务器之间,防护防火墙不能保护的网络服务器;还可以部署在内网的服务器处。 基于主机的IDS能够监视特定的系统行为,能够准确地判断攻击是否成功,能够对于绕过网络而在本地进行,在网络数据中很难发现使得网络入侵检测系统无法检测的攻击实施监控检测。 但是基于主机的IDS不能检测数据包头的内容,例如许多基于IP的拒绝服务攻击和碎片攻击都不能被它检测到,此时基于网络的IDS弥补了这一缺陷。 基于网络的IDS(NIDS)是利用网络适配器来实时监视和分析所有通过网络进行传输的通信。NIDS通过在数据传输过程中获取数据包,然后分析数据包中的包头信息和有效数据部分,如果有异常,ids相应模块通过通知、报警以及中断连接等方式来对攻击做出反应。NIDS通常部署在外网路由器和防火墙之间,或是防火墙和外部的网络服务器之间,或者防火墙和内网路由器之间。 NIDS的优点有:检测的范围是整个网段,可以进行实时检测和应答(相对于HIDS的优势),隐蔽性良好(配置在网卡上),不需要特殊的审计和登录机制,且操作系统独立(HIDS 依赖于操作系统,须重新配置)。 由于系统的弱点或漏洞分散各处,且网络入侵行为表现出相互协作入侵的特点,入侵检

基于Snort的入侵检测系统方案

基于Snort的入侵检测系统 用Snort,Apache,MySQL,PHP及ACID构建高级IDS

第一章入侵检测系统及Snort介绍 在当今的企业应用环境中,安全是所有网络面临的大问题。黑客和入侵者已成功的入侵了一些大公司的网络及。目前已经存在一些保护网络架构及通信安全的方法,例如防火墙、虚拟专用网(VPN)、数据加密等。入侵检测是最近几年出现的相对较新的网络安全技术。利用入侵检测技术,我们可以从已知的攻击类型中发现是否有人正在试图攻击你的网络或者主机。利用入侵监测系统收集的信息,我们可以加固自己的系统,及用作其他合法用途。目前市场中也有很多弱点检测工具,包括商品化的和开放源码形式的,可以用来评估网络中存在的不同类型的安全漏洞。 一个全面的安全系统包括很多种工具: ●防火墙:用来阻止进入及走出网络的信息流。防火墙在商业化产品和开放源 码产品中都有很多。最著名的商业化防火墙产品有Checkpoint (.checkpoint.), Cisco (.cisco.)及Netscreen(.netscreen.)。最著名的开放源码防火墙是Netfilter/Iptables(https://www.wendangku.net/doc/aa8734929.html,)。 ●入侵检测系统(IDS):用来发现是否有人正在侵入或者试图侵入你的网络。 最著名的IDS是Snort,可以在https://www.wendangku.net/doc/aa8734929.html,下载。 ●弱点评估工具:用来发现并堵住网络中的安全漏洞。弱点评估工具收集的信 息可以指导我们设置恰当的防火墙规则,以挡住恶意的互联网用户。现在有许多弱点评估工具,比如Nmap(https://www.wendangku.net/doc/aa8734929.html,/)和Nessus(https://www.wendangku.net/doc/aa8734929.html,/). 以上这些工具可以配合使用,交互信息。一些产品将这些功能捆绑在一起,形成一个完整的系统。

相关文档
相关文档 最新文档