Wednesday, April 6, 2016

Using Typhon OS and an OsmocomBB phone to create a RogueBTS (Rogue GSM Base Station) IMSI catcher

Requirements:

OsmocomBB compatible phone (Motorola c113/115/118/123)
CP2102 cable (can be found here)
TyphonOS (read this is you havent, or directly head to downloading)

Setup:

Boot up the OS(live or install)


All the softwares referenced here are already installed.

To run an OsmocomBB application on the phone, you must first find out what interface your CP2102 cable is connected to. Run this command:
dmesg | grep tty

If you want to run it on ttyUSB0 (and I propose that you do) remove all USB devices and plug the CP2102 cable in first. The CP2102 cable will automatically move to /dev/ttyUSB0. To run it on other interfaces, modify the firmware upload string appropriately.

You can now upload firmware on the phone and observe output.
 From the /rf/osmocom-bb/src/host/osmocon/ directory, run:

sudo ./osmocon -d tr -p /dev/ttyUSB0 -m c123xor –c ../../target/firmware/board/compal_e88/rssi.highram.bin

Then, with the phone powered off, press the power button once briefly and wait for the firmware to load onto the phone.
As it loads, the screen output should look like this:















RSSI stands for Received Strength Signal Indicator and is can be used to identify the strongest ARFCN in the area. This is important as the BTS needs to sync with the strongest legitimate BTS in order to receive configuration information.


Once done exploring the RSSI app, there are plenty more applications that you can run which are beyond the scope of this document. However, feel free to explore them to further your understanding on the OsmocomBB platform.

Running

After installing everything, we can now run the full system.
Plug in the calypso phone with the CP2102 cable, and ensure that it is on ttyUSB0 before proceeding. Note: Charge the phone to its fullest as the power cable interferes with transmission.
From the /rf/osmocom-bb/src/host/osmocon/ directory run the trx application with the following code (on one line):

sudo ./osmocon -p /dev/ttyUSB0 -m c123xor -c ../../target/firmware/board/compal_e88/trx.highram.bin ../../target/firmware/board/compal_e88/chainload.compalram.bin


Then press the power button on the phone briefly to load the application.

From the /rf/public/smqueue/trunk/smqueue directory run the smqueue application with the following code:

sudo ./smqueue

From the /rf/public/subscriberRegistry/trunk directory, run the sipauthserve application with the following code:

sudo ./sipauthserve

Finally, from the /rf/public/openbts/trunk/apps directory, run the OpenBTS application with the following code:

sudo ./OpenBTS

After a few seconds, the OpenBTS terminal (top right) will look like this indicating that syncing has taken place and it is transmitting:



Figure 15 - Running TRX, smqueue, sipauthserve and OpenBTS


If you had set your MCC and MNC to that of a legitimate network operator, the 2G phones in the area will begin connecting to your fake base station. If you left it as the default then you will see a name either “Test” or “Range” or "Safaricom [this is not legal by the way assuming you spoofed the name too]" when perform a manual search on your phone.



The above setup creates a fakeBTS (IMSI catcher) and works as a spoofed Mobile Network.
On the next setup we will work on how to send SMSs and even spoof some messages alphanumeric address and all.


Monday, April 4, 2016

Typhon OS

Typhon OS is an operating system rebuilt from the popular debian distro Ubuntu, it contains several tools for penetration testing specifically SIGINT this tools can be used for the following:

GSM research/security/penetration testing > this includes anything using GSM as a module of communication e.g Mobile Phones/ Mobile Networks/ GSM Modems / ATMs and other IOT
Satellite Communication/ Security/ Research
Radio (as long as you have the right SDR, multiple tools on typhonOS exist to allow use of the SDRs, such as BladeRF, HackRF, OsmocomBB, RTL-SDR etc) radio examples include AM/FM radio, Police Radio/Walkie Talkies etc.

TyphonOS is not the most graphical OS created as most of the applications are not GUI oriented, however, most tools have been documented on Google and I find no reason to reinvent the wheel with information, I will however point paths to the tools.

Depending on your OS version 1&2 (currently exist)

/RF or /typhon would be the location to all tools installed

In this folders you will find the all the tools necessary.
On live environments, the default username would either be syn and password typhon, or vx and password vx , depending on the version you have.

Using the OS on a VM would require a tier 1 VM , such as VMware family: player,fusion, workstation as they integrate best with the USB-Serial connections.

find TyphonOS here or alternative link

Have fun, for educational purposes only.

Monday, March 28, 2016

γύρισα

It has been quite a while since I updated this blog, however, much has been done during the last two years, I have :


Worked on a few projects :

Typhon: a Linux Operating System based on Ubuntu, with several SIGINT tools
The German AutoMobile Hack: Took time to consult for a very good company which has now taken me in as one of their own, We did a thorough PenTest of an AutoMobile hence securing it.
The MNO invite: Met up with one of the leading MNOs in Kenya and gave them directives on how to better their security on Mobile Money.
The 'Secure' Mobile Phone Tested: Took time to research on the vulnerabilities of the mobile phone known to be one of the most secure (and expensive) the CryptoPhone.
Testing and Developing for the Cellular Privacy Project: Tested and developed for the Cellular Privacy Project an android based BaseBand FireWall (aka AIMSICD)
Developing FrameWorks for iOS(private contractor)
Testing and Developing on the BRCK: Testing the security loopholes on the BRCK and more so, developing applications for it.


Currently adding more technologies on my mind bank and learning even more, I have been a little bit silent however not without reason , I feel I had given this blog so much to not restart it without a few mentions of what I have been up to also travelling and learning a little about myself, which is an R&R by itself.

I shall be updating the blog in a few days if not hours, In all this, I hope to maintain the flow over a longer period of time, Kind Regards.

Vx

Friday, February 27, 2015

SIM CARDS >> They are really Tiny Micro-Computers (computers *insert Grin*)

So :), like most of you know so far, GSM phones use SIM cards that is Subscriber Identity Module Cards, this are used by the operator to create a distinction of users (sort of like a user profile holder) they also communicate to the phone via the baseband via the network (ok not necessarily in that order everytime) but something like that.

Now, SIM cards :)

Microchips that have RAM, Processors, ROM (EPROM) and an OS at that :) , (I know so cool)
So, Structures of a SIM Card (Application Wise)


(Hardware Wise)


So this, this is a tutorial to SIM card (Java Card) applications, Java Card Programming and JavaCard Security

so um, I think so far i have narrowed down the topics we about to cover.


  • How to program SIM cards
  • JavaCard setup
  • Tutorials

  • finding Vulnerabilities in SIM cards
  • creating a SIM card level malware/virus
  • Uploading/installing on SIM cards (i wanna show you how to do that remotely)

  • C&C to control the malware
  • Botnets of SIM cards (Xtian the geek will love this)
  • Causing mayhem (ahoy mr, should I really tell ok, Stealing from M-banking applications , spoofing, DOS, MITM (calls and data) 

ARCHIVED

:) No longer posting, all articles should be treated as archived and outdated