Actividad Evaluativa-Eje4 Virologia
Actividad Evaluativa-Eje4 Virologia
Actividad Evaluativa-Eje4 Virologia
VIROLOGIA I
ESTUDIANTES
INGENIERÍA DE SISTEMAS
2020
Introducción
que instalar una máquina Ubuntu y una Windows; configurar la instalación de SNORT,
modo Bridge y crear una alerta en el archivo de reglas; para que al final nos muestre la
Generalidades
Por sus siglas en ingles network intrusion detection system, lo cual significa sistemas
licencia GPL
licencia Comercial
o reglas para backdoor, DDoS, finger, FTP, ataques web, CGI, Nmap, entre otros.
Puede funcionar como sniffer y registro de paquetes. Cuando un paquete coincide con
algún patrón establecido en las reglas de configuración, se logea. Así se sabe cuándo,
Snort tiene una base de datos de ataques que se actualiza constantemente a través de
internet. Los usuarios pueden crear firmas basadas en las características de los nuevos
comunidad y compartir ha convertido a Snort en uno de los IDS basados en red más
Modos de uso
para ello creamos otro archivo que es donde editaremos las reglas del Snort
vamos hasta “step 7” para agregar nuestro archivo creado anteriormente
ahora nos dirigimos a la carpeta de snort
ahora dentro de la carpeta mandamos a llamar snort con el siguiente comando y con
la correspondiente interfaz
.
INSTALACION DE SNORT EN WINDOWS
O https://nmap.org/npcap/
Procedemos instalar las reglas o firmas Para ello creamos una cuenta en Snort
Descargamos las reglas de SNORT
Configuración
Descargamos las reglas de la comunidad Snort y pegamos los archivos en la
# VERSIONS : 2.9.16.0
# Additional information:
#--------------------------------------------------
###################################################
# You should take the following steps to create your own custom configuration:
# 5) Configure preprocessors
###################################################
###################################################
# Step #1: Set the network variables. For more information, see
README.variables
###################################################
portvar HTTP_PORTS
[36,80,81,82,83,84,85,86,87,88,89,90,311,383,555,591,593,631,801,808,818,90
1,972,1158,1220,1414,1533,1741,1812,1830,1942,2231,2301,2381,2578,2809,2
980,3029,3037,3057,3128,3443,3702,4000,4343,4848,5000,5117,5250,5450,56
00,5814,6080,6173,6988,7000,7001,7005,7071,7144,7145,7510,7770,7777,777
8,7779,8000,8001,8008,8014,8015,8020,8028,8040,8080,8081,8082,8085,8088,
8090,8118,8123,8180,8181,8182,8222,8243,8280,8300,8333,8344,8400,8443,8
500,8509,8787,8800,8888,8899,8983,9000,9002,9060,9080,9090,9091,9111,92
90,9443,9447,9710,9788,9999,10000,11371,12601,13014,15489,15672,19980,2
9991,33300,34412,34443,34444,40007,41080,44449,50000,50002,51423,53331
,55252,55555,56712]
portvar SSH_PORTS 22
# List of ports you run ftp servers on
ipvar AIM_SERVERS
[64.12.24.0/23,64.12.28.0/23,64.12.161.0/24,64.12.163.0/24,64.12.200.0/24,205.
188.3.0/24,205.188.5.0/24,205.188.7.0/24,205.188.9.0/24,205.188.153.0/24,205.
188.179.0/24,205.188.248.0/24]
# Note for Windows users: You are advised to make this an absolute path,
###################################################
# Step #2: Configure the decoder. For more information, see README.decode
###################################################
config disable_decode_alerts
config disable_tcpopt_experimental_alerts
config disable_tcpopt_obsolete_alerts
config disable_tcpopt_alerts
config disable_ipopt_alerts
# Alert if value in length field (IP, TCP, UDP) is greater th elength of the packet
# config enable_decode_oversized_alerts
enable_decode_oversized_alerts)
# config enable_decode_oversized_drops
README.flowbits
# config flowbits_size: 64
# Configure ports to ignore
# Configure active response for non inline operation. For more information, see
REAMDE.active
# Configure DAQ related options for inline operation. For more information, see
README.daq
# config set_gid:
# config set_uid:
# Configure default snaplen. Snort defaults to MTU of in use interface. For more
# config snaplen:
# Configure default bpf_file to use for filtering what traffic reaches snort. For more
# Configure default log directory for snort to log to. For more information see
# Step #3: Configure the base detection engine. For more information, see
README.decode
###################################################
# Configure the detection engine See the Snort Manual, Configuring Snort -
Includes - Config
###################################################
####################################################
# config enable_gtp
###################################################
###################################################
# fastpath-expensive-packets, \
# pkt-log
# threshold 3, \
# suspend-expensive-rules, \
# suspend-timeout 20, \
# rule-log alert
###################################################
###################################################
###################################################
###################################################
###################################################
# For more information, see Snort Manual, Configuring Snort - Dynamic Modules
###################################################
dynamicengine c:\snort\lib\snort_dynamicengine\sf_engine.dll
# path to dynamic rules libraries (Shared Object (SO) Rules)
# Set this path to where the compiled *.so binaries are installed
###################################################
# For more information, see the Snort Manual, Configuring Snort - Preprocessors
###################################################
# preprocessor normalize_ip4
# preprocessor normalize_icmp4
# preprocessor normalize_ip6
# preprocessor normalize_icmp6
# Target-based IP defragmentation. For more inforation, see README.frag3
README.stream5
track_udp yes, \
track_icmp no, \
max_tcp 262144, \
max_udp 131072, \
max_active_responses 2, \
min_response_seconds 5
180, \
ports client 21 22 23 25 42 53 70 79 109 110 111 113 119 135 136 137 139
143 \
161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666
32779, \
591 593 631 636 801 808 818 901 972 989 992 993 994 995 1158 1220 1414
1533 1741 1812 1830 1942 2231 2301 2381 2578 2809 2980 3000 3001 3029
3037 3057 3128 3300 3443 3702 3901 4000 4343 4848 5000 5117 5250 5450
5555 5600 5814 6080 6173 6988 7907 7000 7001 7005 7071 7144 7145 7510
7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912
7917 7918 7919 7920 8000 8001 8008 8014 8015 8020 8028 8040 8080
8081 8082 8085 8088 8090 8118 8123 8180 8181 8182 8222 8243 8280 8300
8333 8344 8400 8443 8500 8509 8787 8800 8888 8899 8983 9000 9002 9060
9080 9090 9091 9111 9290 9443 9447 9710 9788 9999 10000 11371 12601
13014 15489 15672 19980 29991 33300 34412 34443 34444 40007 41080
README.http_inspect
chunk_length 500000 \
server_flow_depth 0 \
client_flow_depth 0 \
post_depth 65495 \
oversize_dir_length 500 \
max_header_length 750 \
max_headers 100 \
max_spaces 200 \
small_chunk_length { 10 5 } \
808 818 901 972 1158 1220 1414 1533 1741 1812 1830 1942 2231 2301 2381
2578 2809 2980 3029 3037 3057 3128 3443 3702 4000 4343 4848 5000 5117
5250 5450 5600 5814 6080 6173 6988 7000 7001 7005 7071 7144 7145 7510
7770 7777 7778 7779 8000 8001 8008 8014 8015 8020 8028 8040 8080 8081
8082 8085 8088 8090 8118 8123 8180 8181 8182 8222 8243 8280 8300 8333
8344 8400 8443 8500 8509 8787 8800 8888 8899 8983 9000 9002 9060 9080
9090 9091 9111 9290 9443 9447 9710 9788 9999 10000 11371 12601 13014
15489 15672 19980 29991 33300 34412 34443 34444 40007 41080 44449
enable_cookie \
extended_response_inspection \
inspect_gzip \
normalize_utf \
unlimited_decompress \
normalize_javascript \
apache_whitespace no \
ascii no \
bare_byte no \
directory no \
double_decode no \
iis_backslash no \
iis_delimiter no \
iis_unicode no \
multi_slash no \
utf_8 no \
u_encode yes \
webroot no \
decompress_swf { deflate } \
decompress_pdf { deflate }
preprocessor rpc_decode: 111 32770 32771 32772 32773 32774 32775 32776
no_alert_incomplete
preprocessor bo
# FTP / Telnet normalization and anomaly detection. For more information, see
README.ftptelnet
check_encrypted
normalize ports { 23 } \
detect_anomalies
def_max_param_len 100 \
telnet_cmds yes \
ignore_telnet_erase_cmds yes \
alt_max_param_len 200 { ALLO APPE CMD HELP NLST RETR RNFR STOR
STOU XMKD } \
alt_max_param_len 256 { CWD RNTO } \
cmd_validity TYPE < { char AE [ char NTC ] | char I | char L [ number ] } >
max_resp_len 256 \
bounce yes \
ignore_telnet_erase_cmds yes \
telnet_cmds yes
README.SMTP
inspection_type stateful \
b64_decode_depth 0 \
qp_decode_depth 0 \
bitenc_decode_depth 0 \
uu_decode_depth 0 \
log_mailfrom \
log_rcptto \
log_filename \
log_email_hdrs \
normalize cmds \
normalize_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT
max_command_line_len 512 \
max_header_line_len 1000 \
max_response_line_len 512 \
DATA RSET QUIT ONEX QUEU STARTTLS TICK TIME TURNME VERB X-
valid_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT
xlink2state { enabled }
# ARP spoof detection. For more information, see the Snort Manual -
# preprocessor arpspoof
autodetect \
max_client_bytes 19600 \
max_encrypted_packets 20 \
max_server_version_len 100 \
enable_respoverflow enable_ssh1crc32 \
enable_srvoverflow enable_protomismatch
# SMB / DCE-RPC normalization and anomaly detection. For more information,
see README.dcerpc2
# SSL anomaly detection and traffic bypass. For more information, see
README.ssl
preprocessor ssl: ports { 443 465 563 636 989 992 993 994 995 5061 7801 7802
7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913
README.sensitive_data
README.sip
methods { invite \
cancel \
ack \
bye \
register \
options \
refer \
subscribe \
update \
join \
info \
message \
notify \
benotify \
do \
qauth \
sprack \
publish \
service \
unsubscribe \
prack }, \
max_uri_len 512, \
max_call_id_len 80, \
max_requestName_len 20, \
max_from_len 256, \
max_to_len 256, \
max_via_len 1024, \
max_contact_len 512, \
max_content_len 2048
preprocessor imap: \
ports { 143 } \
b64_decode_depth 0 \
qp_decode_depth 0 \
bitenc_decode_depth 0 \
uu_decode_depth 0
preprocessor pop: \
ports { 110 } \
b64_decode_depth 0 \
qp_decode_depth 0 \
bitenc_decode_depth 0 \
uu_decode_depth 0
memcap 262144 \
check_crc
#preprocessor reputation: \
# memcap 500, \
# priority whitelist, \
# nested_ip inner, \
# whitelist $WHITE_LIST_PATH/white_list.rules, \
# blacklist $BLACK_LIST_PATH/black_list.rules
###################################################
# For more information, see Snort Manual, Configuring Snort - Output Modules
###################################################
# unified2
vlan_event_types
# syslog
# pcap
include classification.config
include reference.config
###################################################
###################################################
include $RULE_PATH\local.rules
include $RULE_PATH\app-detect.rules
include $RULE_PATH\attack-responses.rules
include $RULE_PATH\backdoor.rules
include $RULE_PATH\bad-traffic.rules
include $RULE_PATH\blacklist.rules
include $RULE_PATH\botnet-cnc.rules
include $RULE_PATH\browser-chrome.rules
include $RULE_PATH\browser-firefox.rules
include $RULE_PATH\browser-ie.rules
include $RULE_PATH\browser-other.rules
include $RULE_PATH\browser-plugins.rules
include $RULE_PATH\browser-webkit.rules
include $RULE_PATH\chat.rules
include $RULE_PATH\content-replace.rules
include $RULE_PATH\ddos.rules
include $RULE_PATH\dns.rules
include $RULE_PATH\dos.rules
include $RULE_PATH\experimental.rules
include $RULE_PATH\exploit-kit.rules
include $RULE_PATH\exploit.rules
include $RULE_PATH\file-executable.rules
include $RULE_PATH\file-flash.rules
include $RULE_PATH\file-identify.rules
include $RULE_PATH\file-image.rules
include $RULE_PATH\file-java.rules
include $RULE_PATH\file-multimedia.rules
include $RULE_PATH\file-office.rules
include $RULE_PATH\file-other.rules
include $RULE_PATH\file-pdf.rules
include $RULE_PATH\finger.rules
include $RULE_PATH\ftp.rules
include $RULE_PATH\icmp-info.rules
include $RULE_PATH\icmp.rules
include $RULE_PATH\imap.rules
include $RULE_PATH\indicator-compromise.rules
include $RULE_PATH\indicator-obfuscation.rules
include $RULE_PATH\indicator-scan.rules
include $RULE_PATH\indicator-shellcode.rules
include $RULE_PATH\info.rules
include $RULE_PATH\malware-backdoor.rules
include $RULE_PATH\malware-cnc.rules
include $RULE_PATH\malware-other.rules
include $RULE_PATH\malware-tools.rules
include $RULE_PATH\misc.rules
include $RULE_PATH\multimedia.rules
include $RULE_PATH\mysql.rules
include $RULE_PATH\netbios.rules
include $RULE_PATH\nntp.rules
include $RULE_PATH\oracle.rules
include $RULE_PATH\os-linux.rules
include $RULE_PATH\os-mobile.rules
include $RULE_PATH\os-other.rules
include $RULE_PATH\os-solaris.rules
include $RULE_PATH\os-windows.rules
include $RULE_PATH\other-ids.rules
include $RULE_PATH\p2p.rules
include $RULE_PATH\phishing-spam.rules
include $RULE_PATH\policy-multimedia.rules
include $RULE_PATH\policy-other.rules
include $RULE_PATH\policy.rules
include $RULE_PATH\policy-social.rules
include $RULE_PATH\policy-spam.rules
include $RULE_PATH\pop2.rules
include $RULE_PATH\pop3.rules
include $RULE_PATH\protocol-dns.rules
include $RULE_PATH\protocol-finger.rules
include $RULE_PATH\protocol-ftp.rules
include $RULE_PATH\protocol-icmp.rules
include $RULE_PATH\protocol-imap.rules
include $RULE_PATH\protocol-nntp.rules
include $RULE_PATH\protocol-other.rules
include $RULE_PATH\protocol-pop.rules
include $RULE_PATH\protocol-rpc.rules
include $RULE_PATH\protocol-scada.rules
include $RULE_PATH\protocol-services.rules
include $RULE_PATH\protocol-snmp.rules
include $RULE_PATH\protocol-telnet.rules
include $RULE_PATH\protocol-tftp.rules
include $RULE_PATH\protocol-voip.rules
include $RULE_PATH\pua-adware.rules
include $RULE_PATH\pua-other.rules
include $RULE_PATH\pua-p2p.rules
include $RULE_PATH\pua-toolbars.rules
include $RULE_PATH\rpc.rules
include $RULE_PATH\rservices.rules
include $RULE_PATH\scada.rules
include $RULE_PATH\scan.rules
include $RULE_PATH\server-apache.rules
include $RULE_PATH\server-iis.rules
include $RULE_PATH\server-mail.rules
include $RULE_PATH\server-mssql.rules
include $RULE_PATH\server-mysql.rules
include $RULE_PATH\server-oracle.rules
include $RULE_PATH\server-other.rules
include $RULE_PATH\server-samba.rules
include $RULE_PATH\server-webapp.rules
include $RULE_PATH\shellcode.rules
include $RULE_PATH\smtp.rules
include $RULE_PATH\snmp.rules
include $RULE_PATH\specific-threats.rules
include $RULE_PATH\spyware-put.rules
include $RULE_PATH\sql.rules
include $RULE_PATH\telnet.rules
include $RULE_PATH\tftp.rules
include $RULE_PATH\virus.rules
include $RULE_PATH\voip.rules
include $RULE_PATH\web-activex.rules
include $RULE_PATH\web-attacks.rules
include $RULE_PATH\web-cgi.rules
include $RULE_PATH\web-client.rules
include $RULE_PATH\web-coldfusion.rules
include $RULE_PATH\web-frontpage.rules
include $RULE_PATH\web-iis.rules
include $RULE_PATH\web-misc.rules
include $RULE_PATH\web-php.rules
include $RULE_PATH\x11.rules
###################################################
###################################################
include $PREPROC_RULE_PATH\preprocessor.rules
include $PREPROC_RULE_PATH\decoder.rules
include $PREPROC_RULE_PATH\sensitive-data.rules
###################################################
shared-object-rules.html
###################################################
# These includes point to the SO stub rules files. For the detections to work, you
the
# include $SO_RULE_PATH/browser-chrome.rules
# include $SO_RULE_PATH/browser-ie.rules
# include $SO_RULE_PATH/browser-other.rules
# include $SO_RULE_PATH/exploit-kit.rules
# include $SO_RULE_PATH/file-executable.rules
# include $SO_RULE_PATH/file-flash.rules
# include $SO_RULE_PATH/file-image.rules
# include $SO_RULE_PATH/file-java.rules
# include $SO_RULE_PATH/file-multimedia.rules
# include $SO_RULE_PATH/file-office.rules
# include $SO_RULE_PATH/file-other.rules
# include $SO_RULE_PATH/file-pdf.rules
# include $SO_RULE_PATH/indicator-shellcode.rules
# include $SO_RULE_PATH/malware-cnc.rules
# include $SO_RULE_PATH/malware-other.rules
# include $SO_RULE_PATH/netbios.rules
# include $SO_RULE_PATH/os-linux.rules
# include $SO_RULE_PATH/os-other.rules
# include $SO_RULE_PATH/os-windows.rules
# include $SO_RULE_PATH/policy-other.rules
# include $SO_RULE_PATH/policy-social.rules
# include $SO_RULE_PATH/protocol-dns.rules
# include $SO_RULE_PATH/protocol-nntp.rules
# include $SO_RULE_PATH/protocol-other.rules
# include $SO_RULE_PATH/protocol-scada.rules
# include $SO_RULE_PATH/protocol-snmp.rules
# include $SO_RULE_PATH/protocol-tftp.rules
# include $SO_RULE_PATH/protocol-voip.rules
# include $SO_RULE_PATH/pua-p2p.rules
# include $SO_RULE_PATH/server-apache.rules
# include $SO_RULE_PATH/server-iis.rules
# include $SO_RULE_PATH/server-mail.rules
# include $SO_RULE_PATH/server-mysql.rules
# include $SO_RULE_PATH/server-oracle.rules
# include $SO_RULE_PATH/server-other.rules
# include $SO_RULE_PATH/server-webapp.rules
include threshold.conf
Conclusiones
Andrews, S. Fastqc, (2010). A quality control tool for high throughput sequence
data.
Wesley Professional.
Blankenberg, D., Kuster, G. V., Coraor, N., Ananda, G., Lazarus, R., Mangan,
M., ... & Taylor, J. (2010). Galaxy: a web‐based genome analysis tool for
Bolger, A., & Giorgi, F. Trimmomatic: A Flexible Read Trimming Tool for Illumina
Giardine, B., Riemer, C., Hardison, R. C., Burhans, R., Elnitski, L., Shah, P., ... &