def generate_unsafe_secgroup_entry(security_group: dict, unsafe_ingress_entries: list) -> dict:
    """
    Generates a dictionary from an unsafe security group, receiving all
    unsafe ingress entries related to this security group to the analysis
    response
    """
    unsafe_group = {
        "GroupName": security_group['GroupName'],
        "GroupId": security_group['GroupId'],
        "Description": security_group['Description'],
        "UnsafePorts": unsafe_ingress_entries,
    }
    return unsafe_group