<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="/css/rss.css" type="text/css"?>
<rss version="2.0">
<channel>
  <title>      SANS Internet Storm Center, InfoCON: green</title>
  <link>       http://isc.sans.org</link>
  <description><![CDATA[]]></description>
  <language>   en-us</language>
  <lastBuildDate>   Fri, 20 Nov 2009 22:25:02 +0000</lastBuildDate>
  <pubDate>   Fri, 20 Nov 2009 13:43:09 GMT</pubDate>
<copyright>(C) SANS Institute 2009</copyright>
             <generator>isc rss feed maker</generator>
             <ttl>30</ttl>
             <webMaster>handlers@sans.org (ISC Handlers)</webMaster>
             <image>
               <title>SANS Internet Storm Center, InfoCON: green</title>
               <url>http://isc.sans.org/images/status.gif</url>
               <link>http://isc.sans.org</link>
             </image>
  <item>
    <title>Fedora to allow the installation of packages, without root privileges? , (Thu, Nov 19th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7612&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7612&amp;rss</guid>
    <description><![CDATA[A bug created back in November against the latest Fedora release (12) indicates that, through the GUI, desktop users of the Fedora system are able to install signed packages without root privileges or root authentication. Yes, you just read that correctly. (I'll give you a second re-read that sentence so I don't have to retype it.) Yes, it's a feature, not a bug.<br />
In all my travels I've only ran across one company, ever, that has Fedora rolled out as an enterprise operating system on every desktop. But what kind of security implications does this have? I obviously don't have to explain why this is (may be) a bad idea to the readers of the ISC, as we are all security minded people. <br />
Now, the restrictions. This change does not affect yum on the command line. This only affects installing things through the GUI. (Not that helps any, as most users will be running the GUI anyway.) You can also disable it.<br />
create a file in:<br />
/var/lib/polkit-1/localauthority/20-org.d unix-user:someone_else<br />
Action=org.freedesktop.packagekit.*<br />
ResultAny=auth_admin<br />
ResultInactive=auth_admin<br />
ResultActive=auth_admin<br />
<br />
(the above came from the release notes for Fedora 12, found here. <br />
Also, I found this as a solution:<br />
<br />
pklalockdown --lockdown org.freedesktop.packagekit.package-install<br />
<br />
Currently in the bug, there is some debate about if they should revert this feature. So, this may be just temporary. <br />
<br />
UPDATE: After I wrote about this yesterday, an email was sent out to the Fedora Developers List saying that, essentially, have reversed the decision and will now require the root password for the installation of packages. Read the email here. Thanks to the commenters on this post for the update.<br />
-- Joel Esler | http://blog.joelesler.net | http://twitter.com/joelesler]]></description>
    <pubDate>Fri, 20 Nov 2009 13:43:09 GMT</pubDate>
  </item>
  <item>
    <title>
 PHP 5.3.1 is released.  With many of the websites on the net relying on PHP and the number of attacks we see, consider upgrading.  This release has over 100 bug fixes, some of which are security related., (Fri, Nov 20th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7615&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7615&amp;rss</guid>
    <pubDate>Fri, 20 Nov 2009 01:00:33 GMT</pubDate>
  </item>
  <item>
    <title>
Using a Cisco Router as a “Remote Collector” for tcpdump or Wireshark, (Wed, Nov 18th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7609&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7609&amp;rss</guid>
    <description><![CDATA[Have you ever thought about your routers. I mean - *really* thought about them? They think all day long, processing all of the packets in and out of your companys WAN or internet connection, and hardly ever complain. But can you get any useful information out of those packets?<br />
<br />
<br />
<br />
PC's with almost any operating system can be configured with tcpdump or windump (with wireshark or whatever gui you'd care to hang in front of it) to do packet capture an analysis. But if the traffic you are trying to capture is halfway across the world (or maybe closer but still too far to drive), can you use your router to capture packets in a standard libpcap format?<br />
<br />
<br />
<br />
As you've probably guessed, the answer is YES, or else thered be no reason to write this article. Let's go through the steps, from start to finish.<br />
<br />
<br />
<br />
First, ensure that you have syslog set up  your packets are going to show up in the routers log. You can execute this packet capture process without syslog by using show log to view the local log buffer, but you'll be very limited as to how many packets you can capture per session. <br />
<br />
<br />
<br />
Next, decide what traffic you'd like to capture. Keep in mind that your captured packets are going to be sent back over the network to your syslog server. So if you are troubleshooting a congested network, you might be better served using ip accounting or netflow. To define your traffic, use an access list. Remember that you're going to end up having to look at these packets, so the more specific you can make this list, the better. Something like:<br />
<br />
ip access-list 111 permit tcp host 172.16.122.72 any eq 80<br />
<br />
ip access-list 111 permit tcp any eq 80 host 172.16.122.72<br />
<br />
<br />
will capture all web traffic originating from 172.16.122.72, as well as the return traffic. However, something like<br />
<br />
ip access-list 111 permit tcp any any eq 80<br />
<br />
<br />
is generally a VERY BAD idea as it will capture all web traffic requests but none of the responses - not only will this only capture half of the conversation, it will likely max out the cpu and network of your router (depending on the router cpu and network of course). Also be very sure that your list does not encompass your syslog traffic  often adding the line:<br />
<br />
ip access-list 111 deny udp any any eq 514<br />
<br />
<br />
might be a smart thing to add to your list , just to be safe. It prevents an infinite recursive loop  your first packet will go to syslog, be recaptured as an sent to syslog, and so on ... This process isn't supposed to capture packets sourced from the router, but if you are troubleshooting problems it's generally because things aren't working the way they should ...<br />
<br />
<br />
<br />
Next, we need to start capturing traffic. from the exec prompt (privilege level 15), do<br />
<br />
debug ip packet 111 dump<br />
This debug command initiates the packet capture of the interesting traffic defined in access list 111- it's now time to have your workstation 172.16.122.72 do whatever it is you want to catch on film (sorry, I guess I'm dating myself with this reference). The debug ip packet dump command is included in standard IOS starting in version 12.0. So if you dont have this as a command on your router, its probably time to consider an update! <br />
<br />
<br />
<br />
When you've got enough traffic in the hopper, disable the debug and remove the access list.<br />
<br />
no debug ip packet 111 dump<br />
or :<br />
<br />
no debug all<br />
as well as:<br />
<br />
config t<br />
<br />
no access-list 111<br />
<br />
^z<br />
<br />
<br />
When we go to the log, you'll now see all the packets in hexadecimal and ASCII representation, similar to:<br />
<br />
015515: Jun 29 08:35:52.777 EST: IP: tableid=0, s=99.242.160.167 (Vlan1), d=65.173.218.96 (FastEthernet0), routed via FIB<br />
<br />
015516: Jun 29 08:35:52.781 EST: IP: s=99.242.160.167 (Vlan1), d=65.173.218.96 (FastEthernet0), g=99.242.160.1, len 48, forward<br />
<br />
05199CC0: 0017 0E0CB761 ....7a<br />
<br />
05199CD0: 0018DE5A 6FAA0800 45000030 91694000 ..^Zo*..E..0.i@.<br />
<br />
05199CE0: 7F0649B7 63F2A0A7 41ADDA60 73E40050 ..I7cr 'A-Z`sd.P<br />
<br />
05199CF0: 81254296 00000000 7002FC00 2F4F0000 .%B.....p.|./O..<br />
<br />
05199D00: 020404EC 01010402 ...l....<br />
<br />
015517: Jun 29 08:35:53.133 EST: IP: tableid=0, s=99.242.160.167 (Vlan1), d=74.125.45.101 (FastEthernet0), routed via FIB<br />
<br />
015518: Jun 29 08:35:53.133 EST: IP: s=99.242.160.167 (Vlan1), d=74.125.45.101 (FastEthernet0), g=99.242.160.1, len 48, forward<br />
<br />
05199E00: 0017 0E0CB761 ....7a<br />
<br />
05199E10: 0018DE5A 6FAA0800 45000030 917E4000 ..^Zo*..E..0.~@.<br />
<br />
05199E20: 7F06EDCD 63F2A0A7 4A7D2D65 73E50050 ..mMcr 'J}-ese.P<br />
<br />
05199E30: CE7AE47A 00000000 7002FC00 E43F0000 Nzdz....p.|.d?..<br />
<br />
05199E40: 020404EC 01010402 ...l....<br />
<br />
015519: Jun 29 08:35:53.201 EST: IP: tableid=0, s=99.242.160.167 (Vlan1), d=65.173.218.96 (FastEthernet0), routed via FIB<br />
<br />
015520: Jun 29 08:35:53.201 EST: IP: s=99.242.160.167 (Vlan1), d=65.173.218.96 (FastEthernet0), g=99.242.160.1, len 48, forward<br />
<br />
0531AC20: 0017 0E0CB761 ....7a<br />
<br />
0531AC30: 0018DE5A 6FAA0800 45000030 91924000 ..^Zo*..E..0..@.<br />
<br />
0531AC40: 7F06498E 63F2A0A7 41ADDA60 73E60050 ..I.cr 'A-Z`sf.P<br />
<br />
0531AC50: CF69CD4F 00000000 7002FC00 564F0000 OiMO....p.|.VO..<br />
<br />
0531AC60: 020404EC 01010402 ...l....<br />
<br />
015521: Jun 29 08:35:55.205 EST: IP: tableid=0, s=99.242.160.167 (Vlan1), d=66.35.45.201 (FastEthernet0), routed via FIB<br />
<br />
015522: Jun 29 08:35:55.205 EST: IP: s=99.242.160.167 (Vlan1), d=66.35.45.201 (FastEthernet0), g=99.242.160.1, len 48, forward<br />
<br />
0531AAE0: 0017 0E0CB761 ....7a<br />
<br />
0531AAF0: 0018DE5A 6FAA0800 45000030 92104000 ..^Zo*..E..0..@.<br />
<br />
0531AB00: 7F06F531 63F2A0A7 42232DC9 73E70050 ..u1cr 'B#-Isg.P<br />
<br />
0531AB10: 88101C35 00000000 7002FC00 FAE30000 ...5....p.|.zc..<br />
<br />
0531AB20: 020404EC 01010402 ...l....<br />
<br />
015512: Jun 29 08:37:22.206 EST: %SEC-6-IPACCESSLOGP: list 101 denied tcp 60.242.244.62(64491) - 99.242.160.167(50414), 1 packet<br />
<br />
015513: Jun 29 08:37:39.279 EST: %SEC-6-IPACCESSLOGP: list 101 denied tcp 60.242.244.62(64221) - 99.242.160.167(50414), 2 packets<br />
<br />
<br />
<br />
<br />
In many cases, you can work with the packets in hex, and this output will be sufficient  I guess this all depends on your geek factor. However, if you need to interpret these packets with a decoder or in a GUI, you'll need to get them into PCAP format. This is a two stage process. First, we'll need to get them to PCAP's ascii representation, which looks like this:<br />
<br />
# Packet 1<br />
<br />
00000000 00 17 0E 0C B7 61 00 18 DE 5A 6F AA 08 00 45 00 #<br />
<br />
00000010 00 30 91 69 40 00 7F 06 49 B7 63 F2 A0 A7 41 AD #<br />
<br />
00000020 DA 60 73 E4 00 50 81 25 42 96 00 00 00 00 70 02 #<br />
<br />
00000030 FC 00 2F 4F 00 00 02 04 04 EC 01 01 04 02 #<br />
<br />
# Packet 2<br />
<br />
00000000 00 17 0E 0C B7 61 00 18 DE 5A 6F AA 08 00 45 00 #<br />
<br />
00000010 00 30 91 7E 40 00 7F 06 ED CD 63 F2 A0 A7 4A 7D #<br />
<br />
00000020 2D 65 73 E5 00 50 CE 7A E4 7A 00 00 00 00 70 02 #<br />
<br />
00000030 FC 00 E4 3F 00 00 02 04 04 EC 01 01 04 02 #<br />
<br />
# Packet 3<br />
<br />
00000000 00 17 0E 0C B7 61 00 18 DE 5A 6F AA 08 00 45 00 #<br />
<br />
00000010 00 30 91 92 40 00 7F 06 49 8E 63 F2 A0 A7 41 AD #<br />
<br />
00000020 DA 60 73 E6 00 50 CF 69 CD 4F 00 00 00 00 70 02 #<br />
<br />
00000030 FC 00 56 4F 00 00 02 04 04 EC 01 01 04 02 #<br />
<br />
# Packet 4<br />
<br />
00000000 00 17 0E 0C B7 61 00 18 DE 5A 6F AA 08 00 45 00 #<br />
<br />
00000010 00 30 92 10 40 00 7F 06 F5 31 63 F2 A0 A7 42 23 #<br />
<br />
00000020 2D C9 73 E7 00 50 88 10 1C 35 00 00 00 00 70 02 #<br />
<br />
00000030 FC 00 FA E3 00 00 02 04 04 EC 01 01 04 02 #<br />
<br />
<br />
A simple way to do this is take your log file and run it through a AWK script i2p.awk that I've written to fix the file format, then run THAT file through text2pcap.exe (which comes as part of the wireshark distro). There are lots of perl scripts out there to do this exact thing, but I thought that AWK might be a lighter-weight, portable way of getting this same job done with less fuss. Plus I wanted to write something neat in AWK.<br />
<br />
    <br />
        <br />
            {<br />
<br />
            if (match($0 , /[0-9A-F](8):/ ) == 0) { <br />
<br />
            <br />
            <br />
            <br />
<br />
            Select lines that hold packet info (line starts 8 hex digits followed by a colon)<br />
            <br />
        <br />
        <br />
            hex = hex substr ( $0 , 10, 36)<br />
            Select lines that hold packet info (line starts 8 hex digits followed by a colon)<br />
        <br />
        <br />
            } else {<br />
            <br />
        <br />
        <br />
            if (length(hex)  0) {<br />
            If its not a packet, and we have hex data in the buffer, its time to fix the data<br />
        <br />
        <br />
            ++packet<br />
            Increment the packet number<br />
        <br />
        <br />
            printf %s %in%08x , # Packet  ,packet, 0<br />
            Print Packet # info, plus a Carriage Return, plus the first hex offset (0)<br />
        <br />
        <br />
            gsub(/[ t]/, ,hex)<br />
            Remove all spaces from the hex info<br />
        <br />
        <br />
            i=1<br />
            <br />
        <br />
        <br />
            while ( i  length(hex) ) {<br />
            Loop through the hex info, byte by byte (awk starts with a byte offset of 1)<br />
        <br />
        <br />
             printf %s%s , substr (hex , i , 2 ),  <br />
            Print each byte, with a trailing space<br />
        <br />
        <br />
             mod = (i+1)%32<br />
            Are we at the end of a line?<br />
        <br />
        <br />
             if (mod == 0 ) { printf #n%08X , (i+1)/2 }<br />
            If so, print the # at the end of the line, then the byte offset of the next line (note were correcting for the 1 byte offset that awk uses)<br />
        <br />
        <br />
            i += 2<br />
            Increment the character count by 2<br />
        <br />
        <br />
            }<br />
            <br />
        <br />
        <br />
            printf #<br />
            Print the last trailing #<br />
        <br />
        <br />
            hex = <br />
            Clear the packet hex string<br />
        <br />
        <br />
            }<br />
<br />
            }<br />
<br />
            }<br />
            <br />
        <br />
    <br />
<br />
<br />
<br />
<br />
So, if your syslog file is syslog.out, you might run this as:<br />
<br />
<br />
<br />
C:type syslog.out | awk -f i2p.awk  test1.out<br />
<br />
<br />
<br />
C: text2pcap test1.out ioscap.pcap<br />
<br />
Input from: Standard input<br />
<br />
Output to: ioscap.pcap<br />
<br />
Wrote packet of 16 bytes at 0<br />
<br />
Wrote packet of 32 bytes at 16<br />
<br />
Read 2 potential packets, wrote 2 packets<br />
<br />
<br />
Now we have a file we can open in wireshark (or anything else that can read a PCAPfile).<br />
<br />
<br />
<br />
So as you can see, were able to use a standard router as a remote collector for any standard packet sniffer program that can read a PCAP file. Just keep in mind that you are both changing the config of that router (with the access list), and enabling a debug, which can impact both CPU and Network utilization. So be sure to get permission  in many IT shops, this will take the form of a Change Control Request.<br />
<br />
<br />
<br />
After weve gone through this process, some of you are probably asking  Rob, why would I want to go through this just to capture a few packets? My answer to this might be Perhaps there are no PCs at the remote location, or Maybe youre not allowed to install a packet capture program on any of the remote PCs, or the switch at the remote location might not support a SPAN port. But the best answer is Why *wouldnt* you want to do this at least once just for fun  isnt this the neatest thing ever?<br />
This process might seem to be a bit complex, but once you have the awk code up and running, the mechanics of actually collecting and processing the packets is pretty streamlined and goes very quickly. If you find any cases where the code might need improvement, please shoot me a note and I'll try to address it.If you use this code to solve an interesting problem, please share your experience - there's a Commentbutton at the bottom of this entry. Have fun, with this, I hope you find it useful!<br />
============================================================================<br />
<br />
<br />
<br />
Note: If you are running linux, AWK is generally included as part of even the most basic distro installations. If you are a Windows user, you can get AWK from the Windows 2003 Subsystem for Unix Applications (SUA), or you can download GNUutils (http://www.gnu.org/software/coreutils/ ), which will give you a number of *nix utilities as native EXE files, or install cygwin to get native linux support.<br />
<br />
]]></description>
    <pubDate>Wed, 18 Nov 2009 16:55:27 GMT</pubDate>
  </item>
  <item>
    <title>
Metasploit Framework 3.3 Released, (Tue, Nov 17th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7606&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7606&amp;rss</guid>
    <description><![CDATA[The Metasploit Project released Metasploit Framework 3.3 today. This version contains 446 exploits, 216 auxiliary modules and hundreds of payloads. The Windows payloads now support NX, DEP, IPv6, and the Windows 7 platform. This release fixes 180 bugs since version 3.2 was released.<br />
The new version of The Metasploit Framwork is available downloadhere.<br />
-----------<br />
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot org]]></description>
    <pubDate>Tue, 17 Nov 2009 17:13:38 GMT</pubDate>
  </item>
  <item>
    <title>
OpenVPN Fixed OpenSSL Session Renegotiation Issue, (Tue, Nov 17th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7603&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7603&amp;rss</guid>
    <description><![CDATA[OpenVPN released an update to respond to the OpenSSL vulnerability described in CVE-2009-3555. OpenVPN has identified a vulnerability caused by an error in OpenSSL which could be exploited by attackers to manipulate certain data and information.<br />
OpenVPN recommend upgrading to version 2.1_rc21 which is available here.<br />
Additional information regarding OpenVPN session renegotiation is available here.<br />
-----------<br />
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot org]]></description>
    <pubDate>Tue, 17 Nov 2009 14:59:46 GMT</pubDate>
  </item>
  <item>
    <title>
Reports of a successful exploit of the SSL Renegotiation Vulnerability?, (Mon, Nov 16th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7600&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7600&amp;rss</guid>
    <description><![CDATA[Its a brand new week... and what a way to start off a brand new week with a report of someone sucessfully exploiting the SSLRenegotiation Vulnerability against a rather popular Internet property.<br />
Read all about it here.<br />
G.N. White<br />
ISCHandler on Duty<br />
]]></description>
    <pubDate>Mon, 16 Nov 2009 02:49:31 GMT</pubDate>
  </item>
  <item>
    <title>
Microsoft advisory for Windows 7 / Windows Server 2008 R2 Remote SMB DoS Exploit  released, (Sat, Nov 14th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7597&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7597&amp;rss</guid>
    <description><![CDATA[Microsoft has released an advisory for the Windows 7 / Windows Server 2008 R2 Remote SMB DoS Exploit the ISC discussed here:http://isc.sans.org/diary.html?storyid=7573. CVE-2009-3676 has been assigned to the vulnerability. The advisory is here: http://www.microsoft.com/technet/security/advisory/977544.mspx<br />
This vulnerability is not related to MS09-050, it affects both SMBv1 and SMBv2, and is brand spanking new. Disabling SMBv2 is not an effective mitigation. The impact is strictly a Denial of Service attack, no remote code execution. <br />
<br />
<br />
<br />
Assuming that you block TCP ports 139 and 445 the only impact would be an internal attacker could disable affected systems until restarted. In the grand scheme of things this would not be a critical issue unless all of a sudden your servers had to be rebooted on a regular basis, in that case you may have bigger problems because the fox would already be in the henhouse. <br />
<br />
<br />
<br />
The list of affected systems is: Windows 7 for 32-bit Systems, Windows 7 for x64-based Systems, Windows Server 2008 R2 for x64-based Systems (includig Server Core), and Windows Server 2008 R2 for Itanium-based Systems.<br />
Presumably Microsoft will release a patch in the near future, either out of band or in the next batch of 'patch Tuesday just before pray and reboot Wednesday'.<br />
Cheers,<br />
<br />
Adrien de Beaupr<br />
<br />
EWA-Canada.com]]></description>
    <pubDate>Sat, 14 Nov 2009 18:42:53 GMT</pubDate>
  </item>
  <item>
    <title>
Flash Origin Policy Attack, (Fri, Nov 13th)</title>
    <link>http://isc.sans.org/diary.html?storyid=7585&amp;rss</link>
    <guid>http://isc.sans.org/diary.html?storyid=7585&amp;rss</guid>
    <description><![CDATA[An apparently critical vulnerability in Adobe Flash has been identified that could allow sites with user generated content to attack clients. Adobe has been advised but has not issued an advisory as of yet, and no patch or easy mitigation information is available. It is possible of course to disable Flash entirely, or even selectively using addons and plugins for your browser of choice.The original disclosure is here:http://www.foregroundsecurity.com/flash-origin-policy-issues.html<br />
I would wonder what methods of detecting this exploit exist?<br />
Cheers,<br />
<br />
Adrien de Beaupr<br />
<br />
EWA-Canada.com<br />
<br />
<br />
<br />
<br />
<br />
]]></description>
    <pubDate>Fri, 13 Nov 2009 22:43:58 GMT</pubDate>
  </item>
</channel>
</rss>
