Endpoint Protection (EDR)
Many organizations require an endpoint detection and response (EDR) sensor on every server. CoderFlow can run on a host with one, but a CoderFlow server does things that endpoint sensors watch closely. This page explains what a sensor will see, how to check that it is healthy, how to coordinate kernel updates with it, and what to expect. CrowdStrike Falcon is used as the worked example. The same points apply to other Linux EDR products.
What a Sensor Sees on a CoderFlow Host
CoderFlow runs AI agents in Docker containers. To the host kernel, every command an agent runs is an ordinary Linux process, so the sensor sees all of it. The activity below is normal for CoderFlow. Expect your EDR product to log it, and review any detection it raises against this list.
| Activity | Where it happens | Why CoderFlow does it |
|---|---|---|
Shell commands, package installs (npm, pip, apt), compilers and test runners | Task containers | Agents build and test code the same way a developer does |
| New executables written and then run straight away | Task containers | Installed packages, compiled programs and downloaded tools run from the container's own filesystem |
| Headless Chromium and Firefox | Task containers | Browser tests and screenshots (Playwright) |
| Outbound SSH and HTTPS | Task containers | Git over SSH, IBM i connections, AI provider APIs, package registries |
curl … | sh installers | Base image build | The base image fetches some vendor installers (agent CLIs, the in-browser editor) and pipes them to a shell |
Commands run as root inside running containers (docker exec) | Server → task containers | The server writes refreshed credentials into running task containers |
| A Node.js server whose code is obfuscated | Host, as the CoderFlow service account | The shipped server package is obfuscated |
npm install -g of the server package, then a service restart | Host | Updates from Update Management |
| Many short-lived containers and overlay filesystem mounts | Host, Docker | Each task gets its own container |
CoderFlow does not run privileged task containers, does not give task containers the Docker socket, and binds published container ports to 127.0.0.1 (see Security & Hardening).
Recommended Sensor Settings
- Run the sensor on the host and leave it fully enabled. Prefer no exclusions. Investigate a detection before excluding anything, and make any exclusion as narrow as you can: one file hash, one command line or one process tree, not a directory.
- Do not exclude Docker's data directories. Container filesystems live under
/var/lib/dockerand, on Docker versions that use the containerd image store, under/var/lib/containerd. Every binary an agent downloads, compiles or installs runs from those directories. Excluding them hides all agent activity from the sensor: exactly the activity you are running it to watch. Excluding only/var/lib/dockeralso covers less than it seems on hosts using the containerd store. - Container drift prevention. Some products can block executables that were added to a container after it started. CoderFlow agents do this by design (package installs, compiled programs). If your policy enables drift prevention, it will break agent tasks. Apply a separate policy to CoderFlow hosts rather than adding path exclusions.
- Use a separate host group or policy for CoderFlow servers, so you can tune detections for them without loosening other servers.
Check the Sensor's State
For CrowdStrike Falcon on Linux:
sudo /opt/CrowdStrike/falconctl -g --version # sensor version
sudo /opt/CrowdStrike/falconctl -g --rfm-state # rfm-state=false means fully functional
sudo /opt/CrowdStrike/falconctl -g --rfm-reason # why it is in reduced functionality mode, if it is
systemctl status falcon-sensor
pgrep -l falcon-sensor # falcon-sensor-bpf means user mode (eBPF)
lsmod | grep -i falcon # a loaded module means kernel mode
Reduced functionality mode (RFM) means the sensor is running but cannot fully protect the host. On Linux, the usual reason is a kernel the sensor does not support yet. In user mode the sensor uses eBPF in place of its kernel module. It supports more kernels this way, but its capabilities can differ. Check your vendor's documentation for the differences. Some sensor versions report the mode with falconctl -g --backend; the version we tested reports that option as deprecated.
Coordinate Kernel Updates With the Sensor
A Linux EDR sensor supports a specific list of kernels. If an automatic update installs a newer kernel and the host reboots into it before the sensor supports it, the sensor may fall back to user mode or enter reduced functionality mode. CoderFlow keeps working either way, but the host is less protected until the sensor catches up.
- Before you allow a kernel update, check it against your sensor vendor's supported-kernel list.
- On Ubuntu, either hold the kernel packages until they are supported (
sudo apt-mark hold linux-image-generic linux-headers-generic, or thelinux-virtualmetapackages on cloud images), or keep kernel packages out of unattended-upgrades withUnattended-Upgrade::Package-Blacklist. - Patch one CoderFlow host first, reboot, and check the sensor state with the commands above before patching the rest.
- Plan the reboot as you would any CoderFlow restart (see Container Lifecycle).
Sensor updates need the same care. CrowdStrike's sensor update policy can replace the sensor version on a host without a package upgrade; in our test it moved from the newest release to the previous one within an hour of installation. Pin the sensor version for CoderFlow hosts in the sensor update policy, and roll out new versions to one host first.
Tested Configurations
| Item | Tested |
|---|---|
| Distribution | Ubuntu 24.04.5 LTS (KVM VM, 8 vCPU, 20 GB) |
| Kernels | 6.8.0-149, 6.8.0-151 and 7.0.0-43 (HWE) |
| Docker | 29.9.3, cgroup v2, containerd image store |
| CoderFlow | 0.16.1 preview build 88fc621c |
| Sensor | CrowdStrike Falcon for Linux 8.12.19609 and 8.11.19508 |
| Sensor mode | User mode (eBPF); no kernel module loaded |
| Policy | CrowdStrike's default Linux prevention policy for new tenants ("Phase 3 – optimal protection": machine-learning anti-malware at Aggressive for detection and prevention, suspicious process prevention on, sensor tamper prevention on) |
With this configuration, CoderFlow ran without anything being blocked or killed, and the sensor raised no detections. The test covered:
- task container starts;
- repository clones;
- package installs, compilers and headless Chromium inside task containers;
- SSH from containers;
- complete agent tasks;
- no-cache image builds, including the installers that the base image pipes to a shell.
After kernel updates to 6.8.0-151 and to the newer 7.0 series, the sensor stayed fully functional. Its reduced-functionality state stayed off, and CoderFlow kept working.
Only the configurations listed here have been tested. Other sensor versions, kernels, distributions or policies may behave differently. In particular, this test did not include CrowdStrike's container protection or drift prevention.
What Performance to Expect
Measured on the test VM above: the same workloads with the sensor at CrowdStrike's default prevention policy, compared with the same VM without the sensor, both before installing it and after removing it. Differences smaller than the run-to-run spread are reported as measurement noise.
| Workload | With the sensor |
|---|---|
| Starting a task container | About 10–15 % slower (about 25–35 ms) |
| Cloning a repository of about 7,000 files | Within measurement noise (+8 %) |
| Package installs, C and TypeScript builds, headless browser, SSH and file copies | Within measurement noise (0 to 8 %) |
| Writing and immediately running new executables | About 25–35 % slower (about 0.3 ms per new executable) |
| A complete agent task | Within measurement noise |
| Building images without cache | Within measurement noise; about 6 % more CPU time |
The sensor itself used about 5–10 % of the CPU time of busy CoderFlow workloads on this VM. Agent tasks spend most of their time waiting on the AI model, so the sensor makes little difference to how long a task takes.
To measure on your own hardware, run the same workloads on one host with the sensor off and then on. Compare medians of several runs. Treat differences smaller than the run-to-run spread as noise.