/dev/random

Can't sleep, hackers will eat me!

Monitor your Monitoring Tools

Check YuorselfWe (and I’m fully part of it) deploy and use plenty of security monitoring tools daily. As our beloved data is often spread across complex infrastructures or simply across multiple physical locations, we have to collect interesting information and bring them in a central place for further analysis. That’s called “log management“. Based on your collected events, you can generate alerts, build reports. Nice! But… if systems and applications generate [hundreds|thousands|millions] of events, those ones are processed by the same kind of hardware running some piece of software. Hardware may fail (network outage, power outage, disk crash) and softwares have bugs (plenty of).

(more…)

, , , ,

Hack in Paris and La Nuit du Hack (10th Edition)

Hack in Paris Logo

The French hacking event is back! This year is a special one, it’s the tenth edition of “La Nuit du Hack” which follows the conference “Hack in Paris“. Yes, as the previous editions, there are three distinguished parts in this major event. Trainings are organized from June 18th to 20th (more info here). Then, two days (June 21st – 22nd) of talks with famous speakers. And finally, an “event into the event“: La Nuit du Hack will be held on June 23rd.

During the last edition, 950 hackers registered to follow more talks and participate to the CTP challenge. This year, a public wargame is also available! Feel free to test the 2011 challenges!

I’ll be present the Thursday and Friday to cover the talks and I’ve also some gifts for you: Like for the previous edition, the organization provided me 10  discount codes (-10%) on “conference onlytickets. The contest is now open! The first ten people who drop me an email (xavier{at}rootshell{dot}be) will receive a discount code… (FIFO!)

, , ,

Integrating OSVDB into Ubuntu/Unity

OSVDB LensRecently I upgraded my laptop with the latest Ubuntu release (12.04-LTS). For a few releases, Ubuntu switched from Gnome to Unity and I’m happy to use it since the 11.04 version! I know that this choice has caused a lot of debates between the aficionados of both GUI but it always worked fine for me. Of course, no interface is perfect but it does its job. I just like the way it presents applications and files. Most are accessible with a few key presses. After the upgrade, I made the new proprietary tour and decided to look deeper into the Unity “Dash” feature. This is the main feature of Unity. It allows you to quickly search for information on your local filesystems (applications, files, bookmarks, …) or on the Internet (Wikipedia). To achieve this, the “Dash” uses “Lenses“. And those use “Scopes” that are small scripts which perform the search requests. “Lenses” are based on (briefly resumed):

  • A .lens file to let Unity load it
  • A daemon with a well-known name on D-Bus
  • A D-Bus .service file to let Unity activate the Lens

When Unity is started, it parses the configuration files and spawns the small daemons responsible for the searches. On a stock Ubuntu, you can see the following daemons running:

$ ps ax|grep lens
 2741 ?        Sl     0:05 /usr/lib/unity-lens-applications/unity-applications-daemon
 2743 ?        Sl     0:04 /usr/lib/unity-lens-files/unity-files-daemon
 2745 ?        Sl     0:00 /usr/lib/unity-lens-music/unity-music-daemon
 2747 ?        Sl     0:01 /usr/bin/python /usr/lib/unity-lens-video/unity-lens-video
 2777 ?        Sl     0:00 /usr/lib/unity-lens-music/unity-musicstore-daemon

If you’re interested in learning more about Lenses, there is a good documentation available here. Some people started to write their own Lenses to search for useful online data. Some popular ones are:

  • Wikipedia
  • Google Contacts
  • Youtube
  • Torrents
  • Flickr

Basically, any website that proposes a search feature can be integrated into Unity as well as any online service! (ex: whois) The daemon needs to send the query based on the provided keywords and format the results into something usable by Unity (via D-Bus).

I decided to learn how to build my own Lens. Why not create one with more focus on information security? What can be interesting to search for if you’re an infosec guy? Vulnerabilities of course! Let’s imagine, you are performing a pentest and you find a unpatched Solaris box running an Apache server. It could be nice to search for vulnerabilities affecting those solutions. That’s the purpose of my Lens: searching the OSVDB database for vulnerabilities.

