{% for finding in t["results"] %} {% if finding["ManagedBy"] == "Customer" %}
{% include 'analysis/finding-card/names.html' %}

{{ finding["PolicyDocument"] | tojson(indent=4) }}
{% if finding["Type"] == "Policy" %} {% if "Principals" in finding %}

{% for principal in finding["Principals"] %}
- {{ principal }}{% endfor %}
{% endif %} {% else %} {% if finding["AttachedToPrincipal"] %}

{{ finding["AttachedToPrincipal"] }}
              
{% endif %} {% endif %} {% if finding["Type"] == "Role" %}

{{ finding["AssumeRolePolicyDocument"]  | tojson(indent=4) }}
              
{% endif %}

{{ finding["Actions"] | tojson(indent=4) }}
            
{% if finding["PrivilegeEscalation"]|length > 0 or finding["DataExfiltrationActions"]|length > 0 or finding["PermissionsManagementActions"]|length > 0 or finding["AssumableByComputeService"]|length > 0 %}
{% include 'analysis/finding-card/details.html' %}
{% endif %}
{% endif %} {% endfor %}