eBooks security - theory and practice

Views:
 
Category: Entertainment
     
 

Presentation Description

eBook Pro", the only software in the universe that makes your information virtually 100% burglarproof! It comes with a lifetime, money-back guarantee

Comments

Presentation Transcript

Slide1: 

http://www.elcomsoft.com Presentation on on DEF CON Nine, July 13th - 15th, 2001 Alexis Park in Las Vegas, Nevada USA eBooks security - theory and practice

Slide2: 

eBooks security - theory and practice 1. Foreword 2. PDF encryption 3. Standard security handler 4. Rot13 handler 5. FileOpen handler 6. SoftLock handler 7. Adobe Web Buy handler (PDF Merchant) 8. Acrobat eBook Reader EBX handler (formerly GlassBook) http://www.elcomsoft.com 9. Arbitrary handler (obtaining encryption key from PDF viewer) 10. Security flaw in Acrobat plug-ins certification

Slide3: 

Advantages: Lower overhead publication and distribution cost Ability of instant worldwide distribution over the internet Many books in little physical volume Ability to search, highlight, underline, add annotations, bookmarks Hyperlinks Disadvantages: Formats incompatibility Information in electronic form could be duplicated and transmitted, and there is no reliable way to take control over that processes. http://www.elcomsoft.com Electronic Publishing

Slide4: 

Electronic Publishing/Reading Solutions Software eBook Compilers/Readers Activ E-Book E-Publisher Gold eBook Pro Compiler HTML2EXE E-Book Publishing Wizard eBook Generator Infinite Press Publisher WinEbook ... Dedicated reading devices RocketBook eBookMan Reader Related Internet resources: http://www.ebookcompilers.com/ http://www.elcomsoft.com Software eBook leaders Adobe Acrobat PDF Microsoft Reader LIT

Slide5: 

eBook Pro compiler Short description (taken from www.ebookpro.com) "eBook Pro", the only software in the universe that makes your information virtually 100% burglarproof! It comes with a lifetime, money-back guarantee "At Last, You Can Sell Information Online (And Make Thousands Of Sales Per Day) - Without The Danger Of Having Your Information Stolen And Resold By Others» http://www.elcomsoft.com Related Internet resources: http://www.ebookpro.com/ Actual features All HTML pages and supplementary files are compressed with deflate algorithm from ZLIB Compressed data are encrypted by XOR-ing each byte with every byte of the string “encrypted”, which is the same as XOR with constant byte

Slide6: 

PDF file structure http://www.elcomsoft.com Related Internet resources: http://www.adobe.com/products/acrobat/adobepdf.html Basic data types Example Boolean true Numeric 3.1415926 Object reference 23 0 R Name /ProcSet String (Contents) * Stream {binary data} * * - data could be encrypted <PDF file> ::= <header> <body> <cross-reference table> <trailer> <body> ::= <object> {<object>} <object> :: <objectID> (<data> | <stream dictionary> <stream>) Complex data types Example Array [23 0 R /XYZ null] Dictionary <</Name1 (Val1) /Name2 /Val2>>

Slide7: 

PDF file encryption PDF Document <Encrypted Content> <<Encryption Dictionary>> Contains security handler name and supplementary information necessary to obtain encryption key http://www.elcomsoft.com Security handler Takes information from Encryption Dictionary, calculates document encryption key and passes it to PDF Viewer PDF Viewer Takes document encryption key, decrypts PDF document and display it on the screen Screen Related Internet resources: http://www.adobe.com/products/acrobat/adobepdf.html

Slide8: 

Object encryption key calculation Document encryption key http://www.elcomsoft.com Object ID + Generation MD5 HASH algorithm Object encryption key Document encryption key Scrambled Object ID + Generation MD5 HASH algorithm Object encryption key ‘sAlT’ string Algorithm ver.1,2 Algorithm ver.3 Related Internet resources: http://www.adobe.com/products/acrobat/adobepdf.html

Slide9: 

Standard security handler Two passwords are supported: User (open) password – to open the document (with some restriction) Owner (security) password – to change security settings Knowing either password is sufficient to decrypt the document http://www.elcomsoft.com Related Internet resources: http://www.adobe.com/products/acrobat/adobepdf.html Modifying the document’s contents Copying text and graphics from the document Adding or modifying text annotations and interactive form fields Printing the document New User password restriction, introduced in Acrobat 5: Form fill-in and sign document Text inspection and accessibility Page insertion, rotation,and deletion. Creation of bookmarks and thumbnails Low-quality printing only Possible restrictions, when opened with User password:

Slide10: 

Standard security handler http://www.elcomsoft.com Related Internet resources: http://www.elcomsoft.com/apdfpr.html Time necessary for complete key enumeration (40 bits key) on PIII-450 Passwords per second on 450MHz Pentium III

Slide11: 

Rot13 security handler Short description Used by New Paradigm Resource Group (www.nprg.com) Protected documents costs about $3000 per copy Requires hardware dongle to operate http://www.elcomsoft.com Related Internet resources: http://www.nprg.com/ Actual features Clone of the “Rot13” sample plug-in, which supplied with Acrobat 4 SDK Uses fixed encryption key for all documents Key could be easily found as text string in the body of plug-in

