Skip to content

Enhance runtime monitoring with three new detectors for FIFO files, hardlinks, and expanded permission controls#16

Open
kuzyka wants to merge 5 commits intomainfrom
expertise-update
Open

Enhance runtime monitoring with three new detectors for FIFO files, hardlinks, and expanded permission controls#16
kuzyka wants to merge 5 commits intomainfrom
expertise-update

Conversation

@kuzyka
Copy link
Copy Markdown
Collaborator

@kuzyka kuzyka commented Apr 19, 2026

Add new CS_RT_FIFO_FILE_CREATE, CS_RT_HARDLINK_CREATE detectors, enhance CS_RT_BIN_PERM_RAISE with kprobe support, and update tracing policies for improved threat coverage.

Detector Enhancements:

  • CS_RT_BIN_PERM_RAISE (v3): Extended to detect chmod operations via kprobe (security_path_chmod), now monitors execution permission grants on boot, dev, home, media, mnt, run, sys, tmp, and var directories
  • CS_RT_HARDLINK_CREATE (new): Detects hardlink creation to sensitive system files via security_path_link kprobe
  • CS_RT_FIFO_FILE_CREATE (new): Identifies potential reverse shell establishment via named pipe file or audit policy bypass attempts

Monitoring Policy Updates:

  • Renamed process-credentialspermissions: Now tracks both commit_creds() privilege escalation and security_path_chmod() with execute permissions
  • Renamed dupio-streams: Monitors do_dup2() calls (STDIN copying) and FIFO pipe creation via security_path_mknod() for reverse shell detection
  • Enhanced file-monitoring.yaml: Updated with new hardlink monitoring and refined file access rules

@kuzyka kuzyka requested a review from torkel-hoge April 19, 2026 15:54
@kuzyka kuzyka self-assigned this Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant