Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
snort.lua config
생성일
2년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
1 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
330 행
복사
7 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
333 행
복사
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- Snort++ configuration
-- Snort++ configuration
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- there are over 200 modules available to tune your policy.
-- there are over 200 modules available to tune your policy.
-- many can be used with defaults w/o any explicit configuration.
-- many can be used with defaults w/o any explicit configuration.
-- use this conf as a template for your specific configuration.
-- use this conf as a template for your specific configuration.
-- 1. configure defaults
-- 1. configure defaults
-- 2. configure inspection
-- 2. configure inspection
-- 3. configure bindings
-- 3. configure bindings
-- 4. configure performance
-- 4. configure performance
-- 5. configure detection
-- 5. configure detection
-- 6. configure filters
-- 6. configure filters
-- 7. configure outputs
-- 7. configure outputs
-- 8. configure tweaks
-- 8. configure tweaks
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 1. configure defaults
-- 1. configure defaults
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- HOME_NET and EXTERNAL_NET must be set now
-- HOME_NET and EXTERNAL_NET must be set now
-- setup the network addresses you are protecting
-- setup the network addresses you are protecting
HOME_NET = 'any'
HOME_NET = 'any'
-- set up the external network addresses.
-- set up the external network addresses.
-- (leave as "any" in most situations)
-- (leave as "any" in most situations)
EXTERNAL_NET = 'any'
EXTERNAL_NET = 'any'
include 'snort_defaults.lua'
include 'snort_defaults.lua'
복사
복사됨
복사
복사됨
include 'file_magic.lua'
--
include 'file_magic.lua'
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 2. configure inspection
-- 2. configure inspection
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- mod = { } uses internal defaults
-- mod = { } uses internal defaults
-- you can see them with snort --help-module mod
-- you can see them with snort --help-module mod
-- mod = default_mod uses external defaults
-- mod = default_mod uses external defaults
-- you can see them in snort_defaults.lua
-- you can see them in snort_defaults.lua
-- the following are quite capable with defaults:
-- the following are quite capable with defaults:
stream = { }
stream = { }
stream_ip = { }
stream_ip = { }
stream_icmp = { }
stream_icmp = { }
stream_tcp = { }
stream_tcp = { }
stream_udp = { }
stream_udp = { }
stream_user = { }
stream_user = { }
stream_file = { }
stream_file = { }
arp_spoof = { }
arp_spoof = { }
back_orifice = { }
back_orifice = { }
dnp3 = { }
dnp3 = { }
dns = { }
dns = { }
http_inspect = { }
http_inspect = { }
http2_inspect = { }
http2_inspect = { }
imap = { }
imap = { }
modbus = { }
modbus = { }
netflow = {}
netflow = {}
normalizer = { }
normalizer = { }
pop = { }
pop = { }
rpc_decode = { }
rpc_decode = { }
sip = { }
sip = { }
ssh = { }
ssh = { }
ssl = { }
ssl = { }
telnet = { }
telnet = { }
dce_smb = { }
dce_smb = { }
dce_tcp = { }
dce_tcp = { }
dce_udp = { }
dce_udp = { }
dce_http_proxy = { }
dce_http_proxy = { }
dce_http_server = { }
dce_http_server = { }
-- see snort_defaults.lua for default_*
-- see snort_defaults.lua for default_*
gtp_inspect = default_gtp
gtp_inspect = default_gtp
port_scan = default_med_port_scan
port_scan = default_med_port_scan
smtp = default_smtp
smtp = default_smtp
ftp_server = default_ftp_server
ftp_server = default_ftp_server
ftp_client = { }
ftp_client = { }
ftp_data = { }
ftp_data = { }
-- see file_magic.lua for file id rules
-- see file_magic.lua for file id rules
복사
복사됨
복사
복사됨
file_id = { file_rules = file_magic }
--
file_id = { file_rules = file_magic }
file_id = { rules_file = 'file_magic.rules' }
-- the following require additional configuration to be fully effective:
-- the following require additional configuration to be fully effective:
appid =
appid =
{
{
-- appid requires this to use appids in rules
-- appid requires this to use appids in rules
--app_detector_dir = 'directory to load appid detectors from'
--app_detector_dir = 'directory to load appid detectors from'
}
}
--[[
--[[
reputation =
reputation =
{
{
-- configure one or both of these, then uncomment reputation
-- configure one or both of these, then uncomment reputation
--blacklist = 'blacklist file name with ip lists'
--blacklist = 'blacklist file name with ip lists'
--whitelist = 'whitelist file name with ip lists'
--whitelist = 'whitelist file name with ip lists'
}
}
--]]
--]]
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 3. configure bindings
-- 3. configure bindings
---------------------------------------------------------------------------
---------------------------------------------------------------------------
wizard = default_wizard
wizard = default_wizard
binder =
binder =
{
{
-- port bindings required for protocols without wizard support
-- port bindings required for protocols without wizard support
{ when = { proto = 'udp', ports = '53', role='server' }, use = { type = 'dns' } },
{ when = { proto = 'udp', ports = '53', role='server' }, use = { type = 'dns' } },
{ when = { proto = 'tcp', ports = '53', role='server' }, use = { type = 'dns' } },
{ when = { proto = 'tcp', ports = '53', role='server' }, use = { type = 'dns' } },
{ when = { proto = 'tcp', ports = '111', role='server' }, use = { type = 'rpc_decode' } },
{ when = { proto = 'tcp', ports = '111', role='server' }, use = { type = 'rpc_decode' } },
{ when = { proto = 'tcp', ports = '502', role='server' }, use = { type = 'modbus' } },
{ when = { proto = 'tcp', ports = '502', role='server' }, use = { type = 'modbus' } },
{ when = { proto = 'tcp', ports = '2123 2152 3386', role='server' }, use = { type = 'gtp_inspect' } },
{ when = { proto = 'tcp', ports = '2123 2152 3386', role='server' }, use = { type = 'gtp_inspect' } },
{ when = { proto = 'tcp', service = 'dcerpc' }, use = { type = 'dce_tcp' } },
{ when = { proto = 'tcp', service = 'dcerpc' }, use = { type = 'dce_tcp' } },
{ when = { proto = 'udp', service = 'dcerpc' }, use = { type = 'dce_udp' } },
{ when = { proto = 'udp', service = 'dcerpc' }, use = { type = 'dce_udp' } },
{ when = { proto = 'udp', service = 'netflow' }, use = { type = 'netflow' } },
{ when = { proto = 'udp', service = 'netflow' }, use = { type = 'netflow' } },
{ when = { service = 'netbios-ssn' }, use = { type = 'dce_smb' } },
{ when = { service = 'netbios-ssn' }, use = { type = 'dce_smb' } },
{ when = { service = 'dce_http_server' }, use = { type = 'dce_http_server' } },
{ when = { service = 'dce_http_server' }, use = { type = 'dce_http_server' } },
{ when = { service = 'dce_http_proxy' }, use = { type = 'dce_http_proxy' } },
{ when = { service = 'dce_http_proxy' }, use = { type = 'dce_http_proxy' } },
{ when = { service = 'dnp3' }, use = { type = 'dnp3' } },
{ when = { service = 'dnp3' }, use = { type = 'dnp3' } },
{ when = { service = 'dns' }, use = { type = 'dns' } },
{ when = { service = 'dns' }, use = { type = 'dns' } },
{ when = { service = 'ftp' }, use = { type = 'ftp_server' } },
{ when = { service = 'ftp' }, use = { type = 'ftp_server' } },
{ when = { service = 'ftp-data' }, use = { type = 'ftp_data' } },
{ when = { service = 'ftp-data' }, use = { type = 'ftp_data' } },
{ when = { service = 'gtp' }, use = { type = 'gtp_inspect' } },
{ when = { service = 'gtp' }, use = { type = 'gtp_inspect' } },
{ when = { service = 'imap' }, use = { type = 'imap' } },
{ when = { service = 'imap' }, use = { type = 'imap' } },
{ when = { service = 'http' }, use = { type = 'http_inspect' } },
{ when = { service = 'http' }, use = { type = 'http_inspect' } },
{ when = { service = 'http2' }, use = { type = 'http2_inspect' } },
{ when = { service = 'http2' }, use = { type = 'http2_inspect' } },
{ when = { service = 'modbus' }, use = { type = 'modbus' } },
{ when = { service = 'modbus' }, use = { type = 'modbus' } },
{ when = { service = 'pop3' }, use = { type = 'pop' } },
{ when = { service = 'pop3' }, use = { type = 'pop' } },
{ when = { service = 'ssh' }, use = { type = 'ssh' } },
{ when = { service = 'ssh' }, use = { type = 'ssh' } },
{ when = { service = 'sip' }, use = { type = 'sip' } },
{ when = { service = 'sip' }, use = { type = 'sip' } },
{ when = { service = 'smtp' }, use = { type = 'smtp' } },
{ when = { service = 'smtp' }, use = { type = 'smtp' } },
{ when = { service = 'ssl' }, use = { type = 'ssl' } },
{ when = { service = 'ssl' }, use = { type = 'ssl' } },
{ when = { service = 'sunrpc' }, use = { type = 'rpc_decode' } },
{ when = { service = 'sunrpc' }, use = { type = 'rpc_decode' } },
{ when = { service = 'telnet' }, use = { type = 'telnet' } },
{ when = { service = 'telnet' }, use = { type = 'telnet' } },
{ use = { type = 'wizard' } }
{ use = { type = 'wizard' } }
}
}
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 4. configure performance
-- 4. configure performance
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- use latency to monitor / enforce packet and rule thresholds
-- use latency to monitor / enforce packet and rule thresholds
--latency = { }
--latency = { }
-- use these to capture perf data for analysis and tuning
-- use these to capture perf data for analysis and tuning
--profiler = { }
--profiler = { }
--perf_monitor = { }
--perf_monitor = { }
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 5. configure detection
-- 5. configure detection
---------------------------------------------------------------------------
---------------------------------------------------------------------------
references = default_references
references = default_references
classifications = default_classifications
classifications = default_classifications
ips =
ips =
{
{
-- use this to enable decoder and inspector alerts
-- use this to enable decoder and inspector alerts
복사
복사됨
복사
복사됨
--
enable_builtin_rules = true,
enable_builtin_rules = true,
-- use include for rules files; be sure to set your path
-- use include for rules files; be sure to set your path
-- note that rules files can include other rules files
-- note that rules files can include other rules files
--include = 'snort3-community.rules',
--include = 'snort3-community.rules',
-- RULE_PATH is typically set in snort_defaults.lua
-- RULE_PATH is typically set in snort_defaults.lua
rules = [[
rules = [[
include $RULE_PATH/snort3-app-detect.rules
include $RULE_PATH/snort3-app-detect.rules
include $RULE_PATH/snort3-browser-chrome.rules
include $RULE_PATH/snort3-browser-chrome.rules
include $RULE_PATH/snort3-browser-firefox.rules
include $RULE_PATH/snort3-browser-firefox.rules
include $RULE_PATH/snort3-browser-ie.rules
include $RULE_PATH/snort3-browser-ie.rules
include $RULE_PATH/snort3-browser-other.rules
include $RULE_PATH/snort3-browser-other.rules
include $RULE_PATH/snort3-browser-plugins.rules
include $RULE_PATH/snort3-browser-plugins.rules
include $RULE_PATH/snort3-browser-webkit.rules
include $RULE_PATH/snort3-browser-webkit.rules
include $RULE_PATH/snort3-content-replace.rules
include $RULE_PATH/snort3-content-replace.rules
include $RULE_PATH/snort3-exploit-kit.rules
include $RULE_PATH/snort3-exploit-kit.rules
include $RULE_PATH/snort3-file-executable.rules
include $RULE_PATH/snort3-file-executable.rules
include $RULE_PATH/snort3-file-flash.rules
include $RULE_PATH/snort3-file-flash.rules
include $RULE_PATH/snort3-file-identify.rules
include $RULE_PATH/snort3-file-identify.rules
include $RULE_PATH/snort3-file-image.rules
include $RULE_PATH/snort3-file-image.rules
include $RULE_PATH/snort3-file-java.rules
include $RULE_PATH/snort3-file-java.rules
include $RULE_PATH/snort3-file-multimedia.rules
include $RULE_PATH/snort3-file-multimedia.rules
include $RULE_PATH/snort3-file-office.rules
include $RULE_PATH/snort3-file-office.rules
include $RULE_PATH/snort3-file-other.rules
include $RULE_PATH/snort3-file-other.rules
include $RULE_PATH/snort3-file-pdf.rules
include $RULE_PATH/snort3-file-pdf.rules
include $RULE_PATH/snort3-indicator-compromise.rules
include $RULE_PATH/snort3-indicator-compromise.rules
include $RULE_PATH/snort3-indicator-obfuscation.rules
include $RULE_PATH/snort3-indicator-obfuscation.rules
include $RULE_PATH/snort3-indicator-scan.rules
include $RULE_PATH/snort3-indicator-scan.rules
include $RULE_PATH/snort3-indicator-shellcode.rules
include $RULE_PATH/snort3-indicator-shellcode.rules
include $RULE_PATH/snort3-malware-backdoor.rules
include $RULE_PATH/snort3-malware-backdoor.rules
include $RULE_PATH/snort3-malware-cnc.rules
include $RULE_PATH/snort3-malware-cnc.rules
include $RULE_PATH/snort3-malware-other.rules
include $RULE_PATH/snort3-malware-other.rules
include $RULE_PATH/snort3-malware-tools.rules
include $RULE_PATH/snort3-malware-tools.rules
include $RULE_PATH/snort3-netbios.rules
include $RULE_PATH/snort3-netbios.rules
include $RULE_PATH/snort3-os-linux.rules
include $RULE_PATH/snort3-os-linux.rules
include $RULE_PATH/snort3-os-mobile.rules
include $RULE_PATH/snort3-os-mobile.rules
include $RULE_PATH/snort3-os-other.rules
include $RULE_PATH/snort3-os-other.rules
include $RULE_PATH/snort3-os-solaris.rules
include $RULE_PATH/snort3-os-solaris.rules
include $RULE_PATH/snort3-os-windows.rules
include $RULE_PATH/snort3-os-windows.rules
include $RULE_PATH/snort3-policy-multimedia.rules
include $RULE_PATH/snort3-policy-multimedia.rules
include $RULE_PATH/snort3-policy-other.rules
include $RULE_PATH/snort3-policy-other.rules
include $RULE_PATH/snort3-policy-social.rules
include $RULE_PATH/snort3-policy-social.rules
include $RULE_PATH/snort3-policy-spam.rules
include $RULE_PATH/snort3-policy-spam.rules
include $RULE_PATH/snort3-protocol-dns.rules
include $RULE_PATH/snort3-protocol-dns.rules
include $RULE_PATH/snort3-protocol-finger.rules
include $RULE_PATH/snort3-protocol-finger.rules
include $RULE_PATH/snort3-protocol-ftp.rules
include $RULE_PATH/snort3-protocol-ftp.rules
include $RULE_PATH/snort3-protocol-icmp.rules
include $RULE_PATH/snort3-protocol-icmp.rules
include $RULE_PATH/snort3-protocol-imap.rules
include $RULE_PATH/snort3-protocol-imap.rules
include $RULE_PATH/snort3-protocol-nntp.rules
include $RULE_PATH/snort3-protocol-nntp.rules
include $RULE_PATH/snort3-protocol-other.rules
include $RULE_PATH/snort3-protocol-other.rules
include $RULE_PATH/snort3-protocol-pop.rules
include $RULE_PATH/snort3-protocol-pop.rules
include $RULE_PATH/snort3-protocol-rpc.rules
include $RULE_PATH/snort3-protocol-rpc.rules
include $RULE_PATH/snort3-protocol-scada.rules
include $RULE_PATH/snort3-protocol-scada.rules
include $RULE_PATH/snort3-protocol-services.rules
include $RULE_PATH/snort3-protocol-services.rules
include $RULE_PATH/snort3-protocol-snmp.rules
include $RULE_PATH/snort3-protocol-snmp.rules
include $RULE_PATH/snort3-protocol-telnet.rules
include $RULE_PATH/snort3-protocol-telnet.rules
include $RULE_PATH/snort3-protocol-tftp.rules
include $RULE_PATH/snort3-protocol-tftp.rules
include $RULE_PATH/snort3-protocol-voip.rules
include $RULE_PATH/snort3-protocol-voip.rules
include $RULE_PATH/snort3-pua-adware.rules
include $RULE_PATH/snort3-pua-adware.rules
include $RULE_PATH/snort3-pua-other.rules
include $RULE_PATH/snort3-pua-other.rules
include $RULE_PATH/snort3-pua-p2p.rules
include $RULE_PATH/snort3-pua-p2p.rules
include $RULE_PATH/snort3-pua-toolbars.rules
include $RULE_PATH/snort3-pua-toolbars.rules
include $RULE_PATH/snort3-server-apache.rules
include $RULE_PATH/snort3-server-apache.rules
include $RULE_PATH/snort3-server-iis.rules
include $RULE_PATH/snort3-server-iis.rules
include $RULE_PATH/snort3-server-mail.rules
include $RULE_PATH/snort3-server-mail.rules
include $RULE_PATH/snort3-server-mssql.rules
include $RULE_PATH/snort3-server-mssql.rules
include $RULE_PATH/snort3-server-mysql.rules
include $RULE_PATH/snort3-server-mysql.rules
include $RULE_PATH/snort3-server-oracle.rules
include $RULE_PATH/snort3-server-oracle.rules
include $RULE_PATH/snort3-server-other.rules
include $RULE_PATH/snort3-server-other.rules
include $RULE_PATH/snort3-server-samba.rules
include $RULE_PATH/snort3-server-samba.rules
include $RULE_PATH/snort3-server-webapp.rules
include $RULE_PATH/snort3-server-webapp.rules
include $RULE_PATH/snort3-sql.rules
include $RULE_PATH/snort3-sql.rules
include $RULE_PATH/snort3-x11.rules
include $RULE_PATH/snort3-x11.rules
]],
]],
복사
복사됨
복사
복사됨
variables = default_variables
_singletable
variables = default_variables
, --
_singletable
}
}
복사
복사됨
복사
복사됨
search_engine = { search_method = 'lowmem' }
rewrite = { }
rewrite = { }
-- use these to configure additional rule actions
-- use these to configure additional rule actions
-- react = { }
-- react = { }
-- reject = { }
-- reject = { }
-- use this to enable payload injection utility
-- use this to enable payload injection utility
-- payload_injector = { }
-- payload_injector = { }
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 6. configure filters
-- 6. configure filters
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- below are examples of filters
-- below are examples of filters
-- each table is a list of records
-- each table is a list of records
--[[
--[[
suppress =
suppress =
{
{
-- don't want to any of see these
-- don't want to any of see these
{ gid = 1, sid = 1 },
{ gid = 1, sid = 1 },
-- don't want to see these for a given server
-- don't want to see these for a given server
{ gid = 1, sid = 2, track = 'by_dst', ip = '1.2.3.4' },
{ gid = 1, sid = 2, track = 'by_dst', ip = '1.2.3.4' },
}
}
--]]
--]]
--[[
--[[
event_filter =
event_filter =
{
{
-- reduce the number of events logged for some rules
-- reduce the number of events logged for some rules
{ gid = 1, sid = 1, type = 'limit', track = 'by_src', count = 2, seconds = 10 },
{ gid = 1, sid = 1, type = 'limit', track = 'by_src', count = 2, seconds = 10 },
{ gid = 1, sid = 2, type = 'both', track = 'by_dst', count = 5, seconds = 60 },
{ gid = 1, sid = 2, type = 'both', track = 'by_dst', count = 5, seconds = 60 },
}
}
--]]
--]]
--[[
--[[
rate_filter =
rate_filter =
{
{
-- alert on connection attempts from clients in SOME_NET
-- alert on connection attempts from clients in SOME_NET
{ gid = 135, sid = 1, track = 'by_src', count = 5, seconds = 1,
{ gid = 135, sid = 1, track = 'by_src', count = 5, seconds = 1,
new_action = 'alert', timeout = 4, apply_to = '[$SOME_NET]' },
new_action = 'alert', timeout = 4, apply_to = '[$SOME_NET]' },
-- alert on connections to servers over threshold
-- alert on connections to servers over threshold
{ gid = 135, sid = 2, track = 'by_dst', count = 29, seconds = 3,
{ gid = 135, sid = 2, track = 'by_dst', count = 29, seconds = 3,
new_action = 'alert', timeout = 1 },
new_action = 'alert', timeout = 1 },
}
}
--]]
--]]
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 7. configure outputs
-- 7. configure outputs
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- event logging
-- event logging
-- you can enable with defaults from the command line with -A <alert_type>
-- you can enable with defaults from the command line with -A <alert_type>
-- uncomment below to set non-default configs
-- uncomment below to set non-default configs
--alert_csv = { }
--alert_csv = { }
--alert_fast = { }
--alert_fast = { }
--alert_full = { }
--alert_full = { }
--alert_sfsocket = { }
--alert_sfsocket = { }
--alert_syslog = { }
--alert_syslog = { }
--unified2 = { }
--unified2 = { }
-- packet logging
-- packet logging
-- you can enable with defaults from the command line with -L <log_type>
-- you can enable with defaults from the command line with -L <log_type>
--log_codecs = { }
--log_codecs = { }
--log_hext = { }
--log_hext = { }
--log_pcap = { }
--log_pcap = { }
-- additional logs
-- additional logs
--packet_capture = { }
--packet_capture = { }
--file_log = { }
--file_log = { }
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 8. configure tweaks
-- 8. configure tweaks
---------------------------------------------------------------------------
---------------------------------------------------------------------------
if ( tweaks ~= nil ) then
if ( tweaks ~= nil ) then
include(tweaks .. '.lua')
include(tweaks .. '.lua')
end
end
저장된 비교 결과
원본
파일 열기
--------------------------------------------------------------------------- -- Snort++ configuration --------------------------------------------------------------------------- -- there are over 200 modules available to tune your policy. -- many can be used with defaults w/o any explicit configuration. -- use this conf as a template for your specific configuration. -- 1. configure defaults -- 2. configure inspection -- 3. configure bindings -- 4. configure performance -- 5. configure detection -- 6. configure filters -- 7. configure outputs -- 8. configure tweaks --------------------------------------------------------------------------- -- 1. configure defaults --------------------------------------------------------------------------- -- HOME_NET and EXTERNAL_NET must be set now -- setup the network addresses you are protecting HOME_NET = 'any' -- set up the external network addresses. -- (leave as "any" in most situations) EXTERNAL_NET = 'any' include 'snort_defaults.lua' include 'file_magic.lua' --------------------------------------------------------------------------- -- 2. configure inspection --------------------------------------------------------------------------- -- mod = { } uses internal defaults -- you can see them with snort --help-module mod -- mod = default_mod uses external defaults -- you can see them in snort_defaults.lua -- the following are quite capable with defaults: stream = { } stream_ip = { } stream_icmp = { } stream_tcp = { } stream_udp = { } stream_user = { } stream_file = { } arp_spoof = { } back_orifice = { } dnp3 = { } dns = { } http_inspect = { } http2_inspect = { } imap = { } modbus = { } netflow = {} normalizer = { } pop = { } rpc_decode = { } sip = { } ssh = { } ssl = { } telnet = { } dce_smb = { } dce_tcp = { } dce_udp = { } dce_http_proxy = { } dce_http_server = { } -- see snort_defaults.lua for default_* gtp_inspect = default_gtp port_scan = default_med_port_scan smtp = default_smtp ftp_server = default_ftp_server ftp_client = { } ftp_data = { } -- see file_magic.lua for file id rules file_id = { file_rules = file_magic } -- the following require additional configuration to be fully effective: appid = { -- appid requires this to use appids in rules --app_detector_dir = 'directory to load appid detectors from' } --[[ reputation = { -- configure one or both of these, then uncomment reputation --blacklist = 'blacklist file name with ip lists' --whitelist = 'whitelist file name with ip lists' } --]] --------------------------------------------------------------------------- -- 3. configure bindings --------------------------------------------------------------------------- wizard = default_wizard binder = { -- port bindings required for protocols without wizard support { when = { proto = 'udp', ports = '53', role='server' }, use = { type = 'dns' } }, { when = { proto = 'tcp', ports = '53', role='server' }, use = { type = 'dns' } }, { when = { proto = 'tcp', ports = '111', role='server' }, use = { type = 'rpc_decode' } }, { when = { proto = 'tcp', ports = '502', role='server' }, use = { type = 'modbus' } }, { when = { proto = 'tcp', ports = '2123 2152 3386', role='server' }, use = { type = 'gtp_inspect' } }, { when = { proto = 'tcp', service = 'dcerpc' }, use = { type = 'dce_tcp' } }, { when = { proto = 'udp', service = 'dcerpc' }, use = { type = 'dce_udp' } }, { when = { proto = 'udp', service = 'netflow' }, use = { type = 'netflow' } }, { when = { service = 'netbios-ssn' }, use = { type = 'dce_smb' } }, { when = { service = 'dce_http_server' }, use = { type = 'dce_http_server' } }, { when = { service = 'dce_http_proxy' }, use = { type = 'dce_http_proxy' } }, { when = { service = 'dnp3' }, use = { type = 'dnp3' } }, { when = { service = 'dns' }, use = { type = 'dns' } }, { when = { service = 'ftp' }, use = { type = 'ftp_server' } }, { when = { service = 'ftp-data' }, use = { type = 'ftp_data' } }, { when = { service = 'gtp' }, use = { type = 'gtp_inspect' } }, { when = { service = 'imap' }, use = { type = 'imap' } }, { when = { service = 'http' }, use = { type = 'http_inspect' } }, { when = { service = 'http2' }, use = { type = 'http2_inspect' } }, { when = { service = 'modbus' }, use = { type = 'modbus' } }, { when = { service = 'pop3' }, use = { type = 'pop' } }, { when = { service = 'ssh' }, use = { type = 'ssh' } }, { when = { service = 'sip' }, use = { type = 'sip' } }, { when = { service = 'smtp' }, use = { type = 'smtp' } }, { when = { service = 'ssl' }, use = { type = 'ssl' } }, { when = { service = 'sunrpc' }, use = { type = 'rpc_decode' } }, { when = { service = 'telnet' }, use = { type = 'telnet' } }, { use = { type = 'wizard' } } } --------------------------------------------------------------------------- -- 4. configure performance --------------------------------------------------------------------------- -- use latency to monitor / enforce packet and rule thresholds --latency = { } -- use these to capture perf data for analysis and tuning --profiler = { } --perf_monitor = { } --------------------------------------------------------------------------- -- 5. configure detection --------------------------------------------------------------------------- references = default_references classifications = default_classifications ips = { -- use this to enable decoder and inspector alerts --enable_builtin_rules = true, -- use include for rules files; be sure to set your path -- note that rules files can include other rules files --include = 'snort3-community.rules', -- RULE_PATH is typically set in snort_defaults.lua rules = [[ include $RULE_PATH/snort3-app-detect.rules include $RULE_PATH/snort3-browser-chrome.rules include $RULE_PATH/snort3-browser-firefox.rules include $RULE_PATH/snort3-browser-ie.rules include $RULE_PATH/snort3-browser-other.rules include $RULE_PATH/snort3-browser-plugins.rules include $RULE_PATH/snort3-browser-webkit.rules include $RULE_PATH/snort3-content-replace.rules include $RULE_PATH/snort3-exploit-kit.rules include $RULE_PATH/snort3-file-executable.rules include $RULE_PATH/snort3-file-flash.rules include $RULE_PATH/snort3-file-identify.rules include $RULE_PATH/snort3-file-image.rules include $RULE_PATH/snort3-file-java.rules include $RULE_PATH/snort3-file-multimedia.rules include $RULE_PATH/snort3-file-office.rules include $RULE_PATH/snort3-file-other.rules include $RULE_PATH/snort3-file-pdf.rules include $RULE_PATH/snort3-indicator-compromise.rules include $RULE_PATH/snort3-indicator-obfuscation.rules include $RULE_PATH/snort3-indicator-scan.rules include $RULE_PATH/snort3-indicator-shellcode.rules include $RULE_PATH/snort3-malware-backdoor.rules include $RULE_PATH/snort3-malware-cnc.rules include $RULE_PATH/snort3-malware-other.rules include $RULE_PATH/snort3-malware-tools.rules include $RULE_PATH/snort3-netbios.rules include $RULE_PATH/snort3-os-linux.rules include $RULE_PATH/snort3-os-mobile.rules include $RULE_PATH/snort3-os-other.rules include $RULE_PATH/snort3-os-solaris.rules include $RULE_PATH/snort3-os-windows.rules include $RULE_PATH/snort3-policy-multimedia.rules include $RULE_PATH/snort3-policy-other.rules include $RULE_PATH/snort3-policy-social.rules include $RULE_PATH/snort3-policy-spam.rules include $RULE_PATH/snort3-protocol-dns.rules include $RULE_PATH/snort3-protocol-finger.rules include $RULE_PATH/snort3-protocol-ftp.rules include $RULE_PATH/snort3-protocol-icmp.rules include $RULE_PATH/snort3-protocol-imap.rules include $RULE_PATH/snort3-protocol-nntp.rules include $RULE_PATH/snort3-protocol-other.rules include $RULE_PATH/snort3-protocol-pop.rules include $RULE_PATH/snort3-protocol-rpc.rules include $RULE_PATH/snort3-protocol-scada.rules include $RULE_PATH/snort3-protocol-services.rules include $RULE_PATH/snort3-protocol-snmp.rules include $RULE_PATH/snort3-protocol-telnet.rules include $RULE_PATH/snort3-protocol-tftp.rules include $RULE_PATH/snort3-protocol-voip.rules include $RULE_PATH/snort3-pua-adware.rules include $RULE_PATH/snort3-pua-other.rules include $RULE_PATH/snort3-pua-p2p.rules include $RULE_PATH/snort3-pua-toolbars.rules include $RULE_PATH/snort3-server-apache.rules include $RULE_PATH/snort3-server-iis.rules include $RULE_PATH/snort3-server-mail.rules include $RULE_PATH/snort3-server-mssql.rules include $RULE_PATH/snort3-server-mysql.rules include $RULE_PATH/snort3-server-oracle.rules include $RULE_PATH/snort3-server-other.rules include $RULE_PATH/snort3-server-samba.rules include $RULE_PATH/snort3-server-webapp.rules include $RULE_PATH/snort3-sql.rules include $RULE_PATH/snort3-x11.rules ]], variables = default_variables_singletable } rewrite = { } -- use these to configure additional rule actions -- react = { } -- reject = { } -- use this to enable payload injection utility -- payload_injector = { } --------------------------------------------------------------------------- -- 6. configure filters --------------------------------------------------------------------------- -- below are examples of filters -- each table is a list of records --[[ suppress = { -- don't want to any of see these { gid = 1, sid = 1 }, -- don't want to see these for a given server { gid = 1, sid = 2, track = 'by_dst', ip = '1.2.3.4' }, } --]] --[[ event_filter = { -- reduce the number of events logged for some rules { gid = 1, sid = 1, type = 'limit', track = 'by_src', count = 2, seconds = 10 }, { gid = 1, sid = 2, type = 'both', track = 'by_dst', count = 5, seconds = 60 }, } --]] --[[ rate_filter = { -- alert on connection attempts from clients in SOME_NET { gid = 135, sid = 1, track = 'by_src', count = 5, seconds = 1, new_action = 'alert', timeout = 4, apply_to = '[$SOME_NET]' }, -- alert on connections to servers over threshold { gid = 135, sid = 2, track = 'by_dst', count = 29, seconds = 3, new_action = 'alert', timeout = 1 }, } --]] --------------------------------------------------------------------------- -- 7. configure outputs --------------------------------------------------------------------------- -- event logging -- you can enable with defaults from the command line with -A <alert_type> -- uncomment below to set non-default configs --alert_csv = { } --alert_fast = { } --alert_full = { } --alert_sfsocket = { } --alert_syslog = { } --unified2 = { } -- packet logging -- you can enable with defaults from the command line with -L <log_type> --log_codecs = { } --log_hext = { } --log_pcap = { } -- additional logs --packet_capture = { } --file_log = { } --------------------------------------------------------------------------- -- 8. configure tweaks --------------------------------------------------------------------------- if ( tweaks ~= nil ) then include(tweaks .. '.lua') end
수정본
파일 열기
--------------------------------------------------------------------------- -- Snort++ configuration --------------------------------------------------------------------------- -- there are over 200 modules available to tune your policy. -- many can be used with defaults w/o any explicit configuration. -- use this conf as a template for your specific configuration. -- 1. configure defaults -- 2. configure inspection -- 3. configure bindings -- 4. configure performance -- 5. configure detection -- 6. configure filters -- 7. configure outputs -- 8. configure tweaks --------------------------------------------------------------------------- -- 1. configure defaults --------------------------------------------------------------------------- -- HOME_NET and EXTERNAL_NET must be set now -- setup the network addresses you are protecting HOME_NET = 'any' -- set up the external network addresses. -- (leave as "any" in most situations) EXTERNAL_NET = 'any' include 'snort_defaults.lua' -- include 'file_magic.lua' --------------------------------------------------------------------------- -- 2. configure inspection --------------------------------------------------------------------------- -- mod = { } uses internal defaults -- you can see them with snort --help-module mod -- mod = default_mod uses external defaults -- you can see them in snort_defaults.lua -- the following are quite capable with defaults: stream = { } stream_ip = { } stream_icmp = { } stream_tcp = { } stream_udp = { } stream_user = { } stream_file = { } arp_spoof = { } back_orifice = { } dnp3 = { } dns = { } http_inspect = { } http2_inspect = { } imap = { } modbus = { } netflow = {} normalizer = { } pop = { } rpc_decode = { } sip = { } ssh = { } ssl = { } telnet = { } dce_smb = { } dce_tcp = { } dce_udp = { } dce_http_proxy = { } dce_http_server = { } -- see snort_defaults.lua for default_* gtp_inspect = default_gtp port_scan = default_med_port_scan smtp = default_smtp ftp_server = default_ftp_server ftp_client = { } ftp_data = { } -- see file_magic.lua for file id rules -- file_id = { file_rules = file_magic } file_id = { rules_file = 'file_magic.rules' } -- the following require additional configuration to be fully effective: appid = { -- appid requires this to use appids in rules --app_detector_dir = 'directory to load appid detectors from' } --[[ reputation = { -- configure one or both of these, then uncomment reputation --blacklist = 'blacklist file name with ip lists' --whitelist = 'whitelist file name with ip lists' } --]] --------------------------------------------------------------------------- -- 3. configure bindings --------------------------------------------------------------------------- wizard = default_wizard binder = { -- port bindings required for protocols without wizard support { when = { proto = 'udp', ports = '53', role='server' }, use = { type = 'dns' } }, { when = { proto = 'tcp', ports = '53', role='server' }, use = { type = 'dns' } }, { when = { proto = 'tcp', ports = '111', role='server' }, use = { type = 'rpc_decode' } }, { when = { proto = 'tcp', ports = '502', role='server' }, use = { type = 'modbus' } }, { when = { proto = 'tcp', ports = '2123 2152 3386', role='server' }, use = { type = 'gtp_inspect' } }, { when = { proto = 'tcp', service = 'dcerpc' }, use = { type = 'dce_tcp' } }, { when = { proto = 'udp', service = 'dcerpc' }, use = { type = 'dce_udp' } }, { when = { proto = 'udp', service = 'netflow' }, use = { type = 'netflow' } }, { when = { service = 'netbios-ssn' }, use = { type = 'dce_smb' } }, { when = { service = 'dce_http_server' }, use = { type = 'dce_http_server' } }, { when = { service = 'dce_http_proxy' }, use = { type = 'dce_http_proxy' } }, { when = { service = 'dnp3' }, use = { type = 'dnp3' } }, { when = { service = 'dns' }, use = { type = 'dns' } }, { when = { service = 'ftp' }, use = { type = 'ftp_server' } }, { when = { service = 'ftp-data' }, use = { type = 'ftp_data' } }, { when = { service = 'gtp' }, use = { type = 'gtp_inspect' } }, { when = { service = 'imap' }, use = { type = 'imap' } }, { when = { service = 'http' }, use = { type = 'http_inspect' } }, { when = { service = 'http2' }, use = { type = 'http2_inspect' } }, { when = { service = 'modbus' }, use = { type = 'modbus' } }, { when = { service = 'pop3' }, use = { type = 'pop' } }, { when = { service = 'ssh' }, use = { type = 'ssh' } }, { when = { service = 'sip' }, use = { type = 'sip' } }, { when = { service = 'smtp' }, use = { type = 'smtp' } }, { when = { service = 'ssl' }, use = { type = 'ssl' } }, { when = { service = 'sunrpc' }, use = { type = 'rpc_decode' } }, { when = { service = 'telnet' }, use = { type = 'telnet' } }, { use = { type = 'wizard' } } } --------------------------------------------------------------------------- -- 4. configure performance --------------------------------------------------------------------------- -- use latency to monitor / enforce packet and rule thresholds --latency = { } -- use these to capture perf data for analysis and tuning --profiler = { } --perf_monitor = { } --------------------------------------------------------------------------- -- 5. configure detection --------------------------------------------------------------------------- references = default_references classifications = default_classifications ips = { -- use this to enable decoder and inspector alerts enable_builtin_rules = true, -- use include for rules files; be sure to set your path -- note that rules files can include other rules files --include = 'snort3-community.rules', -- RULE_PATH is typically set in snort_defaults.lua rules = [[ include $RULE_PATH/snort3-app-detect.rules include $RULE_PATH/snort3-browser-chrome.rules include $RULE_PATH/snort3-browser-firefox.rules include $RULE_PATH/snort3-browser-ie.rules include $RULE_PATH/snort3-browser-other.rules include $RULE_PATH/snort3-browser-plugins.rules include $RULE_PATH/snort3-browser-webkit.rules include $RULE_PATH/snort3-content-replace.rules include $RULE_PATH/snort3-exploit-kit.rules include $RULE_PATH/snort3-file-executable.rules include $RULE_PATH/snort3-file-flash.rules include $RULE_PATH/snort3-file-identify.rules include $RULE_PATH/snort3-file-image.rules include $RULE_PATH/snort3-file-java.rules include $RULE_PATH/snort3-file-multimedia.rules include $RULE_PATH/snort3-file-office.rules include $RULE_PATH/snort3-file-other.rules include $RULE_PATH/snort3-file-pdf.rules include $RULE_PATH/snort3-indicator-compromise.rules include $RULE_PATH/snort3-indicator-obfuscation.rules include $RULE_PATH/snort3-indicator-scan.rules include $RULE_PATH/snort3-indicator-shellcode.rules include $RULE_PATH/snort3-malware-backdoor.rules include $RULE_PATH/snort3-malware-cnc.rules include $RULE_PATH/snort3-malware-other.rules include $RULE_PATH/snort3-malware-tools.rules include $RULE_PATH/snort3-netbios.rules include $RULE_PATH/snort3-os-linux.rules include $RULE_PATH/snort3-os-mobile.rules include $RULE_PATH/snort3-os-other.rules include $RULE_PATH/snort3-os-solaris.rules include $RULE_PATH/snort3-os-windows.rules include $RULE_PATH/snort3-policy-multimedia.rules include $RULE_PATH/snort3-policy-other.rules include $RULE_PATH/snort3-policy-social.rules include $RULE_PATH/snort3-policy-spam.rules include $RULE_PATH/snort3-protocol-dns.rules include $RULE_PATH/snort3-protocol-finger.rules include $RULE_PATH/snort3-protocol-ftp.rules include $RULE_PATH/snort3-protocol-icmp.rules include $RULE_PATH/snort3-protocol-imap.rules include $RULE_PATH/snort3-protocol-nntp.rules include $RULE_PATH/snort3-protocol-other.rules include $RULE_PATH/snort3-protocol-pop.rules include $RULE_PATH/snort3-protocol-rpc.rules include $RULE_PATH/snort3-protocol-scada.rules include $RULE_PATH/snort3-protocol-services.rules include $RULE_PATH/snort3-protocol-snmp.rules include $RULE_PATH/snort3-protocol-telnet.rules include $RULE_PATH/snort3-protocol-tftp.rules include $RULE_PATH/snort3-protocol-voip.rules include $RULE_PATH/snort3-pua-adware.rules include $RULE_PATH/snort3-pua-other.rules include $RULE_PATH/snort3-pua-p2p.rules include $RULE_PATH/snort3-pua-toolbars.rules include $RULE_PATH/snort3-server-apache.rules include $RULE_PATH/snort3-server-iis.rules include $RULE_PATH/snort3-server-mail.rules include $RULE_PATH/snort3-server-mssql.rules include $RULE_PATH/snort3-server-mysql.rules include $RULE_PATH/snort3-server-oracle.rules include $RULE_PATH/snort3-server-other.rules include $RULE_PATH/snort3-server-samba.rules include $RULE_PATH/snort3-server-webapp.rules include $RULE_PATH/snort3-sql.rules include $RULE_PATH/snort3-x11.rules ]], variables = default_variables, --_singletable } search_engine = { search_method = 'lowmem' } rewrite = { } -- use these to configure additional rule actions -- react = { } -- reject = { } -- use this to enable payload injection utility -- payload_injector = { } --------------------------------------------------------------------------- -- 6. configure filters --------------------------------------------------------------------------- -- below are examples of filters -- each table is a list of records --[[ suppress = { -- don't want to any of see these { gid = 1, sid = 1 }, -- don't want to see these for a given server { gid = 1, sid = 2, track = 'by_dst', ip = '1.2.3.4' }, } --]] --[[ event_filter = { -- reduce the number of events logged for some rules { gid = 1, sid = 1, type = 'limit', track = 'by_src', count = 2, seconds = 10 }, { gid = 1, sid = 2, type = 'both', track = 'by_dst', count = 5, seconds = 60 }, } --]] --[[ rate_filter = { -- alert on connection attempts from clients in SOME_NET { gid = 135, sid = 1, track = 'by_src', count = 5, seconds = 1, new_action = 'alert', timeout = 4, apply_to = '[$SOME_NET]' }, -- alert on connections to servers over threshold { gid = 135, sid = 2, track = 'by_dst', count = 29, seconds = 3, new_action = 'alert', timeout = 1 }, } --]] --------------------------------------------------------------------------- -- 7. configure outputs --------------------------------------------------------------------------- -- event logging -- you can enable with defaults from the command line with -A <alert_type> -- uncomment below to set non-default configs --alert_csv = { } --alert_fast = { } --alert_full = { } --alert_sfsocket = { } --alert_syslog = { } --unified2 = { } -- packet logging -- you can enable with defaults from the command line with -L <log_type> --log_codecs = { } --log_hext = { } --log_pcap = { } -- additional logs --packet_capture = { } --file_log = { } --------------------------------------------------------------------------- -- 8. configure tweaks --------------------------------------------------------------------------- if ( tweaks ~= nil ) then include(tweaks .. '.lua') end
비교하기