> For the complete documentation index, see [llms.txt](https://docs.opsmx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opsmx.com/remediation-agents/code-agent/bir-binary-image-remediation.md).

# BIR - Binary Image Remediation

### Binary Image Remediation&#x20;

Binary Image remediation feature covers the vulnerability detection and remediation within the AIG platform. The system integrates a UI layer, AIG backend services, SSD scanning APIs, and CI/CD pipelines to deliver a deterministic, traceable, and automated remediation workflow.&#x20;

The process is initiated when the user provides the following inputs through the UI:

* GitHub Repository (mandatory) — source code location
* Branch (mandatory) — target branch for remediation
* Dockerfile Path (mandatory) — used for analysis and patching
* Docker Image — used as input for SSD artifact scanning

After receiving the inputs, the AIG backend creates a project in SSD via the Project APIs. Repository metadata (repo URL, branch, Dockerfile path) is registered, establishing a link between AIG and the SSD system.

The system then triggers two independent scans in SSD:

* Source Scan API — performs SAST (Static Application Security Testing) for code issues and SCA (Software Composition Analysis) for dependency vulnerabilities.
* Artifact Scan API (Binary Scan) — scans the Docker image for OS-level, runtime, and binary vulnerabilities.

The instructions below provide steps to add the inputs, initiate the scans, view the scan results and remediate.&#x20;

#### Integrations and Project Setup

You need to add the docker integration and setup the project before starting with the binary scan.&#x20;

#### To Add Integration:

1. Navigate to Integrations > Add Integrations.

<img src="/files/xVogcNFjMsfYWZLFHiZ7" alt="" height="313.12892190069" width="602">

2. In the Add Integration page, select Docker and enter the required configuration details.&#x20;

<img src="/files/iH5cQeLaOVbvDvFVNemm" alt="" height="313.304190515196" width="602">

3. Click Connect Docker. The integration is successfully added.&#x20;

#### To Add Project

1. Navigate to Projects > Add Project.

<img src="/files/Y976phQ50TliMj3y4mgy" alt="" height="313.44000977935343" width="594.5">

<br>

2. In the Add Project page, enter a project name, set the scan type as Binary.

<img src="/files/G4JlZIAkxpuYR9tZy9Oc" alt="" height="312.5254805517736" width="602">

3. In the configuration section, add the required details and to upload your docker file using the file upload option.&#x20;
4. Select the added docker file, from your local system.

<img src="/files/zFgnE7zlbGCC5gLZWX67" alt="" height="312.9781779655487" width="602">

5. Click Save Project. The project gets queued for scanning.&#x20;

<img src="/files/KKJVQWQCtbjNu9wRCLZr" alt="" height="313" width="602">

#### Viewing Scan Results

Once the project is added, it appears in the project list along with its current scan status.

When the scan completes, click View to open the results. The results are organized into two sections:

* Project Dashboard — displays a high-level overview of the scan.
* Findings — lists all detected issues.

Click View next to any finding to see its full details.

<img src="/files/zbqz7kzaQpdqUEfEK7uS" alt="" height="313.1755722428307" width="602">

* The Project Dashboard displays the overview of the scan.&#x20;

<img src="/files/KkRZrtX91UfoCYzRzmSB" alt="" height="313" width="602">

* The Findings displays the detected results.

<img src="/files/0t1ZwcCJy33rnpZyp6k1" alt="" height="313.17436072525976" width="602">

You can view the details of the findings by clicking the View option next to each finding.

<img src="/files/hpGLY3aPALOGUpfsIVY1" alt="" height="313" width="602">

#### Remediating Findings

Click Remediate next to a finding to begin remediation. The AI Remediation Assistant will analyze the issue and provide:

* A summary of the problem
* Recommended fixes
* An overall remediation score

You can remediate the findings by clicking the Remediate option next to each finding.

<img src="/files/cBC5TAnDFjHDm4Sd6KMt" alt="" height="313.17680071427236" width="602">

<img src="/files/aaEItfzlBXsLN59eInzv" alt="" height="313" width="602">

<img src="/files/Q1kziYiXZNzaxX3tCQHe" alt="" height="313.1755722428297" width="602">

<br>


---

# 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:

```
GET https://docs.opsmx.com/remediation-agents/code-agent/bir-binary-image-remediation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
