One embodiment of the present invention provides a system that performs
content screening on a message that is protected by end-to-end encryption.
The system operates by receiving an encrypted message and an encrypted
message key at a content screener from a firewall, the firewall having
previously received the encrypted message and the encrypted message key
from a source outside the firewall. The content screener decrypts the
encrypted message key to restore the message key, and decrypts the
encrypted message with the message key to restore the message. Next, the
content screener screens the message to determine whether the message
satisfies a screening criterion. If so, the system forwards the message to
a destination within the firewall in a secure manner. In one embodiment of
the present invention, the system decrypts the encrypted message key by
sending the encrypted message key to the destination. Upon receiving the
encrypted message key, the destination decrypts the encrypted message key
and returns the message key to the content screener in a secure manner.