def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("type", default="") == "SYSCALL",
                    event.deep_get("SYSCALL", default="") == "personality",
                    event.deep_get("a0", default="") == 40000,
                ]
            ),
            all(
                [
                    event.deep_get("type", default="") == "EXECVE",
                    event.deep_get("a0", default="") == "sysctl",
                    event.deep_get("a1", default="") == "-w",
                    event.deep_get("a2", default="") == "kernel.randomize_va_space=0",
                ]
            ),
        ]
    ):
        return True
    return False
