SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
SIM Cards Overview
  C. Enrique Ortiz | August 2009
 http://weblog.cenriqueortiz.com




                          © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
What is a SIM Card?

• SIM or Subscriber Identification Module is a smart card
 that is included in every cell phone of the GSM family of
 networks
     6 or 8-pin flat connector embedded on the top of the card
     A fully fledge microcomputer with an OS
• UICC stands for Universal Integrated Circuit Card is a
 new generation SIM




  Source:3, Java Card 3: Classic Functionality Gets a Connectivity Boost   © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
More on SIM and SIM Cards

• SIM cards hold subscriber information and memory, for
 example for personal directory of numbers
   SIM identifies a subscriber via unique International Mobile
   Subscriber Identity (IMSI)
   >The first 3 digits represent the Mobile Country Code (MCC)
   >The next 2 digits represent the Mobile Network Code (MNC)
   >The next 10 digits represent the mobile station identification number
• SIM is the application that runs on a SIM Card
   SIM is to GSM, what USIM is to UMTS & RUIM/CSIM is to
   CDMA
• Today most SIM cards are based on Java Card


                                                © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
SIM and Smartcard Standards                                                   Standards for:
                                                                              •Toolkit
                                                                              •File & Auth
                                                                              •APIs
                                                                              •OTA
                                                                              •Smartcards


                                                             ISO/IEC 14443 is the international standard for
                                                             contactless smart chips and cards that operate
                                                             (i.e., can be read from or written to) at a
                                                             distance of less than 10 centimeters (4 inches).
                                                             This standard operates at 13.56 MHz and
                                                             includes specifications for the physical
                                                             characteristics, radio frequency power and
                                                             signal interface, initialization and anti-collision
                                                             protocols and transmission protocol.

                                                             ISO/IEC 7816 is the international standard for
                                                             contact smart cards. ISO/IEC 7816 Parts 4 and
                                           Source: Gemalto
                                                             above are used by both contact and contactless
•ETSI -- Specifications in blue                              smart card applications for security operations
•3GPP -- Specifications in green and red                     and commands for interchange.
                                                                                        Source: Smart Card Alliance


  Java Card (classic or 3.0) Applets are built using Java and run in a JCRE
                                                             © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Industry: Interesting Numbers for 2008

• Global SIM card shipments exceeded 2.9 billion units
 during 2008
     Strong demand from the emerging markets of India, China,
     Asia Pacific and Latin America contributing to a 29 per cent
     increase on shipments over the previous year
• On average, memory size increased by 11 per cent on
  2007 figures
• Number of cards shipped with a S@T (SIMalliance
  Toolkit) browser had a growth rate of 22 per cent
• 3G enabled SIM cards represented 14 per cent of total
  shipments in 2008
  Source:SIMalliance


                                           © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Next Generation SIM Cards

• Next gen SIM Cards integrate with new functionality…
• Mobile Near Field Communication (NFC)
• More advanced Applications
   Address book, calendar back-up, messaging, teleconferencing
   and file transfers, banking and access control, Web!
• Smart Card Web Server
   Web apps running right on SIM Cards! And TCP stacks
• High-capacity SIM cards
   More and more memory/capacity
• Multi-Media support (in conjunction w/ browser)

                                       © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Overview: Programming SIM Cards

• SIM Toolkit

                                                          Toolkit
                                                          “conversation”
                                                          between phone
                                                          and Smartcard


                                   Source: Gemalto




A SIM Toolkit is a data management application (applet) for SIM
cards, part of which is resident in the SIM card
   •Icon, application, settings and help management
   •User (simple menus), mobile, network and card interactions

                                              © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Overview: Java Card Classic




import javacard.framework.*
...
public class MyApplet extends Applet {
    // Definitions of APDU-related instruction codes
    ...
    MyApplet() {...} // Constructor
    // Life-cycle methods
    install() {...}                                    Source: Introduction to Java Card Technology by C. Enrique Ortiz
    select() {...}
    deselect() {...}
    process() {...}
    // Private methods
    ...
}
                                                                   © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
