def rule(event):
    if all(
        [
            '.Put("msDS-ManagedAccountPrecededByLink'
            in event.deep_get("ScriptBlockText", default=""),
            "CN=" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
