# Resolving Malware and Leaked Secret Issues

**Malware** and **leaked secret findings** require you to close them manually using **Mark as solved**. For leaked secrets, Aikido detects the secret in your version history but leaves invalidation to you, as this happens in an external system and cannot be fully verified. For malware, Aikido flags the infected package but requires you to confirm removal, since automated verification of a clean state is never fully reliable.

<figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FTD4uckl1QVHKL8aMEMsC%2Fimage.png?alt=media&#x26;token=3ffeb1d8-de7e-4342-a60d-739d00892c42" alt=""><figcaption></figcaption></figure>

### What to do before marking an issue as solved

#### Leaked secrets

A secret can stay in Git history forever, even after you remove it from the latest commit.

Before marking the issue as solved:

1. Revoke or rotate the secret immediately.
2. Confirm the old secret no longer works.
3. Check that no system still depends on it.
4. Only then mark the issue as solved.

{% hint style="warning" %}
Marking a leaked secret as solved does **not** mean the secret disappeared from version history. It means you invalidated it and removed the risk.
{% endhint %}

#### Malware findings

For malware, Aikido cannot prove removal unless it no longer appears in your dependency data.

Before marking the issue as solved:

1. Remove the affected package from the project.
2. Remove it from the lockfile.
3. Reinstall dependencies if needed.
4. Confirm it no longer appears in the dependency tree.
5. Only then mark the issue as solved.

{% hint style="warning" %}
If you are not sure the malware package is gone, contact Aikido support before marking it as solved.
{% endhint %}

### How to mark an issue as solved

1. Open the issue from the issue list, grouped issue view, or queue sidebar.
2. Open the action menu.<br>

   <figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FpCQhCzkHypO4a2AWCjZn%2Fimage.png?alt=media&#x26;token=25e31c6b-bee5-4432-b067-435e83787316" alt=""><figcaption></figcaption></figure>
3. Select **Mark as solved**.
4. Review the confirmation prompt.<br>

   <figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FMTwDjiLBFeVvUIDJTvzx%2Fimage.png?alt=media&#x26;token=c4a669ff-754d-431b-b23c-814795be9ea7" alt=""><figcaption></figcaption></figure>
5. Confirm.
