I've been asked a lot by people the past three weeks about wardin basics. Just kind of compiled a list of responses all in one I've said to people in a readable format. Resources relating to old warden discussions are found at the end of the thread, can be removed if not allowed. Thanks.
Disclaimer: Some or much of this info could be wrong. I'm no expert or even close. Just my basic understanding of how the warden works and some misconceptions/history on it I recall. Credits for info go on forever. Darawk, herzog_zwei , LordTerror, netter, mousepad, Antirush, lord2800, Gary13579, Shepherd, Vampirewolve, Rhin, the list goes forever..
The warden is just a system to download and execute code. It's basic idea works like this :
1. Blizzard sends a warden module to your client via server, which contains code which can pretty much do what ever they feel like.
2. The only hard-coded part of warden on the clients end will handle/execute these modules sent to your client from the server.
A few things to know more than above that are important imo:
1. The server request a response from your warden module currently loaded every 30-60 seconds, if you respond incorrectly or not at all you will be kicked off everything right away.
2. When going after a hack, they will often spam you with large sets of modules. So far since 2010 on WoW afaik, a set has been 137 total modules, keep in mind any of which can contain detection code, and normally most of them do not.
3. Any module can be streamed and executed at any interval of time they choose. If a new set of 137 modules is introduced(any of which could contain detection code for you), one new one streamed every 5 hours, it'll take 30 days+ to collect all of them, if I understand right. I know in d2, before a major banwave they turned some new modules on for a small amount of servers, then reverted, before finally turning that module which contained detection on everywhere.
4. Even if you fully analyze all of them on the 30th day, and are confident all 137 new modules are safe and do not contain code which would detect you, the same day a 137 new ones can show up.. leaving you permanently unable to load the hack if you want to be safe if you fear a warden module could detect you.
5. Some times they make it even harder.. they can[and have?] stream different modules to different users instead of the same module to all every 5 hours, making it very hard to properly collect all the models anyways..
So now what do you do about warden!? Not much I can say here.. but I will list one thing that might relate
(A = The attempt B = why it wont work)
A) You could try to reverse the the info on how the hardcoded part of warden handles and responds to the request given from the modules(has been done before), then when you see a request, respond properly. One would guess this would be safe unless they did a update/patch.. but..
B) Any time they wish they can update the hard-coded stuff on the fly, via ExtraWork or the likes. Server sends you a packet, your client downloads for example xx.mpq(WoD does not use .mpq now afaik? either way) with ExtraWork.dll inside of it, ExtraWork.dll is then loaded and now the hard coded warden stuff is changed on the fly. Now it handles responses differently, so when you try to do the response the module ask for that would have been correct five minutes ago, it will be wrong, kicking you off with in 30-60 seconds.
Note: You can not really just 'ignore ExtraWork. Same issue as above, every legit user not ignoring it gets the new client side warden part, and when warden request a response it gladly sends the proper one back. The users cheating send the wrong response, due to not getting the update from ExtraWork.
---------------------------------
Below not to be taken as fact. Just what it appears the situation is to me. Generate your own criticism and discussion.
In the end, it seems to me personally you will have to manage to be completely invisible to any possible warden detection method[and similar methods blizz could employee] conceivable or have be impractical to detect your hack for them at least to be safe as a public hack, due to it being completely dynamic.
Is this possible for a bot as advanced as HB that recently got detected? No clue, I suck at any thing like that and just know basic warden stuff from reading mostly.
Random warden history I remember I found kinda interesting(take with a grain of salt):
There were some back and forth battles in the d2 days with warden/hack developers I recall. Netters maphack got detected with VirtualQuery, he then added a VirtualQuery hook, then they again banned it by bypassing his VirtualQuery hook. I actually have the analysis he posted still on a random archive:
Code:
MOV EAX,DWORD PTR DS:[EDX+1]// Gets the NtQueryVirtualMemory sysnum.
ADD EDX,5 // Adds 5 bytes (jump first instruction, in which my 1-byte hook is written to)
JMP EDX // Jump the hook.
CMP BYTE PTR DS:[EAX],0CC // Checks for his[netters] NtQueryVirtualMemory hook.
If I remember right, after this he did some good ol polymorphic stuff on his hook to prevent that. This brought on the next detection method, which was them asking the players client to give a list of all chat messages present w/ return memory region req's [according to herzog_zwei's post]. Since netters maphack loaded a chat msg, they detected that msg and flagged.
Same method caught mousepads maphack, except I think herzog said mousepad had actually made his message invisible to warden. I think it was still caught because it still showed an empty[no string] chat line, which was not possible normally in the client. herzog mentioned extraline checks would have caught it as well.
Interesting history, I think the warden actually activated inactive d2 code which activated other parts of warden. 
If bored and wanna google some old general warden info, check out post/threads/articles(specifically on mousepad forums, blizzhackers) by herzog_zwei, Darawk, lord2800, lordterror, pretty much anyone from the list at the start has some fun to read post).
Interesting threads/discussions on warden from older days.
OwnedCore - World of Warcraft Exploits, Hacks, Bots and Guides. - OwnedCore News (tons of info in general hidden here
)
Blizzhackers ? View topic - Warden discussion and FAQ
Blizzhackers ? View topic - warden thread
Mousepad's Doom II Forums :: Search [ search warden terms, or above names]