import re


def rule(event):
    if all(
        [
            re.match(
                r"http[s]?://[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}",
                event.deep_get("Contents", default=""),
            ),
            any(
                [
                    ".ps1:Zone" in event.deep_get("TargetFilename", default=""),
                    ".bat:Zone" in event.deep_get("TargetFilename", default=""),
                    ".exe:Zone" in event.deep_get("TargetFilename", default=""),
                    ".vbe:Zone" in event.deep_get("TargetFilename", default=""),
                    ".vbs:Zone" in event.deep_get("TargetFilename", default=""),
                    ".dll:Zone" in event.deep_get("TargetFilename", default=""),
                    ".one:Zone" in event.deep_get("TargetFilename", default=""),
                    ".cmd:Zone" in event.deep_get("TargetFilename", default=""),
                    ".hta:Zone" in event.deep_get("TargetFilename", default=""),
                    ".xll:Zone" in event.deep_get("TargetFilename", default=""),
                    ".lnk:Zone" in event.deep_get("TargetFilename", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
