Showing posts with label DevExpress series. Show all posts
Showing posts with label DevExpress series. Show all posts

Wednesday, July 14, 2010

Congratulations to TMS, DevExpress

Your reviewer sees some progress with vendors implementing better protection towards their products.

My congratulation goes towards DevExpress for implementing their new Copy-protection which has seen 0 public leaks so far. There are no public leaks of DevExpress.VCL build #51 yet. They have fixed their copy-protection scheme such that leaks are afraid to release their leaks to public, for fear of being identified, people have started to beg, beg for latest version of DevExpress.VCL build #51.

My congratulation also goes towards TMS for implementing their new copy-protection scheme by reading the copy-protection ideas found on this blog. There are no more public leaks for TMS packs for latest versions.

This is good news. These vendors must be reporting new sales where there is none, people who are dishonest can no longer get free copies of these products.

Tuesday, April 27, 2010

DevExpress VCL Build 50 - A haunting in Nevada, part II

Many of the readers must have read my former article DevExpress Build #48: A Haunting in Nevada and earlier article DevExpress Build #48: security analysis.

Illegal users
Since the last two blog posts, DevExpress has taken certain security measures to prevent illegal users from using their DevExpress VCL products and more security measures.

Since the last haunting, your reviewer looks at certain security measures DevExpress has put in place and advises more security measures to prevent illegal users from using DevExpress VCL products.

Will it stop the Fiend and his friend DarkCraptor?
It will take a long shot to stop them, but the current Build #50 has positive steps to prevent the Fiend from sharing his DevExpress license with the whole world.

Your reviewer suggests:

Change the AES encryption algorithm slightly and changing keys on every build.
While the AES algorithm used to secure the DevExpress payload containing sources is secure, the key used is symmetric. Meaning, that the key did not change from Build #49 to Build #50. Thus, the Fiend could re-use his old unpacking codes on the newer version with little effort. Changing the AES encryption a little will raise the bar: It would require some serious coding to reconstruct the customized AES algorithm and unlock codes to unpack DevExpress payload.

Take out the start/stop code comment markers.
Your reviewer found certain comments fashioned in a manner which could expose how the code re-ordering works. If someone re-formats the sources and observe closely, there are certain markers which expose the where the start/stop of the code re-ording segments are. Take them out, pretty please.

Start to watermark the demos and help files.
Think about it... Since the demos and help files can be put in the customer's download section (hint: make it harder for illegal users to get help) why not watermark the files? It would be fun to put some "extra" information before the download process starts and then monitor "certain" forums for these files... download it and remove the user. 'Nuff said.

Webservices download instead and in-memory DLLs
Since few builds ago, DevExpress started to use in-memory DLLs. Here's a step further: Download extra DLLs in-memory from the DevExpress license service and then execute them on-the-fly, like extra decryption modules, and extra protection modules.

Watermark other files
Your reviewer thinks adding a couple of WaterMarked EXE files raises the bar further. Since there's a skin configuration file, why not watermark the EXE and then encrypt the EXE file?

Consider some files to be non-source and with watermarks
Your reviewer thinks it will be joy when ebars.pas, dxskin.pas are no longer distributed and only available in DCU versions. The other codes are available. That will raise the bar a little since it's a bit harder to remove DCU watermarks.

Download on demand
Your reviewer thinks: No payload. Download on-demand what the user licensed. That would be wonderful idea.

