【正文】
較著名的對稱密碼算法有:美國的 DES和歐洲的 IDEA 等。按照鑒別對象的不同,鑒別 技術(shù)可分為消息源鑒別和通信雙方互相鑒別,按照鑒別內(nèi)容的不同,鑒別技術(shù)可分為用戶身份鑒別和消息內(nèi)容鑒別,鑒別的方法有很多種,主要有通過用戶標識和口令、報文鑒別、數(shù)字簽名等方式。 ( 4)防火墻技術(shù) 防火 墻是一個或一組網(wǎng)絡(luò)設(shè)備,其工作方式是將內(nèi)聯(lián)網(wǎng)絡(luò)與因特網(wǎng)之間或者與其他外聯(lián)網(wǎng)絡(luò)間互相隔離,通過加強訪問控制,阻止區(qū)域外的用戶對區(qū)域內(nèi)的資源的非法訪問,使用防火墻可以進行安全檢查、記錄網(wǎng)上安全事件等,在維護網(wǎng)絡(luò)安全作用中起著重要的作用。網(wǎng)絡(luò)反病毒技術(shù)主 要包括檢查病毒和殺出病毒。 第三部分,對整個系統(tǒng)的設(shè)計做了概述,介紹了系統(tǒng)的整體框架、開發(fā)及運行環(huán)境等。主要測試了檢測模塊實現(xiàn)的各種功能。 入侵檢測的定義 可以看到入侵檢測的作用就在于及時地發(fā)現(xiàn)各種攻擊以及攻擊企圖并作出反應(yīng)。 時效性:必須及時的發(fā)現(xiàn)各種入侵行為,理想情況是在事前發(fā)現(xiàn)攻擊企圖,比較現(xiàn)實的情況則是在攻擊行為發(fā)生的過程中檢測到。第二是體系結(jié)構(gòu)的可擴展性,在必要 的時候可以在不對系統(tǒng)的整體結(jié)構(gòu)進行修改的前提下對檢測手段進行加強,以保證能檢測到新的攻擊。 P2DR 模型闡述了這樣一個結(jié)論:安全的目標實際上就是盡可能地增大保護時間,盡量減少檢測時間和響應(yīng)時間。因此,從技術(shù)手段上分析,入侵檢測可以看作是 實現(xiàn) P2DR 模型的承前啟后的關(guān)鍵環(huán)節(jié)。它能在不影響網(wǎng)絡(luò)性能或輕負載的情況下,檢測網(wǎng)絡(luò)并實現(xiàn)對內(nèi)部攻擊、外部攻擊和誤操作的實時保護??梢姡肭謾z測系統(tǒng)有兩個主要部分:數(shù)據(jù)獲取和檢測。數(shù)據(jù)提取模塊在獲得數(shù)據(jù)后,需要對數(shù)據(jù)進行簡 單的處理,如簡單的過濾、數(shù)據(jù)格式標準化等,然后將經(jīng)過處理后的數(shù)據(jù)提交給數(shù)據(jù)分析模塊。 入侵檢測的分類 通過對現(xiàn)有的入侵檢測系統(tǒng)和技術(shù)的研究,可以從下面幾個方面對入侵檢測系統(tǒng)進行分類: (1) 根據(jù)數(shù)據(jù)來 源或監(jiān)視的對象分類 數(shù)據(jù) 數(shù)據(jù)提取 數(shù)據(jù) 事件 事件 數(shù)據(jù)分析 結(jié)果處理 ? 基于主機( HostBased)的入侵檢測系統(tǒng) 數(shù)據(jù)來源于主機系統(tǒng)。實際實現(xiàn)時,一般是把入侵檢測系統(tǒng)所在的主機的網(wǎng)卡設(shè)為混雜模式,從而捕獲經(jīng)過它的所有網(wǎng)絡(luò)數(shù)據(jù)包。 基于網(wǎng)絡(luò)的入侵檢測系統(tǒng)的優(yōu)勢在于秘密性、平臺無關(guān)性、易于實現(xiàn)。它的基本假設(shè)是入侵活動具有不同于正常用戶活動的特征,即入侵活動表現(xiàn)為異常。 基于異常的入侵檢測系統(tǒng)的優(yōu)勢在于:能夠發(fā)現(xiàn)未知的攻擊;通過采用適當?shù)淖詫W(xué)習(xí)算法,基于異常的入侵檢測系統(tǒng)一旦建立,可以不必修改和更新。但是,異常檢測方法的優(yōu)點讓研究人員向往不已,大部分的研究工作都集中在異常檢測方面,人 們 提出了各種各樣的新方法企圖使異常檢測實用化。隨著入侵檢測系統(tǒng)研究和應(yīng)用的不斷深入,近年對入侵檢測技術(shù)有以下幾個主要的發(fā)展方向。許多基于客戶、服務(wù)器結(jié)構(gòu)與中間件技術(shù)及對象技術(shù)的大型應(yīng)用,需要應(yīng)用層的入侵檢測保護。實現(xiàn) IDS 的響應(yīng)包括向管理員和其他實體發(fā)出報警,進行緊急處理;對攻擊的追蹤、誘導(dǎo)和反擊,對于攻擊源數(shù)據(jù)的聚集以及 ID 部件的自學(xué)習(xí)和改進。 3 基于 Windows 入侵檢測系統(tǒng)的設(shè)計 本系統(tǒng)的全稱為《基于 Windows 入侵檢測系統(tǒng)的設(shè)計與實現(xiàn)》,系統(tǒng)的開發(fā)環(huán)境為 Windows 操作系統(tǒng)。響應(yīng)模塊則負責將檢測模塊剝離出的標志與現(xiàn)有的入侵特征進行模式匹配,從而偵測出存在于網(wǎng)絡(luò)中的入侵活動,并且利用一些響應(yīng)手段向網(wǎng)絡(luò)管理員發(fā)出告警信息并采取相應(yīng)的行動。簡單的說,可以將其分為兩個部分,即數(shù)據(jù)包的捕獲和數(shù)據(jù)包的分析。它的使用非常廣泛,幾乎所有在 Windows平臺下要使用數(shù)據(jù)包捕獲功能的軟件都可以使用 Winpcap開發(fā)包。 2.使用 Winpcap 可以提供很高的應(yīng)用效率。而網(wǎng)絡(luò)監(jiān)控程序都運行在用戶態(tài)空間,數(shù)據(jù)包必須從內(nèi)核中復(fù)制到用戶空間后再進行處理,這種重復(fù)的復(fù)制工作對實質(zhì)的功能實現(xiàn)毫無意義。 BPF 負責將數(shù)據(jù)包傳遞給每個監(jiān)控進程的過濾器。一般指通過截獲整個網(wǎng)絡(luò)的所有信息流量,根據(jù)信息源主機、目標主機、服務(wù)協(xié)議端口等信息簡單過濾掉不關(guān)心的數(shù)據(jù),再將用戶感興趣的數(shù)據(jù)發(fā)送給更上層的應(yīng)用程序進行分析。 數(shù)據(jù)包捕獲的具體實現(xiàn) 網(wǎng)卡有以下幾個工作模式;廣播模式 (broadcast module)、多播模式(multicast module)、直接模式 (direct module)和混雜模式 (promisc module)。 pcap_t * pcap_handle。 /*網(wǎng)絡(luò)接口 */ struct bpf_program bpf_filter。 /*網(wǎng)絡(luò)地址 */ _interface=pcap_lookupdev(error_content)。 /*獲得地址 */ pcap_handle=pcap_open_live(_interface,BUFSIZ,1,1,error_content)。bpf_filter)。 本段代碼的功能是循環(huán)捕獲以太網(wǎng)數(shù)據(jù)包,其中調(diào)用了網(wǎng)絡(luò)接口函數(shù)、規(guī)則函數(shù)和數(shù)據(jù)包捕獲函數(shù)。其中device 為指向網(wǎng)絡(luò)接口的指針, snaplen 定義了監(jiān)聽程序所所捕獲的最大字節(jié)數(shù), promisc 定義了是否將網(wǎng)卡設(shè)置為混雜模式, to_ms 表示度操作等待的毫秒時間, ebuf 為函數(shù)調(diào)用失敗返回的錯誤信息字符串。 ( 4)設(shè)置過濾器: 函數(shù)原型: char * pcap_setfilter(pcap_t*p,struct bpf_program*fp) 功能:通過調(diào)用本函數(shù),設(shè)置內(nèi)核過濾器使得編譯了的過濾生效。 ( 6)用戶自定義的回調(diào)函數(shù) 函數(shù)原型: void callback(u_char* args,const struct pcap_pkthdr* header,chonst u_char* packet) 功能:在 pcao_loop 函數(shù)沒捕獲到一個數(shù)據(jù)包后被自動調(diào)用,用于對捕獲到的數(shù)據(jù)包進行用戶自定義的處理。 網(wǎng)絡(luò)數(shù)據(jù)包分析模塊的實現(xiàn) 當完成對數(shù)據(jù)包的捕獲之后 ,接下來要完成的是數(shù)據(jù)包的分析過程。根據(jù)以太網(wǎng)協(xié)議內(nèi)容的分析結(jié)果,判斷以太網(wǎng)類型的值:如果是 0X0806,表示協(xié)議為 ARP協(xié)議,則分析 ARP協(xié)議;如果是 0X0800,表示協(xié)議為 IP 協(xié)議,則分析 IP 協(xié)議;如果是 0X8035,表示協(xié)議是 RARP 協(xié)議,則分析 RARP 協(xié)議。 u_char *pkt。 TCPHdr *tcph。 u_int16_t datasize。 u_char df。 u_int32_t sip。 int ip_option_count。 協(xié)議的解析是圍繞核心數(shù)據(jù)結(jié)構(gòu) Data Packet 展開的,其中定義有進行協(xié)議解析所需的數(shù)據(jù)結(jié)構(gòu)和保存結(jié)果信息的數(shù)據(jù)結(jié)構(gòu)。 u_int16_t ether_type。 else u_int8_t ip_hlen:4, ip_ver:4。 u_int16_t ip_off。 struct in_addr ip_src。此模塊將檢測模塊與響應(yīng)模塊集成在一起,構(gòu)成了一個完整的網(wǎng)絡(luò)入侵檢測系統(tǒng)。圖上所顯示的是檢測模塊捕獲的數(shù)據(jù)包在通過協(xié)議分析后所輸出的信息。 ( 2) 測試系統(tǒng)是否能夠?qū)Σ东@的數(shù)據(jù)包進行協(xié)議分析,并且正確的顯示。當然,無論采取何種措施,安全總是相對的,沒有絕對的網(wǎng)絡(luò)安全;應(yīng)該隨網(wǎng)絡(luò)安全狀況及安全需求的變化,適度地調(diào)整安全策略,使之總能提供最佳的 Intra 安全保障。對入侵監(jiān)測系統(tǒng)自身的攻擊等。本系統(tǒng)只實現(xiàn)簡單的數(shù)據(jù)包捕獲和分析,還要提高分析的準確性,來提取有效數(shù)據(jù)。 [3] 唐正軍 .網(wǎng)絡(luò)入侵檢測系統(tǒng)的設(shè)計與實現(xiàn) [M]. 北京 : 電子工業(yè)出版社 ,。 [7] Stevens[美 ].TCP/IP 詳解卷 1:協(xié)議 [M].范建華等譯 .北京 : 機械工業(yè)出版社 ,。除非另有說明,本文的工作是原始性工作。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。 the fly sat upon the axletree of the chariot wheel, and said. What a dust do I raise? So are there some vain persons, that whatsoever goeths indeed! They could tell us something worth hearing, if they only knew how to talk. It39。t know what that is! The journey of the witches on broomsticks is well enough known that journey is taken on St. John39。 for all bravery stands upon parisons. They must needs be violent, to make good their own vaunts. Neithe r can they be secret, and therefore not effectual。 as if a man that negotiates between two princes, to draw them to join in a war against the third, doth extol the forces of either of them above measure, the one to the other: and sometimes, he that deals between man and man, raiseth his own credit with both by pretending greater interest than he hath in either. And in these, and the like kinds, it often falls out that somewhat is produced of nothing: for lies are sufficient to breed opinion, and opinion brings on substance. In military manders and soldiers, vainglory is an essential point。 and virtue was never so beholding to human nature, as it received his due at the second hand. Neither had the fame of Cicero, Seneca, Plinius Secundus, borne her age so well, if it had not been joined with some vanity in themselves: like unto varnish, that makes sealings not only shine, but last But all this while, when I speak of vainglory, I mean not of that property, that Tacitus doth attribute to Mucianus。 In mending another, you do your self right。 the idols of parasites。 for these are the offences which are and have been, and willever be, the source of all the aforesaid evils. The greatest of themare excesses and insolences of youth, and are offences against thegreatest when they are done against religion。 and the f ifth kind is when the violation ofthe civil rights of an individual demands reparation. There shouldbe a mon law embracing all these cases. For we have already said ingeneral terms what shall be the punishment of sacrilege, whetherfraudulent or violent, and now we have to determine what is to bethe punishment of those w ho speak or act insolently toward the G first we must give them an admonition which may be in thefollowing terms:No one who in obedience to the laws believed thatthere were Gods, ever intentionally did any unholy act, or uttered anyunlawful wor