import json


def rule(event):
    if all(
        [
            any(
                [
                    "scp " in json.dumps(event.to_dict()),
                    "rsync " in json.dumps(event.to_dict()),
                    "sftp " in json.dumps(event.to_dict()),
                ]
            ),
            any(["@" in json.dumps(event.to_dict()), ":" in json.dumps(event.to_dict())]),
        ]
    ):
        return True
    return False
