> For the complete documentation index, see [llms.txt](https://docs.stepsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stepsecurity.io/gitlab/harden-runner/baseline.md).

# Baseline

Baseline monitoring is the practice of establishing what normal external network calls your CI/CD workflows typically make, and then monitoring for deviations that might indicate a security breach.

At its core, it helps answer the question: *“Is this job making expected and safe outbound network calls?”*

#### Baseline Status Categories <a href="#baseline-status-categories" id="baseline-status-categories"></a>

Each monitored resource, such as a job or repository, is evaluated for the predictability of its network activity. This evaluation helps uncover anomalies that could signal security issues.

Each resource can be in one of the following baseline states:

* Creating – The system is still collecting data to determine the resource’s baseline behavior.
* Stable – The resource’s network activity is predictable and consistent. A resource is considered stable once it has completed 100 runs without baseline changes.
* Unstable – The resource’s network activity is erratic and prone to triggering frequent alerts. If the baseline has changed within the last 50 runs, the resource is classified as unstable.

### Baseline Coverage at StepSecurity <a href="#baseline-coverage-at-stepsecurity" id="baseline-coverage-at-stepsecurity"></a>

StepSecurity applies baseline monitoring to two distinct resource types within your CI/CD environment:

#### Projects

Each GitLab project has its own network call profile, defined by outbound requests made during pipeline execution.

StepSecurity tracks these calls across runs to establish a baseline of normal behavior.

<figure><img src="https://1581953963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYFxETuN91qNPkGoCUqeM%2Fuploads%2Fnn7CVKNB0VaZ3hxsED7U%2FScreenshot%202025-10-07%20at%2020.34.31.png?alt=media&amp;token=6d1d926a-93ea-4289-9140-dd745d9907fb" alt=""><figcaption></figcaption></figure>

#### Servers

Servers represent the self-managed or shared runner hosts that execute CI/CD jobs.

Each server’s network activity is monitored to establish a baseline of expected outbound connections made during job execution.

This helps identify anomalies such as compromised runners, malicious scripts, or jobs connecting to unknown external domains.

<figure><img src="https://1581953963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYFxETuN91qNPkGoCUqeM%2Fuploads%2F6OMsGr03muNnJlqx3Rt2%2FScreenshot%202025-10-07%20at%2020.34.41.png?alt=media&amp;token=a32b46e0-f35e-4bdd-98e7-a761fb2997c5" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stepsecurity.io/gitlab/harden-runner/baseline.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