SIM / Smart Card Application Communication

                     Application Communication Architecture




                                      Response APDU Structure

                                       Source: SIM Protocols by Mobile Forensics
 Command APDU Structure

                                          © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Classical Java Card Development




                                                                                                IDEs can
                                                                                                simplify
                                                                                                these steps!




    Source: Introduction to Java Card Technology by C. Enrique Ortiz
                                                                       © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Java Card 3.0

• Extends (and simplifies) the programming model
• Classic Applets (Java Card 2 limitations apply for these
 applications)
   Communication using APDU protocol
   Backward compatibility
• Extended Applets
   Communication using APDU protocol
   Similar to Classic Applets, and can use all the new APIs, like
   Threads, Strings, and GCF (Generic Connection Framework)
• Web Enabled!
   Based on Servlet 2.4 API
   Communication using standard HTTP/ HTTPS protocol
   HTML, JavaScript, etc. (much richer UIs than prior)
                                           © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Java Card 3 Architecture




                                 Source -- Java Card 3: Classic Functionality Gets a Connectivity Boost by Peter Allenbach


       •All data types except float and double
       •Multiple threads
  NEW! •Extensive API support (java.lang, java.util, GCF, and so on)
       •Direct handling of class files, with all loading and linking on card
       •All new Java language syntax constructs (enums, generics, …)
       •Automatic garbage collection
                                                                          © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Smartcard Web Server
• Very exciting and powerful SIM card evolution in my opinion!
    It took more than 10 years but we finally have it! Very powerful.
• Leverages the browser already present in the handset to run local
  web applications preloaded into the SIM
• Local web-based applications are securely stored in the SIM card
  and can be updated remotely
                                           Best of both worlds
• Servlets framework on SIM Cards!         Mobile SIM + Web




                                   Source: Gemalto
     Potential Apps:
     •Rich SIM card apps
     •On-Device Self-Service
     •Application Management
     •Mobile Payments                                            Source: Gemalto
     •Mobile NFC
                                                     © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Benefits of Smartcard Web Server
  • Rich UI and Advanced Capabilities
     Access to location, SMS, servers on the web, secure local-storage,
     personalized experience
     Call-intercepts to perform actions on-device, for example help
     troubleshoot issues before calling the support representative
  • Manageable
     Secure, remote application management
  • SIM-card based /On-Device
     Works Connected and Disconnected
     Secure connections and environment
     Uses no wireless resources when doing on-device web apps
     Access to information such as location that can help personalize the
     experience
  • Easy to deploy
     Highly customizable application; can be modified as needed and push to
     handsets in real-time
     Based on OMA and Web standards - xHTML, CSS, JavaScript
                                               © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Some Challenges

• SIM Card Applications still a niche, controlled by
 operators
   But if you have the relationships, it is a good niche ($)
• Applet development is not trivial with few experts
   This can translate to opportunities for you!
• Smartcard Web Server requires new generation SIM
 cards
   Thus conversion process will make adoption slow & expensive
   Expect emerging markets adopting first




                                            © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Gemalto Toolkit & UpTeq Multimedia SIM Card




  Toolkit



                 Download from: http://developer.gemalto.com/



               See http://www.gemalto.com/telecom/upteq/multimedia.html


            Smartcard Web Server
                                          © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
Resources

• Gemalto Developer Website
• Sun Java Card Website
• SIMalliance Website
• Smart Card Alliance Website
• SIM Card Protocols Paper by Mobile Forensics
• Mobile Forensics Blog
• Introduction to Java Card Technology, part 1 by C.
  Enrique Ortiz
• Article Java Card 3: Classic Functionality Gets a
  Connectivity Boost by Peter Allenbach

                                      © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

GSM Presentation
GSM PresentationGSM Presentation
GSM Presentation
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architecture
 
clone sim card
clone sim cardclone sim card
clone sim card
 
SEMINAR REPORT ON GSM ARCHITECTURE
SEMINAR REPORT ON GSM ARCHITECTURESEMINAR REPORT ON GSM ARCHITECTURE
SEMINAR REPORT ON GSM ARCHITECTURE
 
Generations of Mobile Communications
Generations of Mobile CommunicationsGenerations of Mobile Communications
Generations of Mobile Communications
 
