> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 5.5 Incident Response

> Proposed incident response steps for Kcode Robot Suite. The repository defines no formal process.

> [!NOTE]
>
> The repository defines no incident process. The steps below are a proposed baseline for maintainers, not an established policy.

## 5.5.1 Scenarios

| Scenario | First action |
| - | - |
| The demo app was exposed to untrusted users | Take the deployment offline. Treat the fixed session cookie as compromised. |
| A secret was committed | Revoke and rotate the secret, then remove it from the repository history. |
| A vulnerable dependency is reported | Update the dependency, run `pnpm lint`, `pnpm typecheck`, `pnpm test`, and `pnpm build`, and release a `fix`. |
| A release was published in error | Follow [Upgrade and rollback](https://docs.khanhng.com/kcode-robot-suite/release-notes/upgrade-and-rollback.md). |

## 5.5.2 Response steps

**1. Contain**

Stop exposure by removing access or taking the deployment offline.

**2. Assess**

Identify affected versions using the commit history and tags.

**3. Fix**

Make the smallest change that removes the cause. Use a Conventional Commit of type `fix`.

**4. Release**

Merge to `master` and merge the release pull request that release-please opens.

**5. Review**

Record the cause and the control that would have prevented it in the [control register](https://docs.khanhng.com/kcode-robot-suite/security/security-risks-and-required-actions.md).

Keep security findings and credential values out of public issue discussions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.