> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/application-security/code-security/code-security-assets/infrastructure-as-code-iac-resources-as-assets/investigate-iac-assets.md).

# Investigate IaC assets

The IaC Resources inventory provides multiple ways to investigate an infrastructure asset, from quick agentic queries in the main table to deep-dive configuration analysis in the side panel

Select an IaC resource row in the table to open its side panel. This provides a consolidated workspace for investigating infrastructure definitions and remediating misconfigurations without navigating away from the asset inventory

#### Ask the AppSec agentic assistant

From the IaC assets side panel, click **Ask AI** and query resource-specific insights (for example, policy compliance, framework-specific risks, or deployment gaps).

#### Explore the IaC context and lineage

Navigate through the following tabs in the side panel to review the infrastructure context and lineage. This helps prioritize remediation efforts based on application criticality and assess the potential production impact of misconfigurations:

* **Overview tab:** Displays highlights such as Internet Exposed, Public, Deployed to Runtime, Failed Security Assessment, as well as cases and issues associated with the resource. Additional information includes the severity breakdown of misconfigurations, resource properties (such as framework and provider), and current scan information including the last scan time and health status
* **Applications tab:** Displays the business applications associated with the resource including business criticality ratings and risk scores
* **Code tab:** Provides a direct view of the IaC template source code where the resource is defined to inspect raw configuration attributes
* **Code to Cloud tab:** Displays the relationship graph visualizing the full lineage from the source repository through the IaC resource to the deployed cloud workloads

#### Investigate and remediate issues by category

The IaC side panel organizes findings detected within the infrastructure template into dedicated tabs by issue category. Selecting a finding opens the issue side card directly within the resource context

Fixes are executed either directly from these dedicated tabs for in-context remediation, or from the main inventory tables for global management:

| Tab name           | Scanner type | Description and remediation options                                                                                                                                                                                                                                                                                                                                                               |
| ------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Configurations** | IaC          | <p>Security misconfigurations and policy violations detected in the infrastructure template</p><ul><li><strong>Fix PR:</strong> Click to automatically generate a Pull Request to apply the recommended remediation code directly to the repository</li><li><strong>Manual fix:</strong> Use the presented code snippets to manually update the template in your native VCS environment</li></ul> |
| **Secrets**        | Secrets      | <p>Hardcoded credentials and sensitive tokens detected within the IaC manifest</p><ul><li><strong>Manual guidance:</strong> Secrets issues do not support automated Fix PRs and always require manual remediation using the provided guidance to revoke, rotate, and remove the exposed credentials</li></ul>                                                                                     |

#### Execute asset actions

After reviewing the resource health, you can perform the following operations depending on your location in the interface:

* **Navigate to repository:** Available from either the main table (right-click) or the side panel. Click to open the parent repository side panel, allowing you to investigate the broader codebase context without navigating away from your current view
* **Navigate to provider:** Available only from the side panel Actions menu. Click to open the native VCS platform (such as GitHub or GitLab) directly to the specific code where the IaC resource is defined
* **Export:** Available from the main table. Click the **Export to file** icon to generate and download a file containing the filtered inventory data
* **View asset data:** Available from either the side panel Actions menu or by right-clicking the resource in the main table. Click **View asset data** to view raw resource data in `JSON` (default) or `tree view`

For detailed information on investigating IaC issues, refer to [Infrastructure-as-Code (IaC) resources as assets](/application-security/code-security/code-security-assets/infrastructure-as-code-iac-resources-as-assets.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/application-security/code-security/code-security-assets/infrastructure-as-code-iac-resources-as-assets/investigate-iac-assets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
