pinspect — Linux Process Intelligence CLI
Fast, deep Linux process inspection and forensic intelligence that goes far beyond
ps aux.
pinspect is an all-in-one terminal tool for systems engineers, SREs, and security investigators. It collects deep, actionable intelligence about running processes directly from native Linux /proc and kernel interfaces — zero external command dependencies, low overhead, graceful error recovery, and SIEM/EDR-ready output.
📦 Installation
Install with pipx (recommended — isolated environment):
pipx install pinspect-cli
Or with plain pip:
pip install pinspect-cli
⚡ Quick Start
pinspect ps # deep process list
pinspect show 1234 # full intelligence card for one PID
pinspect tree # process hierarchy
pinspect security 1234 # capabilities, seccomp, LSM + risk score
✨ Highlights
- Origin intelligence — detects systemd, cron, SSH, shell, Docker/Podman/Kubernetes, or kernel launch origins; resolves service units and container IDs
- Security forensics — decodes capability bitmasks, Seccomp, NoNewPrivs, AppArmor/SELinux, SetUID/SetGID, executable SHA-256 hashes, deleted-binary execution
- Risk scoring — every process gets a heuristic suspicion score (0–100) with explainable flags: deleted/memfd executables, RWX memory regions, dangerous capabilities, unsandboxed root
- Memory map forensics — flags code-injection evidence: W+X regions, anonymous executable mappings, fileless payloads, files deleted after mapping
- Files & sockets — open FDs, deleted files held open, per-PID or system-wide socket mapping
- Containers — list only containerized processes with runtime, container ID, and name
- Secret redaction —
envautomatically masks tokens, keys, passwords, and credentials - Built-in grep — search running processes by name, arguments, executable, or user; scriptable exit codes
- Interactive TUI — live dashboard with filtering, sorting, and multi-tab detail views
- SIEM / EDR formats — structured
--json,--csv,--quiet, and--wideon every subcommand
📖 Documentation
| Document | Contents |
|---|---|
| Installation | PyPI, pipx, and from-source installs |
| Command Reference | All 13 subcommands with examples |
| Output Formats | JSON, CSV, quiet, wide modes for pipelines |
| Security & Forensics | Risk scoring model, maps forensics, capability analysis |
🧪 Testing
python3 -m unittest discover -s tests -p "test_*.py" -v
📜 License
MIT — see LICENSE.
Metadata
Release files for pinspect-cli 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pinspect_cli-1.0.3.tar.gz | 60.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pinspect_cli-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 139.7 kB
Release files / pinspect_cli-1.0.3.tar.gz
| Download URL | pinspect_cli-1.0.3.tar.gz |
|---|---|
| Size | 60.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7814db9a953a864c35fdc72e501a8d357e66f4f10175af2cdb3d0644fb7eed35
|
|
BLAKE2b-256 checksum How to use checksums |
cc5f47e5b8fc8872d5ff931fb269a50dae7dced5eac0cc2cf2290d42c6e23c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logRelease files / pinspect_cli-1.0.3-py3-none-any.whl
| Download URL | pinspect_cli-1.0.3-py3-none-any.whl |
|---|---|
| Size | 79.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32e78caaad8109e4ca13535a20dd2af67051bd056c1b2492e473e05f9cb883e3
|
|
BLAKE2b-256 checksum How to use checksums |
050572bcb466a40fe0f811f97ec2053ca551d258cb92c373ae5160acf769f11c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency log