安全學(xué)習(xí)導(dǎo)論-lec_第1頁
安全學(xué)習(xí)導(dǎo)論-lec_第2頁
安全學(xué)習(xí)導(dǎo)論-lec_第3頁
安全學(xué)習(xí)導(dǎo)論-lec_第4頁
安全學(xué)習(xí)導(dǎo)論-lec_第5頁
免費預(yù)覽已結(jié)束,剩余19頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

Lecture10:SnortIntroductiontoComputerSecurityBackground–PolicySuccessfulintrusiondetectiondependsonpolicyandmanagementasmuchastechnologySecurityPolicy(definingwhatisacceptableandwhatisbeingdefended)isthefirststepNotificationWho,howfast?ResponseCoordinationIntrotoSnortWhatisSnort?Snortisamulti-modepacketanalysistoolSnifferPacketLoggerForensicDataAnalysistoolNetworkIntrusionDetectionSystemWherediditcomefrom?Developedoutoftheevolvingneedtoperformnetworktrafficanalysisinbothreal-timeandforforensicpostprocessingSnort“Metrics”Small(~800ksourcedownload)Portable(Linux,Windows,MacOSX,Solaris,BSD,IRIX,Tru64,HP-UX,etc)Fast(Highprobabilityofdetectionforagivenattackon100Mbpsnetworks)Configurable(Easyruleslanguage,manyreporting/loggingoptionsFree(GPL/OpenSourceSoftware)SnortDesignPacketsniffing“l(fā)ightweight”networkintrusiondetectionsystemLibpcap-basedsniffinginterfaceRules-baseddetectionenginePlug-insystemallowsendlessflexibilityDetectionEngineRulesform“signatures”ModulardetectionelementsarecombinedtoformthesesignaturesWiderangeofdetectioncapabilitiesStealthscans,OSfingerprinting,bufferoverflows,backdoors,CGIexploits,etc.Rulessystemisveryflexible,andcreationofnewrulesisrelativelysimplePlug-InsPreprocessorPacketsareexamined/manipulatedbeforebeinghandedtothedetectionengineDetectionPerformsingle,simpletestsonasingleaspect/fieldofthepacketOutputReportresultsfromtheotherplug-insUsingSnortThreemainoperationalmodesSnifferModePacketLoggerModeNIDSMode(ForensicDataAnalysisMode)OperationalmodesareconfiguredviacommandlineswitchesSnortautomaticallytriestogointoNIDSmodeifnocommandlineswitchesaregiven,looksforsnort.confconfigurationfilein/etcUsingSnort–SnifferModeWorksmuchliketcpdumpDecodespacketsanddumpsthemtostdoutBPFfilteringinterfaceavailabletoshapedisplayednetworktrafficWhatDoThePacketDumpsLookLike?=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+11/09-11:12:02.954779:1032->:23TCPTTL:128TOS:0x0ID:31237IpLen:20DgmLen:59DF***AP***Seq:0x16B6DAAck:0x1AF156C2Win:0x2217TcpLen:20FFFC23FFFC27FFFC24FFFA1800414E53..#..'..$ANS49FFF0I..=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+11/09-11:12:02.956582:23->:1032TCPTTL:255TOS:0x0ID:49900IpLen:20DgmLen:61DF***AP***Seq:0x1AF156C2Ack:0x16B6EDWin:0x2238TcpLen:200D0A0D0A53756E4F5320352E370D0A0DSunOS5.7...000D0A0D00=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+PacketLoggerModeGee,itsurewouldbeniceifIcouldsavethosepacketstodisk…Multi-modepacketloggingoptionsavailableFlatASCII,tcpdump,XML,database,etcavailableLogalldataandpost-processtolookforanomalousactivityNIDSModeWidevarietyofrulesavailableforsignatureengine(~1300asofJune2001,growto~2900atMay2005)Multipledetectionmodesavailableviarulesandplug-insRules/signatureStatisticalanomalyProtocolverificationSnortRulesSnortRulesSnortrulesareextremelyflexibleandareeasytomodify,unlikemanycommercialNIDSSampleruletodetectSubSeventrojan:alerttcp$EXTERNAL_NET27374->$HOME_NETany(msg:"BACKDOORsubseven22";flags:A+;content:"|0d0a5b52504c5d3030320d0a|";reference:arachnids,485;/subseven/;sid:103;classtype:misc-activity;rev:4;)Elementsbeforeparenthesescomprise‘ruleheader’Elementsinparenthesesare‘ruleoptions’SnortRulesalerttcp$EXTERNAL_NET27374->$HOME_NETany(msg:"BACKDOORsubseven22";flags:A+;content:"|0d0a5b52504c5d3030320d0a|";reference:arachnids,485;/subseven/;sid:103;classtype:misc-activity;rev:4;)alertactiontotake;alsolog,pass,activate,dynamictcpprotocol;alsoudp,icmp,ip$EXTERNAL_NETsourceaddress;thisisavariable–specificIPisok27374sourceport;alsoany,negation(!21),range(1:1024)->direction;bestnottochangethis,although<>isallowed$HOME_NETdestinationaddress;thisisalsoavariablehereanydestinationportSnortRulesalerttcp$EXTERNAL_NET27374->$HOME_NETany(msg:"BACKDOORsubseven22";flags:A+;content:"|0d0a5b52504c5d3030320d0a|";reference:arachnids,485;/subseven/;sid:103;classtype:misc-activity;rev:4;)msg:”BACKDOORsubseven22”;messagetoappearinlogsflags:A+;tcpflags;manyoptions,likeSA,SA+,!R,SF*content:“|0d0…0a|”;binarydatatocheckinpacket;contentwithout|(pipe)charactersdosimplecontentmatchesreference…;wheretogotolookforbackgroundonthisrulesid:103;ruleidentifierclasstype:misc-activity;ruletype;manyothersrev:4;rulerevisionnumberotherruleoptionspossible,likeoffset,depth,nocaseSnortRulesbad-traffic.rules exploit.rules scan.rulesfinger.rules ftp.rules telnet.rulessmtp.rules rpc.rules rservices.rulesdos.rules ddos.rules dns.rulestftp.rules web-cgi.rules web-coldfusion.rulesweb-frontpage.rules web-iis.rules web-misc.rulesweb-attacks.rules sql.rules x11.rulesicmp.rules netbios.rules misc.rulesbackdoor.rules shellcode.rules policy.rulesporn.rules info.rules icmp-info.rulesvirus.rules local.rules attack-responses.rulesSnortRulesRuleswhichactuallycaughtintrusionsalerttcp$EXTERNAL_NETany->$SQL_SERVERS1433(msg:"MS-SQLxp_cmdshell-programexecution";content:"x|00|p|00|_|00|c|00|m|00|d|00|s|00|h|00|e|00|l|00|l|00|";nocase;flags:A+;classtype:attempted-user;sid:687;rev:3;)caughtcompromiseofMicrosoftSQLServeralerttcp$EXTERNAL_NETany->$HTTP_SERVERS80(msg:"WEB-IIScmd.exeaccess";flags:A+;content:"cmd.exe";nocase;classtype:web-application-attack;sid:1002;rev:2;)caughtCodeRedinfectionalerttcp$EXTERNAL_NETany->$HOME_NET21(msg:"INFOFTP\"MKD/\"possiblewarezsite";flags:A+;content:"MKD/";nocase;depth:6;classtype:misc-activity;sid:554;rev:3;)caughtanonymousftpserverSnortArchitectureDataFlowPacketDecoderPreprocessor(Plug-ins)DetectionEngine(Plug-ins)OutputStage(Plug-ins)PacketStreamSniffingSnortDataFlowAlerts/LogsRuleHeaderAlerttcpany->anyRuleOptions(flags:SF;msg:“SYN-FINScan”;)Alerttcpany->anyAlerttcpany->any(flags

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論