def rule(event):
    if all(
        [
            any(
                [
                    "\\AppData\\Local\\Packages\\Microsoft.Outlook_"
                    in event.deep_get("Image", default=""),
                    "\\AppData\\Local\\Microsoft\\Olk\\Attachments\\"
                    in event.deep_get("Image", default=""),
                    "\\Downloads\\" in event.deep_get("Image", default=""),
                    "\\Temporary Internet Files\\Content.Outlook\\"
                    in event.deep_get("Image", default=""),
                    "\\Local Settings\\Temporary Internet Files\\"
                    in event.deep_get("Image", default=""),
                ]
            ),
            any(
                [
                    "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
                    in event.deep_get("TargetObject", default=""),
                    "\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run"
                    in event.deep_get("TargetObject", default=""),
                    "\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
