BD+ explained

BD+ is a component of the Blu-ray Disc digital rights management system. It was developed by Cryptography Research Inc. and is based on their Self-Protecting Digital Content concept.[1] Its intent was to prevent unauthorized copies of Blu-ray discs and the playback of Blu-ray media using unauthorized devices.

While BD+ has not stemmed the flow of "cracked" high-definition content, it has made it necessary for those who wish to copy Blu-ray movies to reinvest resources to break each new version of security code.[2]

BD+ played a pivotal role in the format war of Blu-ray and HD DVD. Several studios cited Blu-ray Disc's adoption of the BD+ anti-copying system as the reason they supported Blu-ray Disc over HD DVD. The copy protection scheme was to take "10 years" to crack, according to Richard Doherty, an analyst with Envisioneering Group.[3]

On 19 November 2007, Macrovision announced that it planned to acquire the SPDC technology (including patents and software code) from CRI for US$45 million in cash plus stock warrants.[4]

On 7 July 2011, Irdeto acquired BD+ content protection technology for Blu-ray discs from Rovi Corporation.[5] [6]

Capabilities

BD+ is effectively a virtual machine embedded in authorized players. It allows content providers to include executable programs on Blu-ray Discs. Such programs can:[7]

If a playback device manufacturer finds that its devices have been hacked, it can potentially release BD+-code that detects and circumvents the vulnerability. These programs can then be included in all new disc releases.[8]

The specifications of the BD+ virtual machine are only officially available to licensed device manufacturers. A list of licensed adopters is available from the BD+ website.[9] Both SlySoft (now RedFox) and members of the Doom9 forum have reverse engineered the virtual machine specification, however.

According to the reverse-engineered specification, the virtual machine consists of a 32-bit big endian DLX like processor with 4MB of RAM. It has 32 32-bit registers available for use. A TRAP instruction is used to allow the virtual machine host to perform more complex actions as system calls.[10]

To prevent simple, static disassembly of the BD+ code, an instruction filter is available that can perform an XOR operation on an opcode before executing it. By varying the instruction filter at runtime, the compiler can force an adversary to trace through the code at runtime before they can fully disassemble it.[11]

Virtual machine

This program which can be found inside the BDSVM directory of a BD+ protected disc is called content code.[10] The content code is executed on a virtual big endian DLX-like processor interfacing 4 MB of memory. The processor supports 59 different instructions and a register set consisting of 32 general purpose registers and three special purpose registers for the instruction filter, the clock cycle counter and the program counter. The BD+ Virtual Machine applies memory protection by masking memory access addresses to prevent them from falling outside of the designated memory areas. The execution of content code starts at address 0x1000 relative to the beginning of the payload of the first block of the file 00001.svm (located inside the BDSVM directory).

Traps

While the BD+ virtual machine is extremely simple, the interface between the virtual machine and the player is somewhat more complicated.[10] BD+ provides the content code with 25 system calls or "traps". An overview is given in the table below. Note that the bits 00–07 of the trap id uniquely identify each trap within a group. The group id itself is specified by the bits 08–16 of the trap id. The group ids seen so far are 00 (event handling), 01 (cryptography operations), 02 (arithmetic operations), 03 (memory operations), 04 (slot memory access), 05 (device access) and 80 (debugging). src/libbdplus/bdsvm/interface.c · master · VideoLAN / libbdplus · GitLab

Group IDTrap IDNameParameters
00000010 TRAP_Finished 0F
000020 TRAP_ConversionTable 2
01000110 TRAP_Aes 5
000120 TRAP_PrivateKey 5
000130 TRAP_Random 2
000140 TRAP_Sha 4
02000210 TRAP_AddWithCarry 3
000220 TRAP_MultiplyWithRipple 4
000230 TRAP_XorBlock 3
03000310 TRAP_Memmove 3
000320 TRAP_MemSearch 5
000330 TRAP_Memset 3
04000410 TRAP_SlotAttach 2
000420 TRAP_SlotRead 2
000430 TRAP_SlotWrite 1
05000510 TRAP_ApplicationLayer 3
000520 TRAP_DeviceDiscovery 4
000530 TRAP_DiscoveryRAM 3
000540 TRAP_LoadContentCode 5
000550 TRAP_MediaCheck 6
000560 TRAP_RunNative 4
80008010 TRAP_DebugLog 2

Each of these system calls can be invoked by the TRAP instruction (opcode 0x39). By convention register 29 is used as the stack pointer holding the memory address of the parameters. After parameter validation the system call is executed and a return code is written to register 1.During its execution the content code performs a series of tests to verify it is being executed in a trusted environment. One of these tests involves asking the player for its certificate with TRAP_Discovery. The RSA signature of this certificate is later verified by the content code using the public key of the license administration which is (optionally in obfuscated form) also stored in the content code. Later the player is asked to sign a random message with ECDSA by calling TRAP_PrivateKey. The generated signature is subsequently verified using the player's public key stored in the previously verified certificate.