Type some terms (or dates) and relevant OSVDB entries will be displayed directly in Unity. Click on them to open a browser to the direct page!

Unity Lens OSVDB Screenshot

(Click to enlarge)

By default (empty search), the latest vulnerabilities are displayed (sorted by time). You can also search for a specific period by specifying a month and a year (ex: “Apr 2012“). The full-text search feature of OSVDB is used (ex: “Cisco IOS 12.1“). There is nothing fancy, most of the code is based on another publicly available Lens. It was first of all a good opportunity for me to write my first piece of code in Python! ;-)

Source files are available on github.com. A Debian package (.deb) is ready to be installed. A logout is required to restart Unity and makes it recognize the new Lens. Once installed click on the little “OSVDB” icon on the bottom of your Dash to search for vulnerabilities. Feel free to use it, patch it or submit your comments! Enjoy!

, , , ,

London… a Nest of Infosec People

BSidesLondon Track 1

I’m back from a small trip to London where is happening some kind of a “security marathon” this week! In parallel to InfoSecurity Europe 2012, several “alternative” events where organized in the same area. However I did not visited InfoSecurity. I was present at the Benelux edition a few weeks ago and saw enough vendors/products (ties overflow). After a nice ride under the sea and having dropped my luggage at the hotel, I reached my first step: the Information Security Blogger Meetup. The pub was fully dedicated to people from InfoSecurity (sponsored by Firemon) and a space was reserved to the bloggers but not so many people present (although 40 people registered). It was a bit disappointing but, anyway, it was a good opportunity to meet Andrew & Kelly Hay and Javvad Malik. Thanks for the sponsor for the open bar! By the way, I missed Brian Honan with a bow tie! ;-)

(more…)

, , ,

Some News About HiTB Amsterdam

HiTB AmsterdamSome news about the upcoming edition of the “Hack in The Box” security conference. This third edition (already!) will be held at a new venue: The hotel Okura in the center of Amsterdam. Apart of trainings, the conference itself will be organized during two days (May 24th – 25th) and propose a quad-tracks schedule. You can already have a look here (warning, this is still a draft version). Two great keynote speakers were already announced: Andy Ellis, Chief Security Officer of Akamai on day 1. Bruce Schneier (do we need to present him again?) on day 2. Based on the current agenda, here is my wishlist:

  • Turning Android inside-out (forensics)
  • One flew over the cuckoos nest (automatic malware analysis)
  • Whistling over the wire (Twitter & URL shorteners security)
  • Security threads in the world of digital satellite television (set-top-boxes security)
  • PostScript – danger ahead
  • Automatically searching for vulnerabilities (taint analysis)
  • Bypassing the Android permission model (mobile security)
  • Attacking XML processing
  • Smashing VMDK files for fun and profit (virtualization)

The CFT contest is also back but in a new format called “Bank0verflow“.  Based on both attack and defense modules, it will see teams of three provided with a set of custom vulnerable services and web applications. Teams need to exploit their rivals’ machines to retrieve pre configured flags to score offensive points and obtain defensive points by keeping their own vulnerable services running. Another new “event in the event“: The Hackaton will be organized for the first time in Amsterdam. The principle is simple: put hackers in a room and let them write some code during 12 hours. The topic of this edition is the implementation of a proof of concept to problems related to browsers and their extensions. First price will be: 1337 EUR in cash!

A few words about the talks, the proposed topics are not only focusing on classic computers but also other electronic devices that we use daily. Adam Gowdiak will present his researches about  security flaws in digital satellite TV set-top-boxes and DVB chipsets used by many satellite TV providers worldwide. The hackers (aka “iOS Jailbreak Dream Team”) who released the jailbreak of Apple’s popular iPhone 4S and iPad 2 devices will also be there to present their research.

