def rule(event):
    if all(
        [
            any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\winword.exe"),
                            "\\Windows\\INetCache" in event.deep_get("TargetFilename", default=""),
                            event.deep_get("TargetFilename", default="").endswith(".cab"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\winword.exe"),
                            "\\AppData\\Local\\Temp\\"
                            in event.deep_get("TargetFilename", default=""),
                            ".inf" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                ]
            ),
            not all(
                [
                    event.deep_get("TargetFilename", default="").startswith("C:\\Users\\"),
                    "AppData\\Local\\Temp" in event.deep_get("TargetFilename", default=""),
                    event.deep_get("TargetFilename", default="").endswith("\\Content.inf"),
                ]
            ),
        ]
    ):
        return True
    return False
