Author Archive

SANS Internet Storm Center, InfoCON: green : DNS Sinkhole Scripts Fixes/Update, (Sat, Jan 21st)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

In October 2011 [1], I released an update for the main parser script used to generate the BIND/PowerDNS configuration files. This release of the sinkhole_parser.sh script contains some important fixes, including a rewrite of the section that parses the multiple sites into 2 separate lists: site_specific_sinkhole.conf (host web list) and entire_domain_sinkhole.conf (domain wildcard web list). The script contains new lists that were not part of the 7 July 2011 release.
The script contains a fix for parsing and loading records into PowerDNS database where sometimes it would fail indicating that a record was already loaded. It has been fixed in both the sinkhole_parser.sh and powerdns_sinkhole_logs.sh (located in /usr/local/sbin) used in Webmin to load records from the GUI.
A new script, search.sh (/root/scripts) has been added to provide a search capability in Webmin (two files copied to /etc/webmin/dns-sinkhole) of the BIND DNS Sinkhole lists to verify if a particular host or domain is listed in the sinkhole.

The script is available on the handler’s server here with the MD5 here. You can either untar the tarball in / or move the scripts in the location indicated in this diary.
[1] http://isc.sans.edu/diary.html?storyid=11818

[2] http://handlers.dshield.org/gbruneau/

[3] http://handlers.dshield.org/gbruneau/dns-sinkhole/dns-sinkhole-scripts.tgz
———–
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : The privacy hodgepodge and IP Addresses, (Sat, Jan 21st)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

A comment on one of the articles earlier this week prompted me to dig around privacy legislation from various part of the planet, only to realise what a mess it is and I should probably just have mowed the lawn instead. It would have been easier on the brain. So just to give you something to think about over the weekend, or discuss at a BBQ. Is an IP address personal data? If you are in a rush, the conclusion I came to was it depends.

Just before we go on I will start all of this with I am not a lawyer (IANAL), just a security guy trying to make sense of things and likely getting some of it wrong. So if you have a need to know for sure, I suggest you ask a lawyer.

Before we get to IP addresses we’ll need to define what personal data is. This seems to be fairly consistent between countries. This is likely because most privacy legislation is based on the OECD Guidelines on the Protection of Privacy and Transborder Flows of Personal Data first adopted in 1980 after almost 10 years of discussion. Generally the definition of Personal data boils down to any information that can identify a particular individual. Some countries expand this by explicitly stating things such as race, religion, sex and other information that most of us would consider personal.

From an IP address perspective, do IP addresses fit that definition? This is where it starts getting very muddy. It appears that in some countries the answer is yes and in others it is no. To add a third option, some countries go with, only if it is combined with other items that identify a person.

When we started discussing this Swa, one of the other handlers pointed out this document Study of case law on the circumstances in which IP addresses are considered personal data It is a study of the various laws in the EU and how they relate to the EU directives regarding privacy (page 16 especially). The rest of the document is a good read, but the table on page 16 makes it very clear how confused privacy laws can be. The table shows, for example that in Austria there is no doubt, IP addresses are personal data. In the Netherlands they are not. In Bulgaria it is when combined with other information. In Italy it most certainly is. As for the rest of the world? In the US the answer seems to be no it isn’t. In AU, the approach tends to be, when combined with other personal data it is. If you happened to know your local situation add it to the comments.

When I read the study from Timelex other questions popped into my head. So if IP addresses are Personal Data can I have web logs? Can I use a third party to track visits? Probably not, at least not if I’m based in those countries that say IP Addresses are personal data. Mind you many countries do have exemptions for research and security related activities, so sharing log extract, etc is still OK (remember IANAL so check if you need to be certain).

Other questions that popped in. Can I outsource to other countries? Maybe I can share the data with them, but can they give it back? Whose laws apply when I place stuff in the cloud? For example the ammendments to India’s laws, according to informationweek.com, applies to data collected in India, but also data provided by overseas companies. What if you are a multinational? Which privacy laws apply?

Plenty to think about and I’m not suggesting that we should all become privacy experts or international privacy lawyers. What I am suggesting, however, is that you may need to point out that it needs to be thought about. After all our job is to help protect the organisation from risk.
If you want more info Wikipedia has some good links from their Privacy Law page. Some of the other resources around:

OECD Privacy Principles
OECD Guidelines on the Protection of Privacy and Transborder Flows of Personal Data
AU – http://www.privacy.gov.au
EU – http://europa.eu/legislation_summaries/information_society/data_protection/l14012_en.htm
UK – http://www.ico.gov.uk/
HK – http://www.pcpd.org.hk
CA – http://www.priv.gc.ca/

If you have some resources, preferably from official bodies, that you think others should know about, add them to the comments or send them in.
Enjoy the weekend.
Mark H

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Friday, January 20th 2012 http://isc.sans.edu/podcastdetail.html?id=2272, (Fri, Jan 20th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : WHOIS contacts are your friends, (Thu, Jan 19th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Youve rocked up to work ready to start the day and get on with the list of jobs the boss has graciously gifted you with, when your daily routing of reviewing the logs brings the normal sigh as x.x.x.x is externally scanning and probing for open ports on the perimeter.
Depending on the security stance or care factor the offending IP address may go in a block list, be ignored, be investigated further or none of the above. Lets say that you want to report this so you do a quick WHOIS lookup on the offending IP address. There are plenty of web sites that offer WHOIS lookups but if you want to perform searches from the command line Swa Frantzens guide [1] is a great refresher.
This is where you can run in to a very frustrating road block of the Useless Contact Email Details. The two worst offenders are the fake email addresses (none@nowhere.com being a favourite) or the horribly out of date email address of that goes deep into cyber space never to be seen again. One of the fun parts about being on the defensive team is trying to work out if its worthwhile telling someone their computers arent playing nice any more. So make it easy for them to do that and if someone makes that effort, be a good internet citizen and have a valid, current email address on the WHOIS record.
NOTE Before the screaming and tearing of hair occurs because Im advocating putting a valid email address that can be use be the evil smurfs gain information on you or the company, feel free to use on of the numerous WHOIS protection services that shields your email behind one of their email addresses. As long as the email gets to you, thats all that matters.
Fixing WHOIS record details is easy and straightforward*, so get it done and tick off that New Years resolution to help out the internet.
Oh, and should you get a call from someone notifying that something might be wrong with your systems, fellow handler Tom Liston came up with a fairly comprehensive list on how not to response to someone giving you the heads up [2].

