import re


def rule(event):
    if re.match(
        r"(?i)(set).*&&\\s?set.*(environment|invoke|\\$?\\{?input).*&&.*\"",
        event.deep_get("Payload", default=""),
    ):
        return True
    return False