Events

The BD+ virtual machine is event-driven. Five callbacks (events) are defined by the interface which the player may invoke to notify the content code of a variety of events, including the playback of various parts of the movie, shutdown, media eject events, or player security operations. The event data is exchanged using a dedicated memory area (0x00–0x3F). TRAP_Finished is invoked whenever the content code has finished processing an event. The first event invoked is EVENT_Startup which starts the execution of the content code.

Group IDEvent IDNameParameters
00000000 EVENT_MediaInit 1
000010 EVENT_Shutdown 1
01000110 EVENT_TitleInit 2
02000210 EVENT_ApplicationLayer 2
000220 EVENT_ComputeSP 3

Conversion table

Before a BD+-capable disc is mastered, random sections of the .m2ts files are overwritten by random data, effectively corrupting parts of the content. The original data is stored encrypted and obfuscated within the BD+ content code.[10] After the content code has verified the security of the execution environment, it sends a table with repair instructions (the "conversion table" or "fix-up table") to the player using the system call TRAP_FixUpTableSend. The conversion table consists of one subtable for each .m2ts file on the disc. A subtable consists of multiple, possibly empty, segments which contain the repair descriptors. Each repair descriptor then provides the raw data and the offset needed to repair a small section of a .m2ts file, replacing the corrupted part of the file with the original data.

Reverse engineering and emulation of BD+ implementations

On November 8, 2007, SlySoft announced that BD+ discs can be copied with their AnyDVD HD software.[12] This was possible because first generation BD+ titles did not check if AACS was present. This allowed a user to copy a BD to the harddrive and play it back from there using only a specific version of Cyberlink's PowerDVD (3319a), but not to transcode, otherwise manipulate the content or play it back from a burned BD-R or BD-RE. Updated versions of BD+ security code plugged this hole.

On January 9, 2008, engadgethd.com reported that Fox has stated that BD+ has yet to be compromised.[13] When asked how hi-def 20th Century Fox titles had become available online, the rep reported that the titles were available as HD DVDs in Europe.

On March 3, 2008, SlySoft updated AnyDVD HD allowing the full decryption of BD+,[14] allowing not only the viewing of the film itself but also playing and copying disks with third-party software.

On March 19, 2008, a new version of AnyDVD HD was released (6.4.0.0) that supported the full removal of the BD+ copy protection for all titles released to date.[15] [16] [14]

In May 2008 the Blu-ray release of Jumper introduced a modified version of BD+ security code which prevented the Slysoft AnyDVD HD software from removing BD+. This modified version was again circumvented by Slysoft several months after Jumper was initially released.

In August 2008, members of the Doom9 forum began work on an independent project to create an open-source implementation of BD+.[10]

In late October 2008, the same Doom9 members made the first working repaired BD+ movie with the previously developed open source tools,[17] and as of November 1, 2008, have created code to debug content produced for BD+'s virtual machine.[18]

On November 2, 2008, Doom9 forums announced that early (pre-May 2008) BD+ discs can be played back using open source software only.[19]

In early November 2008 multiple versions of BD+ security code were released which, according to Slysoft, may take a few months to circumvent.[20]

On December 29, 2008 Slysoft announced that AnyDVD HD 6.5.0.2 decrypts copy protection on all current Blu-ray movies.[21]

On February 13, 2009 a 4th version of BD+ security code was discovered on the movie Australia,[22] rendering Slysoft's existing AnyDVD HD software ineffective.

On March 19, 2009 Slysoft announced that AnyDVD HD 6.5.3.1 adds support for some new BD+ protection in movies, e.g. Australia, The Robe, and South Pacific.[23] Some BD+ movies were not supported by Slysoft's update, e.g. Slumdog Millionaire, The Day the Earth Stood Still, Marley & Me, and the X-Men Trilogy.[24] Since then, Slysoft has released several updates adding support for newer titles.

On October 7, 2009 support for BD+ was announced for MakeMKV, making it the second application capable of handling all BD+ discs released to date.[25]

In 2010 four other companies released software that can decrypt BD+: DVDFab Blu-ray Copy, Pavtube Blu-ray Copy, and BlindWrite.

On December 18, 2013, the VideoLAN developers released libbdplus, an open-source library for BD+ decryption. As with libdvdcss, the API allows media players to use it transparently.[26]

See also

