Skip to content
Crypto Write-up Intermediate

Anatomy Of A Zero Day – How To Decrypt….a Robot?

The exported robot packages from AutomationAnywhere were encrypted, but the encryption key and initialization vector were hardcoded in the installation files. An attacker with access to the installation files could decrypt any exported robot package and read the plaintext robot code.

dolosgroup.io

Published on dolosgroup.io

That title would have sounded very weird to me a year ago but that’s exactly what happened. Let me walk you through how we were approached by a client for a code review, had to find a zero day just to get started (CVE-2022-29856), and ultimately “decrypted a robot.” You’ll also get to see how surprisingly simple it…

The author, on dolosgroup.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the vendor used a hardcoded cryptographic key and initialization vector embedded in the software installation, rather than generating unique keys per user or package.

Impact

Any customer of AutomationAnywhere that exported a robot package may be at risk of the contents being leaked, as the hardcoded key allows decryption of any exported package.

What the attacker needed

Access to exported robot package; Download of free installation files

The fix

The vendor should use unique, securely managed encryption keys per customer or package instead of hardcoded keys, and should respond to disclosure attempts.

How it was found

  1. Obtain the exported robot package (.aapkg file).
  2. Unzip the package and locate the 'commands' files containing Base64-encoded data.
  3. Decode the Base64 data and observe it appears random (high entropy).
  4. Download the free installation files from the vendor and unpack the CAB files.
  5. Search the installation files for cryptographic keywords and find a kernel.jar file.
  6. Decompile the kernel.jar file to extract the hardcoded AES key and initialization vector.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you export a robot from this software, the file is scrambled (encrypted) so others cannot read it. But the secret key needed to unscramble it was built into the software itself, so anyone who downloaded the free installer could find the key and read the robot code.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.