As mentioned on the About page, I spend a bit of time teaching computer security via SANS as well as directly to clients. When people ask me if they would get anything out of taking my SANS course, I point them to this quick test. If you can score 12/15, you are in good shape. Less than that, and you need to cut the knowledge curve. I’ll put the answers in a different post so its less tempting to cheat.
Note: I’ve messed with the submission dates so the answers do not appear before the questions on the main page.
1) How many different techniques are available to sniff in a switched environment:
- A) None. Switches block unicast traffic to all ports.
- B) 2
- C) 4
- D) 6
2) You receive the ICMP packet shown below from a remote host. Which of the following is the most likely source of the packet?
- A) Ping run on a Windows system.
- B) Ping run on a Linux system.
- C) hping using the “-C 8” option.
- D) nmap using the “-sP” option.
15:52:50.129178 IP (tos 0×0, ttl 47, id 51389, offset 0, flags [none], proto: ICMP (1), length: 28) 1.2.3.4 > 172.30.2.10: ICMP echo request, id 18492, seq 21446
3) Which is the best way to discourage attackers from using your address space as part of a SYN flood attack?
- A) Quietly drop all inbound SYN/ACK packets that are unsolicited.
- B) Return an ICMP Admin Prohibited error packet for all inbound SYN/ACK traffic that is unsolicited.
- C) Advertise all portions (even unused) of your IP address space via BGP.
- D) Report all suspicious inbound traffic to the listed administrative contact of the source IP.
4) Which firewall product is susceptible to loose source route attacks?
- A) Check Point
- B) Cisco
- C) Netscreen
- D) None of the above
5) Which Libpcap filter would permit you to see potentially malicious IP fragments which could not have been generated by a normal topology MTU?
- A) ip = frag and evil bit = enable
- B) ip[12:2] = ip[16:2]
- C) ip[2:2]<0x1F4 and ip[6]&32!=0
- D) ip[8]<0x2A or ip[0]&0x0F>5
6) Which of the following techniques would permit an attacker to port scan your network without giving any indication of their true source IP address?
- A) nmap “stealth” (-sS) scan.
- B) nmap “idle” (-sI) scan.
- C) nmap “decoy” (-D) scan.
- D) Port scans require responses to stimulus so the true source IP cannot be completely hidden.
7) Which of the following best describes what happens when you surf to a Web site, see “HTTPS” in the URL, and the little lock icon on your Web browser is activated?
- A) All data to and from the Web server is at least authenticated.
- B) All data to and from the Web server is at least encrypted.
- C) All data to and from the Web server is encrypted and the digital certificate is fully verified.
- D) All data to and from the Web server is authenticated and encrypted.
- E) All data to and from the Web server is authenticated, encrypted and the digital certificate is fully verified.
8 ) You see the following packet leaving your Web server and headed to an IP address on the Internet. What is the most likely cause?
- A) Problem with the firewall state table time-out being set too low.
- B) Automatic update checking for new patches.
- C) Attacker retrieving a toolkit.
- D) A secure HTTPS session.
17:08:08.412172 IP (tos 0×0, ttl 128, id 18210, offset 0, flags [DF], proto: UDP (17), length: 33) 172.30.2.185.32851 > 1.2.3.4.69:
9) You see the following packet entering your network. Which answer gives the most accurate and likely possibility of what is going on?
- A) TCP transmission from a Windows system.
- B) SMTP transmission from a Windows system.
- C) Spam or Phishing attempt from a Windows system.
- D) SMTP transmission from a Linux or UNIX system.
19:22:17.631407 IP (tos 0×0, ttl 112, id 30435, offset 0, flags [DF], proto: TCP (6), length: 48) 1.2.3.4.4110 > 192.168.1.10.25: S, cksum 0xc25c (correct), 103504428:103504428(0) win 8192 <mss 1460,nop,nop,sackOK>
10) Given the following netstat output, which of the answers best describes the situation:
- A) The system has potentially been compromised.
- B) The system needs a restart to install updated software.
- C) The system is configured as a typical Windows desktop.
- D) The system is configured as a typical Windows server.
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2648
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2292
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1204
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
11) Which of the following systems can potentially be taken over by a remote attacker?
- A) A Web server exposed to Internet access.
- B) A desktop with Internet access.
- C) A firewall or Network Based Intrusion Prevention (NIPS) system.
- D) All of the above.
- E) None of the above.
12) A Network Based Intrusion Prevention System (NIPS) is simply a relabeled:
- A) Proxy based firewall.
- B) Stateful inspection based firewall.
- C) Neither, it is its own unique technology.
- D) A combination of both.
13) You see the following pattern in your firewall log, which answer best describes what may be going on?
- A) Someone is fingerprinting which firewall product we are using.
- B) A remote site is having connectivity issues connecting to our Web server.
- C) The state table time-out value on our firewall is set too low.
- D) This is normal and expected traffic to our servers.
Jun 8 05:40:36 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=2 ID=7831 PROTO=TCP SPT=2023 DPT=80 WINDOW=1400 SYN
Jun 8 05:40:38 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=44 ID=7832 PROTO=TCP SPT=80 DPT=80 WINDOW=1400 SYN
Jun 8 05:40:40 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=44 ID=7833 PROTO=TCP SPT=2024 DPT=80 WINDOW=1400 ACK
Jun 8 05:40:45 SRC= 1.2.3.4 DST=our_dns_server LEN=38 TTL=44 ID=7834 PROTO=ICMP TYPE=8 CODE=0 ID=47578 SEQ=5
Jun 8 05:40:50 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7835 PROTO=UDP SPT=2025 DPT=53
Jun 8 05:40:52 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7836 PROTO=UDP SPT=80 DPT=53
Jun 8 05:40:54 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7837 PROTO=TCP SPT=2026 DPT=53 WINDOW=1400 SYN
Jun 8 05:40:59 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7838 PROTO=TCP SPT=2026 DPT=53 WINDOW=1400 RST
14) You see the following traffic pattern in your proxy log. What is the most likely cause?
- A) 192.168.1.22 is performing normal Web browsing.
- B) 192.168.1.22 is downloading patches.
- C) Someone on 192.168.1.22 is running an nmap version scan against 1.2.3.4.
- D) 192.168.1.22 has been compromised and is calling home.
192.168.1.22 [ 9/Jul/2009:10:42:55 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:42:55 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:20 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:20 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:45 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:45 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
15) Analyze the following network drawing. How many potential paths does an attacker have available in order to gain access to the internal network?
- A) 1
- B) 2
- C) 3
- D) 4
Answers will be posted tomorrow!
C
1) How many different techniques are available to sniff in a switched environment:
A) None. Switches block unicast traffic to all ports.
B) 2
C) 4
D) 6
2) You receive the ICMP packet shown below from a remote host. Which of the following is the most likely source of the packet?
15:52:50.129178 IP (tos 0×0, ttl 47, id 51389, offset 0, flags [none], proto: ICMP (1), length: 28) 1.2.3.4 > 172.30.2.10: ICMP echo request, id 18492, seq 21446
A) Ping run on a Windows system.
B) Ping run on a Linux system.
C) hping using the “-C 8” option.
D) nmap using the “-sP” option.
3) Which is the best way to discourage attackers from using your address space as part of a SYN flood attack?
A) Quietly drop all inbound SYN/ACK packets that are unsolicited.
B) Return an ICMP Admin Prohibited error packet for all inbound SYN/ACK traffic that is unsolicited.
C) Advertise all portions (even unused) of your IP address space via BGP.
D) Report all suspicious inbound traffic to the listed administrative contact of the source IP.
4) Which firewall product is susceptible to loose source route attacks?
A) Check Point
B) Cisco
C) Netscreen
D) None of the above
5) Which Libpcap filter would permit you to see potentially malicious IP fragments which could not have been generated by a normal topology MTU?
A) ip = frag and evil bit = enable
B) ip[12:2] = ip[16:2]
C) ip[2:2]<0x1F4 and ip[6]&32!=0
D) ip[8]<0x2A or ip[0]&0x0F>5
6) Which of the following techniques would permit an attacker to port scan your network without giving any indication of their true source IP address?
A) nmap “stealth” (-sS) scan.
B) nmap “idle” (-sI) scan.
C) nmap “decoy” (-D) scan.
D) Port scans require responses to stimulus so the true source IP cannot be completely hidden.
7) Which of the following best describes what happens when you surf to a Web site, see “HTTPS” in the URL, and the little lock icon on your Web browser is activated?
A) All data to and from the Web server is at least authenticated.
B) All data to and from the Web server is at least encrypted.
C) All data to and from the Web server is encrypted and the digital certificate is fully verified.
D) All data to and from the Web server is authenticated and encrypted.
You see the following packet leaving your Web server and headed to an IP address on the Internet. What is the most likely cause?
17:08:08.412172 IP (tos 0×0, ttl 128, id 18210, offset 0, flags [DF], proto: UDP (17), length: 33) 172.30.2.185.32851 > 1.2.3.4.69:
A) Problem with the firewall state table time-out being set too low.
B) Automatic update checking for new patches.
C) Attacker retrieving a toolkit.
D) A secure HTTPS session.
9) You see the following packet entering your network. Which answer gives the most accurate and likely possibility of what is going on?
19:22:17.631407 IP (tos 0×0, ttl 112, id 30435, offset 0, flags [DF], proto: TCP (6), length: 48) 1.2.3.4.4110 > 192.168.1.10.25: S, cksum 0xc25c (correct), 103504428:103504428(0) win 8192 <mss 1460,nop,nop,sackOK>
A) TCP transmission from a Windows system.
B) SMTP transmission from a Windows system.
C) Spam or Phishing attempt from a Windows system.
D) SMTP transmission from a Linux or UNIX system.
10) Given the following netstat output, which of the answers best describes the situation:
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2648
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2292
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1204
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
A) The system has potentially been compromised.
B) The system needs a restart to install updated software.
C) The system is configured as a typical Windows desktop.
D) The system is configured as a typical Windows server.
11) Which of the following systems can potentially be taken over by a remote attacker?
A) A Web server exposed to Internet access.
B) A desktop with Internet access.
C) A firewall or Network Based Intrusion Prevention (NIPS) system.
D) All of the above.
E) None of the above.
12) A Network Based Intrusion Prevention System (NIPS) is simply a relabeled:
A) Proxy based firewall.
B) Stateful inspection based firewall.
C) Neither, it is its own unique technology.
D) A combination of both.
13) You see the following pattern in your firewall log, which answer best describes what may be going on?
A) Someone is fingerprinting which firewall product we are using.
B) A remote site is having connectivity issues connecting to our Web server.
C) The state table time-out value on our firewall is set too low.
D) This is normal and expected traffic to our servers.
Jun 8 05:40:36 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=2 ID=7831 PROTO=TCP SPT=2023 DPT=80 WINDOW=1400 SYN
Jun 8 05:40:38 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=44 ID=7832 PROTO=TCP SPT=80 DPT=80 WINDOW=1400 SYN
Jun 8 05:40:40 SRC= 1.2.3.4 DST=our_web_server LEN=40 TTL=44 ID=7833 PROTO=TCP SPT=2024 DPT=80 WINDOW=1400 ACK
Jun 8 05:40:45 SRC= 1.2.3.4 DST=our_dns_server LEN=38 TTL=44 ID=7834 PROTO=ICMP TYPE=8 CODE=0 ID=47578 SEQ=5
Jun 8 05:40:50 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7835 PROTO=UDP SPT=2025 DPT=53
Jun 8 05:40:52 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7836 PROTO=UDP SPT=80 DPT=53
Jun 8 05:40:54 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7837 PROTO=TCP SPT=2026 DPT=53 WINDOW=1400 SYN
Jun 8 05:40:59 SRC= 1.2.3.4 DST=our_dns_server LEN=58 TTL=44 ID=7838 PROTO=TCP SPT=2026 DPT=53 WINDOW=1400 RST
14) You see the following traffic pattern in your proxy log. What is the most likely cause?
A) 192.168.1.22 is performing normal Web browsing.
B) 192.168.1.22 is downloading patches.
C) Someone on 192.168.1.22 is running an nmap version scan against 1.2.3.4.
D) 192.168.1.22 has been compromised and is calling home.
192.168.1.22 [ 9/Jul/2009:10:42:55 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:42:55 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:20 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:20 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:45 +0000] “GET http:// 1.2.3.4/ HTTP/1.1″ “-” “-”
192.168.1.22 [ 9/Jul/2009:10:43:45 +0000] “POST http:// 1.2.3.4/ HTTP/1.1″ “-” “-”