Finally, SIGINT sessions (15-30 minutes max) will be organized during coffee & lunch breaks to let other people to present their project or researches. During one of those sessions, I’ll present my tool pastemon and the associated blog leakedin.com. This will be my (very small) contribution to this event.

I’ll attend the conference and write a wrap-up. Feel free to ping me if you want to meet…

, ,

The value of HTTP 404 Errors

404 ErrorThe HTTP protocol has a list of response status codes to help communication between the server and the browser. Everytime a server responds to a browser request, a status code is sent. The most common ones are: “200” which means “Everything is ok, here is some food!” and “404” which means “Not found“. The second error may be caused by the client (example: an error in the URL typed in the browser) or by the developer/administrator who forgot to copy files or also made typo errors in his code. That’s why the amount of 404 errors is directly related to the type of environment. During development and test phases, it’s common to have more errors. On the other side, in a production environment, the amount of 404 errors should be limited and the main source of errors will be the client/browser.

Sometimes, “404” errors are considered useless by webmasters and are simply ignored in their reports. After all, their goal is to know how many visitors browsed to their websites. From a security perspective, those errors could be very helpful to detect unusual traffic targeting a web sites.

I analyzed one year of my blog logs (yes, I’ve a long retention policy!). Some facts to start:

  • Total hits: 9.534.062
  • 404 errors: 343.606 (3.6%)

As you can see on the graph below, the 404 error code comes in the fifth position after the classic 200 and 3xx codes.

HTTP Responses

(Click to enlarge)

As I’m trying to keep the blog clean, this huge amount of “not found” errors looked strange to me. I decided to generate more statistics. What can we deduct? For a while, the big winner is the TimThumb vulnerability discovered in Augustus 2011. The exploit was released the 3rd of Augustus and the first attempt hit me on the 4th! Still today, I received plenty of probes (see this month):

Timthumb Requests

(Click to enlarge)

The TimThumb scans are coming from three main sources as see on the Google map below (the live map is available here).

Timthumb Google Map

(Click to enlarge)

 Another trend this month: more and more .rar archive files are tested. Especially this month. Why? I’ve absolutely no idea! If you have ideas, feel free to post your comments!

.rar File Requests

(Click to enlarge)

The top-10 of requested .rar files is:

  • /mirserver.rar
  • /web.rar
  • /www.rar
  • /mirserver1.rar
  • /wwwroot.rar
  • /youxi.rar
  • /mh.rar
  • /manhua.rar
  • /mirserver2.rar
  • /mirserver3.rar

Some of them look like performed by scanners which are looking for websites backups. But I did not see the same amount of requests for .tar.gz or .zip files! (Except for “www.zip“) I also saw request for files based on numbers: 5555.rar, 8888.rar, 444.rar, etc. Based on Google, those file are massively infected with malwares but why look for them on my server?

Finally, scanners are looking for .asp (Microsoft .Net) pages. Especially for the last two months:

.asp File Requests

(Click to enlarge)

The top-10 of requested .asp pages is:

  • /save.asp
  • /plug/save.asp
  • /gmsave.asp
  • /diy.asp
  • /shell.asp
  • /dama.asp
  • /upfile_flash.asp
  • /FCKeditor/editor/filemanager/connectors/asp/connector.asp
  • /xiaoma.asp
  • /up_BookPicPro.asp

And what about common tools or web interfaces? The top-10 is:

  • /setup.php
  • /scripts/setup.php
  • /admin
  • /login.php
  • /phpmyadmin/
  • /myadmin/
  • /mysql/
  • /db/
  • /administrator/
  • /db/

As you can see, there is plenty of useful information in your Apache (or any other webserver) log files! Keep an eye on your 404 errors to discover new trends! A temporary peak of 404 errors could mean that your server is under an attack…

, ,

Trainings? Because Infosec is an Ongoing Battle…

