def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("TargetObject", default="").endswith("\\COR_ENABLE_PROFILING"),
                    event.deep_get("TargetObject", default="").endswith("\\COR_PROFILER"),
                    event.deep_get("TargetObject", default="").endswith(
                        "\\CORECLR_ENABLE_PROFILING"
                    ),
                ]
            ),
            "\\CORECLR_PROFILER_PATH" in event.deep_get("TargetObject", default=""),
        ]
    ):
        return True
    return False
