def rule(event):
    if any(
        [
            event.deep_get("c-useragent", default="").startswith("XMRig "),
            event.deep_get("c-useragent", default="").startswith("ccminer"),
        ]
    ):
        return True
    return False