Notes and References

  1. Web site: About SPDC . Cryptography Research, Inc. . 2009-04-12. https://web.archive.org/web/20090401194457/http://www.cryptography.com/technology/spdc/index.html. 1 April 2009 . live.
  2. Web site: AfterDawn: News. www.afterdawn.com.
  3. Web site: How Crypto Won the DVD War . Wired . Ryan Singel . February 26, 2008 . 2008-02-27. https://web.archive.org/web/20080301215043/http://blog.wired.com/27bstroke6/2008/02/how-crypto-won.html. 1 March 2008 . live.
  4. Web site: Macrovision to Acquire Blu-ray Disc Security Technology from Cryptography Research, Inc. . dead . https://web.archive.org/web/20071121142524/http://www.macrovision.com/company/newscenter/pressreleases/1434_7711.htm . 2007-11-21 .
  5. Web site: Irdeto fights piracy with BD+ technology . OnScreen Asia . 11 July 2011 . 3 October 2011 . dead . https://web.archive.org/web/20111025102555/http://www.onscreenasia.com/article-8677-irdetofightspiracywithbdtechnology-onscreenasia.html . 25 October 2011 .
  6. Web site: Rosenblatt. Bill. Irdeto Acquires BD+ Technology from Rovi . Copyright and Technology . 7 July 2011 . 9 November 2011.
  7. Web site: Blu-ray Disc Next-Generation Optical Storage: Protecting Content on the BD-ROM . 2007-05-03 . . https://web.archive.org/web/20070331173711/http://www.dell.com/downloads/global/vectors/brcp.pdf. 31 March 2007 . live.
  8. US . 2010169663 . application . Systems and Methods for Detecting Authorized Players . 2010-07-01 . 2009-01-22 . CYBERLINK CORPORATION.
  9. Web site: Home. https://web.archive.org/web/20071106054231/http://www.bdplusllc.com/home/list_of_adopters_content_participants_and_eligible_code_developers. dead. November 6, 2007. BD+ Technologies LLC.
  10. Web site: Finally handling BD+ (?) - Doom9's Forum. forum.doom9.org.
  11. Web site: Doom9's Forum - Finally handling BD+ (?). forum.doom9.org.
  12. Web site: AnyDVD 6.1.9.6 beta - SlySoft Forum . 2007-11-09 . https://web.archive.org/web/20071109065119/http://forum.slysoft.com/showthread.php?t=9453 . 2007-11-09 . dead .
  13. http://www.engadgethd.com/2008/01/09/bd-has-not-been-compromised-yet/ BD+ has not been compromised, yet
  14. Web site: Press Release: AnyDVD HD now with BD+ support - SlySoft Forum . 2008-03-29 . https://web.archive.org/web/20081218041632/http://forum.slysoft.com/showthread.php?t=14786 . 2008-12-18 . dead .
  15. Web site: AnyDVD 6.4.0.0 - SlySoft Forum . 2008-03-19 . https://web.archive.org/web/20080321142519/http://forum.slysoft.com/showthread.php?t=14787 . 2008-03-21 . dead .
  16. Web site: Hooray! Blu-ray BD+ hacked! | Storage Bits | ZDNet.com. March 27, 2008. https://web.archive.org/web/20080327220949/http://blogs.zdnet.com/storage/?p=306 . 2008-03-27 .
  17. http://forum.doom9.org/showpost.php?p=1207578&postcount=292
  18. Web site: Doom9 Researchers Break BD+. Dawson. K. 2008-11-01. Slashdot. 2008-11-02. https://web.archive.org/web/20081207175837/http://it.slashdot.org/it/08/11/01/1728222.shtml. 7 December 2008 . live.
  19. Web site: Finally handling BD+ (?) - Page 15 - Doom9's Forum. forum.doom9.org.
  20. Web site: BD+ movies that Anydvd HD 6.4.8.4 beta may not handle properly . 2008-11-14 . https://web.archive.org/web/20081106133914/http://forum.slysoft.com/showthread.php?t=21985 . 2008-11-06 . dead .
  21. Web site: SlySoft defeats Blu-ray's BD+ DRM scheme again . 2008-12-29 . https://web.archive.org/web/20090106115409/http://forum.slysoft.com/showthread.php?t=24602 . 2009-01-06 . dead .
  22. Web site: BD+ discs that may not work properly with Anydvd HD . 2009-03-13 . https://web.archive.org/web/20110930155346/http://forum.slysoft.com/showthread.php?t=27330 . 2011-09-30 . dead .
  23. Web site: AnyDVD (HD) 6.5.3.1 released . 2009-03-21 . https://web.archive.org/web/20110716093322/http://forum.slysoft.com/showthread.php?t=28598 . 2011-07-16 . dead .
  24. Web site: More BD+ discs that may not work properly with Anydvd HD . 2009-03-25 . https://web.archive.org/web/20090406122708/http://forum.slysoft.com/showthread.php?t=28549 . 2009-04-06 . dead .
  25. Web site: BD+ support - www.makemkv.com. forum.makemkv.com.
  26. Web site: libbdplus. VideoLAN. 2013-12-18. 2013-12-25.