Find another vendor other than VmProtect.Ru
Your reviewer looked at many of the security features offered in VmProtect.Ru (VMProtect is used to encrypt the current DevExpress build #50 setup) and found it was garbage and toy copy protection. It will stop the casual hackers... but it may not be sufficient to stop a crap.

Your reviewer received certain emails about the last posts -
Fan Mail: The ***** us all trip
Your reviewer will continue to annoy a certain segment of the Delphi community.

Fan Mail: Tips for other Delphi Developers
Your reviewer hopes other vendors find these tips to be valuable to secure their products.

Conclusions
Since the last two builds, DevExpress has raised the bar, doing interesting watermarking, like re-ordering source code files, to the annoyance of some customers, but a necessary step to prevent software piracy. Your reviewer, a licensee of DevExpress products, hopes these suggestions will greatly deter cheat and lying Delphi developers.

Wednesday, January 13, 2010

DevExpress VCL Build 48 - A haunting in Nevada

Analyzing Security Flaws

Full Blown Cryptography
Your reviewer recommends not 256, 512, 768, but try using 2048-bit security. At RSA/2048 bit key, it will be fun, really fun to hack DevExpress. That would give Danny Su'ed an interesting challenge when he cracks CodeRush or extract DevExpress.NET sources


GeoIP and double-check before downloading AES private key
Your reviewer thinks using GeoIP would be a good idea. Some smelly Delphi vendor who licensed DevExpress.VCL will who sends it to China with same license code should get blocked.

Which leads to part 2. Right now, DevExpress sends a request without checking who is the server, so a HTTPS SOAP call could be spoofed with considerable effort (just edit the binary EXE - "HTTPS" to "HTTP" and then sent without SSL. It would be wise to do a check, like ping/ping to check credentials of the server first before downloading the actual AES key would have much harder time.

For part 3, if someone installs more than 5 or 10 times in 1 day, it's time to flag that account as need "review". For obvious reasons.


DXIF with AES, with multiple passwords
Could it be, a DXIF file with multiple passwords? That could be true soon. It could make things much harder. A wise-crack who licensed QuantumGrid can no longer unlock ExpressBars or maybe ExpressPrinters ;)


Custom Setups
The best thing that could ever happen to DevExpress/Build environment is to put the build environment on-demand. Then, start to break-up the package. For example, most customers who didn't license full version of DevExpress subscription probably will not need all files, except the cracker who wants to extract all files.


Calling Dr. Jones, Jones Calling Doctor Jones
Why not consider give DevExpress customers a nice phone call. Your reviewer DelphiHater will be thrilled to hear Amanda (from DevExpress) on phone discuss about Licensing or maybe as security check.


The next weakest link
The next weakest link is one password for whole DXIF archive. It needs to have multiple passwords. The only other vendor who have multiple passwords is Mathias/Madshi vendor whose Madshi.RAR file has multiple passwords in 1 RAR file, and only way to extract the contents is by having valid Key file.


The 3rd weakest link
Your reviewer thinks using AS-Protect, WinLicense to protect binaries will slow them down. Why not protect using Silicon Realms Armadillo, ASProtect, WinLicense? It would deter only the most hardened hacker to hack DevExpress.VCL.


The Dope of Embracing Illegal Software
The irony of being a hacker. Get recognized as a hero, respect and honour. Did anyone try hiring one, and find out, they are total idiots?

It takes 9 to 12 months to make an application. But most of these "hackers" are total idiots when it comes to hard work, making money, and earning decent living.

For example, let's take DevExpress.VCL, it costs US$1500 per developer, and annual subscription. If the hacker (being an idiot, btw) uses it for 5 years, someone will find out sooner or later most of the things are Warez and he'll get into trouble. If the application uses TMS/LMD/or ReportBuilder, it adds up to more and more costs. In the end, the hacker will still be a 1 person company/ or forever dependent on employment, but wait, since Delphi is dead, what jobs? (see next part)


The Delphi Hate-Love Affair
Your reviewer was looking at how much it costs to make ExpressBars, or QuantumGrid. It could cost US$200,000 in development costs. Somebody has to pay for it. If more people buy DevExpress products, that means lower costs, more innovation. but it's opposite, now to buy DevExpress costs more money and only for bug-fixing, very slow new product development.

If you log into DevExpress private newsgroups, you can see Julian Bucknall lament about poor sales, how NET version of their products saved the day. That also means, many newer features found in Silverlight, their C# version won't be in VCL version anytime soon...


Delphi Revival, what revival?
That also means, while Embarcardero, DevExpress and other companies are hoping for turn around of fortunes..

Your reviewer should say, there is no hope in Delphi, if you sell to developers, you sell to an extremely limited market, and if you do not make prices very high, you lose on mass-piracy. That means less and less people will want to buy "original" and everyone loses. If everyone loses, that means, Delphi is dead, everyone will migrate to C#/SilverLight/PHP to save costs.

(disclaimer:
DelphiHater loves WaveMaker, PHP and DoJo, the US$0 solution.)


Brave things to do...
(disclaimer: from a post your reviewer saw before it was deleted)

- The crackers/hackers cannot even KeyGenn DevExpress.VCL

- There are no proper working crack for Addin-Express

- Most of the things released are cracked garbage
(ahh, the Dope of Embrace ;))

