def rule(event):
    if all(
        [
            any(
                [
                    all(
                        [
                            "\\inetpub\\wwwroot\\" in event.deep_get("TargetFilename", default=""),
                            any(
                                [
                                    ".ashx" in event.deep_get("TargetFilename", default=""),
                                    ".asp" in event.deep_get("TargetFilename", default=""),
                                    ".ph" in event.deep_get("TargetFilename", default=""),
                                    ".soap" in event.deep_get("TargetFilename", default=""),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "\\www\\" in event.deep_get("TargetFilename", default=""),
                                    "\\htdocs\\" in event.deep_get("TargetFilename", default=""),
                                    "\\html\\" in event.deep_get("TargetFilename", default=""),
                                ]
                            ),
                            ".ph" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                ]
            ),
            not any(
                [
                    any(
                        [
                            "\\AppData\\Local\\Temp\\"
                            in event.deep_get("TargetFilename", default=""),
                            "\\Windows\\Temp\\" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                    event.deep_get("Image", default="") == "System",
                    "\\xampp" in event.deep_get("TargetFilename", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