GSM SECURITY AND ENCRYPTION BY SAIKIRAN PANJALA
GSM SECURITY AND ENCRYPTION BY SAIKIRAN PANJALAGSM SECURITY AND ENCRYPTION BY SAIKIRAN PANJALA
GSM SECURITY AND ENCRYPTION BY SAIKIRAN PANJALA
 
UMTS, Introduction.
UMTS, Introduction.UMTS, Introduction.
UMTS, Introduction.
 
esim
esimesim
esim
 
GSM
GSMGSM
GSM
 
Imt 2000
Imt 2000Imt 2000
Imt 2000
 
Mobile communication
Mobile communicationMobile communication
Mobile communication
 
5g introduction_NR
5g introduction_NR5g introduction_NR
5g introduction_NR
 
eSIM
eSIMeSIM
eSIM
 
Gprs architecture ppt
Gprs architecture pptGprs architecture ppt
Gprs architecture ppt
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Introduction to Mobile Computing
Introduction to Mobile ComputingIntroduction to Mobile Computing
Introduction to Mobile Computing
 
Ch5
Ch5Ch5
Ch5
 
eSIM Deep Dive
eSIM Deep DiveeSIM Deep Dive
eSIM Deep Dive
 
Security of software defined networking (sdn) and cognitive radio network (crn)
Security of software defined networking (sdn) and  cognitive radio network (crn)Security of software defined networking (sdn) and  cognitive radio network (crn)
Security of software defined networking (sdn) and cognitive radio network (crn)
 
Global system for mobile communication(GSM)
Global system for mobile communication(GSM)Global system for mobile communication(GSM)
Global system for mobile communication(GSM)
 

Destacado

USAT : USIM Application Toolkit
USAT : USIM Application ToolkitUSAT : USIM Application Toolkit
USAT : USIM Application Toolkit
Byeongweon Moon
 
Science intervention material SCIENCE PHOTOSYNTHESIS
Science intervention material SCIENCE PHOTOSYNTHESISScience intervention material SCIENCE PHOTOSYNTHESIS
Science intervention material SCIENCE PHOTOSYNTHESIS
arjeanmedel
 
Spelunking Credit Cards with Ruby
Spelunking Credit Cards with RubySpelunking Credit Cards with Ruby
Spelunking Credit Cards with Ruby
Sau Sheong Chang
 
Government Citizen ID using Java Card Platform
Government Citizen ID using Java Card PlatformGovernment Citizen ID using Java Card Platform
Government Citizen ID using Java Card Platform
Ramesh Nagappan
 
Unit Planner Greek Roman Myths and Marvels X Men
Unit Planner Greek Roman Myths and Marvels X MenUnit Planner Greek Roman Myths and Marvels X Men
Unit Planner Greek Roman Myths and Marvels X Men
Kathryn Brown
 

Destacado (16)

Mobile Phone and SIM card cloning
Mobile Phone and SIM card cloningMobile Phone and SIM card cloning
Mobile Phone and SIM card cloning
 
SIM Initialization
SIM InitializationSIM Initialization
SIM Initialization
 
Lost Report of SIM Card
Lost Report of SIM CardLost Report of SIM Card
Lost Report of SIM Card
 
USAT : USIM Application Toolkit
USAT : USIM Application ToolkitUSAT : USIM Application Toolkit
USAT : USIM Application Toolkit
 
Cyber security for ia and risk 150601
Cyber security for ia and risk 150601Cyber security for ia and risk 150601
Cyber security for ia and risk 150601
 
SIM: Matter
SIM: MatterSIM: Matter
SIM: Matter
 
Mobile phone-cloning
Mobile phone-cloningMobile phone-cloning
Mobile phone-cloning
 
Science intervention material SCIENCE PHOTOSYNTHESIS
Science intervention material SCIENCE PHOTOSYNTHESISScience intervention material SCIENCE PHOTOSYNTHESIS
Science intervention material SCIENCE PHOTOSYNTHESIS
 
Architecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsArchitecture and Development of NFC Applications
Architecture and Development of NFC Applications
 
