def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/sysctl"),
                    "sysctl" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "hw." in event.deep_get("CommandLine", default=""),
                    "kern." in event.deep_get("CommandLine", default=""),
                    "machdep." in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
