- Updated: January 18, 2026
- 5 min read
Introducing psc: A Fast eBPF‑Based Process Scanner with Container Awareness
psc is a fast, eBPF‑based process scanner that provides developers and security engineers with kernel‑level visibility, full container context, and expressive CEL queries—all without relying on the fragile /proc filesystem.
loresuso/psc: The eBPF‑Powered Process Scanner Redefining Container Security
Why This News Matters
In the rapidly evolving world of container security and Linux process monitoring, developers often wrestle with slow, imprecise tools that lack container awareness. The psc project (short for “process scanner container”) changes the game by leveraging eBPF iterators introduced in Linux 5.8. This approach delivers sub‑second query times, tamper‑resistant data, and a natural query language (CEL) that reads like English.
For security teams, this means faster detection of rogue processes, easier compliance reporting, and the ability to audit containers without installing agents inside each runtime. For developers, it translates into a single binary that can replace a suite of ps, lsof, and ss commands.
Project Overview & Core Features
Kernel‑Level Access via eBPF
- Uses eBPF iterators to read process tables directly from the kernel.
- Bypasses
/proc, eliminating rootkit‑style hiding techniques. - Works on any distribution with kernel 5.8+ and the
libbpfdevelopment headers.
Expressive CEL Queries
- Filters processes with natural‑language‑like expressions (e.g.,
process.name == "nginx" && process.user == "root"). - Supports string functions (
.contains(),.startsWith()), numeric ranges, and logical operators. - Custom output columns via
-oflag reduce post‑processing.
Native Container Context
- Automatically extracts container ID, name, image, runtime, and labels.
- Supports Docker, containerd, CRI‑O, and Podman without extra configuration.
- Tree view (
--tree) shows process hierarchies inside each container.
Extensible Output Presets
sockets– full socket details (type, state, ports).files– file descriptor paths and types.containers– container metadata alongside process info.
Why psc Matters for Developers & Security Teams
Traditional Linux utilities (ps, lsof, ss) were designed for interactive use, not for automated security pipelines. They suffer from three major drawbacks:
- Performance bottlenecks: Each call triggers multiple system calls and parses
/proc, which becomes a scaling issue on busy hosts. - Lack of container awareness: Correlating PIDs to containers requires manual cgroup parsing or runtime‑specific commands.
- Fragile output formats: Scripts must chain
grep,awk, andsed, making them hard to maintain.
psc eliminates these pain points. Its eBPF core runs in kernel space, delivering sub‑millisecond query latency even on hosts with thousands of processes. The built‑in container mapping means security policies can be expressed as “container.runtime == docker && process.user == "root"” without any extra scripting. Finally, CEL makes queries self‑documenting, reducing the risk of mis‑configuration in CI/CD pipelines.
For organizations that already use Enterprise AI platforms by UBOS, psc can be integrated as a data source for anomaly detection models, feeding real‑time process‑state vectors directly into AI‑driven security dashboards.
Quick Installation & First‑Run Guide
Prerequisites
- Linux kernel 5.8 or newer (eBPF iterators introduced in this release).
- Go 1.20 or later,
clang,llvm, andlibbpf-devpackages. - Root privileges (required to load eBPF programs).
Step‑by‑Step Installation (Debian/Ubuntu)
sudo apt-get update
sudo apt-get install -y clang llvm libbpf-dev \
linux-headers-$(uname -r) linux-tools-$(uname -r)
# Clone the repository
git clone https://github.com/loresuso/psc.git
cd psc
# Generate the kernel BTF header (once per kernel version)
make vmlinux
# Build the binary
make build # produces ./psc
# Optional: install system‑wide
sudo make install
First Commands
List all processes (tree view):
sudo psc --tree
Find all nginx processes running as root:
sudo psc 'process.name == "nginx" && process.user == "root"'
Show only containerized processes from Docker:
sudo psc 'container.runtime == docker' --tree
Export a custom CSV of PID, name, and listening ports:
sudo psc 'socket.state == listen' -o process.pid,process.name,socket.dstPort > listening.csv
The Workflow automation studio on UBOS can call psc as a step in a security‑oriented pipeline, automatically alerting when a privileged process opens a network socket on a non‑standard port.
psc vs. Traditional & Modern Alternatives
| Feature | psc | ps / lsof / ss | Falco (eBPF‑based) |
|---|---|---|---|
| Query Language | CEL (human‑readable) | Shell pipelines | Rule‑based YAML |
| Container Awareness | Native (Docker, containerd, CRI‑O, Podman) | Manual cgroup parsing | Limited, requires extra rules |
| Performance | Sub‑millisecond, kernel‑direct | Milliseconds to seconds | Fast, but focused on event streaming |
| Installation Footprint | Single binary + eBPF object | Pre‑installed on most distros | Daemon + kernel module |
| Extensibility | Custom CEL fields, output presets | Limited to command‑line flags | Custom rule engine |
While AI SEO Analyzer and other UBOS templates showcase how AI can augment traditional tooling, psc fills a niche that neither generic Linux commands nor full‑blown security agents like Falco address: a lightweight, query‑first process scanner that developers can embed directly into CI pipelines or debugging sessions.
Get Started with psc Today
Ready to replace cumbersome ps | grep chains with a single, expressive command? Follow the quick‑install steps above, then explore the rich set of UBOS templates for quick start that already embed psc into monitoring dashboards.
If you’re evaluating a broader security stack, consider pairing psc with the AI marketing agents or the UBOS partner program to receive dedicated support, custom integrations, and volume licensing.
For startups looking for a cost‑effective solution, the UBOS for startups page outlines a free tier that includes access to the Web app editor on UBOS, where you can build a UI around psc in minutes.
Enterprises can leverage the Enterprise AI platform by UBOS to ingest psc data into machine‑learning models for anomaly detection, threat hunting, and compliance reporting.
Dive into the source code, star the repository, and start scanning: loresuso/psc on GitHub.
Further Reading & Resources
- Deep dive into eBPF on UBOS
- Comprehensive security tools catalog
- UBOS blog for the latest AI‑driven security updates
- UBOS pricing plans – find a tier that matches your team size.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.