def compromised(targets):
    """
    Filter list of targets to return only those marked as compromised.

    **Parameters**

    ``targets``
        List of dictionary objects (JSON) for targets
    """
    filtered_targets = []
    for target in targets:
        if target["compromised"]:
            filtered_targets.append(target)
    return filtered_targets