import json


def rule(event):
    if any(
        [
            "com.sun.jndi.ldap." in json.dumps(event.to_dict()),
            "org.apache.logging.log4j.core.net.JndiManager" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