Working in information security is an ongoing battle! That’s why we have to learn new things every day! But the opposite is also true. As commented by somebody on Twitter recently: “Sometimes, it’s also good to forget things“. We also have to learn by our mistakes and the information security landscape is full of bad stories to learn from! To resume: We have to train ourselves all the time…

Self-learning is (almost) free. It just cost you spare time and requires access to a lab or documentation but could quickly become limited. How to submit questions? How to exchange useful tips & tricks? Real trainings add a social layer which helps you to learn better and quicker. How to select the training which suits your requirements?

Aside your preferences, they are different types of training that can be attended. I see there three big areas for trainings:

  • Vendors trainings
  • Certification trainings
  • Learning “by doing

Vendors trainings are only useful when you need to be ready as fast as possible to go “to the front” (read: to go to customers) to massively deploy the vendors solutions. You’ll learn the basics but don’t expect going very deep. To go deeper, attend buy a new training! Finally, to successfully complete the training, you’ll have to pass the certification exam based on wonderful questions like:

  To achieve the configuration of "A" when "B" is deployed in "C"
  mode, you use the command:
    a) cmd -C
    b) cmd -c
    c) cmd -s

I hate this kind of questions! You need to know how things work but how to apply them? RTFM! Usually, vendors trainings are mandatory for your company to remain a “certified partner” ($$$!) and not difficult to attend.

Certification trainings are broader and don’t focus on products. Most os them are theoretical:  procedures, frameworks and best practices have no secret for you. Here again, after the training (often called a “boot camp“), you have to pass the certification exam and finally reach the holy grail also called “CISSP“, “CISA“, “CISM“, “ITIL“, “CEH” etc… If they are very useful to build the basics of information security, once you got them, they will help you to be put on the top of a stack of resumes and to pretend to be an “infosec guy” (I insist on the verb “pretend“!)

Finally, the third type is learning “by doing” or “looking under the hood“. In my humble opinion, that’s the best way to learn. By practicing and going straight to the point! This last type of trainings is usually organized during security conferences. Hélas, they are not given for free: good trainers are not easy to find and traveling abroad might increase the total costs by two (flight, hotel, …). So, why not benefit of a good opportunity to attend top-notch trainings organized in the center of Europe in a place not far from everywhere: Belgium! The BruCON security conference announced the schedule of  trainings for its 4th edition:

This is an excellent opportunity to attend trainings provided by people recognized as  excellent trainers in the information security field! Registrations are open for a few days and early bird prices are available until 31st of May 2012. Spread the word!

, ,

Are you Making the Most of your Security Tools?

APIAfter some wrap-ups, let’s come back with a more practical blog post. I like to keep a good balance between hands-on and wrap-ups or theoretical articles. Today, it’s almost impossible to implement a good security without buying some commercial tools. At least, you have a corporate firewall provided by a big name. Security vendors use various marketing techniques to sell you more and more wonderful solutions which can magically solve all your problems and, sometimes, even make coffee! But what most of their users ignore is that almost all appliances or software solutions have API’s (“Application Programming Interface“) available to interact with other products. API’s help different softwares to communicate with each others in a structured way. My question is: Are you making the most of your security tools? Here is a practical example.

(more…)

, ,

leakedin.com is back online

Screen Shot 2012 03 16 at 22 19 29

I remember this evening… More than two years ago, at RSA Europe, I was sitting in the hotel bar with my friends Craig Balding and Brian Honan talking about everything and nothing.

Which topic was at the source of this? It’s too old but I had the idea to register the domain “leaked in.com”. A funny name close to the one of the well-know social network for professionals. Once back into my room, I checked and the domain was available… not for long! My idea was to open a new blog with articles about data loss and data leaks. I started the blog but quickly stopped to update it due to a lack of time. The content remained non updated until recently.

Today I’ve a tool to monitor pastebin.com and I had another idea: what not compile my findings on a web site to show to everybody the risks to have sensitive data copied on pastebin.com (with intend or not). Some kind of “security awareness” website.