- Most expensive software, like BrickSoft, Addin-Express, Gnostice PDF subscription
with sources will never get keygenned or full-source-code release.

funny


Did you know?
- Members of DevExpress team read this.

There are an estimated 20,000 Delphi users using DevExpress.VCL illegally. That would translate to +/- US$20,000,000 in lost sales. If every Delphi developer licensed original software, it would translate into more jobs, higher salaries for existing Delphi developers. What happened? with massive piracy, this cuts Delphi's future. The future is here, there are few (or no) jobs, no money, nothing.

Sunday, January 10, 2010

DevExpress VCL Build 48 security analysis

Your reviewer was quite pleased with latest DeveloperExpress VCL build #48. It looks like they are handling security right with using real encryption.


The weakest link: Setup.dll/Unrar.dll
Formerly, below Build #48, all stuff was packed into 4 RAR files (Help, HtmlHelp, Demos and Sources) with same password. So when the installer calls Setup.dll (or Unrar.dll in other words), just capture the password in DLL call stack. Your reviewer remembers they used to keep changing it every build, but then, since the weakest link was setup.dll, you could always get it from there. Then, you could hack it different ways, like substituting your own setup.dll with YourOwnUnRar.Dll with same parameter calls and obtain the password, or maybe set Olly/WinDbg to break-point on DLL call.


Calling Home correctly
The next deterrent is using SSL/https instead of HTTP. That greatly deterred wannabe "vendors" from capturing packets in mid-air, such as, like man-in-the-middle attack. You could capture the SOAP packet in transit, then try dissecting it. With HTTPS, unless you can emulate https://register.devexpress.com with a valid SSL certificate, you're in for serious debugging.

Your reviewer, remembers Andrei (Feandy) discussing on some Russian forum, how he would setup virtual machine with http://register.express.com redirecting to his private webserver to hack it, then how he complained it changed to HTTPS (which made it obviously much harder).


Custom Archives
Your reviewer was thrilled to learn about DXIF archive file-format (anyone still remembers Julian wrote parts of TurboPower LockBox/Abbrevia?), but since the person who wrote TurboPower Lockbox knew the security flaws, DeveloperExpress used AES instead. Way to go!, at least, the person writing DXIF file format knew what they were doing.

DXIF --> Borrowed parts from TurboPower Abbrevia (PKXX --> DXIF),
changed cipher to custom cipher AES with key-checking.

Excellent choice :)


Watermarking
Your reviewer was happy to find watermarked source code, or least where you could not see it. Your reviewer found many strange comments, unusual constants and strings (I'll be fair: I won't disclose them) in the source code that was not there since last builds. Also, since some of these watermarks are in last build, how could your reviewer possibly know? :)

Oh, by the way, if Andrei/Feandy releases source code from Build #48, most of source codes are watermarked. Please Andrei/Feandy, release the sources, so Andrei/Feandy license could become invalid and the only DevExpress leak in whole world would be gone ;)


What's in Feandy's mind...
Your reviewer thinks there could be some improvements done for next build, like:

- Watermarking help files. Watermarking help files would be least noticeable, and that would greatly stop Andrei/Feandy from releasing demos/help files for everyone

- It would be much better if VM detection was present. There is already code to detect VirtualPC or VMWare, so why not throw that in? That would make it really fun

- Use different AES passwords for DXIF archives. Think about it... 4 times the fun

Last:
- By the way, can you use this copy-protection scheme for .NET edition, your reviewer would love it


Delphi-Love
With stronger, better protection, that means, people who used DevExpress illegally will have hard-time getting updates. Maybe it's time to look at LMD/TMS, but wait, TMS also have better protection now (guess who recommended it?)


Conclusion
With friends feandy like this, who needs enemies?


:)