Slide12: 

FileOpen security handler Short description (taken from www.fileopen.com) Developed by FileOpen Systems Supports pass-along prevention, document expiration, and controlled printing Adobe Selects FileOpen to Be An Acrobat 5 Security Partner Publisher’s license costs $2500 FileOpen and Acrobat 5.0 provide a complete, secure e-publishing solution http://www.elcomsoft.com Related Internet resources: http://www.fileopen.com/ Actual features FileOpen Publisher 2.3 encrypts ALL documents with one fixed key FileOpen Publisher 2.4 uses variant keys, but encrypted document itself contains all necessary information to instantly calculate encryption key

Slide13: 

SoftLock security handler Short description Developed by SoftLock Services, Inc. (www.softlock.com) Calculates unique SoftlockID Number based on HDD volume ID Requires password which matches SoftlockID to open the document Password is used in document key calculation http://www.elcomsoft.com Related Internet resources: http://www.softlock.com/ Actual features Unlocking password is exactly 8 characters Each character converted to one hexadecimal digit Two characters are used for integrity checking Effective password length is only 24 bits Correct password could be found by calling not optimized checking routine in 30 hours on 450 MHz CPU

Slide14: 

Adobe WebBuy (PDF Merchant) Short description License (.RMF file) is required to open the document License consist of: Signed certificate with Publisher’s RSA Public key One or more pairs of some ID (like CPU ID, USER ID, UTC, …) and encrypted document key, associated with that ID. Different pairs are combined with “AND” and “OR” operators Document permissions Data to check license validity Two RSA Public keys owned by Adobe (1024 bit and 912 bit in length) are involved in license verification and document key calculation It is impossible to generate valid certificate without having access to RSA Private keys, owned by Adobe It is possible to calculate document key and decrypt the document if both PDF and matching RMF file are available http://www.elcomsoft.com Related Internet resources: http://pdfmerchant.adobe.com/

Slide15: 

Adobe’s Acrobat eBookReader (formerly GlassBook) Short description Implements Electronic Book Exchange (EBX) protocol RSA keys pair is generated during activation Public key is registered on content server, while Private is retained by Reader Document key encrypted by Public key and stored in Voucher Voucher contains information about document permissions, expiration, … Voucher is signed with HMAC protocol http://www.elcomsoft.com Related Internet resources: http://www.ebxwg.org/ http://www.adobe.com/products/contentserver/main.html Brief analysis Voucher could not be falsified without knowing the Document key Document key could not be calculated without knowing the Private key Private key is stored somewhere on local computer After obtaining the Document key it is very easy to create Voucher with any permissions and for any computer

Slide16: 

Adobe’s Acrobat eBookReader (formerly GlassBook) http://www.elcomsoft.com Related Internet resources: http://www.adobe.com/products/contentserver/main.html Interim key calculation from hardware IDs SHA1 mor.dat file son.dat file Voucher RC5 Decrypt RSA Decrypt Private RSA key Document key Interim key Interim key RC5 Decrypt Interim key Interim key calculation from hidden copy Document key calculation

Slide17: 

Object encryption key calculation Document encryption key http://www.elcomsoft.com Object ID + Generation MD5 HASH algorithm Object encryption key Document encryption key Scrambled Object ID + Generation MD5 HASH algorithm Object encryption key ‘sAlT’ string Algorithm ver.1,2 Algorithm ver.3 Related Internet resources: http://www.adobe.com/products/acrobat/adobepdf.html

Slide18: 

Obtaining encryption key from PDF viewer http://www.elcomsoft.com MD5_Update function resides not far from MD5_Init function, which uses constants 0x67452301, 0xEFCDAB89, 0x98BADCFE and 0x10325476 MD5_Update often called just after call to MD5_Init function MD5_Update or some function called from MD5_Update uses 64 constants defined in MD5 specification Anti reverse-engineering measures in PDF viewers How to find code of MD5 functions

Slide19: 

Security flaw Acrobat plug-ins certification mechanism http://www.elcomsoft.com Sign Reader Integration Key License Agreement with Adobe Pay $100 to obtain Reader Certification digital certificate from Adobe Use this certificate to Reader-certify any plug-in Only certified plug-ins will be loaded by Acrobat Reader In some cases (e.g. when opening document protected with WebBuy or DocBox) only plug-ins certified by Adobe are permitted to be loaded How to certify plug-in Why to certify plug-in Only data from PE Header is used for checking How certificate validity is checked Modify code of any plug-in certified by Adobe to load non-certified plug-in and pass control to it. Take care to not modify data in PE header How to bypass plug-ins certificate checking

Slide20: 

http://www.elcomsoft.com Presentation on on DEF CON Nine, July 13th - 15th, 2001 Alexis Park in Las Vegas, Nevada USA eBooks security - theory and practice

authorStream Live Help