Hardening Cisco Secure Email Gateway means keeping AsyncOS on a fixed release, keeping every management and quarantine interface off the internet, controlling who can administer the appliance, and running a mail policy baseline that you can explain line by line. The gateway receives mail from anyone, holds directory and TLS credentials, and can read, quarantine or release every message in the organisation. Cisco's December 2025 advisory for the Spam Quarantine feature showed how much depends on interface exposure: the affected appliances were those where Spam Quarantine was both enabled and reachable from the internet. This guide sets out a baseline drawn from Cisco's own advisory and configuration best practices.
The guide is written for email, network and security operations teams who run Cisco Secure Email Gateway (formerly Email Security Appliance) on hardware, virtual appliances or Cisco Secure Email Cloud. Where Cisco's documentation does not cover a topic, the guide says so instead of filling the gap. For hardening other Cisco security platforms, see the Cisco ASA and Firepower Threat Defense Hardening Guide.
This is an independent guide from NHI Mgmt Group, based on Cisco's public documentation as of November 2026. It is not sponsored or reviewed by Cisco. Product features change, so confirm settings against Cisco's current documentation.
Key takeaways
- Cisco advisory cisco-sa-sma-attack-N9bf4 (CVE-2025-20393, CVSS 10.0) affected Secure Email Gateway and Secure Email and Web Manager appliances running a vulnerable AsyncOS release with Spam Quarantine enabled and reachable from the internet. There are no workarounds; upgrade to a fixed release.
- Spam Quarantine is not enabled by default, and Cisco's deployment guides do not require it to be internet facing. Check every IP interface for the Spam Quarantine checkbox and remove internet exposure.
- Cisco recommends placing appliances behind a firewall, separating mail and management interfaces, disabling HTTP and other unneeded services, and sending logs to an external server.
- Change the default administrator password, restrict administrator access, create operator accounts and use LDAP or SAML for authentication.
- Cisco's configuration best practices give a reference policy: an aggressive Host Access Table, SPF, DKIM and DMARC verification, file reputation and analysis, outbreak filters, URL filtering and a set of spoofing and account takeover content filters.
What the gateway exposes
A Secure Email Gateway has more than one face. Its mail listeners accept SMTP from the internet; that is the job. Its web interface and CLI are used for administration. Its Spam Quarantine and end-user quarantine pages let users review and release held mail. Each of these is bound to an IP interface, and the security of the appliance depends on which interfaces offer which services to which networks.
Cisco's advisory makes the point concrete. The vulnerability lay in insufficient validation of HTTP requests by the Spam Quarantine feature, allowing an unauthenticated remote attacker to run arbitrary commands as root. Only appliances where the feature was enabled and reachable from the internet met all of the advisory's conditions. Appliances where quarantine was only reachable internally were not in scope.
The lesson for hardening is to map, for each interface, which services it offers and who can reach them. Mail listeners face the internet. Everything else should face only management or internal networks, with explicit firewall rules.
Security updates and advisories
Read Cisco's advisory cisco-sa-sma-attack-N9bf4 in full. The essential facts:
- CVE and score. CVE-2025-20393, CWE-20, CVSS 3.1 base score 10.0. Bug IDs CSCws36549 and CSCws52505. CISA added the CVE to the Known Exploited Vulnerabilities Catalog on 17 December 2025.
- Timeline. Cisco states that it became aware of the campaign on 10 December 2025, published an interim advisory on 17 December 2025 and a final version on 15 January 2026.
- Scope. Cisco Secure Email Gateway and Cisco Secure Email and Web Manager, physical and virtual. Cisco states that Cisco Secure Email Cloud devices are not affected.
- Workarounds. None. Cisco has released fixed software.
Fixed releases
| Product | Release train | First fixed release |
|---|---|---|
| Secure Email Gateway | 14.2 and earlier | 15.0.5-016 |
| Secure Email Gateway | 15.0 | 15.0.5-016 |
| Secure Email Gateway | 15.5 | 15.5.4-012 |
| Secure Email Gateway | 16.0 | 16.0.4-016 |
| Secure Email and Web Manager | 15.0 and earlier | 15.0.2-007 |
| Secure Email and Web Manager | 15.5 | 15.5.4-007 |
| Secure Email and Web Manager | 16.0 | 16.0.4-010 |
Upgrades run from the web interface under System Administration, System Upgrade, or from the CLI with upgrade and then DOWNLOADINSTALL. The appliance reboots after upgrading. Cisco states that upgrading to a fixed release also clears the persistence mechanisms installed in this campaign. If you need to confirm whether an appliance was compromised, Cisco advises contacting the Cisco Technical Assistance Center, and suggests enabling remote access for TAC first to speed up the investigation. The advisory links resources to restore an affected appliance to a secure state, including virtual appliance downloads; agree the recovery approach with TAC.
Building a patch routine
- Record the AsyncOS release of every gateway and manager in your asset inventory, and review it weekly against Cisco's advisories.
- Subscribe the owning team to Cisco security advisories and to the KEV catalogue, and set a remediation deadline for any gateway CVE on that list.
- Keep a tested upgrade procedure, including the reboot and the mail flow impact, so that an emergency upgrade is routine rather than improvised.
- For clustered or paired deployments, upgrade one appliance at a time and confirm mail flow before moving on.
Interfaces, Spam Quarantine and network exposure
Cisco's advisory tells you how to check whether Spam Quarantine is enabled. On Secure Email Gateway, open Network, IP Interfaces in the web interface and select each interface; if the Spam Quarantine checkbox is checked, the feature is enabled on that interface. On Secure Email and Web Manager, the path is Management Appliance, Network, IP Interfaces, with the same checkbox.
The advisory's network recommendations form a sensible baseline for every deployment:
- Block internet access to the appliance except where needed. Where internet access is required, allow only known, trusted hosts on the ports and protocols listed in the user guides.
- Place appliances behind a filtering device such as a firewall and permit traffic only from trusted hosts. Cisco suggests a two-layer firewall.
- Separate mail and management interfaces on Secure Email Gateway, to limit access to the management network.
- Disable HTTP for the main administrator portal and use HTTPS with a CA-issued or self-signed certificate.
- Disable unneeded services, including HTTP and FTP.
If users need to reach the Spam Quarantine from outside the corporate network, consider whether end-user digests and release through internal channels or a VPN would meet the need instead. If you do expose it, expose only that service, on a dedicated interface, behind a filtering device, and keep the appliance on a fixed release.
Administrator accounts and authentication
The appliance's administrators can change mail policy, release quarantined messages and read message content. Cisco's advisory recommends changing the default administrator password, restricting administrator access, creating operator accounts, and using strong end-user authentication such as SAML or LDAP. Cisco's configuration best practices add two settings to review:
- System Administration, Users: review passphrase policies under "Local User Account & Passphrase Settings".
- System Administration, LDAP: configure LDAP for authentication where possible, with SSL.
Turn that into an access model:
- Retire the built-in admin for daily use. Change its password, store it in a privileged access vault, and use it only for break-glass.
- Named accounts only. Every administrator and operator signs in as themselves, through LDAP or SAML, so that the Configuration History log ties each change to a person.
- Use the narrowest role. Create operator accounts, as Cisco recommends, for staff who track and release messages without changing policy. Confirm the available role names and their permissions in the user guide for your AsyncOS release.
- Restrict administrative source addresses. Combine firewall rules with the appliance's own access controls so that only management networks reach the web interface and CLI.
- Review accounts quarterly. Remove local accounts that are no longer needed and confirm that leavers are removed from the directory groups mapped to appliance roles.
Neither source used for this guide documents two-factor authentication settings for the appliance. If your release supports it, enable it for administrative sign-in, and in any case enforce phishing-resistant multi-factor authentication at the identity provider used for SAML.
Credentials the appliance holds
A gateway is full of non-human identities: LDAP bind accounts for recipient validation and administrator authentication, TLS private keys for listeners and the web interface, credentials for log export destinations, and any API or cloud service connections. Treat each as a managed credential:
- Use a dedicated, read-only directory account for LDAP queries, with SSL as Cisco recommends, and record it in your NHI inventory.
- Track every certificate and private key on the appliance with its expiry date and reissue process.
- Scope log export accounts to the destination they write to and nothing else.
- Write a rotation runbook for each credential, so that you can rotate them all quickly if an appliance is suspected of compromise.
If you ever do need to rebuild or recover an appliance, assume every credential it held must be rotated. The gateway compromise playbook covers the wider response.
Mail policy baseline
Cisco's configuration best practices document, last updated in July 2022 and written for Cisco Secure Email Cloud gateways, gives a reference policy. Cisco warns that changes must be reviewed and understood before production use and recommends consulting your Cisco account team first. Highlights:
Host Access Table and reputation
Under Mail Policies, Host Access Table, Cisco suggests extra sender groups such as BYPASS_SBRS, MY_TRUSTED_SPOOF_HOSTS and TLS_REQUIRED, enabling "SBRS Scores on None" for the SUSPECTLIST, and an aggressive sample HAT:
| Sender group | SBRS range | Mail flow policy |
|---|---|---|
| BLOCKLIST_REFUSE | -10.0 to -9.0 | BLOCKED_REFUSE |
| BLOCKLIST_REJECT | -9.0 to -2.0 | BLOCKED_REJECT |
| SUSPECTLIST | -2.0 to 0.0 and None | THROTTLED |
| ACCEPTLIST | 0.0 to 10.0 | ACCEPTED |
Keep BYPASS_SBRS small and documented. Every host in it skips reputation checks, which makes it the HAT equivalent of a sender exemption.
Sender authentication
In the default mail flow policy parameters, Cisco recommends TLS set to preferred, SPF and DKIM verification enabled, and DMARC verification enabled with "Send Aggregate Feedback Reports", noting that DMARC needs additional tuning. Content filters named DKIM_FAILURE and SPF_HARDFAIL quarantine messages on DKIM hard fail and SPF fail. Publish strong records for your own domains as well; the DMARC, SPF and DKIM Guide covers the move to enforcement.
Malware, outbreak and URL controls
- Anti-spam and Graymail. Enable both under Security Services, with Cisco's suggested scan sizes, and keep the incoming anti-spam policy at default thresholds; Cisco warns that changing scoring could increase false positives.
- File Reputation and File Analysis. Enable both, review file types, quarantine messages with file analysis pending, and tag unscannable messages with headers for later review.
- Outbreak Filters. Enable Adaptive Rules and Web Interaction Tracking, keep the threat level threshold at the default of 3 unless you have a reason to change it, enable message modification and set URL rewriting to "Enable for all messages".
- URL Filtering. Enable URL Categorization and Reputation Filters, Web Interaction Tracking and URL logging. On AsyncOS 14.2 and later, Cisco lists URL Retrospective Verdict and URL Remediation as options.
Spoofing and account takeover filters
Cisco's sample content filters include EXECUTIVE_SPOOF, which uses Forged Email Detection against an "Executive_FED" dictionary of executive names, DOMAIN_SPOOF, which triggers on the spoofing header, and an outgoing ACCOUNT_TAKEOVER filter that notifies an administrator address and quarantines the message. Build the executive dictionary, keep it current as leadership changes, and route the account takeover notification to a monitored mailbox that your identity team also watches. A mailbox sending malicious outbound mail is a compromised identity, and the response should include revoking sessions and resetting credentials.
Logging and monitoring
The advisory recommends monitoring web logs for unexpected traffic and sending logs to an external server with enough retention for investigations. The best practices document adds specific log subscriptions: under System Administration, Log Subscriptions, create and enable Configuration History Logs and URL Reputation Client Logs if they are not present, and add the To, From, Reply-To and Sender headers in the global settings. Enable Rejected Connection Logging in message tracking if required.
Useful detections and reviews:
- Configuration History entries outside change windows, or by accounts that should not make changes.
- Web interface or quarantine requests from addresses outside your management and user networks.
- New local user accounts and changes to authentication settings.
- Changes to sender groups, especially additions to BYPASS_SBRS.
- Outbound connections from the appliance to unexpected destinations.
These map to NIST SP 800-53 SI-8 (Spam Protection), SI-2 (Flaw Remediation), AU-6 (Audit Record Review, Analysis, and Reporting) and CM-7 (Least Functionality). The attack techniques to keep in mind are MITRE ATT&CK T1190 (Exploit Public-Facing Application) for the appliance itself, T1078 (Valid Accounts) for its administrator and service credentials, and T1566 (Phishing) for the mail it filters.
Common failure patterns
- Quarantine on the internet. Spam Quarantine enabled on an internet-facing interface for user convenience.
- Shared management and mail interfaces. The web interface reachable on the same interface as the public mail listener.
- HTTP and FTP left on. Services that the deployment never used, still enabled from initial setup.
- Default admin in daily use. One shared administrator password known to the whole team.
- Lagging releases. Appliances several releases behind because upgrades require a reboot and were never scheduled.
- Logs only on the box. No external log destination, so an investigation depends on the appliance being trustworthy.
- Bypass sprawl. A growing BYPASS_SBRS sender group and allowlists that nobody reviews.
Practitioner checklist
- Confirm every Secure Email Gateway and Secure Email and Web Manager runs a release at or above the fixed releases in Cisco's advisory.
- Check the Spam Quarantine checkbox on every IP interface and remove internet exposure.
- Place appliances behind a firewall and allow only trusted hosts to non-mail services.
- Separate mail and management interfaces.
- Disable HTTP and FTP and use HTTPS with a valid certificate.
- Change the default administrator password, vault it, and use named accounts through LDAP or SAML.
- Review passphrase settings and remove unused local accounts.
- Inventory LDAP bind accounts, certificates and log export credentials, with a rotation runbook for each.
- Enable SPF, DKIM and DMARC verification and the DKIM_FAILURE and SPF_HARDFAIL filters.
- Enable file reputation and analysis, outbreak filters and URL filtering.
- Enable Configuration History Logs and send all logs to an external server.
- Subscribe to Cisco security advisories and the KEV catalogue and track gateway CVEs to a deadline.
Standards and references
- Cisco: Security updates and advisories, cisco-sa-sma-attack-N9bf4
- Cisco: Configuration Best Practices for CES ESA
- CISA: Known Exploited Vulnerabilities Catalog
- NIST: SP 800-177 Rev. 1 Trustworthy Email
- NIST: SP 800-53 Rev. 5
- CIS: Critical Security Controls v8.1
Related NHI Mgmt Group resources: Cisco ASA and Firepower Threat Defense Hardening Guide · Email Security Guide · DMARC, SPF and DKIM Guide · Email security gateway health check