Expand description
Pure-logic process command-line parsing and forensic classification.
Parses /proc/<pid>/cmdline-style byte slices (NUL-separated argv fields)
into a structured ProcessCmdline and provides heuristic classifiers for
common attacker-controlled process patterns (SSH tunnels, cryptominers).
Structs§
- Process
Cmdline - Parsed process command line.
Functions§
- is_
miner_ cmdline - Returns
trueif this cmdline looks like a cryptominer. - is_
ssh_ tunnel_ cmdline - Returns
trueif this cmdline looks like an SSH port-forwarding tunnel. - parse_
proc_ cmdline - Parse a
/proc/<pid>/cmdlinebyte slice (NUL-separated fields) into aProcessCmdline.