DAoC client encryption, 2001 to now
Our clients page lists every game.dll build we've fingerprinted, from the 2001
launch disc to today's 1.130, and records how each one encrypts its traffic. Read that column
in date order and it tells a story: who could read the game's traffic, and later, who holds the key.
2001–2003: anyone on the wire
The earliest clients in our data (the 2001 launch disc, a 1.57 build and a July 2003 1.64 trial disc) use XOR. According to a December 2003 security advisory, game traffic used a 12-byte key "transmitted in the clear at the start of a network session". Anyone who could see the packets could read them. XOR is a simple obscurity technique, not proper encryption.
So, some players built DAoC radars on that. The advisory says an open-source program called Odin's Eye "gained notoriety among players in November, 2001", and that Mythic had a developer comment on it the next month. A radar reads the game's own traffic and draws what the client knows but doesn't show you: where everyone is, including the enemy behind the hill. Odin's Eye evolved into Excalibur, a SourceForge project registered in February 2002. Bryan Mayland (CapnBry) became one of its maintainers that year and wrote DaocSkilla, a Windows radar based on the Odin's Eye source.
(Today there's a game overlay for Eden by the same name, at gameoverlay.net. It's a different, recent program.)
October 2003: the advisory
The same weakness reached further than radars. In October 2003, Mayland and Todd Chapman told
Mythic that the weak encryption also exposed billing and login details in transit: card number,
expiry date, account name and password. The advisory says this affected North America only; Mythic
told them Europe, Italy and Korea used a different process. Mythic replaced login.dll with one
that used RSA on 28 October 2003, within a week of being told, and moved login details to the new
scheme on 24 November. The advisory was published on 11 December.
The game's own traffic was still XOR, though. The advisory says the game's encryption "has never changed previous to this advisory".
1.68c: RSA arrives
The DaocSkilla page dates the change for the game client: "As of DAoC client version 1.68c, Mythic has changed their packet encryption process", using RSA to exchange a symmetric key and a new symmetric cipher. It broke DaocSkilla. From the versions we collected, we agree: 1.64 (July 2003) is XOR, and the 1.70 test builds (May–June 2004) use the new scheme.
The new scheme is RSA key transport. The client makes a random session key, encrypts it with a public key, and sends it to the server. Both sides then use a modified RC4. This is a common technique in encryption: use asymmetric crypto for initial handshaking, then switch to symmetric for the rest of the session. Every build with RSA in our data carries the public key inside the client (see where the key lives for what that means on the wire). Only the server holds the private key, so only Mythic's servers could read the session key.
One build stands apart. Every build from 1.95 to 1.130 carries the same 1024-bit-class key
(1026 bits). 1.86 (2006) carries a key of its own, about 1538 bits, the same size class as the
keys in login.dll, the program that talks to the official login service. We think 1.86 may be a European build, published by GOA, but we can't confirm
that. If it is, it fits the advisory: Europe ran its own process.
1.109: the last unencrypt-able client
Until 1.109 the client encrypts only if the server asks it to. DOL servers could just not encrypt and the client-server communication would work. The 1.110 (November 2011) retail client made
encryption always on. In May 2012 the Dawn of Light project said it supported no client past
1.109 and pointed players to a 1.109 game.dll. That's why 1.109 is still common: it's the
last build that will talk to a server in plaintext. That DOL stopped there for this reason is our
inference.
1.127: the client becomes the map
From 1.110 on, a freeshard can't simply ask for no encryption. Launchers start the client in a
suspended state, to patch its encryption function off in memory before it runs (DOL's connect.exe and the
launchers built on it). A patch like that works on one build, one version of the client binary, only, because the code it changes
moves in every build, so each project settles on one client.
That choice is now about more than the protocol. OpenDAoC's world is laid out against the data files of 1.127, and the OpenDAoC launcher runs one specific 1.127 build, live1407. The version a shard picks decides which zones and data its players have.
So older or newer clients may connect to an OpenDAoC server, but oddities can occur: a trainer standing in the middle of a wall! The server places the trainer, and every NPC and mob, from its database; the client draws the buildings and walls from its own data files. They have to agree.
Windows: twenty years of 32-bit
The client stayed a 32-bit Windows program through all of this. 1.118 (August 2015) is the first build in our data marked as Large Address Aware (LAA): on 64-bit Windows it may use up to 4 GB of memory instead of 2 GB. The client was aging inside the operating system while its encryption changed.
The number becomes a ruleset
Uthgard's uth.dll is the official 1.113 with two bytes changed, both in the version stamp, so it
reports 1.65. Everything else in the file is stock, including Mythic's public key; Uthgard's other
changes are made in memory by its launcher. The version number no longer names a build. It names a
ruleset: Uthgard plays the game as it was at 1.65. (More on what the numbers mean in
Which version?)
Shards take the key
Because the public key is inside the client, a shard that wants real encryption has to ship its own client. Two now do:
- Eden's
eden.dllis 1.130 (live1421, the build just before retail's) with the RSA public key replaced by Eden's own. Normal encryption is kept. It also carries Eden's icons. - Blackthorn's
game1127.dllis 1.127 live1407, OpenDAoC's build, with Blackthorn's own key. It also has an added code section that runs first and loads Blackthorn's interface and input DLLs, and about twenty small code patches. Its launcher makes more changes in memory.
The lock (embedded public key) that was Mythic's in 2004 now belongs to each shard that ships one. The official client, 1.130 from Broadsword, still carries the original key. So, if you want encryption between the players' clients and your private shard, then you need to embed your public key into the client.
The data
Everything here comes from the clients page and its data file,
daoc-clients.json. The page shows the date of its data under the title.
The data is maintained in
daoc-clients-launchers by daoc-re
(EU-based project). Builds are identified by size and SHA-256 only. We list no files and link to none.
Sources
- Bryan Mayland and Todd Chapman, DAoC billing information advisory, 11 December 2003: the 12-byte XOR key, Odin's Eye (November and December 2001), Excalibur, the North America scope, Mythic's fixes on 28 October and 24 November 2003.
- DaocSkilla, capnbry.net: the 1.68c encryption change; DaocSkilla based on Odin's Eye.
- Excalibur, SourceForge: registered 6 February 2002.
- Clients page and daoc-clients-launchers: build dates, the encryption type of each build, keys, Large Address Aware, Uthgard, Eden and Blackthorn.