def filter_score(rules, minimum_score=0):
    """
    Filter the rules object for rules that have a certain score or higher
    :param rules: YARA rules JSON object
    :param minimum_score: minimum score
    :return: list of filtered rules
    """
    filtered_rules = []
    for rule in rules:
        if int(rule['score']) >= minimum_score:
            filtered_rules.append(rule)
    return filtered_rules
