1. Trang chủ
  2. » Công Nghệ Thông Tin

Network Security Toolkit (NST): Packet Analysis Personified docx

4 329 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 4
Dung lượng 1,9 MB

Nội dung

toolsmith Network Security Toolkit (NST): Packet Analysis Personied By Russ McRee – ISSA Senior Member, Puget Sound (Seattle), USA Chapter Prerequisites Virtualization software if you don’t wish to run NST as a LiveCD or install to ded- icated hardware. A s I write this I’m on the way back from SANS Network Security in Las Vegas where I’d spent two days deeply entrenched analyzing packet captures during the lab portion of the GSE exam. During preparation for this exam I’d used a vari- ety of VM-based LiveCD distributions to study and practice, amongst them Security Onion. There are three distributions I run as VMs that are always on immediate standby in my toolkit. They are, in no particular order, Doug Burk’s bril- liant Security Onion, Kevin Johnson’s SamuraiWTF, and Back Track 5 R3. Security Onion 1 and SamuraiWTF 2 have both been toolsmith topics for good reason; I’ve not covered Back Track only because it would seem so cliché. I will tell you that I am extremely fond of Security Onion and consider it indispensable. As such, I hesitated to cover the Network Se- curity Toolkit (NST) when I first learned of it while preparing for the lab, feeling as if it might violate some code of loyalty I felt to Doug and Security Onion. Weird I know, and the truth is Doug would be one of the first to tell you that the more tools made available to defenders the better. NST represents a number of core principles inherent to tool- smith and the likes of Security Onion. NST is comprehensive and convenient and allows the analyst almost immediate and useful results. NST is an excellent learning tool and allows beginners and experts much success in discovering more about their network environments. NST is also an inclusive, open project that grows with help from an interested and en- gaged community. The simple truth is Security Onion and NST represent different approaches to complex problems. We all have a community to serve and the same goals at heart, so I got over my hesitation and reached out to the NST project leads. The Network Security Toolkit is the brainchild of Paul Blan- kenbaker and Ron Henderson and is a Linux distribution that includes a vast collection of best-of-breed, open-source. network-security applications useful to the network security 1 http://holisticinfosec.org/toolsmith/pdf/may2011.pdf. 2 http://holisticinfosec.org/toolsmith/pdf/december2010.pdf. professional. In the early days of NST, Paul and Ron found that they needed a common user in- terface and unified methodology for ease of access and effi- ciency in automating the configuration process. Ron’s background in network computing and Paul’s in software devel- opment lead to what is now referred to as the NST WUI (web user interface). Given the wide range of open source networking tools with corresponding command line interfaces that differ from one application to the next, this was no small feat. The NST WUI now provides a means to allow easy access and a common look-and-feel for many popular network security tools, giving the novice the ability to point and click while also providing advanced users (secu- rity analysts, ethical hackers) options to work directly with command line console output. According to Ron, one of the most beneficial tool enhance- ments that NST has to offer for the network and security ad- ministrator is the Single-Tap and Multi-Tap Network Packet Capture interface. Essentially, adding a web-based front-end to Wireshark, Tcpdump, and Snort for packet capture analy- sis and decode has made it easy to perform these tasks using a web browser. With the new NST v2.16.0-4104 release, they took it a step forward and integrated CloudShark 3 technology into the NST WUI for collaborative packet capture analysis, sharing and management. Ron is also fond of the Network Interface Bandwidth Moni- tor. This tool is an interactive, dynamic, SVG/AJAX-enabled application integrated into the NST WUI for monitoring net- work bandwidth usage on each configured network interface in pseudo real time. He designed this application with the controls of a standard digital oscilloscope in mind. Ron is also proud of NST’s ability to geolocate network enti- ties. We’ll further explore using NST’s current repertoire of available network entities that can be geolocated with their associated application, as well as Ron’s other favorites men- tioned above. Paul also shared something I enjoyed as acronyms are so common in our trade. He mentioned that the NST distribu- tion can be used in many situations. One of his personal fa- 3 http://www.cloudshark.org. October 2012 | ISSA Journal – 29 ©2012 ISSA • www.issa.org • editor@issa.org • Permission for author use only. vorites is related to the FIRST Robotics Competition (FRC) which occurs each year. FIRST for Paul is For Inspiration and Recognition of Science and Technol- ogy, where I am more accustomed to its use as Forum for Incident Response and Security Teams. Paul men- tors FIRST team 868, the TechHounds at the Carmel high school in Indiana, where in FRC competitions teams have used NST (or could use) during a hectic FRC build season: • Quickly identity which network components in- volved with operating the robot are “alive” • From the WUI menu: Security -> Active Scanners -> ARP Scan (arp-scan) • Observe how much network traffic increases or decreases as we adjust the IP based robot camera settings • From the WUI menu: Network -> Monitors -> Network Interface Bandwidth Monitor • Capture packets between the robot and the controlling computer • Scan the area for WIFI traffic and use this information to pick frequencies for robot communications that are not heavily used • Set up a Subversion and Trac server for managing source code through the build season. • From the WUI menu: System -> File System Manage- ment -> Subversion Manager • Teach the benefits of scripting and automating tasks • Provide an environment that can be expanded and cus- tomized While Paul and team have used NST for robotics, it’s quite clear how their use-case bullet list applies to the incident re- sponder and network security analyst. Installing NST NST, as an ISO, can be run as LiveCD, installed to dedicated hardware, and also as a virtual machine. If you intend to take advantage of the Multi-Tap Network Packet Capture inter- face feature with your NST installation set up as a central- ized, aggregating sensor, then you’ll definitely want to utilize dedicated hardware with multiple network interfaces. As an example, figure 1 displays using NST to capture network and port address translation traffic across a firewall boundary. Once booted into NST you can navigate from Applications to System Tools to install NST to hard drive in order to execute a dedicated installation. Keep in mind that when virtualizing you could enable multi- ple NICs to leverage multi-tap, but your performance will be limited as you’d likely do so on a host system with one NIC. Using NST NST use centers around the WUI; access it via Firefox on the NST installation at http://127.0.0.1/nstwui/main.cgi. The first time you login, you’ll be immediately reminded to change the default password (nst2003). After doing so, log back in and select Tools -> Network Widgets -> IPv4 Address. Once you know what the IP address is you can opt to use NST WUI from another browser. My session as an example: https://192.168.153.132/nstwui/index.cgi. Per Ron’s above men- tioned tool enhance- ments, let’s explore Single-Tap Net- work Packet Capture (I’m running NST as a VM). Click Network -> Protocol Analyz- ers -> Single-Tap Net- work Packet Capture where you’ll be pre- sented with a number of options regard- ing how you’d like to configure the capture. Figure 1 – Multi-Tap Network Packet Capture across a rewall - NAT/PAT Trafc Figure 2 – Congure a Single-Tap capture with NST 30 – ISSA Journal | October 2012 toolsmith: Network Security Toolkit (NST): Packet Analysis Personied | Russ McRee ©2012 ISSA • www.issa.org • editor@issa.org • Permission for author use only. You can choose to define the likes of duration, file size, and packet count or select predefined short or long capture ses- sions as seen in figure 2. If you accepted defaults for capture storage location, you can click Browse and find the results of your efforts in /var/ nst/wuiout/wireshark . Now here’s where the cool comes in. CloudShark (yep, Wireshark in the cloud) allows you to “secure, share, and analyze capture files anywhere, on any device” via either cloudshark.org or a CloudShark appli- ance. Please note that capture files uploaded to cloudshark. org are not secured by default and can be viewed by any- one who knows the correct URL. You’ll need an appliance or CloudShark Enterprise to secure and manage captures. That aside the premise of CloudShark is appealing and NST integrates CloudShark directly. From the Tools menu select Network Widgets then CloudShark Upload Manager. I’d al- ready upload malicious.pcap as seen in figure 3. Users need only click on View Network Packet Captures in the upload manager and they’ll be directed right to the CloudShark instance of their uploaded capture as seen in figure 4. Many of the features you’d expect from a local instance of Wireshark are available to the analyst, including graphs, con- versations, protocol decodes, and follow stream. NST also includes the Network In- terface Bandwidth Monitor. Select Network -> Monitors -> Network Interface Bandwidth Monitor. A bandwidth monitor for any inter- face present on your NST instance will be available to you (eth0 and lo on my VM) as seen in figure 5. You can see the +100 kbps spikes I generated against eth0 with a quick NMAP scan as an example. NST’s geolocation capabilities are many, but be sure to setup the NST system to geolocate data first. 4 I uploaded a multiple host PCAP (P2P traffic) via Network Packet Capture Manager, clicked the A (attach) button un- der Action and was them redirected back to Network -> Protocol Analyzers -> Single-Tap Network Pack- et Capture. I then chose to use the Text-Based Proto- col Analyzer Decode op- tion as described on the NST Wiki 5 and clicked the 4 http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Setup_The_NST_ System_To_Geolocate_Data. 5 http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Geolocate_ Network_Packet_Capture_Data. Figure 3 – CloudShark tightly integrated with NST Figure 4 – Capture results displayed via CloudShark Figure 5 – NST’s Network Interface Bandwidth Monitor October 2012 | ISSA Journal – 31 toolsmith: Network Security Toolkit (NST): Packet Analysis Personied | Russ McRee ©2012 ISSA • www.issa.org • editor@issa.org • Permission for author use only. Hosts – Google Maps button. This particular capture gave NST a lot of work to do as it includes thousands of IPs, but the resulting geolocated visualization as seen in figure 6 is well worth it. If we had page space available to show you the whole world you’d see that the entire globe is represented by this bot, but I’m only showing you North America and Europe. As discussed in recent OSINT-related toolsmiths, there’s even an NST OSINT feature called theHarvester, found under Security -> Information Search -> theHarvester. Information gathering with theHarvester includes email accounts, user names, hostnames, and domains from different public Inter- net sources. So many features, so little time. Pick an item from the menu and drill in. There’s a ton of documentation under the Docs menu, too, including the NST Wiki, so you have no excuses not to jump in head first. In conclusion NST is one of those offerings where the few pages dedicated to it in toolsmith don’t do it justice. NST is incredibly feature rich, and literally invites the user to explore while the hours sneak by unnoticed. The NST WUI has created a learning en- vironment I will be incorporating into my network security analysis teaching regimens. New to network security analysis or a salty old hand, NST is a worthy addition to your tool collection. Ping me via email if you have questions (russ at holisticinfo- sec dot org). Cheers…until next month. Acknowledgements —Paul Blankenbaker and Ron Henderson, NST project leads About the Author Russ McRee manages the Security Analytics team (security inci- dent management, penetration testing, monitoring) for Micro- soft’s Online Services Security & Compliance organization. In addition to toolsmith, he’s written for numerous other publica- tions, speaks regularly at events such as DEFCON, Black Hat, and RSA, and is a SANS Internet Storm Center handler. As an advocate for a holistic approach to the practice of information assurance Russ maintains holisticinfosec.org. He serves in the Washington State Guard as the Cybersecurity Advisor to the Washington Military Department. Reach him at russ at holis- ticinfosec dot org or @holisticinfosec. Figure 6 – P2P bot visually geolocated via NST 32 – ISSA Journal | October 2012 toolsmith: Network Security Toolkit (NST): Packet Analysis Personied | Russ McRee ©2012 ISSA • www.issa.org • editor@issa.org • Permission for author use only. . http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Setup_The_NST_ System_To_Geolocate_Data. 5 http://wiki.networksecuritytoolkit.org/nstwiki/index.php/HowTo_Geolocate_ Network_ Packet_ Capture_Data. Figure. Multi-Tap Network Packet Capture across a rewall - NAT/PAT Trafc Figure 2 – Congure a Single-Tap capture with NST 30 – ISSA Journal | October 2012 toolsmith: Network Security Toolkit (NST): Packet. displayed via CloudShark Figure 5 – NST’s Network Interface Bandwidth Monitor October 2012 | ISSA Journal – 31 toolsmith: Network Security Toolkit (NST): Packet Analysis Personied | Russ McRee ©2012

Ngày đăng: 28/03/2014, 22:20

TỪ KHÓA LIÊN QUAN