GPcode, also known as PGPCoder, is an early Windows ransomware family that helped define modern cryptoviral extortion. First observed in the mid-2000s, it encrypts victim files and demands payment in exchange for a decryptor or decryption key. Early variants used flawed or weaker implementations, but later versions were reported with substantially improved cryptography, including correctly implemented RSA-1024 in some campaigns, making practical brute-force recovery infeasible and shifting defender focus toward implementation flaws, backups, and file recovery.
GPcode targets Windows systems and encrypts files matching hard-coded extension lists that commonly include documents, archives, media, certificates, and databases. Some analyzed variants enumerate logical drives, recursively traverse directories, encrypt selected files through Windows CryptoAPI functions, and rename affected files with a new extension. Variants have also dropped ransom notes onto the desktop, changed the victim’s wallpaper, and removed themselves after execution through cleanup scripts. Reports indicate some versions deleted original files after creating encrypted copies, while others simply encrypted and renamed files.
Distribution has been associated with phishing emails, malicious links, and, in earlier reporting, e-mail and USENET postings. GPcode has been described as a Trojan-delivered ransomware threat rather than a self-propagating worm. Campaigns used multiple extortion workflows over time, including email-based negotiation, proof-of-decryption offers for a single file, and payment requests through then-popular digital payment systems or prepaid-card mechanisms. Reporting has linked some GPcode activity to Russian-speaking operators, although infrastructure and communications observed in certain cases suggested operational complexity beyond a single simple attribution.
GPcode is historically significant because it marked a transition from crude locker-style extortion toward file-encrypting ransomware using stronger public-key cryptography. Its evolution demonstrated that once ransomware operators adopted sound asymmetric encryption, victim recovery without backups, implementation mistakes, or attacker cooperation became far more difficult.
8 distinct techniques documented for this family, organized by ATT&CK tactic.
GPCode infected systems via malicious website links and phishing emails.
GPCode infected systems via malicious website links and phishing emails.
In the first call, GpCode will load, and lock a resource... ResourceName = "cfg" ... In this call it will decrypt the data contained at 00175158
It creates a file called "ntfs_system.bat" ... del "C:\Documents and Settings\Administrateur\Bureau\1.exe" del %0
Despite that GPcode indeed got the encryption implementation right this time, it's only weakness remains the way it simply deletes the files it has just encrypted, next to securely wiping them out - at least according to a single sample obtained.
And Create the mutex "ilold" ... OpenMutexA ... CreateMutexA
After it creates a thread and retrieves a bitmask representing the currently available disk drives... Then we enter in a loop... FindFirstFileA ... FindNextFileA
And Create the mutex "ilold" ... OpenMutexA ... CreateMutexA
Kaspersky Labs who were the first to report that a new version of GPcode (also known as PGPCoder) is in the wild, this time with a successful implementation of RSA 1024-bit encryption.
8 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.