def rule(event):
    if any(
        [
            "System.DirectoryServices.Protocols.LdapDirectoryIdentifier"
            in event.deep_get("ScriptBlockText", default=""),
            "System.Net.NetworkCredential" in event.deep_get("ScriptBlockText", default=""),
            "System.DirectoryServices.Protocols.LdapConnection"
            in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
