def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/curl"),
            event.deep_get("TargetFilename", default="") == "/tmp/ld.py",
        ]
    ):
        return True
    return False
