Rooting SIM Cards Slashdotby samzenpus on security at January 1, 1970, 1:00 am (cached at July 21, 2013, 11:32 pm)

SmartAboutThings writes "Smartphones are susceptible to malware and carriers have enabled NSA snooping, but the prevailing wisdom has it there's still one part of your mobile phone that remains safe and un-hackable: your SIM card. Yet after three years of research, German cryptographer Karsten Nohl claims to have finally found encryption and software flaws that could affect millions of SIM cards, and open up another route on mobile phones for surveillance and fraud."

Read more of this story at Slashdot.



US jets 'bombed' Great Barrier Reef BBC News | Science/Nature | UK Edition(cached at July 21, 2013, 11:30 pm)

Two US fighter jets dropped unarmed bombs on the Great Barrier Reef off Australia's coast during a training exercise that went wrong, it has emerged.
Apple and Samsung Smartphone Antitheft Technologies to be Tested (July 18, 2013) (S SANS ISC SecNewsFeed(cached at July 21, 2013, 11:30 pm)

Microsoft's Struggles Grow: 9 Key Points (Network Computing Security) SANS ISC SecNewsFeed(cached at July 21, 2013, 11:30 pm)

CVE-2013-4779 (enterpriseopenscapebranch, openscapesessionbordercontroller) (Natl. V SANS ISC SecNewsFeed(cached at July 21, 2013, 11:30 pm)

Vuln: MongoDB 'conn' Mongo Object Remote Code Execution Vulnerability (SecurityFocus SANS ISC SecNewsFeed(cached at July 21, 2013, 11:00 pm)

Why use Regular Expressions?, (Sun, Jul 21st) SANS Internet Storm Center, InfoCON: green(cached at July 21, 2013, 11:00 pm)

As an IT professional you may already know some Regular Expressions (Regex) and have experimented with tools such as grep to search for a pattern in your log files for a certain piece of text (i.e. actor IP address). Often enough, having to parse huge amount of data usually takes time to get the result but we all realize using Regex can be powerful, by using a few tools (i.e Perl, grep, sed or awk) can take a complex task and turn it into an automated task that is now easy to solve. Working in security, also means to be challenged into parsing or sifting through large amount of data to find the answer that might not always be obvious.

However, you might ask yourself, how do I tackle this problem without having to use complex programs such as moving the data into a database and having to write a frontend that will provide the answer I'm looking for. The answer is either to script or combine the results using well known Unix tools (most of them are available as Windows binaries) into a usable output. Regex can automate such a task(s) that sometimes can take minutes or hours to complete.

It is quite conceivable some of the security tools or devices deployed in your network are using some form of Regex to parse the data it inspects. These could be Snort rules as one example or logs collected by SIEM.

Here are a few examples. I need to retrieve every IP addresses from subnet 192.168.25.0/24 from a logfile. To ease this task, I can use grep:

grep "192\.168\.25\.[[:digit:]]\{1,3\}" query.log
grep -e "192\.168\.25\.\{1,3\}" query.log

Another simple yet powerful search is to completely ignore subnet 192.168.25.0/24 and show everything else. The –v (invert-match) in grep selects non matching lines:

grep -v -e "192\.168\.25\.\{1,3\}" query.log

When required replacing a string of text in one or more documents, one Unix application well suited for this task is sed. This example searches for http: and deletes it every times it finds it in the file. The s is for search (regex) and g is for copy/append.

sed 's/http://g' file.txt > newfile.txt

sed can also be used to delete all empty lines in a file:

sed '/^$/d' file.txt > newfile.txt     (The results is sent to newfile.txt and preserves the original)
sed '/^$/d' -i file.txt                       (Warning: This example removes the empty lines and overwrite the original)

This last example takes the results of one regex and pipes the results to another regex tool or tools. Reusing the above example,

file.txt wc -l                        (Counts the number of lines in the file before processing)
sed '/^$/d' file.txt | wc -l    (Counts the number of lines in the file after processing)

The "The Regex Coach" is a tool that can help ease learning for those who are new to Regex. In the Regular Expression window, you can build your Regex pattern step-by-step and watch the results and the Target string window shows and highlight if you Regex is parsing the data correctly. Here is an example of DNS data where each fields are separated with 2 pipes (IP address 192.168.25.99 is highlighted in both windows):

String: 1374432453.842653||192.168.25.99||64.71.255.198||IN||s0-2mdn-net.l.google.com.||A||74.125.226.156||228||1

Regex: (\d*).(\d*)\|\|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\|\|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\|\|(\w*)\|\|(.*\.)\|\|(\w{1,3})\|\|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\|\|(\d*)\|\|(.*)

The following regex characters have the following meaning:

\d Match a digit character
\w Match a "word" character

Regex are a powerful way used to search about anything in text based files for data with an identifiable pattern.

[1] http://www.weitz.de/regex-coach/
[2] http://gnuwin32.sourceforge.net/
[3] http://en.wikipedia.org/wiki/Regular_expression

-----------

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.
When the NSA Shows Up At Your Internet Company Slashdotby samzenpus on privacy at January 1, 1970, 1:00 am (cached at July 21, 2013, 10:32 pm)

Frosty Piss writes "When people say the feds are monitoring what people are doing online, what does that mean? How does that work? When, and where, does it start? Pete Ashdown, CEO of XMission, an internet service provider in Utah, knows. He received a Foreign Intelligence Service Act (FISA) warrant in 2010 mandating he let the feds monitor one of his customers, through his facility. He also received a broad gag order. Says Mr. Ashdown, 'I would love to tell you all the details, but I did get the gag order... These programs that violate the Bill of Rights can continue because people can't go out and say, This my experience, this is what happened to me, and I don't think it is right.' In this article, Mr. Ashdown tells us about the equipment the NSA installed on his network, and what he thinks it did."

Read more of this story at Slashdot.



Colombia peace in doubt as soldiers slain AL JAZEERA ENGLISH (AJE)(cached at July 21, 2013, 10:30 pm)

Colombian president offers condolences as 15 soldiers killed by FARC fighters, throwing peace talks into question.
Syrian forces reportedly ambush rebels AL JAZEERA ENGLISH (AJE)(cached at July 21, 2013, 10:30 pm)

Activists also say at least 13 members of a family executed by pro-government forces in the Sunni village of Bayda.
Man svårt skadad i drunkningsolycka SvD Inrikes(cached at July 21, 2013, 10:02 pm)

En man i 75-årsåldern hittades medvetslös i vattnet vid Loftahammar i dag.
HTML-FormHandler-Model-DBIC-0.26 search.cpan.orgby Gerda Shank at January 1, 1970, 1:00 am (cached at July 21, 2013, 10:01 pm)

base class that holds DBIC model role
HTTP-BrowserDetect-1.54 search.cpan.orgby Olaf Alders at January 1, 1970, 1:00 am (cached at July 21, 2013, 10:01 pm)

Determine Web browser, version, and platform from an HTTP user agent string
perl-ldap-0.57 search.cpan.orgby Peter Marschall at January 1, 1970, 1:00 am (cached at July 21, 2013, 10:01 pm)

Type-Tiny-0.018 search.cpan.orgby Toby Inkster at January 1, 1970, 1:00 am (cached at July 21, 2013, 10:01 pm)

tiny, yet Moo(se)-compatible type constraint