Secure file encryption since 2001
Help & support

AxCrypt Portable - truly standalone?

16 replies 3 participants Started Active

Actions

Reply
Hjalmar Guest Topic starter
Report spam

I think the Notepad and Paint issues are because of threading in Windows and not something AxCrypt can do much about without putting data at risk.

It'd be nice for an ASCII armour format for encrypted data because any small change to a .AXX file causes the whole file to be unrecognisable. At least with ASCII armour it's easy for people to export as plaintext.

AxCrypt Support AxCrypt Team
· 1,810 posts
Report spam

Hello Hjalmar,

What can I say? Thanks! Lots of very good and relevant thoughts and notes. Some are on our issue list, some will soon be ;-)

One thing surprised me - you say there's lots of dead and unused code? Could you point me in the general direction, I try very hard to get rid of dead code as soon as it's dead. One thing you may not be aware of is that while the Windows desktop and the core libraries are open source, we also use the core libraries in our mobile apps, our soon to be released Mac app as well as on the server side ( https://account.axcrypt.net/ ). So, if the methods are public, they may be used by other code that is not part of the axcrypt-net repository.

The plan is to separate the core libraries into a published SDK nuget package once the most intense development phase is over. But for now, when we have no less than 5 platforms rapidly moving forward using the core libraries, it's just so much more convenient to include it as a source dependency.

Also, about the ease of cheating with the Premium status, it's a known situation and conscious decision although we will do a few minor changes in the near future where it at least requires you to hack the source. It's hard to make strong DRM with open source like this. In the end there will always be a place in the code where the policy is applied, and where someone can hack it away. With or without the source, but it's of course so much easier with the source. We could obfuscate and do sneaky things, but it just doesn't make sense for us. If someone really wants to hack the source to get at the Premium features - so be it. There's still quite a bit of things that are outside of this, which includes the mobile apps and the server-based features (of course if you want to be always offline, none of that makes much sense to use anyway). I could even consider making Premium the default in always offline mode!

As for always offline causing an OfflineApiException I seem to recall that's just how it's implemented. Normally, if a connection to the server fails, we throw an OfflineApiException. If we're always offline, we do the same but before even trying, causing the rest of the code to see no difference between "unplugged", "server down" and "always offline".

In any case, the level of your comments indicates I'd like to talk to you. Please PM me via support att axcrypt dott net if you will. I gather you and your employer values privacy to a great degree, and I'll be happy to respect that of course.

Hjalmar Guest Topic starter
Report spam

In any case, the level of your comments indicates I’d like to talk to you.

I have replied via email. 🙂

Hjalmar Guest Topic starter
Report spam

I have two more suggestions:

  • When creating a new account via the software it prompt for a password. It uses a basic algorithm to detect weak passwords but it allows you to use your email address as your password!
  • The encryption password is transmitted via TLS.  There are a number of solutions for this but they're complicated and involve extensive development effort. However if I've understood the technical documentation correctly, there seems to be one simple fix which I'll explain below.

A file encrypted with AxCrypt (AXX) is highly secure by today's standards. If the AxCrypt binary contained a hard-coded AxCrypt public key (the EXE is secured with Authenticode and a verifiable cryptographic hash) then upon the user entering their password it could be encrypted into a miniature AXX file, transmitted to the server via TLS, decrypted with the AxCrypt private key on the server and then validated. There'd be an insignificant increase in time but the security would increase tremendously.

Some may argue that TLS is fundamentally compromised. Whichever side of the fence you're on - by double encrypting the password (i.e. transmitted over TLS and encrypted with the AxCrypt public key) it'd minimise any risk of compromise by TLS, e.g. fake root certificate installed on the local computer, antivirus, ISP etc. - see my email for other methods.

Of course this wouldn't prevent capture from key-loggers but it'd remove several side channel attacks against the password. It'd also satisfy many who don't trust TLS. They'd still have to trust the server but it'd be an enormous increase in security.

It may not be practical depending upon the server configuration but it's a relatively easy way to increase security without requiring a significant amount of development or even server resources.

AxCrypt Support AxCrypt Team
· 1,810 posts
Report spam

Hello Hjalmar,

Thanks again for your input. Yes, the SSL/TLS issue is frequently debated and many distrust it for the reasons you describe, and with reference to various conspiracy theories.

I like your idea of using AxCrypt to encrypt the password as it is sent to the server, we're actively trying to make the analysis as simple as possible, and that entails using / relying on as few mechanisms as possible. We've already discussed various ways of strengthening the protocol, including making a zero knowledge variant. (The problem with that is that some other things become less convenient. But that's a longer discussion.)

The problem that will have to be investigated is just how robust such a large HTTP header is in practice. For it to be a relatively "simple" fit, I'd like to continue using basic authentication, and this entails sending the password in a HTTP header. A minimum AxCrypt file right now weighs in at about 5K, this can probably be reduced a little by extending AxCrypt to support a file-less format (that's useful for other situations as well, such as AxCrypt-encrypting pure text etc), thus reducing the amount of headers etc, and perhaps even skipping the redundant headers in the trailer. But then it has to be Base-64 encoded, so it grows again. In the end the header will probably be on the order of 4K. To be honest, I just don't know how will this will work. A mitigating factor is that it's still inside a SSL/TLS connection so it should not be affected by intermediate stuff.

Still, I like it. Even better, it can be added without any problem for existing clients. The server can easily distinguish between the cases.

See:

https://bitbucket.org/axantum/axcrypt-net/issues/276/filter-out-components-from-the-user-email

https://bitbucket.org/axantum/axcrypt-net/issues/277/implement-file-less-axcrypt-encryption

https://bitbucket.org/axantum/axcrypt-net/issues/278/investigate-and-possibly-implement-axcrypt

Thanks!

Hjalmar Guest Topic starter
Report spam

The problem that will have to be investigated is just how robust such a large HTTP header is in practice. For it to be a relatively “simple” fit, I’d like to continue using basic authentication, and this entails sending the password in a HTTP header.

Last time I checked I recall sure the default for IIS being 16k (maximum of 64k) - I'm referring to the sum total, i.e. everything.

At an average of 4k-5k for a miniature AxCrypt file I think that the default IIS configuration would leave you with enough to play with. Setting the parameter to high risks encoding and traversal attacks and would be unecessary.

I foresee no reason why it wouldn't be robust enough as it's not a huge amount of data and it's transmitted over TLS. If anything it could be a metric of detection - if somebody is having problems connecting it could potentially indicate compromise of the channel.

 

I've received your email response, thanks. I'll try to respond to you sometime tomorrow.

 

The digital signing of the licence file is what I had in mind, very easily integrated and sufficiently robust to dissuade casual individuals.

A basic ASCII text file and maybe a QR code would help those with air-gapped systems. Some have more curtailments (data diodes, sluices etc.) and even no external media device (USB, CD, SD, floppy) but allow input into a sanitised, sandboxed environment which is where the QR code would come handy. Failing that it would have to be inputted by hand.

I'm not suggesting you build a QR scanner into AxCrypt as some air-gapped systems in high security environments have their own data input units (barcode, QR etc.)

Hjalmar Guest Topic starter
Report spam

One nice enhancement which came to mind after I'd posted my last message was that it may be nice to give users the option to export their public/private key onto paper by means of a printable QR code.

I've seen a number of open source projects on GitHub which offer QR functionality to save you reinventing the wheel.

Reply to this topic

Posting as a guest. Log in or sign up to get reply notifications and edit your posts.

Tip: describe your AxCrypt version, operating system and the exact error message. Never post your password or license key.