# TFsec

TFsec is a security scanner for your Terraform code. It performs static analysis of your code and detects potential misconfigurations that could lead to security risks. It supports multiple cloud providers, such as AWS, Azure, and GCP, and has a number of built-in rules.

### Usage of TFsec in Delivery Shield <a href="#usage-of-custom-policy-source-in-delivery-shield" id="usage-of-custom-policy-source-in-delivery-shield"></a>

* SSD now supports TFsec to scan and manage infrastructure and deployments using Terraform scripts, enhancing security compliance in Infrastructure as Code (IaC).

### To Manage TFsec: <a href="#to-manage-custom-policy-source" id="to-manage-custom-policy-source"></a>

1. Navigate to **Setup** > **Integrations**.
2. In the **Others** panel, click **TFsec.**

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FvfPItGAZcgIyXJih2Xos%2Ftfsec%201.png?alt=media&#x26;token=c52bb611-d176-4b41-aeb9-58c68160dea2" alt=""><figcaption></figcaption></figure>

3. The TFsec integration page is displayed. Click **+New Account**.
4. In the popup that appears, enter the following details:

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FWnG8teLn8QIZL8Fvpgd8%2Ftfsec%202.png?alt=media&#x26;token=a6943ed9-e1ca-4bad-9c17-ff04cb847798" alt=""><figcaption></figcaption></figure>

5. Enter the **Account Name, Repo URL, Repo Token, Script Absolute Path**.&#x20;
6. Click **Save**. The tool is connected.
7. You can edit the entered values by clicking the **Edit** option in the **Actions** column.
8. Re-enter the values and click **Update**.

The new values gets updated.
