def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").startswith(
                        "C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\"
                    ),
                    event.deep_get("TargetFilename", default="").startswith(
                        "C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Web Server Extensions\\"
                    ),
                ]
            ),
            any(
                [
                    "\\15\\TEMPLATE\\LAYOUTS\\" in event.deep_get("TargetFilename", default=""),
                    "\\16\\TEMPLATE\\LAYOUTS\\" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith("\\spinstall.aspx"),
                    event.deep_get("TargetFilename", default="").endswith("\\spinstall?.aspx"),
                    event.deep_get("TargetFilename", default="").endswith("\\debug_dev.js"),
                ]
            ),
        ]
    ):
        return True
    return False