Today, I published a new version of my tool just before the BlackHat Arsenal. Amongst others, I added an option to send collected data to a WordPress blog using its XMLRPC interface.

In the same time, leakedin.com is now back online with live data posted by my tool which runs on a 24×7 basis. What I’m looking for? Here are some interesting regular expressions:

-----BEGIN RSA PRIVATE KEY-----
-----BEGIN DSA PRIVATE KEY-----
-- phpMyAdmin SQL Dump
-- MySQL dump
-----BEGIN CERTIFICATE-----
-----BEGIN PGP PRIVATE KEY BLOCK-----
\.HOICenable secret
encrypted password \".*\";
root:.*:0:0:
root:.*:0:99999:7:::
CN\=Admin

http://[a-zA-Z0-9-_]\:.*\@[a-zA-Z0-9-_].[a-zA-Z0-9-_]

ftp://[a-zA-Z0-9-_]\:.*\@[a-zA-Z0-9-_].[a-zA-Z0-9-_]
\?[a-zA-Z0-9-_]=.*UNION.*SELECT
mysql_connect\([^\$]
http:\/\/.*\.\.\/\.\.\/\.\.
remote file inclusion
\|\s+Password\s+\|
[p0o]wn[3d]d

If you’ve suggestions for new regular expressions, feel free to share! The website is available here and the RSS feed here.

, ,

BlackHat Europe 2012 Day #3 Wrap-Up

IMG 1829

And this is already the last day! My first choice for today was the talk of Andrey Belenko and Dmitry Sklyarov: Secure Password Managers” and “Military-Grade Encryption” on Smartphones: Oh Really?. They presented their research about the security of keyword managers on smartphones. It’s recommended to not use the same password across several applications or services. This means for the end-users a huge amount of passwords to remind. It’s impossible to achieve this for regular people. That’s why we need tools called “passwords managers“. But are they really safe? First, they compared both environments: PC”s and mobile devices from an authentication point of view. Regular PC’s have multiple authentication methods: TPM, biometrics, SmartCard + PIN or classic passwords/passphrases. But on SmartPhones, only the last method is doable. The first security control on mobile devices is the lock screen (via another PIN/password or a “lock pattern“. Another problem: typing passwords on SmartPhone is a pain! Virtual keyboard, small keys do not help. So people are tempted to use simple passwords. Password cracking on SmartPhone is not easy: slow CPU, complex password-to-key transform will impact the usability. We need stronger password on SmartPhones (mobile data) but they are stronger to manage! The threat model proposed by Andrey was: Let’s assume that an attacker has physical access to the device and has access to the data. He wants to recover the master password to extract the stored passwords. Physical access is not a real issue. SmartPhones are small and can easily be stolen or lost in bars. What about backups? Two platforms were reviewed. iOS uses passcode or iTunes pairing (encryption is optional). On BlackBerry, your need the device password, encryption is also optional. Where are the database files? On iOS, you can use AFC (used by iTunes), SSH (jailbroken devices) or physical imaging (up to iPhone 4). On BlackBerries, you need the device password.

In the second part of the talk, some popular password managers were reviewed (encryption modes, features, etc). BlackBerry users can use the BlackBerry Password Keeper and BlackBerry Wallet. On iOS, there are much more applications! Some are free (20+), others are commercial. A few applications are exactly the same, only the look changes! They store data in SQLite files, master password is only 4 digits and stored in… plain text! iSecure Lite is also storing the master password in plaintext, retrieve it using a simple “SELECT password FROM preferences;“. Many iOS application names contains “Safe“, “Ultimate“, “Secret” but they security is really poor or inexistent! Some does not use salt to store their master password in MD5, so existing rainbow tables can be used to crack them.  The best one is Strip Lite – Password Manager.  And what about paid applications? We could expect more security. Some are SafeWallet, 1Password Pro, Data Vault, mSecure. 1Password is maybe the most popular but not the safest one. The worst one is SplashID.Note that the overall security is some applications can change depending on the iOS version used (iOS 5 introduced more security). Encryptions methods and features were reviewed. The conclusions are:

  • None of the tested apps offer reliable protection on top of OS security.
  • Using them on improperly configured device may expose sensitive data
  • Paid apps are not necessarily better than free ones.
  • Users: always use passcode, set backup password and do not connect devices on untrusted networks.
  • Developers: Use built-in OS security services, don’t reinvent the (wheel of) crypto!

I see another aspect which was not covered by the speakers: Sometimes you need to find the best balance between security and features. Example: Some password managers can be synchronized with desktops.

The second talk was the one of Paul Royal. He explained how to “entrap malwares with transparent, scalable malware analysis“. Modern malwares use techniques to defeat security measures: obfuscations, server-side polymorphism and collection volume are common. That makes them difficult to catch. As they are use by real criminals, impact can be huge if they are detected and malware developers must implement controls to ensure that their code will be properly executed (business must go on!). There exists tools to obfuscate code, like ZeroPack. From an analyst point of view, automation is mandatory. Why? The volume makes manual analysis impossible (huge increase of samples). Today, modern malwares implement  analysis detection (Conficker checks for relocated LDT orTDL4 cehck for device emulation via WQL). Malware builder tools have features like anti-VirtualPC, anti-VMware, anti-VirtualBox, bypass sandboxes methods, etc. That’s why malware analysis tools must have transparency requirements:

  • High privilege
  • No non-privileges side effects
  • Same instruction execution semantics
  • Identical exception handling
  • Identical notion of time
  • In-Guest tools
  • Reduce privileges guests
  • Emulation (QEMU, Simics)

Paul showed a piece of code used by malwares to detect virtual environment (QEMU, VMware, KVM). Why transparency is important? Some analysis environment became very popular. We need to come back to physical analysis. The concept is to have a physicalizing virtual machine. This must be scalable (costs, efficiency) and automated. NVMTrace is a tool created to automate this procedure. It executes each sample in its own sterile isolated non-VM machine and provide access to NVM disk content and network traffic. Data can be post-analyzed using your favorite network traffic and disk forensic tools. In the future? more disk forensics (ex: record disk-level events as they occur) and use Arduino boards (ex: to inject keyboard/mouse events) and activate trigger-based malware). Code is available here: NVMTrace code is available here: code.google.com/p/nvmtrace. More information is available here: ether.gtisc.gatech.edu.

The next talk “Pwnage saga continues” by Nikhil Mittal was a continuation of the workshop organized by Nikhil on Teensy devices. So, I missed interesting stuff (how to program it) but the demos were very interesting. Teensy are small USB devices acting like a virtual keyboard. By using an Arduino interface, you can program them to send keyboard signals to the victim computer. Example: Windows menu, up, up, type “cmd”, enter, etc.

Teensy Board

To use the USB devices, Nikhil used his tool call Kautilya. It’s a toolkit which provides various payloads which may help in breaking in a computer. He performed demos of several payloads:

  • Grab a script from pastebin.com, schedule a task
  • Setup a key logger which will send the captured data to paste bin.com after a given interval
  • Create a Wireless hosted network, create an admin user and enable RDP access in the firewall
  • Silently download a signed Java applet and connect back to Metasploit

The process was always the same: generate the script, install it on the USB device and execute the sequence of keys on the victim’s machine. They are of course some issues:

  • Some systems have a HIDS which prevents USB hardware devices to be used (or via a Windows Group Policy)
  • Teensy has a limited storage but you can attach an SD card.
  • Data are sent on a one-way traffic. Not possible to read from the system.

The current limitations of Kautilya are:

  • Many payloads needs administrative privilege
  • Traffic from/to pastebin.com is not discrete
  • It cannot clear itself after a single run
  • Not very stable if some tools changed.

What about the future? Nikhil would like to write more payloads, implementation the support of the SD card, use payloads as libraries (to reuse them) and support non-english payloads(only US keyboard are supported at the moment). The conclusion to this talk: don’t leave workstations unattended. Attackers could insert the Teensy and compromise the host in a few seconds. Kautilya is available here: code.google.com/p/kautilya and interesting stuff can be found on Nikhil’s blog: labofapenetrationtester.blogspot.com.

The last half-day started with a presentation called “Preventing ‘Oh Shit!’ Moments for 20 Euros or Less“ by Phil Polstra. This talk covered USB device and how they work. Why? USB became a standard for people to exchange data across computers (Do you remember floppies?) but a few of us understand them. USB is not safe. They are also to see your best collection of tools to be deleted by an intrusive antivirus when you plug a key!  USB appeared in 1996 (!) and is based on pretty simple hardware (4 wires), hot pluggable, cable length unto 16 feeds (5 meters). About software? USB uses automatic configuration and is based on enumeration. Standard classes with corresponding drivers (audio, storage, keyboard, …). Then Phil focused on mass-storage devices. How to keep the USB storage drives safe? Some drives have a write-protect switch. Using “HKLM/System/CurrentControlSet/Control/StorageDevicePolicies/WriteProtect“. They also exist commercial solutions ($$$). But micro controllers are fun and cheap. Phil decided to build its own solution. Two families of chips were available: AVP or PIC. But Phil used a PTDI Vinculum II chip (and libraries are open-source)

Photo

We need to block the bad command blocks that could modify our drive. Why? For forensic purposes or to prevent infection by malwares. Paul demonstrated his tool of course. Another interesting video: USB flash drive forensic.

I followed a last talk about “Smartphone’s Apps Are Not That Smart: Insecure Development Practices“ by Simon Roses Femerling (@simonroses). If our phones are smart, it’ s not always the case for their applications! The web has a new concurrent: apps! All services are today available as “apps”. When you visit a website with your smartphone, it suggests you to install and use the apps instead. Some numbers:

  • Sales will rise to 982 millions of devices in 2015.
  • Average is 65 apps per devices but only 15 are used per week.
  • 18 billions of apps downloaded for iOS (02/2011)
  • 10 billions for Android (12/2011)

Apps are not developed in the same way and multiple technologies are used (Java, C, Objective-C, Ruby, HTML, Python, CSS JavaScript, Tcl, … What are the risks associated introduced with apps? 100 apps were analyzed from the official markets (1h per app) and different categories analyzed:

  • Security
  • Social networking
  • Communications
  • Servers
  • Finance
  • Media
  • Productivity
  • Travel

To help developers, OWASP has a mobile security project with a top-10: <pic?> Some bad example:

  • Clear text secrets. How to mitigate? Use encryption, set correct file permissions and avoid saving data on external storage (SD-cards)
  • Insecure channels (HTTP) and credentials or PII data disclosure. How to mitigate?
  • Debug mode left active
  • SQLi
  • XSS
  • Data validation
  • Applications integrate with 3rd party libraries.

An important topic in apps security: permissions! A bad app may compromise your mobile and your money! permissions mitigation must be performed on both side:

  • Developer:s: don’t abuse on permissions request (overprivileged)
  • Users: apply common sense!

Bad crypto implementation is a recurrent issue. This has  already been said multiple times across different talks. Some secure development tips?

  • Apps need to pass software security assurance practices
  • Threat modeling your apps
  • Understand platform and apps risks
  • Professional security reviews are expensive but small ISV and single developers can use available resources.
  • Implement jailbreak detection

Interesting talk, developers must review the slides!

Finally, I participated to the BlackHat Arsenal. It was the first time that Arsenal was organized in Europe.  I presented my tool: pastemon. It helps you to monitor pastebin.com and alert you when interesting/suspicious content is detected. More information is available here.

IMG 1834

That’s all for this edition! I’ll drive now back to Belgium. Thanks to the BlackHat team for the organization.

, , ,

Previous Posts