Spelunking Credit Cards with Ruby
Spelunking Credit Cards with RubySpelunking Credit Cards with Ruby
Spelunking Credit Cards with Ruby
 
Technology life cycle of java
Technology life cycle of javaTechnology life cycle of java
Technology life cycle of java
 
Atoms
AtomsAtoms
Atoms
 
Government Citizen ID using Java Card Platform
Government Citizen ID using Java Card PlatformGovernment Citizen ID using Java Card Platform
Government Citizen ID using Java Card Platform
 
EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection
 
Unit Planner Greek Roman Myths and Marvels X Men
Unit Planner Greek Roman Myths and Marvels X MenUnit Planner Greek Roman Myths and Marvels X Men
Unit Planner Greek Roman Myths and Marvels X Men
 
Most usefull at commands
Most usefull at commandsMost usefull at commands
Most usefull at commands
 

Similar a SIM Card Overview

Similar a SIM Card Overview (20)

Smart card
Smart cardSmart card
Smart card
 
Smart id's
Smart id'sSmart id's
Smart id's
 
Access control basics-3
Access control basics-3Access control basics-3
Access control basics-3
 
Smart Card Presentation
Smart Card Presentation Smart Card Presentation
Smart Card Presentation
 
Smart cards
Smart cards Smart cards
Smart cards
 
Smart cards
Smart cardsSmart cards
Smart cards
 
Smart card
Smart cardSmart card
Smart card
 
Smart card ppt
Smart card pptSmart card ppt
Smart card ppt
 
Improvement of a PIN-Entry Method Resilient to ShoulderSurfing and Recording ...
Improvement of a PIN-Entry Method Resilient to ShoulderSurfing and Recording ...Improvement of a PIN-Entry Method Resilient to ShoulderSurfing and Recording ...
Improvement of a PIN-Entry Method Resilient to ShoulderSurfing and Recording ...
 
Study of Java Card and its Application
Study of Java Card and its ApplicationStudy of Java Card and its Application
Study of Java Card and its Application
 
Security applications with Java Card
Security applications with Java CardSecurity applications with Java Card
Security applications with Java Card
 
A1103040106
A1103040106A1103040106
A1103040106
 
IRJET- A Survey on Cardless Automated Teller Machine(ATM)
IRJET- A Survey on Cardless Automated Teller Machine(ATM)IRJET- A Survey on Cardless Automated Teller Machine(ATM)
IRJET- A Survey on Cardless Automated Teller Machine(ATM)
 
IRJET- Fingerprient based Vehicle Starter
IRJET-  	  Fingerprient based Vehicle StarterIRJET-  	  Fingerprient based Vehicle Starter
IRJET- Fingerprient based Vehicle Starter
 
smartcard-121018150432-phpapp01.pdf
smartcard-121018150432-phpapp01.pdfsmartcard-121018150432-phpapp01.pdf
smartcard-121018150432-phpapp01.pdf
 
Paperless ticket system
Paperless ticket systemPaperless ticket system
Paperless ticket system
 
Smart Card based Robust Security System
Smart Card based Robust Security SystemSmart Card based Robust Security System
Smart Card based Robust Security System
 
M Commerce
M CommerceM Commerce
M Commerce
 
Virtual Twins: Modeling Trends and Challenges Ahead
Virtual Twins: Modeling Trends and Challenges AheadVirtual Twins: Modeling Trends and Challenges Ahead
Virtual Twins: Modeling Trends and Challenges Ahead
 
IRJET- Design and Implementation of Fingerprint based Bank Locker System usin...
IRJET- Design and Implementation of Fingerprint based Bank Locker System usin...IRJET- Design and Implementation of Fingerprint based Bank Locker System usin...
IRJET- Design and Implementation of Fingerprint based Bank Locker System usin...
 

Más de Carlos Enrique Ortiz

Más de Carlos Enrique Ortiz (8)