[1] http://isc.sans.edu/diary.html?storyid=9325

[2] http://isc.sans.edu/diary.html?storyid=1260
* Unless you work for a big, very big company, so get raised a work ticket and have some poor soul work out how to do it and treat yourself to something nice.

Chris Mohan — Internet Storm Center Handler on Duty

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Thursday, January 19th 2012 http://isc.sans.edu/podcastdetail.html?id=2269, (Thu, Jan 19th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC Feature of the Week: The 404Project, (Wed, Jan 18th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

The 404Project is a simple snippet of code you add to your 404 error page that submits information back to ISC for reporting. The main purpose of this project is to trend the web pages crawlers and automated bots are trying to access. A public report page will be available when enough data had been collected. isc.sans.edu/tools/404project.html

Overview

The 404Project submits URI, IP and USER AGENT. Additionally, date, time and your credentials are stored along with the data. Your personal information is protected https://isc.sans.edu/privacy.html#4 and your specific user information is not shared with third parties. https://isc.sans.edu/privacy.html#1

Instructions

- You must have an ISC Portal ID and Identification Key to use this tool. https://isc.sans.edu/login.html

- Once logged in and submitting data, you can view your 404 summary information. https://isc.sans.edu/my404.html

- Get started! https://isc.sans.edu/tools/404project.html#instructions

Our skilled users have ported the 404Project to many languages! At the time of this writing, in addition to the original PHP, there is also Perl, Python, .NET and even Javascript! https://isc.sans.edu/tools/404project.html#alternatives

You can leave comments in the section below or send any questions or comments in the contact form https://isc.sans.edu/contact.html

Adam Swanger, Web Developer (GWEB)

