GnuPG (GPG)
What is GnuPG (GPG)?
GnuPG (GPG)The GNU Privacy Guard, a free software implementation of the OpenPGP standard (RFC 4880, RFC 9580) used to sign, encrypt, and decrypt data, including emails and software packages.
GnuPG (GPG) is the most widely used implementation of OpenPGP, developed by Werner Koch since 1997 and distributed under the GNU GPL. It ships the gpg command-line tool, libgcrypt, gpg-agent, and scdaemon for smartcards, with front-ends such as Kleopatra and library bindings used by countless tools. GnuPG supports RSA, ElGamal, DSA, ECDSA/EdDSA over Curve25519/Curve448, AES, and SHA-2. Linux distributions rely on it to sign packages (apt, dnf, pacman), and Git uses it for signed commits and tags.
The standard itself has evolved: RFC 9580 (July 2024) obsoletes the long-serving RFC 4880 (plus RFC 5581 and 6637), modernising the format and adding AEAD encryption. AEAD matters because of EFAIL (USENIX Security 2018, Ruhr University Bochum), which showed that OpenPGP's unauthenticated CFB mode plus clients that ignored a failed Modification Detection Code could be abused with "malleability gadgets" to exfiltrate plaintext through HTML email (CVE-2017-17688). Authenticated encryption removes that malleability.
Operationally, users protect private keys with passphrases, OpenPGP smartcards (YubiKey, Nitrokey), and pre-generated revocation certificates, and distribute public keys via HKPS keyservers or Web Key Directory (WKD).
flowchart LR A["Plaintext message"] --> B["Compress"] B --> C["Encrypt body with random session key"] C --> D["Wrap session key to each recipient public key"] A --> E["Sign with sender private key"] E --> F["Attach signature"] D --> G["OpenPGP message"] F --> G G --> H["Recipient: unwrap session key with private key"] H --> I["Decrypt and verify AEAD or MDC plus signature"]
● Examples
- 01
Running gpg --sign --armor release.tar.gz to produce a detached signature for a software release.
- 02
Storing an OpenPGP private key on a YubiKey so that Git signs commits using the hardware token.
● Frequently asked questions
What is GnuPG (GPG)?
The GNU Privacy Guard, a free software implementation of the OpenPGP standard (RFC 4880, RFC 9580) used to sign, encrypt, and decrypt data, including emails and software packages. It belongs to the Network Security category of cybersecurity.
What does GnuPG (GPG) mean?
The GNU Privacy Guard, a free software implementation of the OpenPGP standard (RFC 4880, RFC 9580) used to sign, encrypt, and decrypt data, including emails and software packages.
How do you defend against GnuPG (GPG)?
Defences for GnuPG (GPG) typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for GnuPG (GPG)?
Common alternative names include: GPG, GNU Privacy Guard.