Building and running a Data and AI-driven news-media organization(c enrique-o...
Building and running a Data and AI-driven news-media organization(c enrique-o...Building and running a Data and AI-driven news-media organization(c enrique-o...
Building and running a Data and AI-driven news-media organization(c enrique-o...
 
Media publishing transformation in the digital era (digitalworks.ai nov2018)
Media publishing transformation in the digital era (digitalworks.ai nov2018)Media publishing transformation in the digital era (digitalworks.ai nov2018)
Media publishing transformation in the digital era (digitalworks.ai nov2018)
 
Contextual Voice/Communications as an App or App Feature (on Android)
Contextual Voice/Communications as an App or App Feature (on Android)Contextual Voice/Communications as an App or App Feature (on Android)
Contextual Voice/Communications as an App or App Feature (on Android)
 
Mobile Real-time Physical and Web Interactions
Mobile Real-time Physical and Web InteractionsMobile Real-time Physical and Web Interactions
Mobile Real-time Physical and Web Interactions
 
The Mobile Context and People-centric Mobile Computing
The Mobile Context and People-centric Mobile ComputingThe Mobile Context and People-centric Mobile Computing
The Mobile Context and People-centric Mobile Computing
 
Concepts And Technologies Behind Real-Time Demand Data - A Consumer, Mobile, ...
Concepts And Technologies Behind Real-Time Demand Data - A Consumer, Mobile, ...Concepts And Technologies Behind Real-Time Demand Data - A Consumer, Mobile, ...
Concepts And Technologies Behind Real-Time Demand Data - A Consumer, Mobile, ...
 
NFC In Mobile Commerce
NFC In Mobile CommerceNFC In Mobile Commerce
NFC In Mobile Commerce
 
Mobility, Context, Interactions and Data
Mobility, Context, Interactions and DataMobility, Context, Interactions and Data
Mobility, Context, Interactions and Data
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

SIM Card Overview

  • 1. SIM Cards Overview C. Enrique Ortiz | August 2009 http://weblog.cenriqueortiz.com © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 2. What is a SIM Card? • SIM or Subscriber Identification Module is a smart card that is included in every cell phone of the GSM family of networks 6 or 8-pin flat connector embedded on the top of the card A fully fledge microcomputer with an OS • UICC stands for Universal Integrated Circuit Card is a new generation SIM Source:3, Java Card 3: Classic Functionality Gets a Connectivity Boost © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 3. More on SIM and SIM Cards • SIM cards hold subscriber information and memory, for example for personal directory of numbers SIM identifies a subscriber via unique International Mobile Subscriber Identity (IMSI) >The first 3 digits represent the Mobile Country Code (MCC) >The next 2 digits represent the Mobile Network Code (MNC) >The next 10 digits represent the mobile station identification number • SIM is the application that runs on a SIM Card SIM is to GSM, what USIM is to UMTS & RUIM/CSIM is to CDMA • Today most SIM cards are based on Java Card © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 4. SIM and Smartcard Standards Standards for: •Toolkit •File & Auth •APIs •OTA •Smartcards ISO/IEC 14443 is the international standard for contactless smart chips and cards that operate (i.e., can be read from or written to) at a distance of less than 10 centimeters (4 inches). This standard operates at 13.56 MHz and includes specifications for the physical characteristics, radio frequency power and signal interface, initialization and anti-collision protocols and transmission protocol. ISO/IEC 7816 is the international standard for contact smart cards. ISO/IEC 7816 Parts 4 and Source: Gemalto above are used by both contact and contactless •ETSI -- Specifications in blue smart card applications for security operations •3GPP -- Specifications in green and red and commands for interchange. Source: Smart Card Alliance Java Card (classic or 3.0) Applets are built using Java and run in a JCRE © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 5. Industry: Interesting Numbers for 2008 • Global SIM card shipments exceeded 2.9 billion units during 2008 Strong demand from the emerging markets of India, China, Asia Pacific and Latin America contributing to a 29 per cent increase on shipments over the previous year • On average, memory size increased by 11 per cent on 2007 figures • Number of cards shipped with a S@T (SIMalliance Toolkit) browser had a growth rate of 22 per cent • 3G enabled SIM cards represented 14 per cent of total shipments in 2008 Source:SIMalliance © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 6. Next Generation SIM Cards • Next gen SIM Cards integrate with new functionality… • Mobile Near Field Communication (NFC) • More advanced Applications Address book, calendar back-up, messaging, teleconferencing and file transfers, banking and access control, Web! • Smart Card Web Server Web apps running right on SIM Cards! And TCP stacks • High-capacity SIM cards More and more memory/capacity • Multi-Media support (in conjunction w/ browser) © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 7. Overview: Programming SIM Cards • SIM Toolkit Toolkit “conversation” between phone and Smartcard Source: Gemalto A SIM Toolkit is a data management application (applet) for SIM cards, part of which is resident in the SIM card •Icon, application, settings and help management •User (simple menus), mobile, network and card interactions © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 8. Overview: Java Card Classic import javacard.framework.* ... public class MyApplet extends Applet { // Definitions of APDU-related instruction codes ... MyApplet() {...} // Constructor // Life-cycle methods install() {...} Source: Introduction to Java Card Technology by C. Enrique Ortiz select() {...} deselect() {...} process() {...} // Private methods ... } © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 9. SIM / Smart Card Application Communication Application Communication Architecture Response APDU Structure Source: SIM Protocols by Mobile Forensics Command APDU Structure © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 10. Classical Java Card Development IDEs can simplify these steps! Source: Introduction to Java Card Technology by C. Enrique Ortiz © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 11. Java Card 3.0 • Extends (and simplifies) the programming model • Classic Applets (Java Card 2 limitations apply for these applications) Communication using APDU protocol Backward compatibility • Extended Applets Communication using APDU protocol Similar to Classic Applets, and can use all the new APIs, like Threads, Strings, and GCF (Generic Connection Framework) • Web Enabled! Based on Servlet 2.4 API Communication using standard HTTP/ HTTPS protocol HTML, JavaScript, etc. (much richer UIs than prior) © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 12. Java Card 3 Architecture Source -- Java Card 3: Classic Functionality Gets a Connectivity Boost by Peter Allenbach •All data types except float and double •Multiple threads NEW! •Extensive API support (java.lang, java.util, GCF, and so on) •Direct handling of class files, with all loading and linking on card •All new Java language syntax constructs (enums, generics, …) •Automatic garbage collection © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 13. Smartcard Web Server • Very exciting and powerful SIM card evolution in my opinion! It took more than 10 years but we finally have it! Very powerful. • Leverages the browser already present in the handset to run local web applications preloaded into the SIM • Local web-based applications are securely stored in the SIM card and can be updated remotely Best of both worlds • Servlets framework on SIM Cards! Mobile SIM + Web Source: Gemalto Potential Apps: •Rich SIM card apps •On-Device Self-Service •Application Management •Mobile Payments Source: Gemalto •Mobile NFC © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 14. Benefits of Smartcard Web Server • Rich UI and Advanced Capabilities Access to location, SMS, servers on the web, secure local-storage, personalized experience Call-intercepts to perform actions on-device, for example help troubleshoot issues before calling the support representative • Manageable Secure, remote application management • SIM-card based /On-Device Works Connected and Disconnected Secure connections and environment Uses no wireless resources when doing on-device web apps Access to information such as location that can help personalize the experience • Easy to deploy Highly customizable application; can be modified as needed and push to handsets in real-time Based on OMA and Web standards - xHTML, CSS, JavaScript © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 15. Some Challenges • SIM Card Applications still a niche, controlled by operators But if you have the relationships, it is a good niche ($) • Applet development is not trivial with few experts This can translate to opportunities for you! • Smartcard Web Server requires new generation SIM cards Thus conversion process will make adoption slow & expensive Expect emerging markets adopting first © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 16. Gemalto Toolkit & UpTeq Multimedia SIM Card Toolkit Download from: http://developer.gemalto.com/ See http://www.gemalto.com/telecom/upteq/multimedia.html Smartcard Web Server © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com
  • 17. Resources • Gemalto Developer Website • Sun Java Card Website • SIMalliance Website • Smart Card Alliance Website • SIM Card Protocols Paper by Mobile Forensics • Mobile Forensics Blog • Introduction to Java Card Technology, part 1 by C. Enrique Ortiz • Article Java Card 3: Classic Functionality Gets a Connectivity Boost by Peter Allenbach © 2009 C. Enrique Ortiz – http://CEnriqueOrtiz.com