def rule(event):
    if all(
        [
            "$env:COR_ENABLE_PROFILING" in event.deep_get("ScriptBlockText", default=""),
            "$env:COR_PROFILER" in event.deep_get("ScriptBlockText", default=""),
            "$env:COR_PROFILER_PATH" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
