Why MISP alert emails need GnuPG encryption and signing
If your MISP instance sends notification emails that carry threat intelligence, those emails need two protections: recipients must be able to confirm the message came from your instance, and the content must stay readable only by the intended people. MISP addresses both by signing and encrypting notifications with the instance GnuPG key and each user's public key. The instance key is the one the platform uses for its own outgoing mail, configured through the GnuPG.email and GnuPG.password settings, and MISP publishes the matching public key at /gpg.asc so recipients can verify signatures and encrypt replies. Before you rely on this, confirm the exact setting names and key handling steps for your MISP version against the MISP user guide on cryptographic keys, since key management is where most of the setup effort sits.
This matters most when alert emails name specific indicators, affected organisations or unpublished incidents, and when recipients act on them without logging into MISP. It matters less when every recipient reads notifications only inside the platform, or when your mail transport already provides end-to-end protection that your security team has reviewed. The encryption covers the email content as it is sent through MISP. It does not protect the event data stored in the database, control who may see an event inside MISP, or confirm that a recipient's own mail client checks signatures. Those controls sit with distribution levels, sharing groups, roles and the mail infrastructure, which are covered elsewhere on this page.
Decide early who owns the instance key, where its passphrase is stored, and how a lost or compromised key is replaced and communicated to partners. Ask your team to confirm which recipients have a usable public key on file, how users without one will receive notifications, and how key rotation would reach every partner that verifies your signatures. Those answers shape the rest of the build, so settle them before you enable notifications for production use.
GnuPG configuration options and when each fits
This table compares the configuration choices for MISP alert emails: signing only, encrypting and signing, relying on uploaded recipient keys, and publishing the instance key. Read each row as a decision with a cost, and treat the key management column as the part that recurs after go-live. The main takeaway is that encryption adds operational work for every recipient, so choose it only when the mail content or the recipient base justifies that work.
| Option | What it gives you | Operational trade-off | When it fits |
|---|---|---|---|
| Signing only | Recipients can verify that alert emails came from the instance key, and content is readable in transit only as plain text | Needs the instance key and its passphrase managed securely, with no per-recipient key work | Internal alerts where confidentiality is covered by the mail transport and recipients do not hold keys |
| Encrypting and signing | Message bodies are protected for recipients who have uploaded a public key, and the signature proves origin | Every recipient must maintain a current public key in MISP, and lost or expired keys leave people unable to read alerts | Alerts that name sensitive events or sectors and where recipients can manage keys reliably |
| Relying on recipients' uploaded public keys | Encryption is limited to users whose keys are present in their MISP profile | Users without keys receive unencrypted content, so the policy must define what is sent to them | Mixed audiences where some partners already run GnuPG and others do not |
| Setting GnuPG.email | Identifies the instance key used for signing and encryption, which must match the key the recipients trust | A wrong address or a key that is not the one recipients imported causes failed verification | Every deployment that uses GnuPG, as the key identity must be set consistently |
| Setting GnuPG.password | Allows the instance key to be unlocked for unattended signing when the key has a passphrase | The passphrase sits in configuration, so restrict file access and rotate it under your key policy | Automated alerting on a server where a passphrase-protected key is required |
| Publishing the instance key at /gpg.asc | Recipients can fetch the public key and verify signatures without a manual exchange | Publication exposes the key to anyone who can reach the instance, and changing keys means telling every recipient | Organizations that want a single, discoverable verification key for partners |
| Using the same key for protected events | Protected events rely on the same instance key, so one key lifecycle covers alerts and event protection | Rotating or losing this key affects both email and protected event handling at once | Teams that want one key owner and one documented rotation procedure |
How to set up the instance key and email encryption
This sequence takes a MISP host from a bare GnuPG installation to a working instance key, published at /gpg.asc, with user public keys in place and a test notification confirmed as encrypted and signed. Each step ends with a check so the team knows it can move on.
Prepare the GnuPG environment on the MISP host
The MISP administrator confirms that GnuPG is installed on the MISP host and that the web server and background worker user can run it. Set up a dedicated GPG home directory with restricted permissions so the private key is readable only by the account that runs MISP. Run
gpg --versionas that account to confirm the binary and the home directory both work. Confirm the exact package names and the expected user and home path against the current MISP version in the MISP user guide, since the installer layout can differ between releases.Create or import the instance key
Generate a new key pair on the MISP host, or import an existing key that the organization has approved for this purpose. Use a passphrase and record it in your secrets store, because the same passphrase is needed in the next step. Check that
gpg --list-secret-keysshows the key with the email address you intend to use for MISP notifications. Keep a secure, offline backup of the private key and its revocation certificate before going further, and confirm the key handling expectations in the user guide's cryptographic keys section.Set GnuPG.email and GnuPG.password
In MISP's administration settings, set the GnuPG.email value to the address of the instance key and set GnuPG.password to the key passphrase. Confirm the configuration keys and where they are stored in your MISP version, because the settings interface and the way secrets are handled may vary between 2.5 releases. Save the settings and check that the GnuPG configuration page reports the key as found and usable without error. If MISP reports a missing key or a passphrase failure, correct the value before continuing.
Have users add public keys to their profiles
Each user who should receive encrypted notifications exports their public key and adds it to their MISP user profile. Ask users to confirm the fingerprint of their key out of band before the administrator accepts it, so that a key cannot be swapped by someone with profile access. Users without a key will still receive notifications, so confirm with your team how unencrypted delivery is handled for those accounts. The check is that each enrolled user's profile shows a key and the key matches the fingerprint the user provided.
Verify the instance key is served at /gpg.asc
Request the public key from the MISP instance at the /gpg.asc path, using a browser or a command such as
curlfrom a host outside the MISP server. Save the response and compare its fingerprint with the fingerprint of the instance key on the host. This confirms that partners and users can fetch the key that signs and encrypts notifications. If the path returns an error or a different key, check the web server configuration and the GnuPG settings before proceeding, and confirm the expected path against the current user guide.Test a notification end to end
Trigger a test notification to a user with an enrolled public key, or use the test function in the administration interface if your version provides one. Open the received message in a mail client that supports OpenPGP and confirm that the body is encrypted and that the signature validates against the instance key. Repeat with a user who has no key to confirm the fallback behavior you documented. The step is complete when the encrypted, signed message verifies for at least one enrolled user, and the results are recorded in your change log.
Record protected event handling and key ownership
Document who owns the instance key, where the passphrase is stored, how a compromised key is revoked, and who can change GnuPG.email and GnuPG.password. Note that the same instance key is needed for protected events, so a lost or rotated key affects more than email. Ask your MISP administrators to confirm the protected event workflow against the user guide for your version before you rely on it. The check is a signed runbook entry that the security and MISP teams both approve.
How the instance key signs and encrypts alert emails
The flow starts when a MISP event triggers a notification to a user. MISP signs the message with the instance GnuPG key, then encrypts it with the recipient's public key, so the mail relay carries only ciphertext. The mail relay sits outside the MISP host's trust boundary, and the recipient verifies the signature with the instance public key. That public key is published separately at /gpg.asc, which is the copy recipients and reviewers should check against the configured GnuPG.email identity.
Signing and encryption happen on the MISP host before mail leaves it.
Protecting the instance key and the passphrase
The instance GnuPG key signs and encrypts every notification MISP sends, and its passphrase sits in configuration where MISP can read it. Whoever holds both can read alert content or forge messages that look like they came from your instance, so the controls below treat the key, its passphrase and the send record as one protected set.
Store the key on the MISP host carefully
The private key must live on the MISP host in a location the web and worker processes can read but other local users cannot. Confirm where your installation keeps the GnuPG home directory, whether it sits on an encrypted volume, and whether the host backup policy captures it without copying it to general-purpose file shares. Avoid leaving exported copies of the private key in download folders, ticket attachments or admin workstations.
Restrict access to the GnuPG home
The GnuPG home directory should be owned by the account that runs MISP and be readable only by that account and root. Check permissions after every upgrade, configuration management run or package change, because these steps can reset ownership. Confirm that administrators who need to troubleshoot signing use separate accounts so that activity on the key is attributable.
Handle the GnuPG.password value
The GnuPG.password setting holds the passphrase in MISP configuration, so anyone who can read that configuration can use the key. Restrict the configuration file's permissions, keep it out of shared repositories and support bundles, and confirm whether your deployment can supply the value from a protected source at startup. Record who can change this setting, since changing it without updating the key can silently stop notifications.
Back up and recover the private key
A lost private key means MISP can no longer sign notifications, and recipients may need to re-import a new public key. Keep an encrypted backup of the private key and its passphrase in a separate, access-controlled vault, and test restoring it on a non-production host. Document the recovery steps so that a second operator can complete them during an incident.
Plan key rotation with recipients
Rotating the instance key changes what recipients must trust, so rotation needs a planned window rather than an emergency swap. Generate the new key, update GnuPG.email and GnuPG.password together, republish the public key at /gpg.asc, and notify users to import it. Keep the old public key available for a period so that messages encrypted before the change can still be verified.
Log notification sends
Record which notifications were sent, to whom and when, and whether signing or encryption succeeded. Send failures caused by a wrong passphrase or missing user key are often the first sign of a configuration problem, and they are easy to miss without logs. Confirm where MISP writes these entries, how long they are kept, and whether they reach the same SIEM used for the audit logs.
Why protected events need the same key
The instance GnuPG key does more than sign alert emails. The MISP user guide's section on cryptographic keys and event signing ties the same instance key to protected events, so the key is a shared dependency rather than a mail-only setting. Treat it as part of the platform's trust chain. If the key is lost, replaced or misconfigured, the failure can reach event handling as well as notification delivery, which is why a key change needs the same change control as a database migration.
Before you change or rotate the key, confirm with the user guide exactly which features read it. Ask the implementation team to list each protected-event workflow in your instance, the setting that enables it, and whether it depends on the key pair, the GnuPG.email identity, or the stored passphrase in GnuPG.password. Record the current key fingerprint, where the private key is held, and who can restore it from backup. A backup that has never been restored is not a recovery plan, so confirm that the private key and its passphrase can be recovered outside the running instance.
After any key change, test protected event handling end to end on a non-production copy, then repeat the check on production during a planned window. Create a test event with the protection setting you use, confirm that the public key is served from /gpg.asc, check that a notification is encrypted and signed, and confirm that users with their own public keys can read it. Also confirm that a user without the right key cannot. Keep the results with the change record, since they show that the key change did not break protected handling.
Limits to confirm in your environment
GnuPG-encrypted MISP notifications depend on several parts outside MISP itself: the mail path, the recipients' mail clients, and the version of MISP you run. The checks below cover those dependencies so the encryption behaves the same way in production as it did in testing.
Mail relay support for encrypted messages
Confirm that your relay accepts and delivers the encrypted and signed message bodies MISP generates without altering them. Some relays apply content scanning, size limits or disclaimers that break the signature or make the ciphertext unreadable. Send a test notification from the production MISP instance through the same relay path that real alerts will use, then check the raw message headers and body at the recipient end.
Recipient mail client PGP handling
Encrypted alert emails are only useful if each recipient's mail client can decrypt them. Ask each recipient group which client they use and whether it supports OpenPGP with their own private key. Webmail and mobile clients often lack native support, so plan a fallback for those users or confirm that they will not receive protected content by email at all.
Mailing list and gateway rewriting
Mailing lists, anti-spam gateways and archiving appliances may rewrite subject lines, add footers, strip attachments or re-sign messages. Any of these steps can invalidate the MISP signature or cause the recipient's client to fail on decryption. Where an alias or list is used, confirm that messages reach each member unchanged and that the list does not hold a copy of the plaintext in an archive your policy does not cover.
Behavior across the 2.5 release line
MISP 2.5 receives frequent releases, and the email and GnuPG code path may change between them. Before you upgrade, read the release notes for notification, GnuPG or email changes and repeat the test notification on a staging copy. Treat any change in how the signature, the key lookup or the subject line behaves as a regression until your own test shows otherwise.
MISP releasesDocumented settings against the installed release
The documented GnuPG settings, including GnuPG.email and GnuPG.password, and the public key path at /gpg.asc, apply to the version the documentation describes. Confirm that the names, defaults and paths in your installed release match the documentation before you rely on them. Check the running configuration directly rather than assuming the example values in a guide apply to your build.
Questions buyers ask before hiring help
How much does GnuPG setup for MISP email notifications cost?
The cost follows from the written scope, so no price applies until the scope is agreed. The main drivers are the number of users who need encrypted notifications, whether the instance key is generated fresh or already exists, how many mail paths (relay, SMTP authentication, internal gateways) need testing, and how much key custody must be documented. Ask the quote to list the GnuPG.email and GnuPG.password settings, the test plan for signed and encrypted messages, and the handover of key procedures. Separate one-time work from recurring work, such as key renewal and onboarding new users' public keys. Count your own staff time for mail administration and user communication too.
How long does GnuPG email encryption setup take for MISP?
The duration depends on the scope, not on a fixed number of days. Timing is driven by whether the mail relay already works, how many users must supply public keys, and how many change windows the mail and MISP teams need. A single instance with a working relay is generally a smaller piece of work than a rollout across several teams, but ask for the actual schedule in the written scope. Milestones should cover key generation, configuration, test messages, user key collection and sign-off. Also ask how failed tests are handled and when retests are scheduled.
What must our team provide before GnuPG setup can start?
Your team needs to supply the inputs that the configuration depends on. Before work starts, prepare:
- The outbound mail relay host, port, TLS mode and any SMTP authentication account
- The sender address that MISP notifications will use, and a test mailbox for verification
- Administrator access to the MISP instance and to the mail system
- A list of users who need encrypted notifications, with their public keys or a process to collect them
- A decision on who holds the instance key and its passphrase, and where backups are stored
If any of these are missing, schedule the decision before the build starts so testing is not delayed.
Can our own team set up GnuPG encryption for MISP alerts?
Yes, if your team has administrator access to MISP and the mail system, and someone who understands GnuPG key generation, passphrase handling and key verification. The setup itself is a configuration task: the instance key is used through GnuPG.email and GnuPG.password, and the public key is published at /gpg.asc. The harder part is operational: deciding key custody, rotating keys, collecting user public keys and proving that notifications are signed and encrypted as intended. Many teams do the configuration in-house and buy help only for the design review or the test plan. Compare your staff time against the written scope from a partner before deciding.
Who should hold the MISP instance GnuPG private key?
Limit custody to the smallest group of people who must operate the key, and record that group in writing. Decide who can generate, import, back up and rotate the key, where the passphrase is stored, and who approves a change. The private key should not sit with general MISP users or be copied to workstations without a documented reason. Keep an encrypted backup that is restorable, and test the restore. Your security team will likely ask for this decision as evidence, so ask a partner to document the custody model as part of the handover, and confirm the procedure against your own key management policy.
Why does MISP need the instance GnuPG key for protected events?
MISP uses the instance GnuPG key for signed and encrypted email notifications, and the same key is needed when protected events are involved. The exact behavior for each recipient depends on how the instance is configured, so confirm the flow against the MISP user guide before you test. Check which keys each recipient must have, what happens to events sent to a user without a matching key, and whether the public key at /gpg.asc is the one partners will use to verify your messages. Write the answers into the test plan so the security team can review them.
What happens to MISP users who have no public key?
Confirm this in your own test environment before users receive alerts, because the answer determines your onboarding process. Create a test user without a public key, trigger a notification, and record whether the message is blocked, sent unencrypted or sent with a warning. Then repeat the test for users whose keys are expired or invalid. Decide whether users without keys should receive alerts at all, and whether that policy is enforced by configuration or by a process. Document the result so that support staff know what to tell users who ask why they did not receive a message.
What does a GnuPG engagement cover, and what does it leave out?
A typical scope covers the configuration of GnuPG.email and GnuPG.password, the generation or import of the instance key, publication at /gpg.asc, test messages for signed and encrypted notifications, and written procedures for key custody, rotation and user key collection. It usually leaves out building the mail server, training every user, and any audit report or certification, because DeployOpen prepares evidence but independent auditors issue audit results. Ask the quote to list included deliverables, excluded items, and the acceptance tests that close the work.
What to ask for in a written scope
A written scope for MISP email notifications should first settle who owns the instance GnuPG key and who holds it. The key that signs and encrypts alert mail is the same key that protects events flagged for encryption, so its custody affects far more than email. Ask the supplier to name the person or role that generates the key, the systems where the private key lives, who can export it, and how a copy is kept for recovery. The scope should also state that the key is created on infrastructure you control, with the public half published at /gpg.asc and the private half never placed in a shared repository or ticket.
Next, the scope must name how the passphrase is stored and supplied to MISP through the GnuPG.password setting, and where the GnuPG.email identity is defined. Ask whether the passphrase sits in a secrets manager, a root-only configuration file, or an environment variable, and who can read each location. Describe the mail path as well: the sending relay, the mail transport MISP uses, any gateway that might strip or re-wrap messages, and who receives delivery failures. Confirm in writing that the supplier will test each relay path with a signed message, since an encrypted message that cannot be decrypted by the recipient is a silent failure.
The scope should cover user onboarding for public keys: how each user submits a key, who checks the fingerprint against an out-of-band source, what happens when a user has no key, and how a departing user's key is removed. Ask for a written procedure for these steps, not just a statement that onboarding is supported. Verification tests belong in the scope too. Ask for a test plan that sends a signed and encrypted notification to a sample of users, decrypts it with a known key, checks the signature, and confirms that protected events are handled as expected.
Finally, require a runbook for key rotation and for loss of the private key. The runbook should list the steps to generate a replacement, republish the public key, update the passphrase store, notify users to fetch the new key, and retire the old one without breaking mail already in transit. Ask who performs each step, how long the old key remains valid for decryption, and how the rotation is logged. The scope should also name the handover of this runbook to your own team, so that rotation does not depend on the supplier after the engagement ends. Confirm how any of these items would be priced before work begins, since the scope determines what the quote covers.
How DeployOpen scopes and delivers MISP GnuPG email encryption
DeployOpen plans, builds and documents MISP email notification encryption inside your own infrastructure, from the instance GnuPG key to the user key process. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Confirm which notification types and recipients must be signed and encrypted, and which mail flows stay plain.
- Record the GnuPG key ownership, key length decision, passphrase custody and who may rotate the instance key.
- Agree in writing how users supply public keys and who verifies them before the scope is signed off.
How we build
- Configure GnuPG.email and GnuPG.password on the instance, then test signed and encrypted alerts end to end.
- Confirm the public key is served at /gpg.asc and that protected event handling matches the intended key use.
- Test with a sample of user keys and a mail relay path that reflects your real environment, including failure cases.
How we hand over
- Deliver a runbook covering key generation, backup, rotation, revocation and the procedure for a lost passphrase.
- Document the user onboarding steps for publishing public keys and the checks an administrator performs.
- Provide test evidence showing which messages were signed, which were encrypted, and what a recipient sees.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retesting is included when a MISP upgrade or mail server change could affect signing or encryption, as set out in the written scope.
- Confirm with your security team how key custody, rotation and audit records will be reviewed over time.

