def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\dotnet.exe"),
                    event.deep_get("Image", default="").endswith("\\w3wp.exe"),
                    event.deep_get("Image", default="").endswith("\\java.exe"),
                ]
            ),
            any(
                [
                    "\\apache" in event.deep_get("TargetFilename", default=""),
                    "\\tomcat" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            "\\webapps\\ROOT\\" in event.deep_get("TargetFilename", default=""),
            event.deep_get("TargetFilename", default="").endswith(".jsp"),
        ]
    ):
        return True
    return False