Internet Storm Center (http://isc.sans.edu)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Oracle Quarterly Patch Advisory Released, January 17th 2012: http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html, (Wed, Jan 18th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Wednesday, January 18th 2012 http://isc.sans.edu/podcastdetail.html?id=2266, (Wed, Jan 18th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Use of Mixed Case DNS Queries, (Wed, Jan 18th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

In my DNS server query logs, I am starting to see more queries usingmixed case, like for example:

jOHanNEs.HoMePC.OrG
www.HOMEPC.ORg
wWW.Homepc.org
Www.HoMepC.ORg
WwW.homepc.ORg
WwW.HOmepc.oRG
WWw.homePc.oRg

These queries appear to be the result of DNS servers supporting a relativelynew DNS security mechanism, 0×20 Bit encoding. The approach got its namefrom encoding a bit value using the case of letters. if bit 0×20 is set in abyte, the letter is lower case. If it is cleared, the letter is upper case.
For example, the first value show above ( www.HOMEPC.ORg ) represents a valueof 11100000001 . How does this help DNS security? Host names are not casesensitive. However, the case is maintained. The answer will use the samemixed case as the query. For example:

DiG 9.7.3-P3 -HEADER ANSWER SECTION:
WwW.HoMePc.OrG. 100 IN A 70.91.145.9
.. [rest of answer omited] …
As it turns out, almost all DNS servers follow this behaviour. The new part is thatnow some DNS servers start to deliveratly encode a random value into each query theysend, and then verify if the value is maintained in the response. This in effect addsadditional bits to the query id.
While this is clearly a hack, it is a pretty attractive one. If your DNS serversupports this feature, it will automatically gain a few more bits of spoofingresistance. The DNS servers it connects to do not need to change anything. Unlikefor DNSSEC, which is of course the real fix, but requires extensive work to configure,and has to be configured for each zone.
Right now, none of the major DNS servers appear to support this feature. A Google searchonly found two pieces of software that do:
Unbound: https://calomel.org/unbound_dns.html: see use-caps-for-id

pydig: http://www.huque.com/software/pydig/
I would be interested to learn if there are other DNS servers (or DNS related software)that supports this method.
References:

http://tools.ietf.org/html/draft-vixie-dnsext-dns0x20-00

http://courses.isi.jhu.edu/netsec/papers/increased_dns_resistance.pdf

——

Johannes B. Ullrich, Ph.D.

SANS Technology Institute

Twitter

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Tuesday, January 17th 2012 http://isc.sans.edu/podcastdetail.html?id=2263, (Tue, Jan 17th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : php 5.3.9 released -Jan-10-2011, (Mon, Jan 16th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Zappos Breached, (Mon, Jan 16th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

The online retailer Zappos announced yesterday a breach to their systems and has expired all password accounts on zappos.com. There is a letter to employees from Zappos CEO available on zappos.com.[1] They are urging all customers to change their zappos account password immediately [2], alsodo so on accounts elsewhere if your password is in sync.
It is also being reported they have turned off company phones and request inquires be sent to email, as their phone system capacity is not capable of the high volume.[3] ISC Handlers outside the US have reported they are unable to get to the Zappos.com sites. It appears they have opened things back up for some non-US traffic, but all traffic is not open as of this writing.
I have not read any report on this issue that indicates what day the incident was discovered. There are also no avaialble details on how long the breach was active before being discovered by Zappos staff. However, if basic incident handling protocols are being used for this incident, then it appears the discovery of the incident is only days old, and not weeks or more. If this is true, I applaud Zappos for coming clean as quickly as possible. Far too many companies wait too long to notify their customer base.
If anyone has details they can share or reports that provide any further info, then feel freeto post a comment or send it in to us directly.
[1]http://blogs.zappos.com/securityemai

[2]http://www.zappos.com/passwordchange

[3]http://www.eweek.com/c/a/Security/Zappos-Latest-Company-Hit-by-Data-Breach-581979/


Kevin Shortt
ISC Handler on Duty

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Monday, January 16th 2012 http://isc.sans.edu/podcastdetail.html?id=2260, (Mon, Jan 16th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Strange DNS Queries – Request Packets/Logs, (Fri, Jan 13th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

We have received some strange DNS traffic sample Type A query that isn’t your typical DNS format. The DNS query has some fields that do change are marked with a X (see DNS query pattern). Other format/pattern may exist since the capture was based on a very short capture. We are trying to establish what this traffic maybe doing, whether it is a messed up DNS resolver, some sort of command and control or covert channel.
If you have seen this type of DNS query with this kind of behavior, we would like to hear from you.
Update 1:
Handler Bojan wrote a diary last year about Google Chrome DNS prefetching [1], however, the DNS samples submitted to ISC (XXXXXXaaaaXXX0000pjaaaabaafaejam) don’t match the format described in Bojan’s diary.
However, I have found another example that is similar to our sample except it is only 10-char long vs 32-char [2]. So far, the only plausible explanation it might be DNS prefetching.

32-bit DNS Query Pattern
XXXXXXaaaaXXX0000pjaaaabaafaejam
Sample Queries
omchikaaaaerd0000pjaaaabaafaejam: type A, class IN

ibjegdaaaaerd0000pjaaaabaafaejam: type A, class IN

ehjjafaaaaesx0000pjaaaabaafaejam: type A, class IN

dlegnhaaaaern0000pjaaaabaafaejam: type A, class IN

cfdnnoaaaaern0000pjaaaabaafaejam: type A, class IN
[1] http://isc.sans.edu/diary.html?storyid=10312

[2] https://sites.google.com/a/chromium.org/dev/developers/design-documents/dns-prefetching

[3] http://serverfault.com/questions/235307/unusual-head-requests-to-nonsense-urls-from-chrome
———–
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Hello, Antony!, (Sat, Jan 14th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Antony Elmar owns quite a few domain names. He lives in a lovely city called Kansas, US, but seems to make his home there on a park bench, because he doesn’t have a street address. On the upside, the park bench does have a phone extension, but one with a phone number that is a tad odd for Kansas, US and has a dial prefix that looks more like Italy:
Domain Name:EVORMCORP .IN

Created On:14-Jan-2012 00:01:08 UTC

Last Updated On:14-Jan-2012 00:01:10 UTC

Expiration Date:14-Jan-2013 00:01:08 UTC

Registrar:Directi Web Services Pvt. Ltd. (R118-AFIN)

Registrant Name:Antony Elmar

Registrant Organization:N/A

Registrant Street1:none

Registrant City:Kansas

Registrant State/Province:

Registrant Postal Code:67420

Registrant Country:US

Registrant Phone:+3.976639877
None of this fazes the domain name registrar Directi Web Services in Mumbai, India, to the least. And Antony has been busy – he bought a dozen or so new domains over the past two days, and managed to bring them live within a matter of minutes after purchase.
His new domains currently point to 89.187.53.237, in Moldova. Yup, ol’Antony is quite the international business executive, conducting his trade on three continents with equal ease! The IP used seems to change about once per week, until past Thursday, Antony’s virtual HQ was at the neighboring IP, 89.187.53.238.
His latest new domains include
cyberendbaj .in

cyberevorm .in

endbaj .in

endbajcomp .in

evorm .in

evormhost .in

evormcorp .in
and provide a generous helping of malware to users unlucky enough to get redirected there via what appears to be poisoned ads on legitimate web pages. Antony’s toys currently seem to use URLs with a certain pattern that you can search for in your web logs with a command likeegrep -E ‘\/.{8}\/\?[[:xdigit:]]{60}’
Example result from earlier today:

http://endbajcomp. in/rgy9hcgw/?1a4c39a0370ad0f641cc790b5d0acdb24eba0f2d2483b98b4076689a4684
Caveat – that regexp might of course also match on perfectly benign web site URLs.
The malware uses CVE-2010-0842 (javax.sound.midi) and CVE-2011-3544 (Rhino script engine) and when successful seems to download an executable off a URL that matches[0-9]‘

If you find anything of interest in your logs, please let us knowvia the contact form, or comment below.

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Sysinternals Updates – http://blogs.technet.com/b/sysinternals/archive/2012/01/13/updates-autoruns-v11-21-coreinfo-v3-03-portmon-v-3-03-process-explorer-v15-12-mark-s-blog-and-mark-at-rsa-2012.aspx, (Fri, Jan 13th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

———– Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : New Generic Top-Level Domains (gTLDs) out for Sale, (Fri, Jan 13th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Yesterday ICANN started accepting applications for new generic top-level domains (gTLDs). The world of .com, .gov, .org and 19 other gTLDs will soon be expanded to include all types of words in many different languages. For the first time generic TLDs can include words in non-Latin languages, such as Cyrillic, Chinese or Arabic. [1]
Last month, the US Federal Trade Commission indicated it has concerns with this change, they are concerned that consumer protection safeguard against bad actors that could lead to potential risk of abuse through existing scams such as phishing sites. [2]
Do you see these changes have a potential for concern and abuse or just business as usual?
[1] http://www.icann.org/en/announcements/announcement-11jan12-en.htm

[2] http://www.ftc.gov/os/closings/publicltrs/111216letter-to-icann.pdf

[3] http://newgtlds.icann.org/en/

———–
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : January 2012 OUCH! released – This month we focus on how to secure home Wi-Fi networks, now in German also! http://bit.ly/ja6TMH, (Fri, Jan 13th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

– Adam Swanger, Web Developer (GWEB) Internet Storm Center (http://isc.sans.edu)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Friday, January 13th 2012 http://isc.sans.edu/podcastdetail.html?id=2254, (Fri, Jan 13th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : PHP 5.39 was release on the 10th, amongst other things, it addresses CVE-2011-4885 (prevents attacks based on hash collisions) and CVE-2011-4566 (integer overflow when parsing invalid exif header), (Thu, Jan 12th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

===============
Rob VandenBrink
Metafore

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Stuff I Learned Scripting – Fun with STDERR, (Thu, Jan 12th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Say youre writing a long Windows CMD script, something like an audit script thatll take a good 20-30 minutes to complete.
Now say the whole script is being redirected to a report file – as scripts get more complicated, I’m finding that almost everything Iwrite ends up doing this. Something like below (just to pick a random SEC579 example):

audit-esx.cmd servername userid password reportfile.html
If all goes well, you see *nothing* on your screen for the next 20+ minutes (unless youve got a good port of tee available) but if it gets stuck, it’s going to be 20+ minutes, or likely longer, before you realize that your script is borked
What to do? What to do? – - Use STDERR !
As the script goes through, insert an echo for each test (or meaningful phase) in your script to STDERR:

echo Audit Check SomeMeaningfulName 2
or, if youve parameterized your script enough:

echo Check %CHK% 2
2 means send this to STDERR.
So, instead of a blank screen as the audit runs, the screen will be a show you useful info on it’s progress:

C:\sans\sec579\auditaudit-vms esx01.sec579.com root Passw0rd esx01-audit-vms.html

Audit Check VMX01

Audit Check VMX02

Audit Check VMX10

Audit Check VMX11

Audit Check VMX12

Audit Check VMX20

Audit Check VMX21

Audit Check VMX22

and so on, until it’s done
Another neat trick will allow you to echo to a file ANDto STDERR in windows. The example below will take the output of somecommand, echo it to STDERR(which you’ll see on the screen), and also echo it to the file outputfile.txt

somecommand 2 outputfile.txt
In linux, I’d normally do this using tee as mentioned, mostly because I’m lazy. The problem in this case with using tee is that it goes to STDOUT, rather than to STDERR, so if you’re using it in combination with other redirection, you may not get what you expect:

somecommand |tee outputfile.txt
To fix this, you might string your command serially with cat, but that means that you won’t see the command output on STDERRuntil the command is completely finished, rather than in (more or less)real time.

somecommand cat outputfile.txt 2
To see everything at the same time, I’ll still use tee, but we’ll also use a temp file descriptor (3) and dump the STDOUToutput of tee to STDERR, as shown below

(somecommand | tee outfile.txt) 32

Ihope this was useful – if you’ve got a neat take on using STDERR, or STDIN or STDOUTfor that matter, in Windows (or *nix)scripts, by all means pass them along in our comment form !
===============

Rob VandenBrink

Metafore

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Thursday, January 12th 2012 http://isc.sans.edu/podcastdetail.html?id=2251, (Thu, Jan 12th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC Feature of the Week: Internet Storm Center / DShield API, (Wed, Jan 11th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

This is a follow-on to last week’s How to Submit Firewall Logs feature (https://isc.sans.edu/diary/ISC+Feature+of+the+Week+How+to+Submit+Firewall+Logs/12316). This week we detail how to access data with the DShield API and its components. Last week was the HOW, this week highlights the WHY you should setup a DShield log submission script.

Our API gives you a look at detail and summary data from the DShield system plus a few extras from ISC! In order to make accessing all this data easier, the API interface you can use manually or script. Be careful, repeated excessive access might get ya locked out so please use responsibly. :)

Overview

There are four(4) output formats (xml, json, text, php) available by adding ?[format] to the end of the API url. For example if you want plain text to parse in a script, you would add ?text like http://isc.sans.edu/api/handler?text

The main page lists all the functions, parameters and description https://isc.sans.edu/api/ Here’s a quick list of what’s currently available.

Functions

1. backscatter – only includes syn ack data and is summarized by source port

2. handler – current Handler of the Day

3. infocon – current infocon level

4. ip – summary info of a given IP

5. port – summary info of a given port

6. portdate – summary for a given port on a given date

7. topports – summary info for top ports on a given date

8. topips – summary info for top IPs on a given date

9. porthistory – summary info per port for a given date range

As a bonus, Dr. J will be highlighting the API as part of this months ISCThreat Update at https://www.sans.org/webcasts/isc-threat-update-20120111-94999 (If you miss the live broadcast, you can watch the recording at a later time)

You can leave comments in the section below or send any questions or comments in the contact form isc.sans.edu/contact.html

Adam Swanger, Web Developer (GWEB)

Internet Storm Center (http://isc.sans.edu)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : January 2012 Microsoft Black Tuesday Summary, (Tue, Jan 10th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Overview of the January 2012 Microsoft patches and their status.

#
Affected
Contra Indications – KB
Known Exploits
Microsoft rating(**)
ISC rating(*)

clients
servers

MS12-001
Vulnerability in Windows Kernel Could Allow Security Feature Bypass

Windows kernel

CVE-2012-0001
KB 2644615
This is a security bypass vulnerability. Exploit code likely. No known exploits.
Severity:Important

Exploitability: 1
Important
Important

MS12-002
Vulnerability in Windows Object Packager Could Allow Remote Code Execution

Windows Object Packager

CVE-2012-0009
KB 2603381
Exploit code likely. No known exploits.
Severity:Important

Exploitability: 1
Critical
Important

MS12-003
CSRSS Elevation of Privilege Vulnerability

(Replaces MS11-063)

Run-Time Subsystem

CVE-2012-0005
KB 2646524
Elevation of Privilege. No known exploits. Chinese, Japanese, or Korean system locale only.
Severity:Important

Exploitability: 3,1
Important
Important

MS12-004
Vulnerabilities in Windows Media Could Allow Remote Code Execution

(Replaces MS10-033)

Media player

CVE-2012-0003
KB 2636391
Exploit code likely. No known exploits.
Severity:Critical

Exploitability: 1,1
PATCH NOW!
Critical

MS12-005
Vulnerability in Microsoft Windows Could Allow Remote Code Execution

Windows packager

CVE-2012-0013
KB 2584146
No known exploits. Exploit code likely.
Severity:Important

Exploitability: 1,1
PATCH NOW!
Critical

MS12-006
Vulnerability in SSL/TLS Could Allow Information Disclosure

(Replaces MS10-049)

(Replaces MS10-085)

(Replaces MS10-095)

Internet Explorer

CVE-2011-3389
KB 2643584
Publically disclosed. Information disclosure.
Severity:Important

Exploitability: 3,3
Important
Important

MS12-007
Vulnerability in AntiXSS Library Could Allow Information Disclosure

ASP.NET

CVE-2012-0007
KB 2607664
Information disclosure.
Severity:Important

Exploitability: 3,3
Important
Important

We will update issues on this page for about a week or so as they evolve.

We appreciate updates

US based customers can call Microsoft for free patch related support on 1-866-PCSAFETY

(*): ISC rating

We use 4 levels:

PATCH NOW: Typically used where we see immediate danger of exploitation. Typical environments will want to deploy these patches ASAP. Workarounds are typically not accepted by users or are not possible. This rating is often used when typical deployments make it vulnerable and exploits are being used or easy to obtain or make.
Critical: Anything that needs little to become interesting for the dark side. Best approach is to test and deploy ASAP. Workarounds can give more time to test.
Important: Things where more testing and other measures can help.
Less Urgent: Typically we expect the impact if left unpatched to be not that big a deal in the short term. Do not forget them however.

The difference between the client and server rating is based on how you use the affected machine. We take into account the typical client and server deployment in the usage of the machine and the common measures people typically have in place already. Measures we presume are simple best practices for servers such as not using outlook, MSIE, word etc. to do traditional office or leisure work.
The rating is not a risk analysis as such. It is a rating of importance of the vulnerability and the perceived or even predicted threat for affected systems. The rating does not account for the number of affected systems there are. It is for an affected system in a typical worst-case role.
Only the organization itself is in a position to do a full risk analysis involving the presence (or lack of) affected systems, the actually implemented measures, the impact on their operation and the value of the assets involved.
All patches released by a vendor are important enough to have a close look if you use the affected systems. There is little incentive for vendors to publicize patches that do not have some form of risk to them.

(**): The exploitability rating we show is the worst of them all due to the too large number of ratings Microsoft assigns to some of the patches.

Cheers,

Adrien de Beaupr

intru-shun.ca

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Wednesday, January 11th 2012 http://isc.sans.edu/podcastdetail.html?id=2248, (Wed, Jan 11th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : New wireshark released – 1.6.5 and 1.4.11 – www.wireshark.org/download.html, (Wed, Jan 11th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Adobe January 2012 Black Tuesday overview, (Tue, Jan 10th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Adobe has released 1 bulletin today.
This updates Adobe products to the following versions:

Adobe Reader and Acrobat

10.1.1 and previous

#
Affected
Known Exploits
Adobe rating

APSB12-01
Multiple vulnerabilities in the adobe reader and adobe acrobat software allow privilege escalation (windows only)or random code execution.

Reader Acrobat

CVE-2011-2462

CVE-2011-4369

CVE-2011-4370

CVE-2011-4371

CVE-2011-4372

CVE-2011-4373
Could allow for remote code execution. Update to 10.1.2 or 9.5.
Critical

APSB11-30 and APSA11-04 were also updated.
Next scheduled Adobe security update is 10 April 2012.
Cheers,

Adrien de Beaupr

intru-shun.ca

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Snort 2.9.2 now supporting SCADA protocol checks, (Sun, Jan 8th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

One of the major concerns of a public utility security issues applicable to securing SCADA systems of energy, gas and water supply. Manufacturers have responded slowly to this challenge and we can see traffic assurance deployments like HP with its TippingPoint IPS and Fortinet. The complex point of these solutions is that their cost is quite remarkable and some of them do not have enough functionality.

Fortunately, the Sourcefire guys began to include support for SCADA protocols withinSnort from version 2.9.2 and started with the electrical substations protocols DNP3 and Modbus.
Check out one of my previous SCADAdiary for basic definitions. I made some test myself with this functionality and Ifound very useful the following features to increase the valuable alerts within the SCADANetwork:

Check for broadcast messages: DNP3 protocol talks to each device within the system and perform specific functions on it. Broadcast messages can be dangerous specially if they have a turn off command to all the Remote Terminal Unit (RTU) that controls its own energy substation. You can check this with the following snort rule:

alert tcp any 20000 – any any (msg:All RTU being contacted using DNP3)

Check for write or delete operations not being sent by the master station: We definitely don’t want someone else to write or deleteto theRTU on behalf of the official Human-Machine Interface (HMI). The following snort rule can be used to check this behavior, assuming thatHMI ip address is 1.1.1.1:

alert tcp!1.1.1.1any – any any (msg:Someone trying to write or deleteto RTU)

Check for save configuration commands not being sent by the master station: If someone writes to the RTU and then tries to save the configuration on behalf of the official HMI, could already have control of the RTU devices and make sure we no longer can send commands to them. The following snort rule can be used to check this behavior, assuming that HMI ip address is 1.1.1.1:

alert tcp!1.1.1.1any – any any (msg:Someone trying to save the configurationof a RTU device)

Check for stop applications commands not being sent by the master station: This is very dangerous if sent broadcast to all RTU.The following snort rule can be used to check this behavior, assuming that HMI ip address is 1.1.1.1:

alert tcp!1.1.1.1any – any any (msg:Someone trying to stop the applications of an RTU device)

I would include a couple of special wishlist to the Sourcefire guys to include in next versions: IEC60870-5 and Bristol Standard Asynchronous Protocol (BSAP), used in water supply SCADA systems.
Manuel Humberto Santander Pelez

SANS Internet Storm Center – Handler

Twitter:@manuelsantander

Web:http://manuel.santander.name

e-mail: msantand at isc dot sans dot org

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Tuesday, January 10th 2012 http://isc.sans.edu/podcastdetail.html?id=2245, (Tue, Jan 10th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : MS11-100 DoS PoC exploit published, (Mon, Jan 9th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

If you have not patched yet for vulnerability MS11-100 you might want to do it ASAP, because the DoS PoC exploit for this vulnerability has been published two days ago.

More information about the vulnerability and patches at http://technet.microsoft.com/en-us/security/bulletin/ms11-100
Manuel Humberto Santander Pelez

SANS Internet Storm Center – Handler

Twitter: @manuelsantander

Web:http://manuel.santander.name

e-mail: msantand at isc dot sans dot org

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Monday, January 9th 2012 http://isc.sans.edu/podcastdetail.html?id=2242, (Mon, Jan 9th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Updated OpenDLP, (Sat, Jan 7th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Many of our readers use Data Loss Prevention products as a mechanism to identify sensitive data-at-rest on workstations, servers, databases and similar. Earlier today, I stumbled across an open source application known as OpenDLP. I professionally recommend that users have a DLP product in your toolkit. As many of the tools are commercial in nature, this product may be a excellent choice for home use (or at least when you head home for holidays and are asked to fix the family computer).
While reviewing information on the OpenDLP website, I saw that the developers released a new version of OpenDLP and a virtual machine OpenDLP that corrects a small number of glitches.
More information on this product is available at code.google.com/p/opendlp/ . Any of our readers use this product and able to comment on how well it works, false positives and the like?

Scott Fendley ISC Handler

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Google Chrome Updated , (Sat, Jan 7th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

For those who weren’t watching on Thursday, Google released a new revision of Chrome. There were a small number of high severity security issues which were corrected in version 16.0.912.75. More information on these bugs is located at googlechromereleases.blogspot.com/2012/01/stable-channel-update.html.
Most Chrome users will receive the newest version automatically. However, many Enterprise customers may change the update policy to disable this feature. We would recommend that these customers push the update after any appropriate testing.

Scott Fendley ISC Handler

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Friday, January 6th 2012 http://isc.sans.edu/podcastdetail.html?id=2239, (Fri, Jan 6th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : New Version of tcpflow Available in Beta, (Fri, Jan 6th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

If you are avid users of tcpflow, Simson Garfinkel has just released a public beta of tcpflow which contains significant changes. If you want to participate in the beta testing, the tool is available for download here which include several prebuild packages are also available for download. A list of the changes is posted here. A final release is planned within the next two weeks.
[1] http://afflib.org/software/tcpflow

[2] http://old.nabble.com/tcpflow-1.1.0-beta1-td33081226.html
———–
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : January 2012 Patch Tuesday Pre-release, (Fri, Jan 6th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

It is a brand new year and this upcoming Tuesday Microsoft is releasing seven bulletins ranging from Important (6) to critical (1) affecting all Windows OS. Detailed information can be found in the advance notification bulletin.
[1] http://technet.microsoft.com/en-us/security/bulletin/ms12-jan
———–
Guy Bruneau IPSS Inc. gbruneau at isc dot sans dot edu

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Thursday, January 5th 2012 http://isc.sans.edu/podcastdetail.html?id=2236, (Thu, Jan 5th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : WordPress 3.3.1 fixes 15 issues with WordPress 3.3 including XSS. Download 3.3.1 or visit Dashboard –> Updates in your site admin panel., (Thu, Jan 5th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : OpenSSL vulnerability fixes, (Thu, Jan 5th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

OpenSSL has addressed six vulnerabilities in OpenSSL 1.0.0f and 0.9.8s.

CVEs include:
DTLS Plaintext Recovery Attack (CVE-2011-4108)
Double-free in Policy Checks (CVE-2011-4109)
Uninitialized SSL 3.0 Padding (CVE-2011-4576)
Malformed RFC 3779 Data Can Cause Assertion Failures (CVE-2011-4577)
SGC Restart DoS Attack (CVE-2011-4619)
Invalid GOST parameters DoS Attack (CVE-2012-0027)

Details here: http://openssl.org/news/secadv_20120104.txt
Downloads here: http://openssl.org/source/

Note that the hyperlink for the Nadhem Alfardan and Kenny Paterson paper specific to the DTLS Plaintext Recovery Attack results in a 404 error.

Russ McRee
@holisticinfosec

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC Feature of the Week: How to Submit Firewall Logs, (Tue, Jan 3rd)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Each week, usually on Tuesday, we are going to highlight an ISC/DShield site feature so all our users become more aware of all the great functionality that is available!
This week’s ISC/DShield feature is How To Submit Your Firewall Logs To DShield and can be found at https://www.dshield.org/howto.html
Much of the reporting on the ISC/DShield websites is from data collected from users submitting firewall logs. There are many existing scripts and services available so chances are high that all you have to do to get started is a quick download and cron on your firewall.

Here’s how it’s done:
1. Signup is recommended for maximum benefits but not required. See the link below for all the added features an account will give you.
www.dshield.org/howto.html#signup
2. Find an existing script to load and cron on your firewall.
www.dshield.org/howto.html#clients
3. If, by chance, you don’t find an existing client, you can write your own.
www.dshield.org/specs.html

Using the data:
1. Access the data and feeds.
www.dshield.org/feeds_doc.html
2. Browse the data results.
www.dshield.org/reports.html

That’s a quick link list to get you started. If you can’t find the details you’re looking for on the website or have a question or comment, please drop us a note in the contact form isc.sans.edu/contact.html

Adam Swanger, Web Developer (GWEB)

Internet Storm Center (http://isc.sans.edu)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Wednesday, January 4th 2012 http://isc.sans.edu/podcastdetail.html?id=2233, (Wed, Jan 4th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : The tale of obfuscated JavaScript continues, (Tue, Jan 3rd)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

What better way to start a new year than with some JavaScript deobfuscation!
Couple of weeks ago, one of our readers, Rick, found a compromised server with an interesting addon planted by the attacker. The attacker added a relatively simple PHP script nothing we have not seen before. The PHP script was more or less standard for such attacks: the first part checks the submitted User Agent as well as if the request came from a list of predefined network ranges (you probably guessed it those that belong to search engines and AV companies). If this is true, the PHP script just displays a fake 404 not found error page.
You can see that part of the code, which is self explanatory in the picture below:

Now, if this test passed, an interesting part comes. The PHP script simply prints a huge, heavily obfuscated and very nasty JavaScript blob.
This huge part is about 300 kb in size (!!!) so, as the first thing when encountering such JavaScript, I always try to use the wonderful Wepawet service (available at http://wepawet.iseclab.org/). In case you arent familiar with Wepawet, it allows you to submit JavaScript (and PDF and Flash) files for automatic analysis. During years, Wepawet became increasingly good in deobfuscation of such files so I was surprised to see that it failed to analyze the submitted JavaScript file. VirusTotal was no good either (as expected, 0/42). So time for some hacking …
After trying typical tricks with defining parts of the document object (see more about these methods in Lennys diary at http://isc.sans.edu/diary.html?storyid=12157) I noticed that the JavaScript file I was analyzing depended on way too many properties/methods from the document object. While it is certainly possible to define all them, I decided to skip that tedious part and go directly with a debugger after all, nothing gives you more thrills than the possibility to infect your own machine :) (of course, this was done in an isolated VM).
While people usually do not like analyzing such potentially malicious JavaScript files in Internet Explorer, I have to admit that I like the Internet Explorers developer tools addon *a lot*. So, to get this into a debugger, I normally paste the JavaScript file into a very simple HTML document that just defines the body. I also add the keyword to make sure that the debugger will stop at the beginning (so I dont end up infecting my own machine). After this has been done, we just need to start debugging and open the HTML file in Internet Explorer. The Developer Tools will automatically break at the beginning:

We can now easily go through the code, setup further break points and use all the Developer Tools powerful debugging options such as variable and call stack inspection. When I reached the end I was a bit disappointed the JavaScript file tried to retrieve an URL that was not available any more. It also depended on certain elements in the original web page which was unavailable to me as well.
Back to obfuscation while it managed to evade analysis in Wepawet, I remember that Ive seen such methods before. If you have been a constant reader of SANS ISC you maybe remember the diary I wrote back in 2009: http://isc.sans.edu/diary.html?storyid=6142. The attackers used the same method here very, very long and complex if/then/else statements which end up calling various DOM methods and properties. While this method has been known for a while, it is obviously still very effective, especially since it allows practically unlimited combinations that an attacker can use in order to obfuscate their malicious JavaScript code.

Bojan

INFIGO IS

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Analysis of the Stratfor Password List, (Tue, Jan 3rd)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

As reported at the isc.sans.edu on Christmas Day by Deb Hale, Stratfor had personal data of its customers compromised, including a list of 860,000 passwords hashes. Today Steve Ragan over at thetechherald.com published an analysis of the password list. There is nothing original about the methodology used. It is very similar to what Marc Hofman described in his diary from late 2010 on measuring password security and most likely very similar to what the bad guys will use. Unfortunately Steve Ragan’s analysis shows how poor Stratfor’s password policy was, and how poor the passwords were in general. Nearly 10% of the passwords succumbed to cracking in under 5 hours. More importantly, this analysis reiterates the weakness of passwords in general, and the general failure of user education in good password creation and management, highlighting that the weakest link in security is the user.
It is clear that we need to continue to work on educating the users. The minimum we need to instil on our users is:

reiterate good password creation and management processes
discourage password reuse
promote the use of tools like Password Safe or Keepass

It may be a difficult battle, but lets try and win it one user at a time!
– Rick Wanner – rwanner at isc dot sans dot org – http://namedeplume.blogspot.com/ – Twitter:namedeplume (Protected)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : nmap 5.61TEST4 released, (Tue, Jan 3rd)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

For those of you following the development stream of nmap, an interesting release today. nmap 5.61TEST4 has a number of interesting features.

a spidering library and associated scripts for crawling websites.
51 new NSEscripts, bringing the total to 297.
a substantial decrease in the size of the Mac OSX installer due to the removal of PPCsupport.
a new vulnerability management library which stores and reports found vulnerabilities.

More information can be found in the release notes.
– Rick Wanner – rwanner at isc dot sans dot org – http://namedeplume.blogspot.com/ – Twitter:namedeplume (Protected)

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Lilupophilupop tops 1million infected pages, (Sat, Dec 31st)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Earlier in the month we published an article regarding the lilupophilupop.com SQL injection attacks (http://isc.sans.edu/diary.html?storyid=12127). being a month onwards I though it might be a good time to reflect on this attack and see how it is going.

When I first came upon the attack there were about 80 pages infected according to Google searches. Today, well as the title suggests we top a million, about 1,070,000 in fact (there will be duplicate URLs that show up in the searches. Still working on a discrete domain list for this).

Just to give you a rough idea of where the pages are:

UK – 56,300
NL – 123,000
DE – 49,700
FR – 68,100
DK – 31,000
CN – 505
CA – 16,600
COM – 30,500
RU – 32,000
JP – 23,200
ORG – 2,690

If you want to find out if you have a problem just search for script src=http://lilupophilupop.com/ in google and use the site: parameter to hone in on your domain.

If you are still looking then check the logs for the strings in the earlier article. That should find them. If you are interested in sharing web logs please let me know. Just filter them for error code 500 events and send those through, then I’ll likely ask for a follow up trying to determine the earlier reconnaissance events.

At the moment it looks like it is partially automated and partially manual. The manual component and the number of sites infected suggests a reasonable size work force or a long preparation period.

Cheers

Mark H

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Bye 2011, Hello 2012, what will you have in store for us?, (Sat, Dec 31st)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

With the last day of the year well and truly on the way in most parts of the world and almost finished in my part of the world it is probably a nice time to reflect a little bit on the year that was. Seems to be popular on the various news channels so it is only fair that we have our own.
On the vulnerabilities front there were of course the usual Microsoft one, culminating in MS11-100 yesterday which ensured all admins have a wonderful day. I guess the good news is that it is 6 less than last year? Adobe had its fair share throughout the year and is still a very popular target.
We saw some waves of different types of attacks. A lot of SSH brute force attacks as well as FTPattacks. We had quite a few reports of DDOSattacks throughout the year, some in the Gbps range. Malware of course is still one of the bigger problems and whilst users can and do click yes and Security products primarily use blacklists that will remain a problem.
We had some interesting issues with SSLthroughout the year, Apache and of course in the last few days ASP.net.
So what will 2012 bring us?
IPv4 allocations are no longer, so whether we like it or not IPv6 is going to be featuring on many of our future projects list for 2012. If you haven’t looked at it yet, now is a good time to start reading and playing in the labs. Many security tools are not all that cool with IPv6 yet and some won’t be until consumers start asking the question.
On the malware front I predict more of the same. The basic things are still working, so why change. Until the basic security controls are in place in most organisations as well as home computers most of the malware will continue to function without too much change in 2012. We might see more tailored attacks on oranisations and breaking in is as simple as one click in many cases.
On the security product front Ican’t see to many changes. No doubt there will be more products in the cloud. Cloud computing will remain sexy in 2012 and until there is a major, major insertfavouritewordhere-up there probably will not be too many changes on that front. Don’t get me wrong there is a place for cloud computing, but not for everything or everyone. There will probably be more of a push by firewall vendors into application awareness in their products. AV vendors already are and will continue to push into whitelisting applications rather than blacklisting. Hopefully people will start considering switching it on.
Anyway that is enough of my predictions. If you have a significant event for 2011 that you would like to contribute or a prediction for 2012 feel free to comment or submit via the contact form.
From all of us here at the Internet Storm Center all the best wishes for the new year.
Mark H

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : Wi-Fi Protected Setup (WPS) PIN Brute Force Vulnerability, (Fri, Dec 30th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

Wi-Fi Protected Setup (WPS)is a Wi-Fi Alliance specification (v1.0 – available since January 2007)designed to ease the process of securely setup Wi-Fi devices and networks. Acouple of days ago US-CERTreleased a new vulnerability note, VU#723755, that allows an attacker to get full access to a Wi-Fi network (such as retrieving your ultra long secret WPA2 passphrase) through a brute force attack on the WPSPIN. The vulnerability was reported by Stefan Viehbck and more details are available on the associated whitepaper. In reality, it acts as a kind of backdoor for Wi-Fi access points and routers.
The quick and immediate mitigation is based on disabling WPS. Your holiday gift for the people around you these days is to tell them to disable WPS.
It is important to remark that this vulnerability affects both the WPSdesign (which typically means higher impact and longer fix times)and the current Wi-Fi vendor implementations. The design is affected as WPS presents serious weaknesses that allow an attacker to determine if half of the PINis correct (Do you remember Windows LANMAN (LM) authentication?7+7 !=14). Therefore the brute force process can be split in two parts, significantly reducing the time required to brute force the entire PIN from 100 million (108)to 11,000 (104 + 103)attempts.The vendor implementations (in Wi-Fi access points and routers)are also affected due to the lack of a proper (temporarily) lock out policy after a certain number of failed attempts to guess the PIN, plus some collateral DoSconditions.
The researcher used a Python (Scapy-based) tool that has not been release yet, although other tools that allow to test for the vulnerability have been made public, such as Reaver . The current tests indicate that it would take about 4-10 hours for an attacker to brute force the 8 digit PIN(in reality 7 digit PIN, 4+3+1 digits).
Lots of Wi-Fi devices available in the market implement WPS, a significant number seem to implement the PINauthentication option (the vulnerable mechanism – called PINExternal Registrar), as it seems to be a mandatory requirement in the WPSspec to become WPScertified (by the Wi-Fi Alliance), and still a very relevant number seem to have WPSenabled by default. Based on that, and the experience we had on similar Wi-Fi vulnerabilities over the last decade, it might take time to the Wi-Fi industry to fix the design flaw and release a new WPSversion, it will take more time to (all)vendors to release a new firmware version that fixes or mitigates the vulnerability, and it will take even extra time to end users and companies to implement a fixed and secure WPSversion and/or implementation, or to disable WPS (although this is the quickest option… we know it takes much more time than we would like :( ).

To sum up, millions of devices worldwide might be affected and it will take months (or years – think on WEP) to fix or mitigate this vulnerability… so meanwhile, it is time to start a global security awareness campaign:
Disable WPS!!
This diary extends the Wi-Fi security posture of previous ISCdiaries, were we covered the security of common Wi-Fi usage scenarios, and will be complemented by two upcoming Wi-Fi security end-user awareness resources: the SANSOUCH! January 2012 issue and lesson 12 of Intypedia (both will be available on mid January 2012).
—-

Raul Siles

Founder and Senior Security Analyst with Taddong

www.taddong.com

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Friday, December 30th 2011 http://isc.sans.edu/podcastdetail.html?id=2227, (Fri, Dec 30th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ASP.Net Vulnerability, (Thu, Dec 29th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

We have been tracking this issue. Microsoft has an excellent write up on this. Some of my clients and my own company received alerts directly from Microsoft. If you are a heavy ASP.Net user please look into these issues and take proper steps for work around and patch.

MSFTis listing a WebCast on the OOBPatch [1]
Also a couple of great write ups and release. [2]
[1] https://msevents.microsoft.com/CUI/EventDetail.aspx?culture=en-USEventID=1032502798
[2] http://technet.microsoft.com/en-us/security/bulletin/ms11-100

Richard Porter
— ISC Handler on Duty

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.

SANS Internet Storm Center, InfoCON: green : ISC StormCast for Thursday, December 29th 2011 http://isc.sans.edu/podcastdetail.html?id=2224, (Thu, Dec 29th)

This post was syndicated from: SANS Internet Storm Center, InfoCON: green and was written by: SANS Internet Storm Center, InfoCON: green. Original post: at SANS Internet Storm Center, InfoCON: green

(c) SANS Internet Storm Center. http://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.